feat(inventory): 添加盘库差异记录批量新增功能
- 在服务层接口中添加批量新增方法定义 - 在控制器中实现批量新增API端点 - 在服务实现类中添加批量新增业务逻辑 - 添加请求参数验证和空值检查 - 使用BeanUtil工具进行对象转换 - 集成基础映射器的批量插入功能
This commit is contained in:
@@ -75,6 +75,16 @@ public class InvCountDiscrepancyController extends BaseController {
|
||||
return toAjax(iInvCountDiscrepancyService.insertByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量新增盘库差异记录
|
||||
*/
|
||||
@Log(title = "盘库差异记录", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping("/batch")
|
||||
public R<Void> addBatch(@Validated(AddGroup.class) @RequestBody List<InvCountDiscrepancyBo> bos) {
|
||||
return toAjax(iInvCountDiscrepancyService.insertBatchByBo(bos));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改盘库差异记录
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user