Commit a457a009 authored by huyuchen's avatar huyuchen

花名册修改

parent b6a0acd3
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
a.DEPART_NO, a.DEPART_NO,
a.SECOND_INDICATOR_BELONG a.SECOND_INDICATOR_BELONG
FROM t_settle_domain a FROM t_settle_domain a
WHERE a.DELETE_FLAG = '0' and a.STOP_FLAG = '0' WHERE a.DELETE_FLAG = '0' and a.SECOND_INDICATOR_BELONG is not null
<if test="tSettleDomain != null"> <if test="tSettleDomain != null">
<if test="tSettleDomain.departNo != null and tSettleDomain.departNo.trim() != ''"> <if test="tSettleDomain.departNo != null and tSettleDomain.departNo.trim() != ''">
and a.DEPART_NO = #{tSettleDomain.departNo} and a.DEPART_NO = #{tSettleDomain.departNo}
......
...@@ -1474,11 +1474,12 @@ ...@@ -1474,11 +1474,12 @@
SELECT SELECT
count(1) count(1)
FROM ( FROM (
select w.SOCIAL_HOUSEHOLD,w.PROVIDENT_HOUSEHOLD from ( select w.SOCIAL_HOUSEHOLD,w.PROVIDENT_HOUSEHOLD,w.SECOND_INDICATOR_BELONG from (
(SELECT (SELECT
CONCAT( a.EMP_IDCARD, '_', a.SOCIAL_PAY_MONTH, '_', a.SOCIAL_CREATE_MONTH, '_', a.SETTLE_DOMAIN_CODE ) AS keyGroup, CONCAT( a.EMP_IDCARD, '_', a.SOCIAL_PAY_MONTH, '_', a.SOCIAL_CREATE_MONTH, '_', a.SETTLE_DOMAIN_CODE ) AS keyGroup,
a.SOCIAL_HOUSEHOLD, a.SOCIAL_HOUSEHOLD,
a.PROVIDENT_HOUSEHOLD a.PROVIDENT_HOUSEHOLD,
a.SECOND_INDICATOR_BELONG
FROM t_payment_info a FROM t_payment_info a
<where> <where>
IFNULL(a.SOCIAL_ID,'1') != '1' IFNULL(a.SOCIAL_ID,'1') != '1'
...@@ -1490,7 +1491,8 @@ ...@@ -1490,7 +1491,8 @@
(SELECT (SELECT
CONCAT( a.EMP_IDCARD, '_', a.PROVIDENT_PAY_MONTH, '_', a.PROVIDENT_CREATE_MONTH, '_', a.SETTLE_DOMAIN_CODE ) AS keyGroup, CONCAT( a.EMP_IDCARD, '_', a.PROVIDENT_PAY_MONTH, '_', a.PROVIDENT_CREATE_MONTH, '_', a.SETTLE_DOMAIN_CODE ) AS keyGroup,
a.SOCIAL_HOUSEHOLD, a.SOCIAL_HOUSEHOLD,
a.PROVIDENT_HOUSEHOLD a.PROVIDENT_HOUSEHOLD,
a.SECOND_INDICATOR_BELONG
FROM t_payment_info a FROM t_payment_info a
<where> <where>
IFNULL(a.FUND_ID,'1') != '1' IFNULL(a.FUND_ID,'1') != '1'
...@@ -2337,6 +2339,7 @@ ...@@ -2337,6 +2339,7 @@
,p.SETTLE_DOMAIN_CODE = #{dept.departNo} ,p.SETTLE_DOMAIN_CODE = #{dept.departNo}
,p.UNIT_ID = #{dept.customerId} ,p.UNIT_ID = #{dept.customerId}
,p.UNIT_NAME = #{dept.customerName} ,p.UNIT_NAME = #{dept.customerName}
,p.SECOND_INDICATOR_BELONG = #{dept.secondIndicatorBelong}
where (p.SALARY_SOCIAL_FLAG = '0' and p.SALARY_FUND_FLAG = '0') and p.id in where (p.SALARY_SOCIAL_FLAG = '0' and p.SALARY_FUND_FLAG = '0') and p.id in
<foreach item="item" index="index" collection="idSet" open="(" separator="," close=")"> <foreach item="item" index="index" collection="idSet" 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