出入库

This commit is contained in:
朱昊天
2026-05-07 15:59:27 +08:00
parent 3d386ff650
commit 22ace156f9
23 changed files with 3522 additions and 22 deletions

View File

@@ -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());
}
/**