出入库
This commit is contained in:
@@ -75,8 +75,12 @@ public class MatMaterialController extends BaseController {
|
||||
@Log(title = "配料配件基础信息", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody MatMaterialBo bo) {
|
||||
return toAjax(iMatMaterialService.insertByBo(bo));
|
||||
public R<Long> add(@Validated(AddGroup.class) @RequestBody MatMaterialBo bo) {
|
||||
boolean ok = iMatMaterialService.insertByBo(bo);
|
||||
if (!ok) {
|
||||
return R.fail();
|
||||
}
|
||||
return R.ok(bo.getMaterialId());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user