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
35207f54
Commit
35207f54
authored
Jan 24, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.调整公共接口支持驳回和执行任务
parent
535c7909
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
40 additions
and
50 deletions
+40
-50
ICmWorkflowService.java
...n/amos/boot/module/jg/biz/service/ICmWorkflowService.java
+1
-1
CmWorkflowServiceImpl.java
...oot/module/jg/biz/service/impl/CmWorkflowServiceImpl.java
+16
-3
JgChangeRegistrationNameServiceImpl.java
...biz/service/impl/JgChangeRegistrationNameServiceImpl.java
+2
-2
JgChangeRegistrationReformServiceImpl.java
...z/service/impl/JgChangeRegistrationReformServiceImpl.java
+1
-1
JgChangeRegistrationTransferServiceImpl.java
...service/impl/JgChangeRegistrationTransferServiceImpl.java
+1
-3
JgChangeRegistrationUnitServiceImpl.java
...biz/service/impl/JgChangeRegistrationUnitServiceImpl.java
+2
-15
JgEnableDisableServiceImpl.java
...odule/jg/biz/service/impl/JgEnableDisableServiceImpl.java
+2
-6
JgEquipTransferServiceImpl.java
...odule/jg/biz/service/impl/JgEquipTransferServiceImpl.java
+2
-2
JgInstallationNoticeServiceImpl.java
.../jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
+2
-3
JgMaintainNoticeServiceImpl.java
...dule/jg/biz/service/impl/JgMaintainNoticeServiceImpl.java
+2
-3
JgMaintenanceContractServiceImpl.java
...jg/biz/service/impl/JgMaintenanceContractServiceImpl.java
+2
-2
JgReformNoticeServiceImpl.java
...module/jg/biz/service/impl/JgReformNoticeServiceImpl.java
+2
-2
JgScrapCancelServiceImpl.java
.../module/jg/biz/service/impl/JgScrapCancelServiceImpl.java
+2
-2
JgTransferNoticeServiceImpl.java
...dule/jg/biz/service/impl/JgTransferNoticeServiceImpl.java
+2
-4
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+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/ICmWorkflowService.java
View file @
35207f54
...
@@ -10,7 +10,7 @@ import java.util.List;
...
@@ -10,7 +10,7 @@ import java.util.List;
public
interface
ICmWorkflowService
{
public
interface
ICmWorkflowService
{
List
<
ProcessTaskDTO
>
startBatch
(
ActWorkflowBatchDTO
params
);
List
<
ProcessTaskDTO
>
startBatch
(
ActWorkflowBatchDTO
params
);
ProcessTaskDTO
complete
(
String
taskId
,
TaskResultDTO
data
);
ProcessTaskDTO
complete
OrReject
(
String
taskId
,
TaskResultDTO
data
,
String
operate
);
ProcessTaskDTO
rollBack
(
String
processInstanceId
);
ProcessTaskDTO
rollBack
(
String
processInstanceId
);
}
}
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/CmWorkflowServiceImpl.java
View file @
35207f54
...
@@ -12,7 +12,6 @@ import com.yeejoin.amos.feign.workflow.model.ProcessTaskDTO;
...
@@ -12,7 +12,6 @@ import com.yeejoin.amos.feign.workflow.model.ProcessTaskDTO;
import
com.yeejoin.amos.feign.workflow.model.TaskResultDTO
;
import
com.yeejoin.amos.feign.workflow.model.TaskResultDTO
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
java.util.List
;
import
java.util.List
;
...
@@ -23,6 +22,12 @@ import java.util.List;
...
@@ -23,6 +22,12 @@ import java.util.List;
@Slf4j
@Slf4j
public
class
CmWorkflowServiceImpl
implements
ICmWorkflowService
{
public
class
CmWorkflowServiceImpl
implements
ICmWorkflowService
{
public
static
String
PASS_OPERATE
=
"0"
;
public
static
String
REJECT_OPERATE
=
"1"
;
@Override
@Override
public
List
<
ProcessTaskDTO
>
startBatch
(
ActWorkflowBatchDTO
params
)
{
public
List
<
ProcessTaskDTO
>
startBatch
(
ActWorkflowBatchDTO
params
)
{
List
<
ProcessTaskDTO
>
processTasks
;
List
<
ProcessTaskDTO
>
processTasks
;
...
@@ -43,11 +48,19 @@ public class CmWorkflowServiceImpl implements ICmWorkflowService {
...
@@ -43,11 +48,19 @@ public class CmWorkflowServiceImpl implements ICmWorkflowService {
}
}
@Override
@Override
public
ProcessTaskDTO
complete
(
String
taskId
,
TaskResultDTO
data
)
{
public
ProcessTaskDTO
complete
OrReject
(
String
taskId
,
TaskResultDTO
data
,
String
operate
)
{
ProcessTaskDTO
processTaskDTO
;
ProcessTaskDTO
processTaskDTO
=
null
;
try
{
try
{
if
(
PASS_OPERATE
.
equals
(
operate
)){
log
.
info
(
"开始请求工作流完成任务接口:/complete/standard/{taskId},请求参数:{},{}"
,
taskId
,
JSONObject
.
toJSONString
(
data
));
log
.
info
(
"开始请求工作流完成任务接口:/complete/standard/{taskId},请求参数:{},{}"
,
taskId
,
JSONObject
.
toJSONString
(
data
));
processTaskDTO
=
Workflow
.
taskV2Client
.
completeByTaskFroStandard
(
taskId
,
data
).
getResult
();
processTaskDTO
=
Workflow
.
taskV2Client
.
completeByTaskFroStandard
(
taskId
,
data
).
getResult
();
}
else
if
(
REJECT_OPERATE
.
equals
(
operate
))
{
// todo 需要工作流适配调整后 进行切换 Workflow.taskV2Client.reject(taskId, data);
log
.
info
(
"开始请求工作流驳回任务接口:/reject/{taskId},请求参数:{},{}"
,
taskId
,
JSONObject
.
toJSONString
(
data
));
processTaskDTO
=
Workflow
.
taskV2Client
.
completeByTaskFroStandard
(
taskId
,
data
).
getResult
();
}
else
{
throw
new
RuntimeException
(
"不支持的操作类型!"
);
}
}
catch
(
InnerInvokException
e
)
{
}
catch
(
InnerInvokException
e
)
{
//拦截无审核人异常信息
//拦截无审核人异常信息
String
devMessage
=
e
.
getDevMessage
();
String
devMessage
=
e
.
getDevMessage
();
...
...
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/JgChangeRegistrationNameServiceImpl.java
View file @
35207f54
...
@@ -408,7 +408,7 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
...
@@ -408,7 +408,7 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"approvalStatus"
,
operate
);
map
.
put
(
"approvalStatus"
,
operate
);
dto
.
setVariable
(
map
);
dto
.
setVariable
(
map
);
return
cmWorkflowService
.
complete
(
jgChangeRegistrationName
.
getNextTaskId
(),
dto
);
return
cmWorkflowService
.
complete
OrReject
(
jgChangeRegistrationName
.
getNextTaskId
(),
dto
,
operate
);
}
}
private
void
convertField
(
JgChangeRegistrationNameDto
model
)
{
private
void
convertField
(
JgChangeRegistrationNameDto
model
)
{
...
@@ -514,7 +514,7 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
...
@@ -514,7 +514,7 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
}
}
dto
.
setVariable
(
map
);
dto
.
setVariable
(
map
);
//执行流程
//执行流程
ProcessTaskDTO
processTaskDTO
=
cmWorkflowService
.
complete
(
taskId
,
dto
);
ProcessTaskDTO
processTaskDTO
=
cmWorkflowService
.
complete
OrReject
(
taskId
,
dto
,
operate
);
// 更新下一步执行人、创建待办
// 更新下一步执行人、创建待办
updateExecuteIds
(
instanceId
,
id
,
operate
,
processTaskDTO
);
updateExecuteIds
(
instanceId
,
id
,
operate
,
processTaskDTO
);
}
}
...
...
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 @
35207f54
...
@@ -373,7 +373,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
...
@@ -373,7 +373,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
dto
.
setVariable
(
map
);
dto
.
setVariable
(
map
);
dto
.
setNextExecuteUserCompanyCode
(
getNextUserOrgCode
(
operate
,
jgChangeRegistrationReform
));
dto
.
setNextExecuteUserCompanyCode
(
getNextUserOrgCode
(
operate
,
jgChangeRegistrationReform
));
//执行流程
//执行流程
processTaskDTO
=
iCmWorkflowService
.
complete
(
taskId
,
dto
);
processTaskDTO
=
iCmWorkflowService
.
complete
OrReject
(
taskId
,
dto
,
operate
);
// 更新下一步执行人
// 更新下一步执行人
updateExecuteIds
(
instanceId
,
jgChangeRegistrationReform
,
operate
,
processTaskDTO
);
updateExecuteIds
(
instanceId
,
jgChangeRegistrationReform
,
operate
,
processTaskDTO
);
...
...
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/JgChangeRegistrationTransferServiceImpl.java
View file @
35207f54
...
@@ -51,8 +51,6 @@ import org.elasticsearch.index.query.QueryBuilders;
...
@@ -51,8 +51,6 @@ import org.elasticsearch.index.query.QueryBuilders;
import
org.elasticsearch.search.builder.SearchSourceBuilder
;
import
org.elasticsearch.search.builder.SearchSourceBuilder
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.core.io.Resource
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
...
@@ -415,7 +413,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
...
@@ -415,7 +413,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
map
.
put
(
"approvalStatus"
,
"提交"
);
map
.
put
(
"approvalStatus"
,
"提交"
);
}
}
//执行流程
//执行流程
ProcessTaskDTO
complete
=
icmWorkflowService
.
complete
(
taskId
,
dto
);
ProcessTaskDTO
complete
=
icmWorkflowService
.
complete
OrReject
(
taskId
,
dto
,
operate
);
workflowResult
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
complete
)).
get
(
0
);
workflowResult
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
complete
)).
get
(
0
);
// 更新下一步执行人
// 更新下一步执行人
this
.
updateExecuteIds
(
instanceId
,
transfer
,
operate
,
workflowResult
);
this
.
updateExecuteIds
(
instanceId
,
transfer
,
operate
,
workflowResult
);
...
...
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/JgChangeRegistrationUnitServiceImpl.java
View file @
35207f54
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
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.MapUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.aspose.words.SaveFormat
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
...
@@ -21,8 +18,6 @@ import com.yeejoin.amos.boot.module.jg.api.mapper.*;
...
@@ -21,8 +18,6 @@ import com.yeejoin.amos.boot.module.jg.api.mapper.*;
import
com.yeejoin.amos.boot.module.jg.api.service.IJgChangeRegistrationUnitService
;
import
com.yeejoin.amos.boot.module.jg.api.service.IJgChangeRegistrationUnitService
;
import
com.yeejoin.amos.boot.module.jg.biz.feign.TzsServiceFeignClient
;
import
com.yeejoin.amos.boot.module.jg.biz.feign.TzsServiceFeignClient
;
import
com.yeejoin.amos.boot.module.jg.biz.service.ICommonService
;
import
com.yeejoin.amos.boot.module.jg.biz.service.ICommonService
;
import
com.yeejoin.amos.boot.module.jg.biz.utils.ImageUtils
;
import
com.yeejoin.amos.boot.module.jg.biz.utils.WordTemplateUtils
;
import
com.yeejoin.amos.boot.module.jg.flc.api.fegin.WorkFlowFeignService
;
import
com.yeejoin.amos.boot.module.jg.flc.api.fegin.WorkFlowFeignService
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.*
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.*
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.ApplicationFormTypeEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.ApplicationFormTypeEnum
;
...
@@ -30,21 +25,16 @@ import com.yeejoin.amos.boot.module.ymt.api.enums.EquipmentClassifityEnum;
...
@@ -30,21 +25,16 @@ import com.yeejoin.amos.boot.module.ymt.api.enums.EquipmentClassifityEnum;
import
com.yeejoin.amos.boot.module.ymt.api.enums.FlowStatusEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.FlowStatusEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.*
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.*
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
com.yeejoin.amos.feign.systemctl.model.TaskV2Model
;
import
com.yeejoin.amos.feign.systemctl.model.TaskV2Model
;
import
com.yeejoin.amos.feign.workflow.Workflow
;
import
com.yeejoin.amos.feign.workflow.Workflow
;
import
com.yeejoin.amos.feign.workflow.model.*
;
import
com.yeejoin.amos.feign.workflow.model.*
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.Assert
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.exception.BaseException
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -55,11 +45,8 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
...
@@ -55,11 +45,8 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.File
;
import
java.io.File
;
import
java.io.FileInputStream
;
import
java.io.FileInputStream
;
import
java.io.IOException
;
import
java.nio.file.Files
;
import
java.time.LocalDate
;
import
java.time.LocalDate
;
import
java.util.*
;
import
java.util.*
;
import
java.util.function.Function
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
/**
/**
...
@@ -279,7 +266,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
...
@@ -279,7 +266,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
task
.
setVariable
(
map
);
task
.
setVariable
(
map
);
//执行流程
//执行流程
task
.
setNextExecuteUserCompanyCode
(
noticeDto
.
getReceiveOrgCode
());
task
.
setNextExecuteUserCompanyCode
(
noticeDto
.
getReceiveOrgCode
());
ProcessTaskDTO
processTaskDTO
=
cmWorkflowService
.
complete
(
taskId
,
task
);
ProcessTaskDTO
processTaskDTO
=
cmWorkflowService
.
complete
OrReject
(
taskId
,
task
,
operate
);
JgChangeRegistrationUnit
bean
=
new
JgChangeRegistrationUnit
();
JgChangeRegistrationUnit
bean
=
new
JgChangeRegistrationUnit
();
BeanUtils
.
copyProperties
(
noticeDto
,
bean
);
BeanUtils
.
copyProperties
(
noticeDto
,
bean
);
String
taskCode
=
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
();
String
taskCode
=
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
();
...
@@ -776,7 +763,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
...
@@ -776,7 +763,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
}
}
task
.
setVariable
(
map
);
task
.
setVariable
(
map
);
//执行流程
//执行流程
ProcessTaskDTO
processTaskDTO
=
cmWorkflowService
.
complete
(
taskId
,
task
);
ProcessTaskDTO
processTaskDTO
=
cmWorkflowService
.
complete
OrReject
(
taskId
,
task
,
operate
);
String
taskCode
=
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
();
String
taskCode
=
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
();
String
taskName1
=
""
;
String
taskName1
=
""
;
String
nextTaskId
=
""
;
String
nextTaskId
=
""
;
...
...
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 @
35207f54
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
service
.
impl
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.jg.api.dto.TaskMessageDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.TaskMessageDto
;
...
@@ -24,7 +22,6 @@ import com.yeejoin.amos.boot.module.jg.api.dto.JgEnableDisableDto;
...
@@ -24,7 +22,6 @@ import com.yeejoin.amos.boot.module.jg.api.dto.JgEnableDisableDto;
import
com.yeejoin.amos.boot.module.jg.biz.feign.TzsServiceFeignClient
;
import
com.yeejoin.amos.boot.module.jg.biz.feign.TzsServiceFeignClient
;
import
com.yeejoin.amos.boot.module.jg.biz.service.ICmWorkflowService
;
import
com.yeejoin.amos.boot.module.jg.biz.service.ICmWorkflowService
;
import
com.yeejoin.amos.boot.module.jg.flc.api.fegin.WorkFlowFeignService
;
import
com.yeejoin.amos.boot.module.jg.flc.api.fegin.WorkFlowFeignService
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.RegistrationInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.ApplicationFormTypeEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.ApplicationFormTypeEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.FlowStatusEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.FlowStatusEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.RegistrationInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.RegistrationInfoMapper
;
...
@@ -44,7 +41,6 @@ import org.springframework.stereotype.Service;
...
@@ -44,7 +41,6 @@ import org.springframework.stereotype.Service;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.text.ParseException
;
import
java.util.*
;
import
java.util.*
;
/**
/**
...
@@ -135,7 +131,7 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
...
@@ -135,7 +131,7 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
}
}
dto
.
setVariable
(
commMap
);
dto
.
setVariable
(
commMap
);
ProcessTaskDTO
processTaskDTO
=
iCmWorkflowService
.
complete
(
jgEnableDisable
.
getNextTaskId
(),
dto
);
ProcessTaskDTO
processTaskDTO
=
iCmWorkflowService
.
complete
OrReject
(
jgEnableDisable
.
getNextTaskId
(),
dto
,
operate
);
processTaskDTOS
.
add
(
processTaskDTO
);
processTaskDTOS
.
add
(
processTaskDTO
);
// 提取节点等信息
// 提取节点等信息
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
...
@@ -500,7 +496,7 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
...
@@ -500,7 +496,7 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
workDto
.
setVariable
(
commMap
);
workDto
.
setVariable
(
commMap
);
workDto
.
setComment
(
opinion
);
workDto
.
setComment
(
opinion
);
workDto
.
setNextExecuteUserCompanyCode
(
"1"
.
equals
(
op
)
?
jgEnableDisable
.
getUseUnitCreditCode
()
:
jgEnableDisable
.
getReceiveCompanyCode
());
workDto
.
setNextExecuteUserCompanyCode
(
"1"
.
equals
(
op
)
?
jgEnableDisable
.
getUseUnitCreditCode
()
:
jgEnableDisable
.
getReceiveCompanyCode
());
processTaskDTO
=
iCmWorkflowService
.
complete
(
jgEnableDisable
.
getNextTaskId
(),
workDto
);
processTaskDTO
=
iCmWorkflowService
.
complete
OrReject
(
jgEnableDisable
.
getNextTaskId
(),
workDto
,
operate
);
// 提取节点等信息
// 提取节点等信息
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
return
workflowResultDto
;
return
workflowResultDto
;
...
...
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/JgEquipTransferServiceImpl.java
View file @
35207f54
...
@@ -293,7 +293,7 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto,
...
@@ -293,7 +293,7 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto,
}
}
dto
.
setVariable
(
commMap
);
dto
.
setVariable
(
commMap
);
dto
.
setNextExecuteUserCompanyCode
(
transfer
.
getInstallUnitCreditCode
());
dto
.
setNextExecuteUserCompanyCode
(
transfer
.
getInstallUnitCreditCode
());
ProcessTaskDTO
processTaskDTO
=
cmWorkflowService
.
complete
(
transfer
.
getNextTaskId
(),
dto
);
ProcessTaskDTO
processTaskDTO
=
cmWorkflowService
.
complete
OrReject
(
transfer
.
getNextTaskId
(),
dto
,
operate
);
// 提取节点等信息
// 提取节点等信息
WorkflowResultDto
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
WorkflowResultDto
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
BeanUtils
.
copyProperties
(
equipTransferDto
,
transfer
);
BeanUtils
.
copyProperties
(
equipTransferDto
,
transfer
);
...
@@ -346,7 +346,7 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto,
...
@@ -346,7 +346,7 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto,
workDto
.
setNextExecuteUserCompanyCode
(
"1"
.
equals
(
op
)
?
jgEquipTransfer
.
getUseUnitCreditCode
()
:
jgEquipTransfer
.
getInstallUnitCreditCode
());
workDto
.
setNextExecuteUserCompanyCode
(
"1"
.
equals
(
op
)
?
jgEquipTransfer
.
getUseUnitCreditCode
()
:
jgEquipTransfer
.
getInstallUnitCreditCode
());
workDto
.
setVariable
(
commMap
);
workDto
.
setVariable
(
commMap
);
workDto
.
setComment
(
jgEquipTransferDto
.
getProcessAdvice
());
workDto
.
setComment
(
jgEquipTransferDto
.
getProcessAdvice
());
ProcessTaskDTO
processTaskDTO
=
cmWorkflowService
.
complete
(
jgEquipTransfer
.
getNextTaskId
(),
workDto
);
ProcessTaskDTO
processTaskDTO
=
cmWorkflowService
.
complete
OrReject
(
jgEquipTransfer
.
getNextTaskId
(),
workDto
,
operate
);
// 提取节点等信息
// 提取节点等信息
WorkflowResultDto
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
WorkflowResultDto
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
jgEquipTransfer
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
jgEquipTransfer
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
...
...
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/JgInstallationNoticeServiceImpl.java
View file @
35207f54
...
@@ -5,7 +5,6 @@ import com.alibaba.fastjson.JSON;
...
@@ -5,7 +5,6 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.dao.mapper.DataDictionaryMapper
;
import
com.yeejoin.amos.boot.biz.common.dao.mapper.DataDictionaryMapper
;
...
@@ -274,7 +273,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
...
@@ -274,7 +273,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
dto
.
setVariable
(
commMap
);
dto
.
setVariable
(
commMap
);
//下一节点执行人单位(下节点接收机构code)
//下一节点执行人单位(下节点接收机构code)
dto
.
setNextExecuteUserCompanyCode
(
notice
.
getReceiveOrgCreditCode
());
dto
.
setNextExecuteUserCompanyCode
(
notice
.
getReceiveOrgCreditCode
());
processTaskDTO
=
iCmWorkflowService
.
complete
(
notice
.
getNextTaskId
(),
dto
);
processTaskDTO
=
iCmWorkflowService
.
complete
OrReject
(
notice
.
getNextTaskId
(),
dto
,
operate
);
// 提取节点等信息
// 提取节点等信息
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
BeanUtils
.
copyProperties
(
noticeDto
,
notice
);
BeanUtils
.
copyProperties
(
noticeDto
,
notice
);
...
@@ -954,7 +953,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
...
@@ -954,7 +953,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
workDto
.
setVariable
(
commMap
);
workDto
.
setVariable
(
commMap
);
workDto
.
setComment
(
jgTransferNotice
.
getProcessAdvice
());
workDto
.
setComment
(
jgTransferNotice
.
getProcessAdvice
());
workDto
.
setNextExecuteUserCompanyCode
(
"1"
.
equals
(
op
)
?
jgTransferNotice
.
getInstallUnitCreditCode
()
:
jgTransferNotice
.
getReceiveOrgCreditCode
());
workDto
.
setNextExecuteUserCompanyCode
(
"1"
.
equals
(
op
)
?
jgTransferNotice
.
getInstallUnitCreditCode
()
:
jgTransferNotice
.
getReceiveOrgCreditCode
());
processTaskDTO
=
iCmWorkflowService
.
complete
(
jgTransferNotice
.
getNextTaskId
(),
workDto
);
processTaskDTO
=
iCmWorkflowService
.
complete
OrReject
(
jgTransferNotice
.
getNextTaskId
(),
workDto
,
operate
);
// 提取节点等信息
// 提取节点等信息
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
return
workflowResultDto
;
return
workflowResultDto
;
...
...
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/JgMaintainNoticeServiceImpl.java
View file @
35207f54
...
@@ -17,7 +17,6 @@ import com.yeejoin.amos.boot.module.jg.api.dto.JgMaintainNoticeDto;
...
@@ -17,7 +17,6 @@ import com.yeejoin.amos.boot.module.jg.api.dto.JgMaintainNoticeDto;
import
com.yeejoin.amos.boot.module.jg.api.dto.TaskMessageDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.TaskMessageDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.TaskModelDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.TaskModelDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.WorkflowResultDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.WorkflowResultDto
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgEnableDisableEq
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgMaintainNotice
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgMaintainNotice
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgMaintainNoticeEq
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgMaintainNoticeEq
;
import
com.yeejoin.amos.boot.module.jg.api.enums.BusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.BusinessTypeEnum
;
...
@@ -219,7 +218,7 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto
...
@@ -219,7 +218,7 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto
//下一节点执行人单位(下节点接收机构code)
//下一节点执行人单位(下节点接收机构code)
dto
.
setNextExecuteUserCompanyCode
(
notice
.
getReceiveCompanyCode
());
dto
.
setNextExecuteUserCompanyCode
(
notice
.
getReceiveCompanyCode
());
dto
.
setVariable
(
commMap
);
dto
.
setVariable
(
commMap
);
processTaskDTO
=
cmWorkflowService
.
complete
(
notice
.
getNextTaskId
(),
dto
);
processTaskDTO
=
cmWorkflowService
.
complete
OrReject
(
notice
.
getNextTaskId
(),
dto
,
operate
);
// 提取节点等信息
// 提取节点等信息
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
BeanUtils
.
copyProperties
(
noticeDto
,
notice
);
BeanUtils
.
copyProperties
(
noticeDto
,
notice
);
...
@@ -744,7 +743,7 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto
...
@@ -744,7 +743,7 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto
}
}
//组装信息
//组装信息
TaskResultDTO
taskResultDTO
=
assembleData
(
jgMaintainNotice
,
op
,
opinion
);
TaskResultDTO
taskResultDTO
=
assembleData
(
jgMaintainNotice
,
op
,
opinion
);
ProcessTaskDTO
processTaskDTO
=
cmWorkflowService
.
complete
(
jgMaintainNotice
.
getNextTaskId
(),
taskResultDTO
);
ProcessTaskDTO
processTaskDTO
=
cmWorkflowService
.
complete
OrReject
(
jgMaintainNotice
.
getNextTaskId
(),
taskResultDTO
,
operate
);
// 提取节点等信息
// 提取节点等信息
WorkflowResultDto
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
WorkflowResultDto
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
...
...
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/JgMaintenanceContractServiceImpl.java
View file @
35207f54
...
@@ -177,7 +177,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
...
@@ -177,7 +177,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
dto
.
setVariable
(
map
);
dto
.
setVariable
(
map
);
//下一节点执行人单位(下节点接收机构code)
//下一节点执行人单位(下节点接收机构code)
dto
.
setNextExecuteUserCompanyCode
(
getNextUserOrgCode
(
operate
,
contract
));
dto
.
setNextExecuteUserCompanyCode
(
getNextUserOrgCode
(
operate
,
contract
));
ProcessTaskDTO
complete
=
workflowService
.
complete
(
taskId
,
dto
);
ProcessTaskDTO
complete
=
workflowService
.
complete
OrReject
(
taskId
,
dto
,
operate
);
// 更新下一步执行人、创建待办
// 更新下一步执行人、创建待办
updateExecuteIds
(
instanceId
,
id
,
operate
,
complete
);
updateExecuteIds
(
instanceId
,
id
,
operate
,
complete
);
}
}
...
@@ -450,7 +450,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
...
@@ -450,7 +450,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"approvalStatus"
,
op
);
map
.
put
(
"approvalStatus"
,
op
);
dto
.
setVariable
(
map
);
dto
.
setVariable
(
map
);
return
workflowService
.
complete
(
contract
.
getNextTaskId
(),
dto
);
return
workflowService
.
complete
OrReject
(
contract
.
getNextTaskId
(),
dto
,
operate
);
}
}
private
void
buildRoleList
(
List
<
ProcessTaskDTO
>
processTasks
,
List
<
String
>
roleListNext
,
List
<
String
>
roleListAll
)
{
private
void
buildRoleList
(
List
<
ProcessTaskDTO
>
processTasks
,
List
<
String
>
roleListNext
,
List
<
String
>
roleListAll
)
{
...
...
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/JgReformNoticeServiceImpl.java
View file @
35207f54
...
@@ -202,7 +202,7 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
...
@@ -202,7 +202,7 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
}
}
dto
.
setNextExecuteUserCompanyCode
(
notice
.
getReceiveCompanyCode
());
dto
.
setNextExecuteUserCompanyCode
(
notice
.
getReceiveCompanyCode
());
dto
.
setVariable
(
commMap
);
dto
.
setVariable
(
commMap
);
ProcessTaskDTO
processTaskDTO
=
cmWorkflowService
.
complete
(
notice
.
getNextTaskId
(),
dto
);
ProcessTaskDTO
processTaskDTO
=
cmWorkflowService
.
complete
OrReject
(
notice
.
getNextTaskId
(),
dto
,
operate
);
// 提取节点等信息
// 提取节点等信息
WorkflowResultDto
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
WorkflowResultDto
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
BeanUtils
.
copyProperties
(
noticeDto
,
notice
);
BeanUtils
.
copyProperties
(
noticeDto
,
notice
);
...
@@ -723,7 +723,7 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
...
@@ -723,7 +723,7 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
workDto
.
setNextExecuteUserCompanyCode
(
"1"
.
equals
(
op
)
?
jgReformNotice
.
getInstallUnitCreditCode
()
:
jgReformNotice
.
getReceiveOrgCode
());
workDto
.
setNextExecuteUserCompanyCode
(
"1"
.
equals
(
op
)
?
jgReformNotice
.
getInstallUnitCreditCode
()
:
jgReformNotice
.
getReceiveOrgCode
());
workDto
.
setVariable
(
commMap
);
workDto
.
setVariable
(
commMap
);
workDto
.
setComment
(
dto
.
getRemark
());
workDto
.
setComment
(
dto
.
getRemark
());
ProcessTaskDTO
processTaskDTO
=
cmWorkflowService
.
complete
(
jgReformNotice
.
getNextTaskId
(),
workDto
);
ProcessTaskDTO
processTaskDTO
=
cmWorkflowService
.
complete
OrReject
(
jgReformNotice
.
getNextTaskId
(),
workDto
,
operate
);
WorkflowResultDto
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
WorkflowResultDto
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
jgReformNotice
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
jgReformNotice
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
jgReformNotice
.
setRemark
(
dto
.
getRemark
());
jgReformNotice
.
setRemark
(
dto
.
getRemark
());
...
...
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/JgScrapCancelServiceImpl.java
View file @
35207f54
...
@@ -500,7 +500,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
...
@@ -500,7 +500,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
map
.
put
(
"approvalStatus"
,
"提交"
);
map
.
put
(
"approvalStatus"
,
"提交"
);
dto
.
setNextExecuteUserCompanyCode
(
model
.
getReceiveOrgCode
());
dto
.
setNextExecuteUserCompanyCode
(
model
.
getReceiveOrgCode
());
dto
.
setVariable
(
map
);
dto
.
setVariable
(
map
);
return
cmWorkflowService
.
complete
(
jgScrapCancelDto
.
getNextTaskId
(),
dto
);
return
cmWorkflowService
.
complete
OrReject
(
jgScrapCancelDto
.
getNextTaskId
(),
dto
,
operate
);
}
}
public
Map
<
String
,
Object
>
queryBySequenceNbr
(
Long
sequenceNbr
)
{
public
Map
<
String
,
Object
>
queryBySequenceNbr
(
Long
sequenceNbr
)
{
...
@@ -601,7 +601,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
...
@@ -601,7 +601,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
// 下一节点执行人单位(下节点接收机构code)
// 下一节点执行人单位(下节点接收机构code)
dto
.
setNextExecuteUserCompanyCode
(
this
.
getNextUserOrgCode
(
operate
,
jgScrapCancel
));
dto
.
setNextExecuteUserCompanyCode
(
this
.
getNextUserOrgCode
(
operate
,
jgScrapCancel
));
// 执行流程
// 执行流程
ProcessTaskDTO
processTaskDTO
=
cmWorkflowService
.
complete
(
taskId
,
dto
);
ProcessTaskDTO
processTaskDTO
=
cmWorkflowService
.
complete
OrReject
(
taskId
,
dto
,
operate
);
// 更新下一步执行人、创建待办
// 更新下一步执行人、创建待办
updateExecuteIds
(
equList
,
instanceId
,
id
,
operate
,
processTaskDTO
);
updateExecuteIds
(
equList
,
instanceId
,
id
,
operate
,
processTaskDTO
);
}
}
...
...
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/JgTransferNoticeServiceImpl.java
View file @
35207f54
...
@@ -5,7 +5,6 @@ import com.alibaba.fastjson.JSON;
...
@@ -5,7 +5,6 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
...
@@ -15,7 +14,6 @@ import com.yeejoin.amos.boot.module.jg.api.dto.JgTransferNoticeDto;
...
@@ -15,7 +14,6 @@ import com.yeejoin.amos.boot.module.jg.api.dto.JgTransferNoticeDto;
import
com.yeejoin.amos.boot.module.jg.api.dto.TaskMessageDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.TaskMessageDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.TaskModelDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.TaskModelDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.WorkflowResultDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.WorkflowResultDto
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgInstallationNoticeEq
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgTransferNotice
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgTransferNotice
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgTransferNoticeEq
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgTransferNoticeEq
;
import
com.yeejoin.amos.boot.module.jg.api.enums.BusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.BusinessTypeEnum
;
...
@@ -319,7 +317,7 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
...
@@ -319,7 +317,7 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
}
}
dto
.
setVariable
(
commMap
);
dto
.
setVariable
(
commMap
);
dto
.
setNextExecuteUserCompanyCode
(
notice
.
getReceiveOrgCode
());
dto
.
setNextExecuteUserCompanyCode
(
notice
.
getReceiveOrgCode
());
processTaskDTO
=
iCmWorkflowService
.
complete
(
notice
.
getNextTaskId
(),
dto
);
processTaskDTO
=
iCmWorkflowService
.
complete
OrReject
(
notice
.
getNextTaskId
(),
dto
,
operate
);
// 提取节点等信息
// 提取节点等信息
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
BeanUtils
.
copyProperties
(
noticeDto
,
notice
);
BeanUtils
.
copyProperties
(
noticeDto
,
notice
);
...
@@ -804,7 +802,7 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
...
@@ -804,7 +802,7 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
workDto
.
setNextExecuteUserCompanyCode
(
"1"
.
equals
(
op
)
?
jgTransferNotice
.
getInstallUnitCreditCode
()
:
jgTransferNotice
.
getReceiveOrgCode
());
workDto
.
setNextExecuteUserCompanyCode
(
"1"
.
equals
(
op
)
?
jgTransferNotice
.
getInstallUnitCreditCode
()
:
jgTransferNotice
.
getReceiveOrgCode
());
workDto
.
setVariable
(
commMap
);
workDto
.
setVariable
(
commMap
);
workDto
.
setComment
(
opinion
);
workDto
.
setComment
(
opinion
);
processTaskDTO
=
iCmWorkflowService
.
complete
(
jgTransferNotice
.
getNextTaskId
(),
workDto
);
processTaskDTO
=
iCmWorkflowService
.
complete
OrReject
(
jgTransferNotice
.
getNextTaskId
(),
workDto
,
operate
);
// 提取节点等信息
// 提取节点等信息
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
return
workflowResultDto
;
return
workflowResultDto
;
...
...
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/JgUseRegistrationServiceImpl.java
View file @
35207f54
...
@@ -492,7 +492,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -492,7 +492,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
}
else
{
}
else
{
dto
.
setNextExecuteUserCompanyCode
(
jgUseRegistration
.
getReceiveCompanyCode
());
dto
.
setNextExecuteUserCompanyCode
(
jgUseRegistration
.
getReceiveCompanyCode
());
}
}
ProcessTaskDTO
complete
=
cmWorkflowService
.
complete
(
jgUseRegistration
.
getNextTaskId
(),
dto
);
ProcessTaskDTO
complete
=
cmWorkflowService
.
complete
OrReject
(
jgUseRegistration
.
getNextTaskId
(),
dto
,
operate
);
ArrayList
<
ProcessTaskDTO
>
processTaskDTOS
=
new
ArrayList
<>();
ArrayList
<
ProcessTaskDTO
>
processTaskDTOS
=
new
ArrayList
<>();
processTaskDTOS
.
add
(
complete
);
processTaskDTOS
.
add
(
complete
);
List
<
WorkflowResultDto
>
resultDto
=
commonServiceImpl
.
buildWorkFlowInfo
(
processTaskDTOS
);
List
<
WorkflowResultDto
>
resultDto
=
commonServiceImpl
.
buildWorkFlowInfo
(
processTaskDTOS
);
...
...
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