Commit 6d50cec0 authored by fangxinjiang's avatar fangxinjiang

派单导出办理

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