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
8d34c503
Commit
8d34c503
authored
Jan 17, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
dff8e4b7
40899aaf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
34 deletions
+30
-34
JgChangeRegistrationReformServiceImpl.java
...z/service/impl/JgChangeRegistrationReformServiceImpl.java
+29
-33
urlInfo.json
...s-boot-module-jg-biz/src/main/resources/json/urlInfo.json
+1
-1
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/service/impl/JgChangeRegistrationReformServiceImpl.java
View file @
8d34c503
...
...
@@ -205,7 +205,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
if
(!
ObjectUtils
.
isEmpty
(
map
.
get
(
"submit"
)))
{
String
instanceId
=
""
;
if
(!
ObjectUtils
.
isEmpty
(
jgChangeRegistrationReform
.
getSequenceNbr
())
&&
!
ObjectUtils
.
isEmpty
(
jgChangeRegistrationReform
.
getInstanceId
()))
{
if
(!
ObjectUtils
.
isEmpty
(
jgChangeRegistrationReform
.
getSequenceNbr
())
&&
!
ObjectUtils
.
isEmpty
(
jgChangeRegistrationReform
.
getInstanceId
()))
{
// 如果是旧流程则执行一步
flowExecute
(
jgChangeRegistrationReform
.
getSequenceNbr
(),
jgChangeRegistrationReform
.
getInstanceId
(),
"0"
,
""
);
// updateExecuteIds(instanceId, jgChangeRegistrationReform.getSequenceNbr(), "0");
...
...
@@ -260,15 +260,15 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
jgChangeRegistrationReform
.
setNextExecutorIds
(
workflowResultDto
.
getNextExecutorRoleIds
());
jgChangeRegistrationReform
.
setNextExecuteUserIds
(
workflowResultDto
.
getNextExecutorUserIds
());
String
nextTaskid
=
Optional
.
ofNullable
(
workflowResultDto
.
getNextTaskId
()).
orElse
(
""
);
String
taskCode
=
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
();
if
(!
ObjectUtils
.
isEmpty
(
workflowResultDto
.
getNextTaskCode
()))
{
String
taskCode
=
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
();
if
(!
ObjectUtils
.
isEmpty
(
workflowResultDto
.
getNextTaskCode
()))
{
taskCode
=
Optional
.
ofNullable
(
workflowResultDto
.
getNextTaskCode
()).
orElse
(
""
);
}
String
role
=
Optional
.
ofNullable
(
workflowResultDto
.
getNextExecutorRoleIds
()).
orElse
(
""
);
if
(
operate
.
equals
(
"startWorkfow"
))
{
role
=
Optional
.
ofNullable
(
workflowResultDto
.
getExecutorRoleIds
()).
orElse
(
""
)+
","
+
Optional
.
ofNullable
(
workflowResultDto
.
getNextExecutorRoleIds
()).
orElse
(
""
);
String
role
=
Optional
.
ofNullable
(
workflowResultDto
.
getNextExecutorRoleIds
()).
orElse
(
""
);
if
(
operate
.
equals
(
"startWorkfow"
))
{
role
=
Optional
.
ofNullable
(
workflowResultDto
.
getExecutorRoleIds
()).
orElse
(
""
)
+
","
+
Optional
.
ofNullable
(
workflowResultDto
.
getNextExecutorRoleIds
()).
orElse
(
""
);
operate
=
"0"
;
instanceId
=
workflowResultDto
.
getInstanceId
();
instanceId
=
workflowResultDto
.
getInstanceId
();
updateTodoAndCreate
=
Boolean
.
FALSE
;
}
if
(!
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
().
equals
(
taskCode
))
{
...
...
@@ -291,13 +291,13 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
jgChangeRegistrationReform
.
setStatus
(
WorkFlowStatusEnum
.
getMessage
(
taskCode
).
getReject
());
jgChangeRegistrationReform
.
setPromoter
(
""
);
}
if
(
updateTodoAndCreate
)
{
if
(
updateTodoAndCreate
)
{
// 上个代办改为已办
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
if
(
"0"
.
equals
(
operate
))
{
if
(
"0"
.
equals
(
operate
))
{
map
.
put
(
"taskStatus"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getCode
());
map
.
put
(
"taskStatusLabel"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
());
}
else
{
}
else
{
map
.
put
(
"taskStatus"
,
FlowStatusEnum
.
REJECTED
.
getCode
());
map
.
put
(
"taskStatusLabel"
,
FlowStatusEnum
.
REJECTED
.
getName
());
}
...
...
@@ -333,7 +333,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
map
.
put
(
"flowStatusLabel"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
());
map
.
put
(
"relationId"
,
jgChangeRegistrationReform
.
getInstanceId
());
jgChangeRegistrationReform
.
setNextExecuteUserIds
(
""
);
map
.
put
(
"model"
,
conveterTaskMessageDTO
(
jgChangeRegistrationReform
));
map
.
put
(
"model"
,
conveterTaskMessageDTO
(
jgChangeRegistrationReform
));
commonServiceImpl
.
updateTaskModel
(
map
);
}
this
.
getBaseMapper
().
updateById
(
jgChangeRegistrationReform
);
...
...
@@ -358,7 +358,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
map
.
put
(
"approvalStatus"
,
"提交"
);
}
dto
.
setVariable
(
map
);
dto
.
setNextExecuteUserCompanyCode
(
getNextUserOrgCode
(
operate
,
jgChangeRegistrationReform
));
dto
.
setNextExecuteUserCompanyCode
(
getNextUserOrgCode
(
operate
,
jgChangeRegistrationReform
));
//执行流程
processTaskDTO
=
iCmWorkflowService
.
complete
(
taskId
,
dto
);
}
catch
(
Exception
e
)
{
...
...
@@ -371,7 +371,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
public
void
withdraw
(
String
instanceId
)
{
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
JgChangeRegistrationReform
jgChangeRegistrationReform
=
this
.
getBaseMapper
().
selectOne
(
new
QueryWrapper
<
JgChangeRegistrationReform
>().
eq
(
"instance_id"
,
instanceId
));
JgChangeRegistrationReform
jgChangeRegistrationReform
=
this
.
getBaseMapper
().
selectOne
(
new
QueryWrapper
<
JgChangeRegistrationReform
>().
eq
(
"instance_id"
,
instanceId
));
ProcessTaskDTO
processTaskDTO
=
iCmWorkflowService
.
rollBack
(
instanceId
);
WorkflowResultDto
workflowResultDto
=
conveterProcessTaskDTO2WorkflowResultDto
(
processTaskDTO
);
String
taskCode
=
Optional
.
ofNullable
(
workflowResultDto
.
getNextTaskCode
()).
orElse
(
""
);
...
...
@@ -391,14 +391,14 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
jsonObject
.
put
(
"flowStatusLabel"
,
jgChangeRegistrationReform
.
getAuditStatus
());
jsonObject
.
put
(
"nextTaskId"
,
jgChangeRegistrationReform
.
getNextTaskId
());
jsonObject
.
put
(
"nextExecuteUser"
,
jgChangeRegistrationReform
.
getNextExecutorIds
());
jsonObject
.
put
(
"taskType"
,
BusinessTypeEnum
.
JG_RENOVATION_REGISTRATION
.
getCode
());
jsonObject
.
put
(
"pageType"
,
"look"
);
jsonObject
.
put
(
"taskType"
,
BusinessTypeEnum
.
JG_RENOVATION_REGISTRATION
.
getCode
());
jsonObject
.
put
(
"pageType"
,
"look"
);
//如果创建人等于当前人则打开编辑页面
if
(
taskCode
.
equals
(
WorkFlowStatusEnum
.
CHANGE_SUBMIT
.
getCode
()))
{
jsonObject
.
put
(
"pageType"
,
"edit"
);
if
(
taskCode
.
equals
(
WorkFlowStatusEnum
.
CHANGE_SUBMIT
.
getCode
()))
{
jsonObject
.
put
(
"pageType"
,
"edit"
);
}
jsonObject
.
put
(
"model"
,
conveterTaskMessageDTO
(
jgChangeRegistrationReform
));
commonServiceImpl
.
rollbackTask
(
instanceId
,
jsonObject
);
jsonObject
.
put
(
"model"
,
conveterTaskMessageDTO
(
jgChangeRegistrationReform
));
commonServiceImpl
.
rollbackTask
(
instanceId
,
jsonObject
);
}
public
void
deleteBatch
(
List
<
Long
>
ids
)
{
...
...
@@ -430,7 +430,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
originalData
=
idxBizJgRegisterInfoService
.
getDetailByRecord
(
equipId
);
originalDataOther
=
idxBizJgRegisterInfoService
.
getDetailFieldCamelCaseByRecord
(
equipId
);
detail
.
putAll
(
originalDataOther
);
detail
.
put
(
"techInfo"
,
originalData
);
detail
.
put
(
"techInfo"
,
originalData
);
}
else
{
JgRegistrationHistory
jgRegistrationHistory
=
jgRegistrationHistoryMapper
.
selectOne
(
new
QueryWrapper
<
JgRegistrationHistory
>()
.
eq
(
"equ_id"
,
equipId
)
...
...
@@ -487,7 +487,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
String
newData
=
jgRegistrationHistory
.
getChangeData
();
//将历史数据更新到技术参数表中
JSONObject
allData
=
JSONObject
.
parseObject
(
newData
);
Map
<
String
,
Object
>
techInfo
=
(
Map
<
String
,
Object
>)
allData
.
get
(
"techInfo"
);
Map
<
String
,
Object
>
techInfo
=
(
Map
<
String
,
Object
>)
allData
.
get
(
"techInfo"
);
IdxBizJgTechParamsElevator
idxBizJgTechParamsElevatorNew
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
techInfo
),
IdxBizJgTechParamsElevator
.
class
);
BeanUtil
.
copyProperties
(
idxBizJgTechParamsElevatorNew
,
idxBizJgTechParamsElevator
,
"sequenceNbr"
,
"record"
);
idxBizJgTechParamsElevatorMapper
.
updateById
(
idxBizJgTechParamsElevator
);
...
...
@@ -662,25 +662,20 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
*/
public
String
getSummaryInfo
(
JgChangeRegistrationReform
jgChangeRegistrationReform
)
{
String
result
=
"来自%s【%s】的业务办理,【申请单号:%s】"
;
return
String
.
format
(
result
,
Optional
.
ofNullable
(
jgChangeRegistrationReform
.
getEquipListName
()).
orElse
(
"无"
),
jgChangeRegistrationReform
.
getSupervisoryCode
(),
jgChangeRegistrationReform
.
getApplyNo
());
return
String
.
format
(
result
,
Optional
.
ofNullable
(
jgChangeRegistrationReform
.
getEquipListName
()).
orElse
(
"无"
),
jgChangeRegistrationReform
.
getSupervisoryCode
(),
jgChangeRegistrationReform
.
getApplyNo
());
}
/**
* 构建工作台待办实体类
*
* @param jgChangeRegistrationReform
* @param processTaskDTO
* @return
*/
public
TaskModelDto
getTaskModelDtoList
(
JgChangeRegistrationReform
jgChangeRegistrationReform
,
ProcessTaskDTO
processTaskDTO
)
{
//设置实体无需字段为空
jgChangeRegistrationReform
.
setTransformationQualityCertificate
(
null
);
jgChangeRegistrationReform
.
setRenovationSupervisioninspectionCertificate
(
null
);
jgChangeRegistrationReform
.
setRegDate
(
null
);
jgChangeRegistrationReform
.
setCreateDate
(
null
);
jgChangeRegistrationReform
.
setAuditPassDate
(
null
);
jgChangeRegistrationReform
.
setInputUnitNo
(
null
);
TaskModelDto
taskModelDto
=
new
TaskModelDto
();
if
(
ObjectUtils
.
isEmpty
(
processTaskDTO
))
{
if
(
ObjectUtils
.
isEmpty
(
processTaskDTO
))
{
//taskCode 使用申请单编号
taskModelDto
.
setTaskCode
(
jgChangeRegistrationReform
.
getApplyNo
());
...
...
@@ -691,7 +686,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
//工作流实例id
taskModelDto
.
setRelationId
(
String
.
valueOf
(
jgChangeRegistrationReform
.
getSequenceNbr
()));
taskModelDto
.
setModel
(
conveterTaskMessageDTO
(
jgChangeRegistrationReform
));
}
else
{
}
else
{
List
<
WorkflowResultDto
>
workflowResultDtoList
=
commonServiceImpl
.
buildWorkFlowInfo
(
Arrays
.
asList
(
processTaskDTO
));
WorkflowResultDto
workflowResultDto
=
conveterProcessTaskDTO2WorkflowResultDto
(
processTaskDTO
);
//工作流创建时间
...
...
@@ -751,6 +746,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
/**
* 将jgChangeRegistrationReform转换成TaskModelDto
*
* @param jgChangeRegistrationReform
* @return
*/
...
...
@@ -768,13 +764,13 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
private
String
getNextUserOrgCode
(
String
operate
,
JgChangeRegistrationReform
jgChangeRegistrationReform
)
{
if
(
"0"
.
equals
(
operate
))
{
if
(
"0"
.
equals
(
operate
))
{
// 执行通过节点,单位code为接收机构单位信息
return
jgChangeRegistrationReform
.
getReceiveOrgCode
();
}
if
(
jgChangeRegistrationReform
.
getAuditStatus
().
equals
(
WorkFlowStatusEnum
.
CHANGE_RECEIVE
.
getPass
())
if
(
jgChangeRegistrationReform
.
getAuditStatus
().
equals
(
WorkFlowStatusEnum
.
CHANGE_RECEIVE
.
getPass
())
||
jgChangeRegistrationReform
.
getAuditStatus
().
equals
(
WorkFlowStatusEnum
.
CHANGE_RECEIVE
.
getReject
())
||
jgChangeRegistrationReform
.
getAuditStatus
().
equals
(
WorkFlowStatusEnum
.
CHANGE_RECEIVE
.
getRollBack
())){
||
jgChangeRegistrationReform
.
getAuditStatus
().
equals
(
WorkFlowStatusEnum
.
CHANGE_RECEIVE
.
getRollBack
()))
{
// 驳回且当前节点为一键节点时,单位code为发起人单位信息
return
jgChangeRegistrationReform
.
getUseUnitCreditCode
();
}
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/resources/json/urlInfo.json
View file @
8d34c503
...
...
@@ -171,7 +171,7 @@
"type"
:
"111"
,
"name"
:
"改造变更登记"
,
"pageType"
:
"draft"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=1737029146837544962&roleIds={roleIds}&userId={userId}&pageType=
look
"
"url"
:
"/mixuap?appId=1742358052905971713&id=1737029146837544962&roleIds={roleIds}&userId={userId}&pageType=
edit
"
},
{
"type"
:
"111"
,
...
...
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