feat(warning): 添加钢卷告警批量处理功能
- 在 IWmsMaterialWarningService 中添加 batchHandle 方法接口 - 在 WmsMaterialWarningBo 中新增 warningIds 字段用于存储 ID 集合 - 在 WmsMaterialWarningController 中添加 /batchHandle 接口 - 在 WmsMaterialWarningServiceImpl 中实现批量处理逻辑 - 更新 Excel 导出标题中的分隔符为中文顿号 - 批量处理时自动填充处理人、处理时间和处理状态信息
This commit is contained in:
@@ -84,7 +84,7 @@ public class WmsMaterialWarningController extends BaseController {
|
||||
@PostMapping("/export")
|
||||
public void export(WmsMaterialWarningBo bo, HttpServletResponse response) {
|
||||
List<WmsMaterialWarningVo> list = iWmsMaterialWarningService.queryList(bo);
|
||||
ExcelUtil.exportExcel(list, "钢卷通用维度告警(长度/厚度/宽度)", WmsMaterialWarningVo.class, response);
|
||||
ExcelUtil.exportExcel(list, "钢卷通用维度告警(长度、厚度、宽度)", WmsMaterialWarningVo.class, response);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -118,6 +118,16 @@ public class WmsMaterialWarningController extends BaseController {
|
||||
return toAjax(iWmsMaterialWarningService.updateByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量处理告警(填写处理人、处理时间、处理状态、处理备注)
|
||||
*/
|
||||
@Log(title = "钢卷通用维度告警批量处理", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit()
|
||||
@PutMapping("/batchHandle")
|
||||
public R<Void> batchHandle(@Validated @RequestBody WmsMaterialWarningBo bo) {
|
||||
return toAjax(iWmsMaterialWarningService.batchHandle(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除钢卷通用维度告警(长度/厚度/宽度)
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user