init
This commit is contained in:
@@ -3,31 +3,23 @@
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.xq.mapper.UserAuthMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.xq.domain.UserAuth" id="UserAuthResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="usercode" column="usercode"/>
|
||||
<result property="cardNumAuth" column="card_num_auth"/>
|
||||
<result property="cardNumId" column="card_num_id"/>
|
||||
<result property="cardNumName" column="card_num_name"/>
|
||||
<result property="phoneAuth" column="phone_auth"/>
|
||||
<result property="phone" column="phone"/>
|
||||
<result property="singlePersonAuth" column="single_person_auth"/>
|
||||
<result property="educationAuth" column="education_auth"/>
|
||||
<result property="educationPic" column="education_pic"/>
|
||||
<result property="jobAuth" column="job_auth"/>
|
||||
<result property="jobAuthType" column="job_auth_type"/>
|
||||
<result property="jobPic" column="job_pic"/>
|
||||
<result property="carAuth" column="car_auth"/>
|
||||
<result property="carPic" column="car_pic"/>
|
||||
<result property="houseAuth" column="house_auth"/>
|
||||
<result property="housePic" column="house_pic"/>
|
||||
<result property="marriageAuth" column="marriage_auth"/>
|
||||
<result property="marriagePic" column="marriage_pic"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
<select id="pageApp" resultType="com.ruoyi.xq.dto.admin.user.UserAuthAdminVo">
|
||||
select t1.*, t2.nickname,t2.mobile,t2.avatar
|
||||
from xq_user_auth t1
|
||||
left join xq_user t2 on t1.user_id = t2.id
|
||||
<where>
|
||||
<if test="bo.usercode != null and bo.usercode != ''">
|
||||
and t1.usercode = #{bo.usercode}
|
||||
</if>
|
||||
<if test="bo.nickname != null and bo.nickname != ''">
|
||||
and t2.nickname like concat('%',#{bo.nickname},'%')
|
||||
</if>
|
||||
<if test="bo.mobile != null and bo.mobile != ''">
|
||||
and t2.mobile = #{bo.mobile}
|
||||
</if>
|
||||
</where>
|
||||
order by t1.id desc
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -4,16 +4,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.xq.mapper.UserVipMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.xq.domain.UserVip" id="UserVipResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="usercode" column="usercode"/>
|
||||
<result property="vipType" column="vip_type"/>
|
||||
<result property="vipTimeout" column="vip_timeout"/>
|
||||
<result property="vipStatus" column="vip_status"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
<select id="pageApp" resultType="com.ruoyi.xq.dto.admin.user.UserVipAdminVo">
|
||||
select t1.*, t2.nickname, t2.mobile,t2.avatar
|
||||
from xq_user_vip t1
|
||||
left join xq_user t2 on t1.user_id = t2.id
|
||||
<where>
|
||||
<if test="bo.usercode != null and bo.usercode != ''">
|
||||
and t1.usercode = #{bo.usercode}
|
||||
</if>
|
||||
<if test="bo.nickname != null and bo.nickname != ''">
|
||||
and t2.nickname like concat('%',#{bo.nickname},'%')
|
||||
</if>
|
||||
<if test="bo.mobile != null and bo.mobile != ''">
|
||||
and t2.mobile = #{bo.mobile}
|
||||
</if>
|
||||
</where>
|
||||
order by id desc
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -4,26 +4,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.xq.mapper.VipOrderMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.xq.domain.VipOrder" id="VipOrderResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="usercode" column="usercode"/>
|
||||
<result property="vipId" column="vip_id"/>
|
||||
<result property="vipType" column="vip_type"/>
|
||||
<result property="vipTime" column="vip_time"/>
|
||||
<result property="vipPrice" column="vip_price"/>
|
||||
<result property="orderNo" column="order_no"/>
|
||||
<result property="platformType" column="platform_type"/>
|
||||
<result property="payStatus" column="pay_status"/>
|
||||
<result property="payTime" column="pay_time"/>
|
||||
<result property="appid" column="appid"/>
|
||||
<result property="returnContent" column="return_content"/>
|
||||
<result property="operateIp" column="operate_ip"/>
|
||||
<result property="admin" column="admin"/>
|
||||
<result property="adminId" column="admin_id"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
<select id="pageApp" resultType="com.ruoyi.xq.dto.admin.vipOrder.VipOrderAdminVo">
|
||||
select t1.*, t2.nickname,t2.mobile,t2.avatar
|
||||
from xq_vip_order t1
|
||||
left join xq_user t2 on t1.user_id = t2.id
|
||||
<where>
|
||||
<if test="bo.usercode != null and bo.usercode != ''">
|
||||
and t1.usercode = #{bo.usercode}
|
||||
</if>
|
||||
<if test="bo.nickname != null and bo.nickname != ''">
|
||||
and t2.nickname like concat('%',#{bo.nickname},'%')
|
||||
</if>
|
||||
<if test="bo.mobile != null and bo.mobile != ''">
|
||||
and t2.mobile = #{bo.mobile}
|
||||
</if>
|
||||
</where>
|
||||
order by t1.create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user