feat(cost): 新增生产月报复制功能,修复考勤校验参数问题,优化表格列操作

This commit is contained in:
2026-05-27 13:19:55 +08:00
parent 454d8de6a2
commit e95e9adfcd
6 changed files with 188 additions and 43 deletions

View File

@@ -96,4 +96,16 @@ public class CostProdReportController extends BaseController {
@PathVariable Long[] reportIds) {
return toAjax(iCostProdReportService.deleteWithValidByIds(Arrays.asList(reportIds), true));
}
/**
* 复制生产月报
* 明细列原样保留指标列重新插入并更新config中的id引用
*/
@Log(title = "生产月报", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping("/copy/{sourceId}")
public R<CostProdReportVo> copy(@NotNull(message = "源报表ID不能为空") @PathVariable Long sourceId,
@RequestBody CostProdReportBo bo) {
return R.ok(iCostProdReportService.copyReport(sourceId, bo));
}
}