Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
29801619
Commit
29801619
authored
Oct 27, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
两员配备-企业两员配备情况查询更新
parent
7ff006e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
31 deletions
+40
-31
TzsTwoStaffingMapper.xml
...cm-api/src/main/resources/mapper/TzsTwoStaffingMapper.xml
+15
-9
TzsTwoStaffingServiceImpl.java
...odule/tcm/biz/service/impl/TzsTwoStaffingServiceImpl.java
+25
-22
No files found.
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/resources/mapper/TzsTwoStaffingMapper.xml
View file @
29801619
...
...
@@ -10,15 +10,21 @@
view_two_staffing
where
supervise_org_code like concat('%',#{orgCode},'%')
<if
test=
"companyDto.unitType != '' and companyDto.unitType != null"
>
and unit_type like concat('%',#{companyDto.unitType},'%')
</if>
<if
test=
"companyDto.useUnit != '' and companyDto.useUnit != null"
>
and unit_unit like concat('%',#{companyDto.useUnit},'%')
</if>
<if
test=
"companyDto.useCode != '' and companyDto.useCode != null"
>
and use_code like concat('%',#{companyDto.useCode},'%')
</if>
<if
test=
"companyDto.unitType != '' and companyDto.unitType != null"
>
and unit_type like concat('%',#{companyDto.unitType},'%')
</if>
<if
test=
"companyDto.useUnit != '' and companyDto.useUnit != null"
>
and use_unit like concat('%',#{companyDto.useUnit},'%')
</if>
<if
test=
"companyDto.useCode != '' and companyDto.useCode != null"
>
and use_code like concat('%',#{companyDto.useCode},'%')
</if>
<if
test=
"companyDto.completeNormal != '' and companyDto.completeNormal == 1 "
>
and (useDone = '1' or productDone = '1')
</if>
<if
test=
"companyDto.completeNormal != '' and companyDto.completeNormal == 0 "
>
and useDone = '0' and productDone = '0'
</if>
</select>
<select
id=
"getListByOrgCode"
resultType=
"com.yeejoin.amos.boot.module.tcm.api.entity.TzsTwoStaffing"
>
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/service/impl/TzsTwoStaffingServiceImpl.java
View file @
29801619
...
...
@@ -75,29 +75,31 @@ public class TzsTwoStaffingServiceImpl extends BaseService<TzsTwoStaffingDto, Tz
Page
<
TzsTwoStaffingCompanyDto
>
companyList
=
tzsTwoStaffingMapper
.
getCompanyList
(
page
,
companyDto
,
orgCode
);
companyList
.
getRecords
().
stream
().
map
(
item
->
{
if
(
item
.
getUnitType
().
contains
(
"使用单位"
))
{
item
.
setCompleteNormal
(
Integer
.
valueOf
(
item
.
getUseDone
())
>
1
?
"是"
:
"否"
);
if
(!
ObjectUtils
.
isEmpty
(
companyList
.
getRecords
())){
for
(
TzsTwoStaffingCompanyDto
item
:
companyList
.
getRecords
())
{
if
(
item
.
getUnitType
().
contains
(
"使用单位"
)
&&
(
item
.
getUnitType
().
contains
(
"充装单位"
)
||
item
.
getUnitType
().
contains
(
"安装改造维修单位"
)
||
item
.
getUnitType
().
contains
(
"制造单位"
)
||
item
.
getUnitType
().
contains
(
"设计单位"
)))
{
item
.
setCompleteNormal
(
Integer
.
valueOf
(
item
.
getAllDone
())
==
1
?
"是"
:
"否"
);
continue
;
}
if
(
item
.
getUnitType
().
contains
(
"使用单位"
))
{
item
.
setCompleteNormal
(
Integer
.
valueOf
(
item
.
getUseDone
())
==
1
?
"是"
:
"否"
);
continue
;
}
if
(
item
.
getUnitType
().
contains
(
"充装单位"
)
||
item
.
getUnitType
().
contains
(
"安装改造维修单位"
)
||
item
.
getUnitType
().
contains
(
"制造单位"
)
||
item
.
getUnitType
().
contains
(
"设计单位"
))
{
item
.
setCompleteNormal
(
Integer
.
valueOf
(
item
.
getProductDone
())
==
1
?
"是"
:
"否"
);
continue
;
}
}
if
(
item
.
getUnitType
().
contains
(
"充装单位"
)
||
item
.
getUnitType
().
contains
(
"安装改造维修单位"
)
||
item
.
getUnitType
().
contains
(
"制造单位"
)
||
item
.
getUnitType
().
contains
(
"设计单位"
))
{
item
.
setCompleteNormal
(
Integer
.
valueOf
(
item
.
getProductDone
())
>
1
?
"是"
:
"否"
);
}
if
(
item
.
getUnitType
().
contains
(
"使用单位"
)
&&
(
item
.
getUnitType
().
contains
(
"充装单位"
)
||
item
.
getUnitType
().
contains
(
"安装改造维修单位"
)
||
item
.
getUnitType
().
contains
(
"制造单位"
)
||
item
.
getUnitType
().
contains
(
"设计单位"
)))
{
item
.
setCompleteNormal
(
Integer
.
valueOf
(
item
.
getAllDone
())
>
1
?
"是"
:
"否"
);
}
return
item
;
});
}
return
companyList
;
}
}
\ No newline at end of file
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