Commit 0f73ca98 authored by 蔡镇泽's avatar 蔡镇泽

失能评定调整

parent 5123469c
......@@ -185,25 +185,29 @@
FROM ch_apr_emp emp
LEFT JOIN ch_apr_organ organ ON emp.apr_organ_id = organ.apr_organ_id
LEFT JOIN ch_srv_organ srvOrgan ON organ.organ_id = srvOrgan.srv_organ_id
where (SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE organ.DISTRICT_PROVINCIAL = dis.DISTRICT_CODE) = #{provincial}
<if test="city != null and city != ''">
and (SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE organ.DISTRICT_CITY = dis.DISTRICT_CODE) = #{city}
</if>
<if test="area != null and area != ''">
and (SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE organ.DISTRICT_AREA = dis.DISTRICT_CODE) = #{area}
</if>
<if test="organName != null and organName != ''">
and organ.organ_name like CONCAT(CONCAT('%',#{organName}) ,'%')
</if>
<if test="name != null and name != ''">
and emp.real_name like CONCAT(CONCAT('%',#{name}) ,'%')
</if>
<if test="tel != null and tel != ''">
and emp.tel = #{tel}
</if>
<if test="groupLeader != null and groupLeader != ''">
and emp.group_leader = #{groupLeader}
</if>
<where>
<if test="provincial != null and provincial != ''">
and (SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE organ.DISTRICT_PROVINCIAL = dis.DISTRICT_CODE) = #{provincial}
</if>
<if test="city != null and city != ''">
and (SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE organ.DISTRICT_CITY = dis.DISTRICT_CODE) = #{city}
</if>
<if test="area != null and area != ''">
and (SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE organ.DISTRICT_AREA = dis.DISTRICT_CODE) = #{area}
</if>
<if test="organName != null and organName != ''">
and organ.organ_name like CONCAT(CONCAT('%',#{organName}) ,'%')
</if>
<if test="name != null and name != ''">
and emp.real_name like CONCAT(CONCAT('%',#{name}) ,'%')
</if>
<if test="tel != null and tel != ''">
and emp.tel = #{tel}
</if>
<if test="groupLeader != null and groupLeader != ''">
and emp.group_leader = #{groupLeader}
</if>
</where>
</select>
<select id="taskGroupList" resultType="com.hungraim.ltc.pojo.vo.assessment.TaskGroupVO">
......
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