批量打印
This commit is contained in:
parent
309b0003a5
commit
3ea7b5919c
@ -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());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user