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
efcfa8d8
Commit
efcfa8d8
authored
Jul 14, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.工作台详情url参数处理bug
parent
13587540
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
JyjcInspectionApplicationServiceImpl.java
...iz/service/impl/JyjcInspectionApplicationServiceImpl.java
+8
-7
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 @
efcfa8d8
...
@@ -234,7 +234,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -234,7 +234,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
commonService
.
saveExecuteFlowData2Redis
(
model
.
getProcessInstanceId
(),
this
.
buildInstanceRuntimeData
(
model
));
commonService
.
saveExecuteFlowData2Redis
(
model
.
getProcessInstanceId
(),
this
.
buildInstanceRuntimeData
(
model
));
}
else
if
(
"1"
.
equals
(
model
.
getOperationType
()))
{
// 工作台暂存、详情保存逻辑
}
else
if
(
"1"
.
equals
(
model
.
getOperationType
()))
{
// 工作台暂存、详情保存逻辑
if
(
null
==
model
.
getSequenceNbr
())
{
if
(
null
==
model
.
getSequenceNbr
())
{
// 工作台暂存
// 工作台暂存
model
.
setStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_SUBMITTED
.
getCode
()));
model
.
setStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_SUBMITTED
.
getCode
()));
model
.
setStatusName
(
FlowStatusEnum
.
TO_BE_SUBMITTED
.
getName
());
model
.
setStatusName
(
FlowStatusEnum
.
TO_BE_SUBMITTED
.
getName
());
...
@@ -428,12 +428,12 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -428,12 +428,12 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
return
this
.
buildRedundancyField
(
model
);
return
this
.
buildRedundancyField
(
model
);
}
}
private
String
null2String
(
Object
obj
){
private
String
null2String
(
Object
obj
)
{
return
obj
==
null
?
""
:
obj
.
toString
();
return
obj
==
null
?
""
:
obj
.
toString
();
}
}
private
void
setNameAndIsMustAccept
(
JyjcInspectionApplicationModel
model
)
{
private
void
setNameAndIsMustAccept
(
JyjcInspectionApplicationModel
model
)
{
if
(
model
.
getInspectionUnitCode
()
!=
null
)
{
if
(
model
.
getInspectionUnitCode
()
!=
null
)
{
String
[]
inspectionUnit
=
model
.
getInspectionUnitCode
().
split
(
"_"
);
String
[]
inspectionUnit
=
model
.
getInspectionUnitCode
().
split
(
"_"
);
if
(
inspectionUnit
.
length
==
2
)
{
if
(
inspectionUnit
.
length
==
2
)
{
model
.
setInspectionUnitCode
(
inspectionUnit
[
0
]);
model
.
setInspectionUnitCode
(
inspectionUnit
[
0
]);
...
@@ -592,7 +592,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -592,7 +592,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
List
<
Map
<
String
,
Object
>>
arrayList
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
arrayList
=
new
ArrayList
<>();
equips
.
forEach
(
equip
->
{
equips
.
forEach
(
equip
->
{
Map
<
String
,
Object
>
objectHashMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
objectHashMap
=
new
HashMap
<>();
BeanUtil
.
beanToMap
(
equip
,
objectHashMap
,
false
,
false
);
BeanUtil
.
beanToMap
(
equip
,
objectHashMap
,
false
,
false
);
objectHashMap
.
put
(
"record"
,
equip
.
getSEQUENCE_NBR
());
objectHashMap
.
put
(
"record"
,
equip
.
getSEQUENCE_NBR
());
objectHashMap
.
put
(
"ADDRESS"
,
concatDetailAddress
(
equip
));
objectHashMap
.
put
(
"ADDRESS"
,
concatDetailAddress
(
equip
));
arrayList
.
add
(
objectHashMap
);
arrayList
.
add
(
objectHashMap
);
...
@@ -605,7 +605,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -605,7 +605,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
String
usePlace
=
esEquipmentCategoryDto
.
getUSE_PLACE
();
String
usePlace
=
esEquipmentCategoryDto
.
getUSE_PLACE
();
// 详细地址
// 详细地址
String
address
=
esEquipmentCategoryDto
.
getADDRESS
();
String
address
=
esEquipmentCategoryDto
.
getADDRESS
();
return
String
.
format
(
"%s%s"
,
usePlace
,
address
);
return
String
.
format
(
"%s%s"
,
usePlace
,
address
);
}
}
private
Iterable
<
ESEquipmentCategoryDto
>
getEsEquipmentCategoryDtos
(
Long
sequenceNbr
)
{
private
Iterable
<
ESEquipmentCategoryDto
>
getEsEquipmentCategoryDtos
(
Long
sequenceNbr
)
{
...
@@ -1106,9 +1106,10 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -1106,9 +1106,10 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
params
.
put
(
"taskStatusLabel"
,
model
.
getStatusName
());
params
.
put
(
"taskStatusLabel"
,
model
.
getStatusName
());
params
.
put
(
"flowStatus"
,
model
.
getStatus
());
params
.
put
(
"flowStatus"
,
model
.
getStatus
());
params
.
put
(
"flowStatusLabel"
,
model
.
getStatusName
());
params
.
put
(
"flowStatusLabel"
,
model
.
getStatusName
());
JSONObject
jsonModel
=
(
JSONObject
)
JSONObject
.
toJSON
(
model
);
JSONObject
jsonModel
=
(
JSONObject
)
JSONObject
.
toJSON
(
model
);
taskModelService
.
removeNoUsedKey
(
jsonModel
);
taskModelService
.
removeNoUsedKey
(
jsonModel
);
params
.
put
(
"model"
,
jsonModel
);
Map
<
String
,
Object
>
modelMap
=
new
HashMap
<>(
jsonModel
);
params
.
put
(
"model"
,
BeanUtil
.
toBeanIgnoreError
(
modelMap
,
JyjcInspectionApplicationModel
.
class
));
return
taskModelService
.
updateTaskModel
(
params
);
return
taskModelService
.
updateTaskModel
(
params
);
}
}
...
...
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