init
This commit is contained in:
15
ruoyi-xq/src/main/resources/mapper/xq/ReportCateMapper.xml
Normal file
15
ruoyi-xq/src/main/resources/mapper/xq/ReportCateMapper.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.xq.mapper.ReportCateMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.xq.domain.ReportCate" id="ReportCateResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
36
ruoyi-xq/src/main/resources/mapper/xq/ReportMapper.xml
Normal file
36
ruoyi-xq/src/main/resources/mapper/xq/ReportMapper.xml
Normal file
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.xq.mapper.ReportMapper">
|
||||
|
||||
<select id="pageAdmin" resultType="com.ruoyi.xq.dto.admin.report.ReportAdminVo">
|
||||
select t1.*, t2.usercode, t2.nickname, t2.avatar, t2.mobile,
|
||||
t3.usercode as report_usercode, t3.nickname as report_nickname, t3.avatar as report_avatar, t3.mobile as report_mobile
|
||||
from xq_report t1
|
||||
join xq_user t2 on t1.user_id = t2.id
|
||||
join xq_user t3 on t1.report_uid = t3.id
|
||||
<where>
|
||||
<if test="bo.usercode != null and bo.usercode != ''">
|
||||
and t2.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>
|
||||
<if test="bo.reportUsercode != null and bo.reportUsercode != ''">
|
||||
and t3.usercode = #{bo.reportUsercode}
|
||||
</if>
|
||||
<if test="bo.reportNickname != null and bo.reportNickname != ''">
|
||||
and t3.nickname like concat('%',#{bo.reportNickname},'%')
|
||||
</if>
|
||||
<if test="bo.reportMobile != null and bo.reportMobile != ''">
|
||||
and t3.mobile = #{bo.reportMobile}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -7,7 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<select id="pageAdmin" resultType="com.ruoyi.xq.dto.admin.user.UserInfoAdminVo">
|
||||
select t2.*,
|
||||
t1.nickname,t1.type,t1.mobile,t1.avatar,t1.gender,t1.age,t1.birthday,
|
||||
t1.height,t1.weight,t1.somatotype,t1.zodiac,t1.sign,t1.residence,t1.address,t1.residence_city,
|
||||
t1.height,t1.weight,t1.somatotype,t1.zodiac,t1.sign,t1.residence_name,t1.address_name,t1.residence_city_name,
|
||||
t1.education,t1.marriage,t1.profession,t1.annual_income,t1.company_nature,t1.for_personals,
|
||||
t1.remark,t1.status,t1.finish_base_status
|
||||
from xq_user t1
|
||||
|
||||
Reference in New Issue
Block a user