Commit 3e4df50f authored by hezhuozhi's avatar hezhuozhi

还款管理

parent ac340a09
...@@ -135,18 +135,23 @@ public class CommonServiceImpl { ...@@ -135,18 +135,23 @@ public class CommonServiceImpl {
} }
public void deleteTaskModel(String id) { public void deleteTaskModel(String id) {
try {
List<TaskV2Model> result = taskV2FeignService.selectListByRelationId(id).getResult(); List<TaskV2Model> result = taskV2FeignService.selectListByRelationId(id).getResult();
if (!result.isEmpty()) { if (!result.isEmpty()) {
List<Long> idList = result.stream().map(TaskV2Model::getSequenceNbr).collect(Collectors.toList()); List<Long> idList = result.stream().map(TaskV2Model::getSequenceNbr).collect(Collectors.toList());
String ids = idList.stream().map(Object::toString).collect(Collectors.joining(",")); String ids = idList.stream().map(Object::toString).collect(Collectors.joining(","));
taskV2FeignService.delete(ids); taskV2FeignService.delete(ids);
} }
}catch (Exception e){
log.error(e.getMessage(),e);
}
} }
/** /**
* 待办新增接口 * 待办新增接口
**/ **/
public void buildTaskModel(List<TaskModelDto> list) { public void buildTaskModel(List<TaskModelDto> list) {
try {
//执行人为空使用系统机器人账号 //执行人为空使用系统机器人账号
if (StrUtil.isEmpty(RequestContext.getExeUserId())) { if (StrUtil.isEmpty(RequestContext.getExeUserId())) {
RequestContext.setExeUserId(amosRequestContext.getUserId()); RequestContext.setExeUserId(amosRequestContext.getUserId());
...@@ -220,6 +225,9 @@ public class CommonServiceImpl { ...@@ -220,6 +225,9 @@ public class CommonServiceImpl {
} else { } else {
taskV2FeignService.batchAdd(taskV2Models); taskV2FeignService.batchAdd(taskV2Models);
} }
}catch (Exception e){
log.error(e.getMessage(),e);
}
} }
private void dealStartUser(TaskModelDto obj) { private void dealStartUser(TaskModelDto obj) {
...@@ -397,6 +405,7 @@ public class CommonServiceImpl { ...@@ -397,6 +405,7 @@ public class CommonServiceImpl {
* @param businessTypeEnum * @param businessTypeEnum
*/ */
public void updateTaskModelAndAddTask(Object object, WorkflowResultDto workflowResultDto, BusinessTypeEnum businessTypeEnum) { public void updateTaskModelAndAddTask(Object object, WorkflowResultDto workflowResultDto, BusinessTypeEnum businessTypeEnum) {
try {
Map<String, Object> updateTaskParam = new HashMap<>(); Map<String, Object> updateTaskParam = new HashMap<>();
updateTaskParam.put("flowStatus", FlowStatusEnum.TO_BE_FINISHED.getCode()); updateTaskParam.put("flowStatus", FlowStatusEnum.TO_BE_FINISHED.getCode());
updateTaskParam.put("flowStatusLabel", FlowStatusEnum.TO_BE_FINISHED.getName()); updateTaskParam.put("flowStatusLabel", FlowStatusEnum.TO_BE_FINISHED.getName());
...@@ -406,6 +415,10 @@ public class CommonServiceImpl { ...@@ -406,6 +415,10 @@ public class CommonServiceImpl {
updateTaskParam.put("relationId", workflowResultDto.getInstanceId()); updateTaskParam.put("relationId", workflowResultDto.getInstanceId());
updateTaskModel(updateTaskParam); updateTaskModel(updateTaskParam);
buildTaskModel((buildTaskModelDto(object, workflowResultDto, businessTypeEnum))); buildTaskModel((buildTaskModelDto(object, workflowResultDto, businessTypeEnum)));
}catch (Exception e){
log.error(e.getMessage(),e);
}
} }
public JSONArray getRegionName() { public JSONArray getRegionName() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment