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
dff7c98e
Commit
dff7c98e
authored
Jan 09, 2026
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(jg): 压力管道后续业务
1.自测bug修改,流程完成后更新历史json
parent
f610bc2e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
JgEnableDisableController.java
...t/module/jg/biz/controller/JgEnableDisableController.java
+1
-5
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+1
-2
JgEnableDisableServiceImpl.java
...odule/jg/biz/service/impl/JgEnableDisableServiceImpl.java
+11
-3
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgEnableDisableController.java
View file @
dff7c98e
...
...
@@ -70,11 +70,7 @@ public class JgEnableDisableController extends BaseController {
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"停用启用执行流程"
,
notes
=
"执行流程"
)
@RestEventTrigger
(
value
=
"operateLogRestEventHandler"
)
public
ResponseModel
<
Object
>
flowExecute
(
@RequestBody
JSONObject
map
)
{
jgEnableDisableServiceImpl
.
flowExecute
(
Long
.
valueOf
(
String
.
valueOf
(
map
.
get
(
"sequenceNbr"
))),
String
.
valueOf
(
map
.
get
(
"instanceId"
)),
String
.
valueOf
(
map
.
get
(
"operate"
)),
String
.
valueOf
(
map
.
get
(
"comment"
)),
String
.
valueOf
(
map
.
get
(
"nextTaskId"
)),
getSelectedOrgInfo
());
jgEnableDisableServiceImpl
.
flowExecute
(
map
,
getSelectedOrgInfo
());
return
ResponseHelper
.
buildResponse
(
"ok"
);
}
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/CommonServiceImpl.java
View file @
dff7c98e
...
...
@@ -2267,11 +2267,10 @@ public class CommonServiceImpl implements ICommonService {
lambda
.
eq
(
JgRegistrationHistory:
:
getCurrentDocumentId
,
currentDocumentId
);
lambda
.
eq
(
JgRegistrationHistory:
:
getIsDelete
,
false
);
Integer
integer
=
jgRegistrationHistoryService
.
getBaseMapper
().
selectCount
(
lambda
);
if
(
integer
>
0
)
{
jgRegistrationHistory
.
setChangeData
(
JSON
.
toJSONString
(
json
));
if
(
integer
>
0
)
{
jgRegistrationHistoryService
.
update
(
jgRegistrationHistory
,
lambda
);
}
else
{
jgRegistrationHistory
.
setChangeData
(
JSON
.
toJSONString
(
json
));
jgRegistrationHistory
.
setStatus
(
"new"
);
jgRegistrationHistory
.
setRegistrationClass
(
registrationClass
);
jgRegistrationHistory
.
setEquId
(
equipId
);
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgEnableDisableServiceImpl.java
View file @
dff7c98e
...
...
@@ -567,7 +567,12 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
flowExecute
(
Long
id
,
String
instanceId
,
String
operate
,
String
comment
,
String
nextTaskId
,
ReginParams
reginParams
)
{
public
void
flowExecute
(
JSONObject
map
,
ReginParams
reginParams
)
{
Long
id
=
map
.
getLong
(
"sequenceNbr"
);
String
instanceId
=
map
.
getString
(
"instanceId"
);
String
operate
=
map
.
getString
(
"operate"
);
String
comment
=
map
.
getString
(
"comment"
);
String
nextTaskId
=
map
.
getString
(
"nextTaskId"
);
String
lockKey
=
CommonServiceImpl
.
buildJgExecuteLockKey
(
instanceId
);
RLock
lock
=
redissonClient
.
getLock
(
lockKey
);
try
{
...
...
@@ -602,6 +607,8 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
taskMap
.
put
(
"model"
,
jgEnableDisable
);
// 更新业务数据
updateInfoOther
(
jgEnableDisable
);
// 保存json历史数据
commonService
.
saveOrUpdateHistory
(
this
.
getRegistrationClass
(
jgEnableDisable
),
map
,
null
,
jgEnableDisable
.
getSequenceNbr
().
toString
());
TaskV2Model
taskV2Model1
=
commonService
.
updateTaskModel
(
taskMap
);
// 完成后发送数据刷新消息
this
.
sendDataRefreshMsg
(
jgEnableDisable
);
...
...
@@ -682,7 +689,7 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
}
private
void
createResume
(
JgEnableDisable
jgEnableDisable
,
String
routePath
)
{
if
(!
jgEnableDisable
.
getEquListCode
().
equals
(
EquipmentClassifityEnum
.
YLGD
.
getCode
()))
{
// 非压力管道按照设备记录履历
if
(!
jgEnableDisable
.
getEquListCode
().
equals
(
EquipmentClassifityEnum
.
YLGD
.
getCode
()))
{
// 非压力管道按照设备记录履历
LambdaQueryWrapper
<
JgEnableDisableEq
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
eq
(
JgEnableDisableEq:
:
getEnableDisableApplyId
,
jgEnableDisable
.
getSequenceNbr
());
List
<
JgEnableDisableEq
>
enableDisableEqs
=
jgEnableDisableEqService
.
list
(
queryWrapper
);
...
...
@@ -1040,7 +1047,7 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
public
IPage
<
Map
<
String
,
Object
>>
findPipeLinePage
(
Page
<
Map
<
String
,
Object
>>
page
,
String
projectContraptionId
,
String
applyType
,
Map
<
String
,
Object
>
filters
)
{
IPage
<
Map
<
String
,
Object
>>
re
=
this
.
getBaseMapper
().
selectPipeLinePage
(
page
,
projectContraptionId
,
applyType
,
filters
);
re
.
getRecords
().
forEach
(
item
->
item
.
put
(
"inspectReport"
,
Optional
.
ofNullable
(
item
.
get
(
"inspectReport"
)).
map
(
r
->
JSON
.
parse
(
r
.
toString
())).
orElse
(
null
)));
re
.
getRecords
().
forEach
(
item
->
item
.
put
(
"inspectReport"
,
Optional
.
ofNullable
(
item
.
get
(
"inspectReport"
)).
map
(
r
->
JSON
.
parse
(
r
.
toString
())).
orElse
(
null
)));
return
re
;
}
}
\ 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