Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
1729eafd
Commit
1729eafd
authored
Oct 26, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
实缴查询导出和详情修改
parent
3a11690b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
+24
-24
TPaymentInfoMapper.xml
...cial-biz/src/main/resources/mapper/TPaymentInfoMapper.xml
+24
-24
No files found.
yifu-social/yifu-social-biz/src/main/resources/mapper/TPaymentInfoMapper.xml
View file @
1729eafd
...
@@ -1383,14 +1383,14 @@
...
@@ -1383,14 +1383,14 @@
ifnull(SUM( w.SOCIAL_SECURITY_PERSONAL_SUM ),0) + ifnull(SUM( w.PERSONAL_PROVIDENT_SUM ),0) AS SOCIAL_FUND_PERSONAL_SUM,
ifnull(SUM( w.SOCIAL_SECURITY_PERSONAL_SUM ),0) + ifnull(SUM( w.PERSONAL_PROVIDENT_SUM ),0) AS SOCIAL_FUND_PERSONAL_SUM,
ifnull(SUM( w.UNIT_SOCIAL_SUM ),0) + ifnull(SUM( w.UNIT_PROVIDENT_SUM ),0) AS UNIT_SOCIAL_FUND_SUM,
ifnull(SUM( w.UNIT_SOCIAL_SUM ),0) + ifnull(SUM( w.UNIT_PROVIDENT_SUM ),0) AS UNIT_SOCIAL_FUND_SUM,
SUM( w.UNIT_PROVIDENT_SUM ) AS UNIT_PROVIDENT_SUM,
SUM( w.UNIT_PROVIDENT_SUM ) AS UNIT_PROVIDENT_SUM,
w.
UNIT_PENSION_PER,
MAX(w.UNIT_PENSION_PER) as
UNIT_PENSION_PER,
w.
UNIT_MEDICAL_PER,
MAX(w.UNIT_MEDICAL_PER) as
UNIT_MEDICAL_PER,
w.
UNIT_UNEMPLOYMENT_PER,
MAX(w.UNIT_UNEMPLOYMENT_PER) as
UNIT_UNEMPLOYMENT_PER,
w.
UNIT_INJURY_PER,
MAX(w.UNIT_INJURY_PER) as
UNIT_INJURY_PER,
w.
UNIT_BIRTH_PER,
MAX(w.UNIT_BIRTH_PER) as
UNIT_BIRTH_PER,
w.
PERSONAL_PENSION_PER,
MAX(w.PERSONAL_PENSION_PER) as
PERSONAL_PENSION_PER,
w.
PERSONAL_MEDICAL_PER,
MAX(w.PERSONAL_MEDICAL_PER) as
PERSONAL_MEDICAL_PER,
w.
PERSONAL_UNEMPLOYMENT_PER
MAX(w.PERSONAL_UNEMPLOYMENT_PER) as
PERSONAL_UNEMPLOYMENT_PER
FROM (
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,
...
@@ -1439,14 +1439,14 @@
...
@@ -1439,14 +1439,14 @@
a.PROVIDENT_PERCENT,
a.PROVIDENT_PERCENT,
a.PERSONAL_PROIDENT_SET,
a.PERSONAL_PROIDENT_SET,
a.UNIT_PROVIDENT_SUM,
a.UNIT_PROVIDENT_SUM,
if(null = a.UNIT_PENSION_MONEY,'',round(
a.UNIT_PENSION_MONEY/UNIT_PENSION_SET,4
)) as UNIT_PENSION_PER,
if(null = a.UNIT_PENSION_MONEY,'',round(
SUM(a.UNIT_PENSION_MONEY)/MAX(a.UNIT_PENSION_SET,4)
)) as UNIT_PENSION_PER,
if(null = a.UNIT_MEDICAL_MONEY,'',round(
a.UNIT_MEDICAL_MONEY/UNIT_MEDICAL_SET,4
)) as UNIT_MEDICAL_PER,
if(null = a.UNIT_MEDICAL_MONEY,'',round(
SUM(a.UNIT_MEDICAL_MONEY)/MAX(a.UNIT_MEDICAL_SET,4)
)) as UNIT_MEDICAL_PER,
if(null = a.UNIT_UNEMPLOYMENT_MONEY,'',round(
a.UNIT_UNEMPLOYMENT_MONEY/UNIT_UNEMPLOYMENT_SET,4
)) as UNIT_UNEMPLOYMENT_PER,
if(null = a.UNIT_UNEMPLOYMENT_MONEY,'',round(
SUM(a.UNIT_UNEMPLOYMENT_MONEY)/MAX(a.UNIT_UNEMPLOYMENT_SET,4)
)) as UNIT_UNEMPLOYMENT_PER,
if(null = a.UNIT_INJURY_MONEY,'',round(
a.UNIT_INJURY_MONEY/UNIT_INJURY_SET,4
)) as UNIT_INJURY_PER,
if(null = a.UNIT_INJURY_MONEY,'',round(
SUM(a.UNIT_INJURY_MONEY)/MAX(a.UNIT_INJURY_SET,4)
)) as UNIT_INJURY_PER,
if(null = a.UNIT_BIRTH_MONEY,'',round(
a.UNIT_BIRTH_MONEY/UNIT_BIRTH_SET,4
)) as UNIT_BIRTH_PER,
if(null = a.UNIT_BIRTH_MONEY,'',round(
SUM(a.UNIT_BIRTH_MONEY)/MAX(a.UNIT_BIRTH_SET,4)
)) as UNIT_BIRTH_PER,
if(null = a.PERSONAL_PENSION_MONEY,'',round(
a.PERSONAL_PENSION_MONEY/UNIT_PENSION_SET,4
)) as PERSONAL_PENSION_PER,
if(null = a.PERSONAL_PENSION_MONEY,'',round(
SUM(a.PERSONAL_PENSION_MONEY)/MAX(a.UNIT_PENSION_SET,4)
)) as PERSONAL_PENSION_PER,
if(null = a.PERSONAL_MEDICAL_MONEY,'',round(
a.PERSONAL_MEDICAL_MONEY/UNIT_MEDICAL_SET,4
)) as PERSONAL_MEDICAL_PER,
if(null = a.PERSONAL_MEDICAL_MONEY,'',round(
SUM(a.PERSONAL_MEDICAL_MONEY)/MAX(a.UNIT_MEDICAL_SET,4)
)) as PERSONAL_MEDICAL_PER,
if(null = a.PERSONAL_UNEMPLOYMENT_MONEY,'',round(
a.PERSONAL_UNEMPLOYMENT_MONEY/UNIT_UNEMPLOYMENT_SET,4)) as PERSONAL_UNEMPLOYMENT_PER
if(null = a.PERSONAL_UNEMPLOYMENT_MONEY,'',round(
SUM(a.PERSONAL_UNEMPLOYMENT_MONEY)/MAX(a.UNIT_UNEMPLOYMENT_SET,4))) as PERSONAL_UNEMPLOYMENT_PER,
FROM t_payment_info a
FROM t_payment_info a
<where>
<where>
IFNULL(a.SOCIAL_ID,'1') != '1'
IFNULL(a.SOCIAL_ID,'1') != '1'
...
@@ -1738,14 +1738,14 @@
...
@@ -1738,14 +1738,14 @@
SUM( a.UNIT_INJURY_MONEY) as INJURY_MONEY_SUM,
SUM( a.UNIT_INJURY_MONEY) as INJURY_MONEY_SUM,
SUM( a.UNIT_BIRTH_MONEY) as BIRTH_MONEY_SUM,
SUM( a.UNIT_BIRTH_MONEY) as BIRTH_MONEY_SUM,
SUM( a.UNIT_BIGMAILMENT_MONEY + a.PERSONAL_BIGMAILMENT_MONEY) as BIGMAILMENT_MONEY_SUM,
SUM( a.UNIT_BIGMAILMENT_MONEY + a.PERSONAL_BIGMAILMENT_MONEY) as BIGMAILMENT_MONEY_SUM,
if(null = a.UNIT_PENSION_MONEY,'',round(
a.UNIT_PENSION_MONEY/UNIT_PENSION_SET,4
)) as UNIT_PENSION_PER,
if(null = a.UNIT_PENSION_MONEY,'',round(
SUM(a.UNIT_PENSION_MONEY)/MAX(a.UNIT_PENSION_SET,4)
)) as UNIT_PENSION_PER,
if(null = a.UNIT_MEDICAL_MONEY,'',round(
a.UNIT_MEDICAL_MONEY/UNIT_MEDICAL_SET,4
)) as UNIT_MEDICAL_PER,
if(null = a.UNIT_MEDICAL_MONEY,'',round(
SUM(a.UNIT_MEDICAL_MONEY)/MAX(a.UNIT_MEDICAL_SET,4)
)) as UNIT_MEDICAL_PER,
if(null = a.UNIT_UNEMPLOYMENT_MONEY,'',round(
a.UNIT_UNEMPLOYMENT_MONEY/UNIT_UNEMPLOYMENT_SET,4
)) as UNIT_UNEMPLOYMENT_PER,
if(null = a.UNIT_UNEMPLOYMENT_MONEY,'',round(
SUM(a.UNIT_UNEMPLOYMENT_MONEY)/MAX(a.UNIT_UNEMPLOYMENT_SET,4)
)) as UNIT_UNEMPLOYMENT_PER,
if(null = a.UNIT_INJURY_MONEY,'',round(
a.UNIT_INJURY_MONEY/UNIT_INJURY_SET,4
)) as UNIT_INJURY_PER,
if(null = a.UNIT_INJURY_MONEY,'',round(
SUM(a.UNIT_INJURY_MONEY)/MAX(a.UNIT_INJURY_SET,4)
)) as UNIT_INJURY_PER,
if(null = a.UNIT_BIRTH_MONEY,'',round(
a.UNIT_BIRTH_MONEY/UNIT_BIRTH_SET,4
)) as UNIT_BIRTH_PER,
if(null = a.UNIT_BIRTH_MONEY,'',round(
SUM(a.UNIT_BIRTH_MONEY)/MAX(a.UNIT_BIRTH_SET,4)
)) as UNIT_BIRTH_PER,
if(null = a.PERSONAL_PENSION_MONEY,'',round(
a.PERSONAL_PENSION_MONEY/UNIT_PENSION_SET,4
)) as PERSONAL_PENSION_PER,
if(null = a.PERSONAL_PENSION_MONEY,'',round(
SUM(a.PERSONAL_PENSION_MONEY)/MAX(a.UNIT_PENSION_SET,4)
)) as PERSONAL_PENSION_PER,
if(null = a.PERSONAL_MEDICAL_MONEY,'',round(
a.PERSONAL_MEDICAL_MONEY/UNIT_MEDICAL_SET,4
)) as PERSONAL_MEDICAL_PER,
if(null = a.PERSONAL_MEDICAL_MONEY,'',round(
SUM(a.PERSONAL_MEDICAL_MONEY)/MAX(a.UNIT_MEDICAL_SET,4)
)) as PERSONAL_MEDICAL_PER,
if(null = a.PERSONAL_UNEMPLOYMENT_MONEY,'',round(
a.PERSONAL_UNEMPLOYMENT_MONEY/UNIT_UNEMPLOYMENT_SET,4
)) as PERSONAL_UNEMPLOYMENT_PER,
if(null = a.PERSONAL_UNEMPLOYMENT_MONEY,'',round(
SUM(a.PERSONAL_UNEMPLOYMENT_MONEY)/MAX(a.UNIT_UNEMPLOYMENT_SET,4)
)) as PERSONAL_UNEMPLOYMENT_PER,
a.PROVIDENT_NO,
a.PROVIDENT_NO,
a.UNIT_PROVIDENT_SET,
a.UNIT_PROVIDENT_SET,
a.PROVIDENT_PERCENT,
a.PROVIDENT_PERCENT,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment