Commit f043d1b4 authored by 耿迪迪's avatar 耿迪迪

作业单查询修改 gengdidi

parent 1bbbe91f
...@@ -178,11 +178,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -178,11 +178,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
permit.update_time, permit.update_time,
permit.remarks permit.remarks
FROM FROM
t_work_permit permit,t_special_work_permit special,t_special_work_permit_sign sign t_work_permit permit
WHERE LEFT JOIN t_special_work_permit special ON permit.work_permit_id = special.work_permit_id
permit.work_permit_id = special.work_permit_id LEFT JOIN t_special_work_permit_sign sign ON special.special_work_permit_id = sign.permit_id
AND special.special_work_permit_id = sign.permit_id WHERE (
AND (permit.link_man = #{currentLoginUser} or sign.sign_id = #{currentLoginUser}) permit.link_man = #{currentLoginUser}
OR sign.sign_id = #{currentLoginUser}
)
<where> <where>
<if test="applyDept != null and applyDept != ''"> and apply_dept = #{applyDept}</if> <if test="applyDept != null and applyDept != ''"> and apply_dept = #{applyDept}</if>
<if test="linkMan != null and linkMan != ''"> and link_man = #{linkMan}</if> <if test="linkMan != null and linkMan != ''"> and link_man = #{linkMan}</if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment