refactor(出库计划): 语法优化

This commit is contained in:
Kelvin 2024-12-13 14:37:25 +08:00
parent 093aa1aeb4
commit ec39dfceb7

View File

@ -89,7 +89,7 @@ public class WmsOutPlanController extends BaseController {
// 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.setCreateBy(getUsername());