|
@@ -76,7 +76,7 @@ public class PrintController {
|
|
@PostMapping("addPrintConfig")
|
|
@PostMapping("addPrintConfig")
|
|
public Result addPrintConfig(@RequestBody PrintConfig printConfig) {
|
|
public Result addPrintConfig(@RequestBody PrintConfig printConfig) {
|
|
if (Blank.isEmpty(printConfig)) {
|
|
if (Blank.isEmpty(printConfig)) {
|
|
- return Result.no(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), "报表、定时任务都不能为空");
|
|
|
|
|
|
+ return Result.no(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), ResultEnum.REQUEST_WRONGPARAMS.getRespMsg());
|
|
}
|
|
}
|
|
return printService.addPrintConfig(printConfig);
|
|
return printService.addPrintConfig(printConfig);
|
|
}
|
|
}
|
|
@@ -90,7 +90,7 @@ public class PrintController {
|
|
@PostMapping("updatePrintConfig")
|
|
@PostMapping("updatePrintConfig")
|
|
public Result updatePrintConfig(@RequestBody PrintConfig printConfig) {
|
|
public Result updatePrintConfig(@RequestBody PrintConfig printConfig) {
|
|
if (Blank.isEmpty(printConfig, printConfig.getId())) {
|
|
if (Blank.isEmpty(printConfig, printConfig.getId())) {
|
|
- return Result.no(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), "报表、定时任务都不能为空");
|
|
|
|
|
|
+ return Result.no(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), ResultEnum.REQUEST_WRONGPARAMS.getRespMsg());
|
|
}
|
|
}
|
|
return printService.updatePrintConfig(printConfig);
|
|
return printService.updatePrintConfig(printConfig);
|
|
}
|
|
}
|
|
@@ -123,7 +123,7 @@ public class PrintController {
|
|
}
|
|
}
|
|
|
|
|
|
@PostMapping("/delPrintConfigById")
|
|
@PostMapping("/delPrintConfigById")
|
|
- public Result delPrintConfigById(Integer id){
|
|
|
|
|
|
+ public Result delPrintConfigById(Integer id) {
|
|
if (Blank.isEmpty(id)) {
|
|
if (Blank.isEmpty(id)) {
|
|
return Result.no(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), ResultEnum.REQUEST_WRONGPARAMS.getRespMsg());
|
|
return Result.no(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), ResultEnum.REQUEST_WRONGPARAMS.getRespMsg());
|
|
}
|
|
}
|