refactor(base-commons): 重构基础模块并添加新功能
- 修改 PageListWalletRequest 中 uname 字段名为 accName - 在 WalletAccountController 中添加更新账户姓名的接口 - 更新 WalletAccountServiceImpl 中的 list 方法,使用新的 accName 字段
This commit is contained in:
parent
b682441d39
commit
30fc855216
@ -20,7 +20,7 @@ public class PageListWalletRequest extends BasePageRequest {
|
||||
private String ownerId;
|
||||
|
||||
@Schema(description = "用户名")
|
||||
private String uname;
|
||||
private String accName;
|
||||
|
||||
@Schema(description = "编码")
|
||||
private String code;
|
||||
|
||||
@ -103,6 +103,7 @@ public class WalletAccountController {
|
||||
public Result<WechatPayAttach> getPayAttach(String wuid) {
|
||||
return walletAccountService.getPayAttach(wuid);
|
||||
}
|
||||
@Operation(summary = "更新账户姓名")
|
||||
@PostMapping({"/updateName"})
|
||||
@ApiOperationSupport(order = 11)
|
||||
public Result<Integer> updateName(@ParameterObject WalletAccount wa) {
|
||||
|
||||
@ -131,10 +131,10 @@ public class WalletAccountServiceImpl implements WalletAccountService {
|
||||
|
||||
@Override
|
||||
public Result<List<WalletAccountVO>> list(PageListWalletRequest plwr) {
|
||||
Page<WalletAccount> page = new Page<WalletAccount>(plwr.getPageNo(), plwr.getPageSize());
|
||||
Page<WalletAccount> page = new Page<>(plwr.getPageNo(), plwr.getPageSize());
|
||||
QueryWrapper<WalletAccount> queryWrapper = new QueryWrapper<WalletAccount>()
|
||||
.eq(StringUtils.hasText(plwr.getCode()), "code", plwr.getCode())
|
||||
.like(StringUtils.hasText(plwr.getUname()), "acc_name", plwr.getUname())
|
||||
.like(StringUtils.hasText(plwr.getAccName()), "acc_name", plwr.getAccName())
|
||||
.eq(StringUtils.hasText(plwr.getStationCode()), "station_code", plwr.getStationCode())
|
||||
.eq(plwr.getOwnerType() != null, "owner_type", plwr.getOwnerType())
|
||||
.eq(StringUtils.hasText(plwr.getOwnerId()), "owner_id", plwr.getOwnerId())
|
||||
|
||||
Loading…
Reference in New Issue
Block a user