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
611fb0f5
Commit
611fb0f5
authored
Jul 19, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合同优化-多状态查询
parent
dc798bf0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
5 deletions
+52
-5
TEmployeeInfo.java
...ifu/cloud/plus/v1/yifu/archives/entity/TEmployeeInfo.java
+16
-0
TEmployeeInfoMapper.xml
...ves-biz/src/main/resources/mapper/TEmployeeInfoMapper.xml
+36
-5
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TEmployeeInfo.java
View file @
611fb0f5
...
...
@@ -389,4 +389,20 @@ public class TEmployeeInfo extends BaseEntity {
@TableField
(
exist
=
false
)
private
String
leaveTimeEnd
;
@Schema
(
description
=
"社保状态多个"
)
@TableField
(
exist
=
false
)
private
String
[]
socialStatusArray
;
@Schema
(
description
=
"公积金状态多个"
)
@TableField
(
exist
=
false
)
private
String
[]
fundStatusArray
;
@Schema
(
description
=
"商险状态多个"
)
@TableField
(
exist
=
false
)
private
String
[]
insuranceStatusArray
;
@Schema
(
description
=
"合同状态多个"
)
@TableField
(
exist
=
false
)
private
String
[]
contractStatusArray
;
@Schema
(
description
=
"员工类型多个"
)
@TableField
(
exist
=
false
)
private
String
[]
empNatureArray
;
}
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmployeeInfoMapper.xml
View file @
611fb0f5
...
...
@@ -250,7 +250,7 @@
AND a.EMP_CODE = #{tEmployeeInfo.empCode}
</if>
<if
test=
"tEmployeeInfo.empNatrue != null and tEmployeeInfo.empNatrue.trim() != ''"
>
AND a.EMP_NATRUE
in (${tEmployeeInfo.empNatrue})
AND a.EMP_NATRUE
= #{tEmployeeInfo.empNatrue}
</if>
<if
test=
"tEmployeeInfo.empName != null and tEmployeeInfo.empName.trim() != ''"
>
AND a.EMP_NAME = #{tEmployeeInfo.empName}
...
...
@@ -348,16 +348,16 @@
</if>
</if>
<if
test=
"tEmployeeInfo.contractStatus != null"
>
AND a.CONTRACT_STATUS
in (${tEmployeeInfo.contractStatus})
AND a.CONTRACT_STATUS
= #{tEmployeeInfo.contractStatus}
</if>
<if
test=
"tEmployeeInfo.insuranceStatus != null"
>
AND a.INSURANCE_STATUS
in (${tEmployeeInfo.insuranceStatus})
AND a.INSURANCE_STATUS
= #{tEmployeeInfo.insuranceStatus}
</if>
<if
test=
"tEmployeeInfo.socialStatus != null"
>
AND a.SOCIAL_STATUS
in (${tEmployeeInfo.socialStatus})
AND a.SOCIAL_STATUS
= #{tEmployeeInfo.socialStatus}
</if>
<if
test=
"tEmployeeInfo.fundStatus != null"
>
AND a.FUND_STATUS
in (${tEmployeeInfo.fundStatus})
AND a.FUND_STATUS
= #(${tEmployeeInfo.fundStatus}
</if>
<if
test=
"tEmployeeInfo.salaryStatus != null"
>
AND a.SALARY_STATUS = #{tEmployeeInfo.salaryStatus}
...
...
@@ -404,6 +404,37 @@
<if
test=
"tEmployeeInfo.contactAddress != null and tEmployeeInfo.contactAddress.trim() != ''"
>
AND a.CONTACT_ADDRESS = #{tEmployeeInfo.contactAddress}
</if>
<if
test=
"tEmployeeInfo.empNatureArray != null"
>
AND a.EMP_NATRUE in
<foreach
item=
"idStr"
index=
"index"
collection=
"tEmployeeInfo.empNatureArray"
open=
"("
separator=
","
close=
")"
>
#{idStr}
</foreach>
</if>
<if
test=
"tEmployeeInfo.contractStatusArray != null"
>
AND a.CONTRACT_STATUS in
<foreach
item=
"idStr"
index=
"index"
collection=
"tEmployeeInfo.contractStatusArray"
open=
"("
separator=
","
close=
")"
>
#{idStr}
</foreach>
</if>
<if
test=
"tEmployeeInfo.insuranceStatusArray != null"
>
AND a.INSURANCE_STATUS in
<foreach
item=
"idStr"
index=
"index"
collection=
"tEmployeeInfo.insuranceStatusArray"
open=
"("
separator=
","
close=
")"
>
#{idStr}
</foreach>
</if>
<if
test=
"tEmployeeInfo.socialStatusArray != null"
>
AND a.SOCIAL_STATUS in
<foreach
item=
"idStr"
index=
"index"
collection=
"tEmployeeInfo.socialStatusArray"
open=
"("
separator=
","
close=
")"
>
#{idStr}
</foreach>
</if>
<if
test=
"tEmployeeInfo.fundStatusArray != null"
>
AND a.FUND_STATUS in
<foreach
item=
"idStr"
index=
"index"
collection=
"tEmployeeInfo.fundStatusArray"
open=
"("
separator=
","
close=
")"
>
#{idStr}
</foreach>
</if>
</if>
</if>
</sql>
...
...
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