修改查询所有的条件,按照列查询
This commit is contained in:
@@ -38,6 +38,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
select user_id, name, age, sex, birth_date, education, political_affiliation, phone, avatar, salary_min, salary_max, area, status, del_flag, login_ip, login_date, create_by, create_time, update_by, update_time, remark,job_title_id,is_recommend,id_card,work_experience,is_company_user,dw_userid from app_user
|
||||
</sql>
|
||||
|
||||
<sql id="selectSysUserVo">
|
||||
select u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark,u.id_card
|
||||
from sys_user u
|
||||
</sql>
|
||||
|
||||
<select id="selectAppUserList" parameterType="AppUser" resultMap="AppUserResult">
|
||||
<include refid="selectAppUserVo"/>
|
||||
<where> del_flag = '0'
|
||||
@@ -61,7 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</where>
|
||||
</select>
|
||||
<select id="selectByJobId" resultType="com.ruoyi.common.core.domain.entity.AppUser" parameterType="java.lang.Long">
|
||||
SELECT * FROM app_user WHERE user_id IN (
|
||||
<include refid="selectAppUserVo"/> WHERE user_id IN (
|
||||
select DISTINCT au.USER_ID from APP_USER au
|
||||
INNER JOIN JOB_APPLY ja ON ja.USER_ID = au.USER_ID
|
||||
WHERE au.DEL_FLAG = '0' AND ja.DEL_FLAG = '0' AND ja.JOB_Id = #{jobId})
|
||||
@@ -120,7 +125,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</select>
|
||||
|
||||
<select id="selectSysUserIdcard" resultType="com.ruoyi.common.core.domain.entity.SysUser">
|
||||
select * from sys_user where del_flag='0'
|
||||
<include refid="selectSysUserVo"/> where del_flag='0'
|
||||
<if test="idCard!=null and idCard!=''">
|
||||
and id_card=#{idCard}
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user