完善关键零部件型号申请流程

This commit is contained in:
梁琦涛
2024-10-09 10:57:23 +08:00
parent d5804ef698
commit dd13201ce3
2 changed files with 3 additions and 4 deletions
@@ -114,6 +114,7 @@ public class ProcessPartTypeApplyRecordController {
@ApiOperation(value = "业务支持-关键零部件型号库-新增", notes = "业务支持-关键零部件型号库-新增")
@ApiOperationSupport(order = 5)
@PostMapping(value = "/add")
@Translation
// @RequiresPermissions("keyPartBindingManage:add")
public Result<ProcessPartTypeApplyRecord> add(@RequestBody ProcessPartTypeApplyRecord processPartTypeApplyRecord) {
return Result.OK(processPartTypeApplyRecordService.add(processPartTypeApplyRecord));
@@ -130,6 +131,7 @@ public class ProcessPartTypeApplyRecordController {
@ApiOperationSupport(order = 6)
@PostMapping(value = "/edit")
// @RequiresPermissions("keyPartBindingManage:import")
@Translation
public Result<ProcessPartTypeApplyRecord> edit(@Validated @RequestBody ProcessPartTypeApplyRecord processPartTypeApplyRecord) {
return Result.OK(this.processPartTypeApplyRecordService.edit(processPartTypeApplyRecord));
}
@@ -129,10 +129,7 @@ public class ProcessPartTypeApplyServiceImpl extends ServiceImpl<ProcessPartType
Map<String, Object> map = new HashMap<>();
// 人员信息
userInfoMap.forEach((key, value) -> {
if(Objects.equals("checkUserLeader1List",key + "List") ||
Objects.equals("checkUserLeader2List",key + "List") ||
Objects.equals("checkUserLeader3List",key + "List") ||
Objects.equals("checkUserLeader4List",key + "List")){
if(Objects.equals("designUserLeader",key)){
map.put(key, value);
map.put(key + "List", Arrays.asList(value.toString().split(",")));
return;