2022-12-09 修改产品管理部分问题

zhc4dev
赵玉瑞 2 years ago
parent ca3ad50116
commit 3be5d8e91c
  1. 3
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/controller/ZyClothsTypeController.java

@ -92,6 +92,9 @@ public class ZyClothsTypeController extends JeecgController<ZyClothsType, IZyClo
return Result.error("同类型下 类型名称不能重复");
}
}
if (zyClothsType.getTypeId().equals("1455487094925819901")) {
zyClothsType.setTypeId(null);
}
//生成编号 nums,编号,varchar,10,非空,不重复,企业缩写(4)+顺序号(6)在service层处理
zyClothsType.setNums(zyClothsTypeService.generateNumber());
zyClothsTypeService.save(zyClothsType);

Loading…
Cancel
Save