This commit is contained in:
777
2025-11-15 13:08:29 +08:00
parent db39c5249e
commit 0c41fdf89d
31 changed files with 1582 additions and 11 deletions

View File

@@ -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);