nnnn
This commit is contained in:
@@ -55,7 +55,9 @@ public class PayTrdConfigController extends BaseController {
|
||||
@GetMapping("/{id}")
|
||||
public R<PayTrdConfig> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable Long id) {
|
||||
return R.ok(payTrdConfigService.getById(id));
|
||||
PayTrdConfig payTrdConfig = payTrdConfigService.getById(id);
|
||||
payTrdConfig.refreshSelect();
|
||||
return R.ok(payTrdConfig);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -66,6 +68,7 @@ public class PayTrdConfigController extends BaseController {
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody PayTrdConfig bo) {
|
||||
bo.refreshUpdateOrSave();
|
||||
boolean save = payTrdConfigService.save(bo);
|
||||
payTrdConfigService.resetPayTrdConfig();
|
||||
return toAjax(save);
|
||||
@@ -89,6 +92,7 @@ public class PayTrdConfigController extends BaseController {
|
||||
@RepeatSubmit()
|
||||
@PutMapping()
|
||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody PayTrdConfig bo) {
|
||||
bo.refreshUpdateOrSave();
|
||||
boolean save = payTrdConfigService.updateById(bo);
|
||||
payTrdConfigService.resetPayTrdConfig();
|
||||
return toAjax(save);
|
||||
|
||||
Reference in New Issue
Block a user