批量打印

This commit is contained in:
tangw 2026-07-09 15:41:56 +08:00
parent 309b0003a5
commit 3ea7b5919c

View File

@ -69,9 +69,7 @@ public class ComStatsParameterController extends BaseController {
public AjaxResult add(@Validated @RequestBody ComStatsParameter post) { public AjaxResult add(@Validated @RequestBody ComStatsParameter post) {
log.info("post:{}",post); log.info("post:{}",post);
if (!comStatsParameterService.checkParamNameUnique(post)) { if (!comStatsParameterService.checkParamCodeUnique(post)) {
return error("新增统计参数'" + post.getParamCode() + "'失败,统计参数名称已存在");
} else if (!comStatsParameterService.checkParamCodeUnique(post)) {
return error("新增统计参数'" + post.getParamName()+ "'失败,统计参数编码已存在"); return error("新增统计参数'" + post.getParamName()+ "'失败,统计参数编码已存在");
} }
post.setCreateBy(getUsername()); post.setCreateBy(getUsername());
@ -85,9 +83,7 @@ public class ComStatsParameterController extends BaseController {
@Log(title = "统计参数管理", businessType = BusinessType.UPDATE) @Log(title = "统计参数管理", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@Validated @RequestBody ComStatsParameter post) { public AjaxResult edit(@Validated @RequestBody ComStatsParameter post) {
if (!comStatsParameterService.checkParamNameUnique(post)) { if (!comStatsParameterService.checkParamCodeUnique(post)) {
return error("修改统计参数'" + post.getParamCode() + "'失败,统计参数名称已存在");
} else if (!comStatsParameterService.checkParamCodeUnique(post)) {
return error("修改统计参数'" + post.getParamCode() + "'失败,统计参数编码已存在"); return error("修改统计参数'" + post.getParamCode() + "'失败,统计参数编码已存在");
} }
post.setUpdateBy(getUsername()); post.setUpdateBy(getUsername());