33333333333
This commit is contained in:
@@ -66,7 +66,9 @@ public class PayTrdConfigController extends BaseController {
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody PayTrdConfig bo) {
|
||||
return toAjax(payTrdConfigService.save(bo));
|
||||
boolean save = payTrdConfigService.save(bo);
|
||||
payTrdConfigService.resetPayTrdConfig();
|
||||
return toAjax(save);
|
||||
}
|
||||
|
||||
@SaCheckPermission("cai:payTrdConfig:edit")
|
||||
@@ -75,6 +77,7 @@ public class PayTrdConfigController extends BaseController {
|
||||
@PostMapping("/enableStatus")
|
||||
public R<Void> enableStatus(@Validated(AddGroup.class) @RequestBody PayTrdConfig bo) {
|
||||
payTrdConfigService.enableStatus(bo.getId(), bo.getEnableStatus());
|
||||
payTrdConfigService.resetPayTrdConfig();
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@@ -86,7 +89,9 @@ public class PayTrdConfigController extends BaseController {
|
||||
@RepeatSubmit()
|
||||
@PutMapping()
|
||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody PayTrdConfig bo) {
|
||||
return toAjax(payTrdConfigService.updateById(bo));
|
||||
boolean save = payTrdConfigService.updateById(bo);
|
||||
payTrdConfigService.resetPayTrdConfig();
|
||||
return toAjax(save);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -99,6 +104,8 @@ public class PayTrdConfigController extends BaseController {
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable Long[] ids) {
|
||||
return toAjax(payTrdConfigService.removeBatchByIds(Arrays.asList(ids)));
|
||||
boolean b = payTrdConfigService.removeBatchByIds(Arrays.asList(ids));
|
||||
payTrdConfigService.resetPayTrdConfig();
|
||||
return toAjax(b);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user