禅道bug修复
This commit is contained in:
parent
96848d3b3b
commit
a207a95c4b
|
|
@ -166,9 +166,11 @@ public class MaPartTypeController extends BaseController {
|
||||||
@PostMapping("/updateById")
|
@PostMapping("/updateById")
|
||||||
public AjaxResult updateById (@RequestBody MaPartType maPartType){
|
public AjaxResult updateById (@RequestBody MaPartType maPartType){
|
||||||
maPartType.setUpdateBy(SecurityUtils.getUsername());
|
maPartType.setUpdateBy(SecurityUtils.getUsername());
|
||||||
|
// 先判断是否有重复名称
|
||||||
|
if (!maPartTypeService.checkPaNameUnique(maPartType)) {
|
||||||
|
return error("修改配件名称'" + maPartType.getPaName() + "'失败,配件名称已存在");
|
||||||
|
}
|
||||||
return toAjax(maPartTypeService.updateById(maPartType));
|
return toAjax(maPartTypeService.updateById(maPartType));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -222,7 +222,7 @@ public class BackApplyController extends BaseController {
|
||||||
/* 设置领料任务ID*/
|
/* 设置领料任务ID*/
|
||||||
leaseApplyDetails.setId(backApplyInfoId);
|
leaseApplyDetails.setId(backApplyInfoId);
|
||||||
// 插入领料任务明细
|
// 插入领料任务明细
|
||||||
leaseApplyDetails.setAuditNum(leaseApplyDetails.getPreNum());
|
// leaseApplyDetails.setAuditNum(leaseApplyDetails.getPreNum());
|
||||||
boolean addLeaseTaskDetailsResult = backApplyService.upload(leaseApplyDetails) > 0;
|
boolean addLeaseTaskDetailsResult = backApplyService.upload(leaseApplyDetails) > 0;
|
||||||
if (!addLeaseTaskDetailsResult) {
|
if (!addLeaseTaskDetailsResult) {
|
||||||
return AjaxResult.error("退料任务创建成功,但退料任务明细插入失败");
|
return AjaxResult.error("退料任务创建成功,但退料任务明细插入失败");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue