禅道bug修复

This commit is contained in:
liang.chao 2025-01-24 11:17:54 +08:00
parent 96848d3b3b
commit a207a95c4b
2 changed files with 5 additions and 3 deletions

View File

@ -166,9 +166,11 @@ public class MaPartTypeController extends BaseController {
@PostMapping("/updateById")
public AjaxResult updateById (@RequestBody MaPartType maPartType){
maPartType.setUpdateBy(SecurityUtils.getUsername());
// 先判断是否有重复名称
if (!maPartTypeService.checkPaNameUnique(maPartType)) {
return error("修改配件名称'" + maPartType.getPaName() + "'失败,配件名称已存在");
}
return toAjax(maPartTypeService.updateById(maPartType));
}
}

View File

@ -222,7 +222,7 @@ public class BackApplyController extends BaseController {
/* 设置领料任务ID*/
leaseApplyDetails.setId(backApplyInfoId);
// 插入领料任务明细
leaseApplyDetails.setAuditNum(leaseApplyDetails.getPreNum());
// leaseApplyDetails.setAuditNum(leaseApplyDetails.getPreNum());
boolean addLeaseTaskDetailsResult = backApplyService.upload(leaseApplyDetails) > 0;
if (!addLeaseTaskDetailsResult) {
return AjaxResult.error("退料任务创建成功,但退料任务明细插入失败");