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
353d706c
Commit
353d706c
authored
Jan 08, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改检验检测待办
parent
dc4743cf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
14 deletions
+20
-14
CommonserviceImpl.java
.../boot/module/jyjc/biz/service/impl/CommonserviceImpl.java
+2
-1
JyjcInspectionApplicationServiceImpl.java
...iz/service/impl/JyjcInspectionApplicationServiceImpl.java
+15
-10
bizTypeInfo.json
...-module-jyjc-biz/src/main/resources/json/bizTypeInfo.json
+3
-3
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/CommonserviceImpl.java
View file @
353d706c
...
@@ -101,7 +101,7 @@ public class CommonserviceImpl {
...
@@ -101,7 +101,7 @@ public class CommonserviceImpl {
model
.
setRelationId
(
params
.
getOrDefault
(
"instanceId"
,
""
).
toString
());
model
.
setRelationId
(
params
.
getOrDefault
(
"instanceId"
,
""
).
toString
());
model
.
setRoutePath
(
params
.
getOrDefault
(
"routePath"
,
""
).
toString
());
model
.
setRoutePath
(
params
.
getOrDefault
(
"routePath"
,
""
).
toString
());
model
.
setStartDate
((
Date
)
params
.
getOrDefault
(
"startDate"
,
""
));
model
.
setStartDate
((
Date
)
params
.
getOrDefault
(
"startDate"
,
""
));
model
.
setStartUserId
(
params
.
getOrDefault
(
"startUser"
,
""
).
toString
());
model
.
setStartUserId
(
params
.
getOrDefault
(
"startUser
Id
"
,
""
).
toString
());
model
.
setTaskContent
(
params
.
getOrDefault
(
"taskContent"
,
""
).
toString
());
model
.
setTaskContent
(
params
.
getOrDefault
(
"taskContent"
,
""
).
toString
());
model
.
setTaskType
(
params
.
getOrDefault
(
"taskType"
,
""
).
toString
());
model
.
setTaskType
(
params
.
getOrDefault
(
"taskType"
,
""
).
toString
());
model
.
setTaskTypeLabel
(
params
.
getOrDefault
(
"taskTypeLabel"
,
""
).
toString
());
model
.
setTaskTypeLabel
(
params
.
getOrDefault
(
"taskTypeLabel"
,
""
).
toString
());
...
@@ -131,6 +131,7 @@ public class CommonserviceImpl {
...
@@ -131,6 +131,7 @@ public class CommonserviceImpl {
model
.
setTaskStatusLabel
(
params
.
get
(
"taskStatusLabel"
).
toString
());
model
.
setTaskStatusLabel
(
params
.
get
(
"taskStatusLabel"
).
toString
());
model
.
setEndUserId
(
reginParams
.
getUserModel
().
getUserId
());
model
.
setEndUserId
(
reginParams
.
getUserModel
().
getUserId
());
model
.
setEndDate
(
new
Date
());
model
.
setEndDate
(
new
Date
());
model
.
setRoutePath
(
model
.
getRoutePath
().
replace
(
"roleIds"
,
"role"
).
replace
(
"edit"
,
"look"
));
model
.
setFinishStatus
(
true
);
model
.
setFinishStatus
(
true
);
Systemctl
.
taskV2Client
.
update
(
model
,
model
.
getSequenceNbr
());
Systemctl
.
taskV2Client
.
update
(
model
,
model
.
getSequenceNbr
());
...
...
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 @
353d706c
...
@@ -208,9 +208,9 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -208,9 +208,9 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
}
}
}
}
Map
<
String
,
Object
>
userOrgRoleMap
=
FeignUtil
.
remoteCall
(()
->
Privilege
.
userOrgRoleClient
.
getme
());
//
Map<String, Object> userOrgRoleMap = FeignUtil.remoteCall(() -> Privilege.userOrgRoleClient.getme());
List
<
String
>
userOrgRoleList
=
(
List
<
String
>)
userOrgRoleMap
.
get
(
"roleId"
);
//
List<String> userOrgRoleList = (List<String>) userOrgRoleMap.get("roleId");
String
roleIds
=
String
.
join
(
","
,
userOrgRoleList
);
//
String roleIds = String.join(",", userOrgRoleList);
String
urlParams
=
null
;
String
urlParams
=
null
;
try
{
try
{
model
.
setEquip
(
null
);
model
.
setEquip
(
null
);
...
@@ -224,7 +224,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -224,7 +224,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
.
put
(
"taskStatus"
,
FlowStatusEnum
.
TO_BE_PROCESSED
.
getCode
()).
put
(
"taskStatusLabel"
,
FlowStatusEnum
.
TO_BE_PROCESSED
.
getName
()).
put
(
"taskName"
,
taskName
).
put
(
"taskType"
,
model
.
getBizType
()).
put
(
"taskTypeLabel"
,
BizTypeEnum
.
getNameByCode
(
model
.
getBizType
())).
put
(
"taskContent"
,
""
)
.
put
(
"taskStatus"
,
FlowStatusEnum
.
TO_BE_PROCESSED
.
getCode
()).
put
(
"taskStatusLabel"
,
FlowStatusEnum
.
TO_BE_PROCESSED
.
getName
()).
put
(
"taskName"
,
taskName
).
put
(
"taskType"
,
model
.
getBizType
()).
put
(
"taskTypeLabel"
,
BizTypeEnum
.
getNameByCode
(
model
.
getBizType
())).
put
(
"taskContent"
,
""
)
.
put
(
"taskTitle"
,
reginParams
.
getUserModel
().
getUserName
()+
"发起了"
+
taskName
).
put
(
"taskDesc"
,
""
).
put
(
"taskCode"
,
model
.
getApplicationNo
())
.
put
(
"taskTitle"
,
reginParams
.
getUserModel
().
getUserName
()+
"发起了"
+
taskName
).
put
(
"taskDesc"
,
""
).
put
(
"taskCode"
,
model
.
getApplicationNo
())
.
put
(
"extras"
,
JSON
.
toJSONString
(
model
)).
put
(
"createUserId"
,
reginParams
.
getUserModel
().
getUserName
()).
put
(
"startUserId"
,
reginParams
.
getUserModel
().
getUserId
())
.
put
(
"extras"
,
JSON
.
toJSONString
(
model
)).
put
(
"createUserId"
,
reginParams
.
getUserModel
().
getUserName
()).
put
(
"startUserId"
,
reginParams
.
getUserModel
().
getUserId
())
.
put
(
"routePath"
,
url
.
replace
(
"{userId}"
,
reginParams
.
getUserModel
().
getUserId
()).
replace
(
"{roleIds}"
,
roleIds
)+
"&"
+
urlParams
)
.
put
(
"routePath"
,
url
.
replace
(
"{userId}"
,
reginParams
.
getUserModel
().
getUserId
()).
replace
(
"{roleIds}"
,
model
.
getNextExecuteIds
()
)+
"&"
+
urlParams
)
.
build
());
.
build
());
}
}
...
@@ -324,9 +324,9 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -324,9 +324,9 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
params
.
put
(
"taskStatusLabel"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
());
params
.
put
(
"taskStatusLabel"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
());
TaskV2Model
taskV2Model
=
commonservice
.
updateTaskModel
(
params
);
TaskV2Model
taskV2Model
=
commonservice
.
updateTaskModel
(
params
);
Map
<
String
,
Object
>
userOrgRoleMap
=
FeignUtil
.
remoteCall
(()
->
Privilege
.
userOrgRoleClient
.
getme
());
//
Map<String, Object> userOrgRoleMap = FeignUtil.remoteCall(() -> Privilege.userOrgRoleClient.getme());
List
<
String
>
userOrgRoleList
=
(
List
<
String
>)
userOrgRoleMap
.
get
(
"roleId"
);
//
List<String> userOrgRoleList = (List<String>) userOrgRoleMap.get("roleId");
String
roleIds
=
String
.
join
(
","
,
userOrgRoleList
);
//
String roleIds = String.join(",", userOrgRoleList);
String
urlParams
=
null
;
String
urlParams
=
null
;
try
{
try
{
model
.
setEquip
(
null
);
model
.
setEquip
(
null
);
...
@@ -336,10 +336,10 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -336,10 +336,10 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
}
}
commonservice
.
buildTaskModel
(
MapBuilder
.<
String
,
Object
>
create
().
put
(
"instanceId"
,
model
.
getProcessInstanceId
()).
put
(
"startDate"
,
new
Date
())
commonservice
.
buildTaskModel
(
MapBuilder
.<
String
,
Object
>
create
().
put
(
"instanceId"
,
model
.
getProcessInstanceId
()).
put
(
"startDate"
,
new
Date
())
.
put
(
"agencyCode"
,
reginParams
.
getUserModel
().
getAgencyCode
()).
put
(
"userId"
,
reginParams
.
getUserModel
().
getUserId
()).
put
(
"startUser"
,
reginParams
.
getUserModel
().
getUserId
()).
put
(
"startUserId"
,
reginParams
.
getUserModel
().
getUserId
())
.
put
(
"agencyCode"
,
reginParams
.
getUserModel
().
getAgencyCode
()).
put
(
"userId"
,
reginParams
.
getUserModel
().
getUserId
()).
put
(
"startUser"
,
reginParams
.
getUserModel
().
getUserId
()).
put
(
"startUserId"
,
reginParams
.
getUserModel
().
getUserId
())
.
put
(
"taskStatus"
,
FlowStatusEnum
.
REJECTED
.
getCode
()).
put
(
"taskStatusLabel"
,
FlowStatusEnum
.
REJECT
ED
.
getName
()).
put
(
"taskName"
,
taskName
).
put
(
"taskType"
,
model
.
getBizType
()).
put
(
"taskTypeLabel"
,
BizTypeEnum
.
getNameByCode
(
model
.
getBizType
())).
put
(
"taskContent"
,
""
)
.
put
(
"taskStatus"
,
FlowStatusEnum
.
TO_BE_PROCESSED
.
getCode
()).
put
(
"taskStatusLabel"
,
FlowStatusEnum
.
TO_BE_PROCESS
ED
.
getName
()).
put
(
"taskName"
,
taskName
).
put
(
"taskType"
,
model
.
getBizType
()).
put
(
"taskTypeLabel"
,
BizTypeEnum
.
getNameByCode
(
model
.
getBizType
())).
put
(
"taskContent"
,
""
)
.
put
(
"taskTitle"
,
reginParams
.
getUserModel
().
getUserName
()+
"发起了"
+
taskName
).
put
(
"taskDesc"
,
""
).
put
(
"taskCode"
,
model
.
getApplicationNo
())
.
put
(
"taskTitle"
,
reginParams
.
getUserModel
().
getUserName
()+
"发起了"
+
taskName
).
put
(
"taskDesc"
,
""
).
put
(
"taskCode"
,
model
.
getApplicationNo
())
.
put
(
"extras"
,
JSON
.
toJSONString
(
model
)).
put
(
"createUserId"
,
reginParams
.
getUserModel
().
getUserName
()).
put
(
"startUserId"
,
reginParams
.
getUserModel
().
getUserId
())
.
put
(
"extras"
,
JSON
.
toJSONString
(
model
)).
put
(
"createUserId"
,
reginParams
.
getUserModel
().
getUserName
()).
put
(
"startUserId"
,
reginParams
.
getUserModel
().
getUserId
())
.
put
(
"routePath"
,
url
.
replace
(
"{userId}"
,
reginParams
.
getUserModel
().
getUserId
()).
replace
(
"{roleIds}"
,
roleIds
)+
"&"
+
urlParams
)
.
put
(
"routePath"
,
url
.
replace
(
"{userId}"
,
reginParams
.
getUserModel
().
getUserId
()).
replace
(
"{roleIds}"
,
model
.
getNextExecuteIds
()
)+
"&"
+
urlParams
)
// .put("routePath",url.replace("{sequenceNbr}",String.valueOf(model.getSequenceNbr())).replace("{userId}",reginParams.getUserModel().getUserId()).replace("{roleIds}",roleIds))
// .put("routePath",url.replace("{sequenceNbr}",String.valueOf(model.getSequenceNbr())).replace("{userId}",reginParams.getUserModel().getUserId()).replace("{roleIds}",roleIds))
.
build
());
.
build
());
...
@@ -536,8 +536,13 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -536,8 +536,13 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
Map
<
String
,
Object
>
nextNodeInfo
=
workflowHelper
.
getNextWorkflowNode
(
instanceId
);
Map
<
String
,
Object
>
nextNodeInfo
=
workflowHelper
.
getNextWorkflowNode
(
instanceId
);
String
role
=
(
String
)
nextNodeInfo
.
get
(
"role"
);
String
role
=
(
String
)
nextNodeInfo
.
get
(
"role"
);
taskV2Model
.
setExecuteUserIds
(
role
);
taskV2Model
.
setExecuteUserIds
(
role
);
Map
<
String
,
Object
>
map
=
BeanUtil
.
beanToMap
(
taskV2Model
);
map
.
put
(
"instanceId"
,
taskV2Model
.
getRelationId
());
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
commonservice
.
buildTaskModel
(
BeanUtil
.
beanToMap
(
taskV2Model
));
map
.
put
(
"userId"
,
reginParams
.
getUserModel
().
getUserId
());
map
.
put
(
"executeUserIds"
,
taskV2Model
.
getStartUserId
());
commonservice
.
buildTaskModel
(
map
);
params
.
put
(
"status"
,
FlowStatusEnum
.
REJECTED
.
getCode
()
+
""
);
params
.
put
(
"status"
,
FlowStatusEnum
.
REJECTED
.
getCode
()
+
""
);
Boolean
rollBack
=
"1"
.
equals
(
op
)
?
true
:
false
;
Boolean
rollBack
=
"1"
.
equals
(
op
)
?
true
:
false
;
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/resources/json/bizTypeInfo.json
View file @
353d706c
...
@@ -2,15 +2,15 @@
...
@@ -2,15 +2,15 @@
{
{
"type"
:
"supervise"
,
"type"
:
"supervise"
,
"pageType"
:
"look"
,
"pageType"
:
"look"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=173
5205097765367809
&roleIds={roleIds}&userId={userId}&pageType=look"
"url"
:
"/mixuap?appId=1742358052905971713&id=173
6647706878701570
&roleIds={roleIds}&userId={userId}&pageType=look"
},
{
},
{
"type"
:
"firstinspect"
,
"type"
:
"firstinspect"
,
"pageType"
:
"look"
,
"pageType"
:
"look"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=1736
588187213524994
&roleIds={roleIds}&userId={userId}&pageType=look"
"url"
:
"/mixuap?appId=1742358052905971713&id=1736
647706878701570
&roleIds={roleIds}&userId={userId}&pageType=look"
},
{
},
{
"type"
:
"detection"
,
"type"
:
"detection"
,
"pageType"
:
"look"
,
"pageType"
:
"look"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=173664
2376224501762
&roleIds={roleIds}&userId={userId}&pageType=look"
"url"
:
"/mixuap?appId=1742358052905971713&id=173664
7706878701570
&roleIds={roleIds}&userId={userId}&pageType=look"
},
{
},
{
"type"
:
"supervise"
,
"type"
:
"supervise"
,
"pageType"
:
"edit"
,
"pageType"
:
"edit"
,
...
...
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