zhc4dev
赵玉瑞 2 years ago
parent 150248b6ac
commit ce8f7d3a83
  1. 2
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/zyclothsstyle/controller/ZyClothsStyleController.java

@ -159,7 +159,7 @@ public class ZyClothsStyleController extends JeecgController<ZyClothsStyle, IZyC
@PostMapping(value = "/add")
public Result<?> add(@RequestBody ZyClothsStyle zyClothsStyle) {
//生成编号 类型编号(10位)+顺序号(8位)在service层处理
zyClothsStyle.setNums(zyClothsStyleService.generateNumber(zyClothsStyle));
// zyClothsStyle.setNums(zyClothsStyleService.generateNumber(zyClothsStyle));
zyClothsStyleService.save(zyClothsStyle);
return Result.OK("添加成功!");
}

Loading…
Cancel
Save