Commit 3e4df50f authored by hezhuozhi's avatar hezhuozhi

还款管理

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