通讯录查询修改
parent
8c96af9db5
commit
ac60358c11
|
|
@ -8,7 +8,7 @@
|
|||
AB.*,F.SORT FSORT
|
||||
FROM
|
||||
ADDRESS_BOOK AB
|
||||
LEFT JOIN FC F ON F.AB_ID = AB.ID
|
||||
LEFT JOIN FC F ON F.AB_ID = AB.ID AND F.USER_ID = #{dto.userId}
|
||||
LEFT JOIN AB_UD_R R ON R.AD_ID = AB.ID
|
||||
WHERE 1=1
|
||||
<if test="dto.dictId != null and dto.dictId != '' ">
|
||||
|
|
@ -26,9 +26,6 @@
|
|||
<if test="dto.phone != null and dto.phone != '' ">
|
||||
AND AB.PHONE = #{dto.phone}
|
||||
</if>
|
||||
<if test="dto.userId != null and dto.userId != ''">
|
||||
AND F.USER_ID = #{dto.userId}
|
||||
</if>
|
||||
ORDER BY AB.SORT
|
||||
</select>
|
||||
|
||||
|
|
|
|||
|
|
@ -17,12 +17,8 @@
|
|||
F.SORT FSORT
|
||||
FROM
|
||||
ORGANIZATION O
|
||||
LEFT JOIN FC F ON F.AB_ID = O.ID
|
||||
<where>
|
||||
<if test="userId != null and userId != ''">
|
||||
F.USER_ID = #{userId}
|
||||
</if>
|
||||
</where>
|
||||
LEFT JOIN FC F ON F.AB_ID = O.ID AND F.USER_ID = #{userId}
|
||||
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -15,12 +15,8 @@
|
|||
F.SORT FSORT
|
||||
FROM
|
||||
UNIT_DICT UD
|
||||
LEFT JOIN FC F ON F.AB_ID = UD.O_ID
|
||||
<where>
|
||||
<if test="userId != null and userId != ''">
|
||||
F.USER_ID = #{userId}
|
||||
</if>
|
||||
</where>
|
||||
LEFT JOIN FC F ON F.AB_ID = UD.O_ID AND F.USER_ID = #{userId}
|
||||
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue