diff --git a/renren-admin/src/main/java/io/renren/common/controller/AbilityCenterController.java b/renren-admin/src/main/java/io/renren/common/controller/AbilityCenterController.java index dee1821c..a1376531 100644 --- a/renren-admin/src/main/java/io/renren/common/controller/AbilityCenterController.java +++ b/renren-admin/src/main/java/io/renren/common/controller/AbilityCenterController.java @@ -121,7 +121,7 @@ public class AbilityCenterController { if (tAbilityApplicationDTO.getId() == null) { return null; } - codeGenerationUtils.setApplyNumber("NLSY", new ArrayList<>(Arrays.asList(tAbilityApplicationDTO.getId())), jdbcTemplate); + codeGenerationUtils.setApplyNumber("NLSY", Arrays.asList(tAbilityApplicationDTO.getId()), jdbcTemplate); tAbilityApplicationDTO.setCompleteEntry(Boolean.TRUE); // 仿照请求接口 /act/running/startOfBusinessKey diff --git a/renren-admin/src/main/java/io/renren/common/controller/CommentController.java b/renren-admin/src/main/java/io/renren/common/controller/CommentController.java index f548c717..33c9ef84 100644 --- a/renren-admin/src/main/java/io/renren/common/controller/CommentController.java +++ b/renren-admin/src/main/java/io/renren/common/controller/CommentController.java @@ -24,7 +24,6 @@ import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; -import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -90,7 +89,7 @@ public class CommentController { tDemandCommentDTO.setDelFlag(2); // 待审核 tDemandCommentDTO.setCompleteEntry(Boolean.TRUE); tDemandCommentService.update(tDemandCommentDTO); - codeGenerationUtils.setApplyNumber("XQPL", new ArrayList<>(Arrays.asList(tDemandCommentDTO.getId())), jdbcTemplate); + codeGenerationUtils.setApplyNumber("XQPL", Arrays.asList(tDemandCommentDTO.getId()), jdbcTemplate); // 仿照请求接口 /act/running/startOfBusinessKey ProcessStartDTO processStartDTO = new ProcessStartDTO(); diff --git a/renren-admin/src/main/java/io/renren/common/controller/DemandDataController.java b/renren-admin/src/main/java/io/renren/common/controller/DemandDataController.java index 4124642e..46b23e1f 100644 --- a/renren-admin/src/main/java/io/renren/common/controller/DemandDataController.java +++ b/renren-admin/src/main/java/io/renren/common/controller/DemandDataController.java @@ -28,7 +28,6 @@ import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; -import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -81,7 +80,7 @@ public class DemandDataController { if (tDemandDataDTO.getId() == null) { return null; } - codeGenerationUtils.setApplyNumber("NLXQ", new ArrayList<>(Arrays.asList(tDemandDataDTO.getId())), jdbcTemplate); + codeGenerationUtils.setApplyNumber("NLXQ", Arrays.asList(tDemandDataDTO.getId()), jdbcTemplate); tDemandDataDTO.setCompleteEntry(Boolean.TRUE); logger.info("-------------------1.保存申请表单成功--------------------------"); // 仿照请求接口 /act/running/startOfBusinessKey diff --git a/renren-admin/src/main/java/io/renren/common/controller/ResourceMountController.java b/renren-admin/src/main/java/io/renren/common/controller/ResourceMountController.java index 95485665..595fdfce 100644 --- a/renren-admin/src/main/java/io/renren/common/controller/ResourceMountController.java +++ b/renren-admin/src/main/java/io/renren/common/controller/ResourceMountController.java @@ -119,7 +119,7 @@ public class ResourceMountController { if (tResourceMountApplyDTO.getId() == null) { return null; } - codeGenerationUtils.setApplyNumber("NLSJ", new ArrayList<>(Arrays.asList(tResourceMountApplyDTO.getId())), jdbcTemplate); + codeGenerationUtils.setApplyNumber("NLSJ", Arrays.asList(tResourceMountApplyDTO.getId()), jdbcTemplate); TaskQuery taskQuery = taskService.createTaskQuery(); Task task = taskQuery.active().processInstanceBusinessKey(tResourceMountApplyDTO.getId().toString()).singleResult(); if (task != null) { @@ -191,13 +191,12 @@ public class ResourceMountController { } dto.setUndercarriageReason(tResourceUndercarriageApplyDTO.getReason()); dto.setDelFlag(ResourceEntityDelFlag.NORMAL.getFlag()); // 设置为正常 -// dto.setApplyNumber(codeGenerationUtils.getApplyNumber("NLXJ")); String userId = SecurityUser.getUserId().toString(); Optional userDTO = Optional.ofNullable(sysUserService.get(Long.valueOf(userId))); userDTO.ifPresent(user -> { dto.setUndercarriageUserName(user.getRealName()); }); - codeGenerationUtils.setApplyNumber("NLXJ", new ArrayList<>(Arrays.asList(dto.getId())), jdbcTemplate); + codeGenerationUtils.setApplyNumber("NLXJ", Arrays.asList(dto.getId()), jdbcTemplate); ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); resourceService.update(dto); logger.error(resourceDTO.get().toString());