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
fb35818a
Commit
fb35818a
authored
Jan 05, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化修改
parent
1fbd0173
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
39 deletions
+44
-39
EkpSettleMapper.xml
...ces-biz/src/main/resources/mapper/ekp/EkpSettleMapper.xml
+44
-39
No files found.
yifu-insurances/yifu-insurances-biz/src/main/resources/mapper/ekp/EkpSettleMapper.xml
View file @
fb35818a
...
...
@@ -48,101 +48,106 @@
<!-- 根据结算单编码获取视图信息 -->
<select
id=
"selectSettleStatusBySettleNo"
resultMap=
"BaseResultStatusMap"
>
select
<include
refid=
"Base_Column_List_Status"
></include>
b.detailsId,
if(b.earningStatus = '已结算','0',if(b.earningStatus = '结算中','1',if(b.earningStatus = '无需结算','3','2'))),
if(b.receiptStatus = '已收','0',if(b.receiptStatus = '垫付','2','1')),
if(b.zhichuEarningStatus = '已结算','0',if(b.zhichuEarningStatus = '结算中','1',if(b.zhichuEarningStatus = '无需结算','3','2'))),
if(b.payStatus = '已付','0','1'),
orderType
from
ekp.view_insurance_info
ekp.view_insurance_info
b
where
1 = 1
<if
test=
"payFlag != null and payFlag != '' and payFlag == 0"
>
and earningNo = #{settleNo}
and
b.
earningNo = #{settleNo}
</if>
<if
test=
"payFlag != null and payFlag != '' and payFlag == 1"
>
and zhichuEarningNo = #{settleNo}
and
b.
zhichuEarningNo = #{settleNo}
</if>
</select>
<!-- 根据结算单编码获取社保视图信息 -->
<select
id=
"selectSocialViewStatusBySettleNo"
resultMap=
"BaseResultSocialStatusMap"
>
select
detailsId,
earningStatus
,
receiptStatus
,
zhichuEarningStatus
,
payStatus
,
orderType
a.
detailsId,
if(a.earningStatus = '已结算','0',if(a.earningStatus = '结算中','1',if(a.earningStatus = '已冻结','3','2')))
,
if(a.receiptStatus = '已收','0',if(a.receiptStatus = '垫付','2','1'))
,
if(a.zhichuEarningStatus = '已结算','0',if(a.zhichuEarningStatus = '结算中','1','2'))
,
if(a.payStatus = '已付','0','1')
,
a.
orderType
from
ekp.view_social_info
ekp.view_social_info
a
where
1 = 1
<if
test=
"payFlag != null and payFlag != '' and payFlag == 0"
>
and earningNo = #{settleNo}
and
a.
earningNo = #{settleNo}
</if>
<if
test=
"payFlag != null and payFlag != '' and payFlag == 1"
>
and zhichuEarningNo = #{settleNo}
and
a.
zhichuEarningNo = #{settleNo}
</if>
</select>
<!-- 根据结算单编码获取公积金视图信息 -->
<select
id=
"selectFundViewBySettleNo"
resultMap=
"BaseResultSocialStatusMap"
>
select
detailsId,
earningStatus
,
receiptStatus
,
zhichuEarningStatus
,
payStatus
a.
detailsId,
if(a.earningStatus = '已结算','0',if(a.earningStatus = '结算中','1',if(a.earningStatus = '已冻结','3','2')))
,
if(a.receiptStatus = '已收','0',if(a.receiptStatus = '垫付','2','1'))
,
if(a.zhichuEarningStatus = '已结算','0',if(a.zhichuEarningStatus = '结算中','1','2'))
,
if(a.payStatus = '已付','0','1')
from
ekp.view_funds_info
ekp.view_funds_info
a
where
1 = 1
<if
test=
"payFlag != null and payFlag != '' and payFlag == 0"
>
and earningNo = #{settleNo}
and
a.
earningNo = #{settleNo}
</if>
<if
test=
"payFlag != null and payFlag != '' and payFlag == 1"
>
and zhichuEarningNo = #{settleNo}
and
a.
zhichuEarningNo = #{settleNo}
</if>
</select>
<!-- 根据结算单编码获取视图信息 -->
<select
id=
"selectFIncomelViewBySettleNo"
resultMap=
"BaseResultStatusMap"
>
select
detailsId,
earningStatus
,
receiptStatus
a.
detailsId,
if(a.earningStatus = '已结算','0',if(a.earningStatus = '结算中','1',if(a.earningStatus = '已冻结','3','2')))
,
if(a.receiptStatus = '已收','0',if(a.receiptStatus = '垫付','2','1'))
from
ekp.view_riskfund_info
ekp.view_riskfund_info
a
where
earningNo = #{settleNo}
a.
earningNo = #{settleNo}
</select>
<!-- 根据结算单编码获取视图信息 -->
<select
id=
"selectIncomeViewBySettleNo"
resultMap=
"BaseResultStatusMap"
>
select
detailsId,
earningStatus
,
receiptStatus
a.
detailsId,
if(a.earningStatus = '已结算','0',if(a.earningStatus = '结算中','1',if(a.earningStatus = '已冻结','3','2')))
,
if(a.receiptStatus = '已收','0',if(a.receiptStatus = '垫付','2','1'))
from
ekp.view_management_info
ekp.view_management_info
a
where
earningNo = #{settleNo}
a.
earningNo = #{settleNo}
</select>
<!-- 根据结算单编码获取视图信息 -->
<select
id=
"selectSalarylViewBySettleNo"
resultMap=
"BaseResultSocialStatusMap"
>
select
detailsId,
earningStatus
,
receiptStatus
,
zhichuEarningStatus
,
payStatus
a.
detailsId,
if(a.earningStatus = '已结算','0',if(a.earningStatus = '结算中','1',if(a.earningStatus = '已冻结','3','2')))
,
if(a.receiptStatus = '已收','0',if(a.receiptStatus = '垫付','2','1'))
,
if(a.zhichuEarningStatus = '已结算','0',if(a.zhichuEarningStatus = '结算中','1','2'))
,
if(a.payStatus = '已付','0','1')
from
ekp.view_salary_info
ekp.view_salary_info
a
where
1 = 1
<if
test=
"payFlag != null and payFlag != '' and payFlag == 0"
>
and earningNo = #{settleNo}
and
a.
earningNo = #{settleNo}
</if>
<if
test=
"payFlag != null and payFlag != '' and payFlag == 1"
>
and zhichuEarningNo = #{settleNo}
and
a.
zhichuEarningNo = #{settleNo}
</if>
</select>
</mapper>
...
...
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