|
|
@@ -22,12 +22,16 @@
|
|
|
select id, user_id, user_name, user_number, user_telephone, user_type, dept_id, dept_name, create_user, create_id, create_time from lab_whitelist t
|
|
|
</sql>
|
|
|
<sql id="selectLabWhitelistListVo">
|
|
|
- select t.id, t.user_id, t.user_name, t.user_number, t.user_telephone, t.user_type, t.dept_id, t.dept_name, t.create_user, t.create_id, t.create_time from lab_whitelist as t
|
|
|
+ select t.id, t.user_id, t.user_name, t.user_number, t.user_telephone, t.user_type,
|
|
|
+ t.dept_id, t.dept_name, t.create_user, t.create_id, t.create_time
|
|
|
+ from lab_whitelist t
|
|
|
+ LEFT JOIN sys_dept d on t.dept_id=d.dept_id
|
|
|
+ LEFT JOIN sys_user u on t.user_id=u.user_id
|
|
|
</sql>
|
|
|
<select id="selectLabWhitelistList" parameterType="com.zd.laboratory.domain.LabWhitelist" resultMap="LabWhitelistResult">
|
|
|
- <include refid="selectLabWhitelistVo"/>
|
|
|
+ <include refid="selectLabWhitelistListVo"/>
|
|
|
<where>
|
|
|
- <if test="userId != null "> and user_id = #{userId}</if>
|
|
|
+ <if test="userId != null "> and t.user_id = #{userId}</if>
|
|
|
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
|
|
|
<if test="userNumber != null and userNumber != ''"> and user_number = #{userNumber}</if>
|
|
|
<if test="userTelephone != null and userTelephone != ''"> and user_telephone = #{userTelephone}</if>
|