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
de1301a7
Commit
de1301a7
authored
Oct 31, 2023
by
H2T
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
a2f9b326
659bf541
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
23 deletions
+3
-23
TzsTwoStaffingServiceImpl.java
...odule/tcm/biz/service/impl/TzsTwoStaffingServiceImpl.java
+3
-23
No files found.
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 @
de1301a7
...
...
@@ -196,11 +196,11 @@ public class TzsTwoStaffingServiceImpl extends BaseService<TzsTwoStaffingDto, Tz
tzsTwoStaffing
.
setCompletionRatio
(
decimalFormat
.
format
(
divide
)
+
"%"
);
}
if
(
ObjectUtils
.
isEmpty
(
tzsTwoStaffing
.
getResponsible
PersonsNumber
())
||
tzsTwoStaffing
.
getResponsiblePersons
Number
()
==
0
if
(
ObjectUtils
.
isEmpty
(
tzsTwoStaffing
.
getResponsible
UnitsAllocateNumber
())
||
tzsTwoStaffing
.
getResponsibleUnitsAllocate
Number
()
==
0
||
ObjectUtils
.
isEmpty
(
tzsTwoStaffing
.
getNumberOfUnits
())
||
tzsTwoStaffing
.
getNumberOfUnits
()
==
0
)
{
tzsTwoStaffing
.
setProportion
(
"0%"
);
}
else
{
BigDecimal
bigDecimal
=
new
BigDecimal
(
tzsTwoStaffing
.
getResponsible
Persons
Number
().
toString
());
BigDecimal
bigDecimal
=
new
BigDecimal
(
tzsTwoStaffing
.
getResponsible
UnitsAllocate
Number
().
toString
());
BigDecimal
bigDecimal1
=
new
BigDecimal
(
tzsTwoStaffing
.
getNumberOfUnits
().
toString
());
BigDecimal
divide
=
bigDecimal
.
divide
(
bigDecimal1
,
4
,
BigDecimal
.
ROUND_HALF_UP
).
multiply
(
new
BigDecimal
(
"100"
));
tzsTwoStaffing
.
setProportion
(
decimalFormat
.
format
(
divide
)
+
"%"
);
...
...
@@ -236,27 +236,7 @@ public class TzsTwoStaffingServiceImpl extends BaseService<TzsTwoStaffingDto, Tz
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
;
}
item
.
setCompleteNormal
(
Integer
.
valueOf
(
item
.
getCompleteNormal
())
==
1
?
"是"
:
"否"
);
}
}
return
companyList
;
...
...
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