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
bd39be68
Commit
bd39be68
authored
Jan 19, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加字符赋值
parent
9ec5067d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
+21
-4
JyjcInspectionApplicationServiceImpl.java
...iz/service/impl/JyjcInspectionApplicationServiceImpl.java
+21
-4
No files found.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcInspectionApplicationServiceImpl.java
View file @
bd39be68
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jyjc
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jyjc
.
biz
.
service
.
impl
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.map.MapBuilder
;
import
cn.hutool.core.map.MapBuilder
;
import
cn.hutool.core.text.CharSequenceUtil
;
import
cn.hutool.core.text.CharSequenceUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
...
@@ -135,6 +136,10 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -135,6 +136,10 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
dto
.
setBusinessKey
(
String
.
valueOf
(
new
Date
().
getTime
()));
dto
.
setBusinessKey
(
String
.
valueOf
(
new
Date
().
getTime
()));
dto
.
setCompleteFirstTask
(
true
);
dto
.
setCompleteFirstTask
(
true
);
list
.
add
(
dto
);
list
.
add
(
dto
);
String
[]
inspectionUnit
=
model
.
getInspectionUnitCode
().
split
(
"_"
);
model
.
setInspectionUnitCode
(
inspectionUnit
[
0
]);
model
.
setInspectionUnitName
(
inspectionUnit
[
1
]);
actWorkflowBatchDTO
.
setProcess
(
list
);
actWorkflowBatchDTO
.
setProcess
(
list
);
dto
.
setNextExecuteUserCompanyCode
(
model
.
getInspectionUnitCode
());
dto
.
setNextExecuteUserCompanyCode
(
model
.
getInspectionUnitCode
());
processTasks
=
cmWorkflowService
.
startBatch
(
actWorkflowBatchDTO
);
processTasks
=
cmWorkflowService
.
startBatch
(
actWorkflowBatchDTO
);
...
@@ -175,7 +180,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -175,7 +180,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
model
.
setApplicationNo
(
codes
.
get
(
0
));
model
.
setApplicationNo
(
codes
.
get
(
0
));
model
.
setApplicationDate
(
new
Date
());
model
.
setApplicationDate
(
new
Date
());
model
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
model
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
model
.
setApplicationUnitName
(
reginParams
.
getCompany
().
getCompanyName
());
jyjcInspectionApplicationEquipService
.
getBaseMapper
().
deleteByApplicationSeq
(
model
.
getSequenceNbr
());
jyjcInspectionApplicationEquipService
.
getBaseMapper
().
deleteByApplicationSeq
(
model
.
getSequenceNbr
());
List
<
JyjcInspectionApplicationEquip
>
equipInfos
=
new
ArrayList
<>();
List
<
JyjcInspectionApplicationEquip
>
equipInfos
=
new
ArrayList
<>();
...
@@ -529,10 +534,22 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -529,10 +534,22 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
entity
.
setProcessDescription
(
processDescription
);
entity
.
setProcessDescription
(
processDescription
);
}
}
List
<
String
>
persons
=
JSONArray
.
parseArray
(
JSON
.
toJSONString
(
params
.
get
(
"inspectionChargePerson"
)),
String
.
class
);
List
<
String
>
persons
=
JSONArray
.
parseArray
(
JSON
.
toJSONString
(
params
.
get
(
"inspectionChargePerson"
)),
String
.
class
);
String
inspectionChargePerson
=
persons
==
null
?
""
:
String
.
join
(
","
,
persons
);
if
(
CollectionUtil
.
isNotEmpty
(
persons
)){
if
(
StringUtils
.
isNotBlank
(
inspectionChargePerson
))
{
entity
.
setInspectionChargePerson
(
inspectionChargePerson
);
List
<
String
>
personCodes
=
new
ArrayList
<>();
List
<
String
>
personNames
=
new
ArrayList
<>();
for
(
String
person
:
persons
)
{
String
[]
s
=
person
.
split
(
"_"
);
personCodes
.
add
(
s
[
0
]);
personNames
.
add
(
s
[
1
]);
}
String
inspectionChargePerson
=
persons
==
null
?
""
:
String
.
join
(
","
,
persons
);
if
(
StringUtils
.
isNotBlank
(
inspectionChargePerson
))
{
entity
.
setInspectionChargePerson
(
String
.
join
(
","
,
personCodes
));
entity
.
setInspectionChargePersonName
(
String
.
join
(
","
,
personNames
));
}
}
}
String
inspectionChargePhone
=
(
String
)
params
.
get
(
"inspectionChargePhone"
);
String
inspectionChargePhone
=
(
String
)
params
.
get
(
"inspectionChargePhone"
);
if
(
StringUtils
.
isNotBlank
(
inspectionChargePhone
))
{
if
(
StringUtils
.
isNotBlank
(
inspectionChargePhone
))
{
entity
.
setInspectionChargePhone
(
inspectionChargePhone
);
entity
.
setInspectionChargePhone
(
inspectionChargePhone
);
...
...
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