Commit 6d50cec0 authored by fangxinjiang's avatar fangxinjiang

派单导出办理

parent 9dbdca76
...@@ -1051,7 +1051,7 @@ ...@@ -1051,7 +1051,7 @@
s.PERSONAL_BIGAILMENT_MONEY, s.PERSONAL_BIGAILMENT_MONEY,
a.TRUST_REMARK, a.TRUST_REMARK,
a.REDUCE_REASON, a.REDUCE_REASON,
a.EXPORT_SOCIAL_FLAG '1' as EXPORT_SOCIAL_FLAG
FROM t_dispatch_info a FROM t_dispatch_info a
left join t_social_info s on a.SOCIAL_ID = s.id left join t_social_info s on a.SOCIAL_ID = s.id
<include refid="where_getSocialRecordRoster"/> <include refid="where_getSocialRecordRoster"/>
...@@ -1173,7 +1173,7 @@ ...@@ -1173,7 +1173,7 @@
a.TRUST_REMARK, a.TRUST_REMARK,
a.LEAVE_DATE, a.LEAVE_DATE,
a.REDUCE_REASON, a.REDUCE_REASON,
a.EXPORT_FUND_FLAG '1' as EXPORT_FUND_FLAG
FROM t_dispatch_info a FROM t_dispatch_info a
left join t_provident_fund f on a.FUND_ID = f.id left join t_provident_fund f on a.FUND_ID = f.id
<where> <where>
...@@ -1245,7 +1245,7 @@ ...@@ -1245,7 +1245,7 @@
</if> </if>
</if> </if>
</if>--> </if>-->
<if test="tDispatchInfo.empTypeList != null "> <if test="tDispatchInfo.empTypeList != null and tDispatchInfo.empTypeList.length>0">
AND a.EMP_TYPE IN AND a.EMP_TYPE IN
<foreach collection="tDispatchInfo.empTypeList" item="item" index="index" open="(" separator="," close=")"> <foreach collection="tDispatchInfo.empTypeList" item="item" index="index" open="(" separator="," close=")">
#{item} #{item}
...@@ -1345,7 +1345,7 @@ ...@@ -1345,7 +1345,7 @@
AND a.STATUS = "2" AND a.STATUS = "2"
and (( a.type = '0' AND (s.HANDLE_STATUS = "0" or s.HANDLE_STATUS = "4") ) or ( a.type ='1' AND s.HANDLE_STATUS in ('1','5','6','3','7') and s.REDUCE_CAN = '1')) and (( a.type = '0' AND (s.HANDLE_STATUS = "0" or s.HANDLE_STATUS = "4") ) or ( a.type ='1' AND s.HANDLE_STATUS in ('1','5','6','3','7') and s.REDUCE_CAN = '1'))
and a.SOCIAL_HANDLE_STATUS in ('0','4') and a.SOCIAL_HANDLE_STATUS in ('0','4')
<if test="tDispatchInfo.empTypeList != null "> <if test="tDispatchInfo.empTypeList != null and tDispatchInfo.empTypeList.length>0 ">
AND a.EMP_TYPE IN AND a.EMP_TYPE IN
<foreach collection="tDispatchInfo.empTypeList" item="item" index="index" open="(" separator="," close=")"> <foreach collection="tDispatchInfo.empTypeList" item="item" index="index" open="(" separator="," close=")">
#{item} #{item}
...@@ -1481,7 +1481,7 @@ ...@@ -1481,7 +1481,7 @@
INSTR(a.DISPATCH_ITEM,#{item}) INSTR(a.DISPATCH_ITEM,#{item})
</foreach> </foreach>
</if> </if>
<if test="tDispatchInfo.empTypeList != null "> <if test="tDispatchInfo.empTypeList != null and tDispatchInfo.empTypeList.length>0">
AND a.EMP_TYPE IN AND a.EMP_TYPE IN
<foreach collection="tDispatchInfo.empTypeList" item="item" index="index" open="(" separator="," close=")"> <foreach collection="tDispatchInfo.empTypeList" item="item" index="index" open="(" separator="," close=")">
#{item} #{item}
......
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