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