refactor(出库计划): 语法优化
This commit is contained in:
parent
093aa1aeb4
commit
ec39dfceb7
@ -89,7 +89,7 @@ public class WmsOutPlanController extends BaseController {
|
|||||||
// return AjaxResult.error("新增出库计划失败,出库计划编码“" + wmsOutPlan.getPlanCode() + "”已存在");
|
// return AjaxResult.error("新增出库计划失败,出库计划编码“" + wmsOutPlan.getPlanCode() + "”已存在");
|
||||||
// }
|
// }
|
||||||
// 出库计划编码自动生成
|
// 出库计划编码自动生成
|
||||||
if (wmsOutPlan.getPlanCode().isEmpty() || wmsOutPlan.getPlanCode() == null) {
|
if (wmsOutPlan.getPlanCode() == null || wmsOutPlan.getPlanCode().isEmpty()) {
|
||||||
wmsOutPlan.setPlanCode(MultiModuleCodeGenerator.generateTaskCode("CKP"));
|
wmsOutPlan.setPlanCode(MultiModuleCodeGenerator.generateTaskCode("CKP"));
|
||||||
}
|
}
|
||||||
wmsOutPlan.setCreateBy(getUsername());
|
wmsOutPlan.setCreateBy(getUsername());
|
||||||
|
Loading…
Reference in New Issue
Block a user