账户添加字段

This commit is contained in:
liss
2025-09-29 12:00:59 +08:00
parent 9cdd7db87a
commit e7a499fa01
6 changed files with 32 additions and 2 deletions

View File

@@ -1,7 +1,9 @@
package com.zt.plat.module.base.controller.admin.base.vo; package com.zt.plat.module.base.controller.admin.base.vo;
import com.alibaba.excel.annotation.ExcelProperty;
import com.zt.plat.framework.common.pojo.PageParam; import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data; import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
@@ -41,4 +43,10 @@ public class AccountPageReqVO extends PageParam {
@Schema(description = "客商公司名称") @Schema(description = "客商公司名称")
private String customerName; private String customerName;
@Schema(description = "地址")
private String address;
@Schema(description = "电话")
private String phone;
} }

View File

@@ -52,4 +52,12 @@ public class AccountRespVO {
@ExcelProperty("客商公司名称") @ExcelProperty("客商公司名称")
private String customerName; private String customerName;
@Schema(description = "地址")
@ExcelProperty("地址")
private String address;
@Schema(description = "电话")
@ExcelProperty("电话")
private String phone;
} }

View File

@@ -33,7 +33,6 @@ public class AccountSaveReqVO {
private String taxNumber; private String taxNumber;
@Schema(description = "是否启用") @Schema(description = "是否启用")
@ExcelProperty("是否启用")
private String isEnable; private String isEnable;
@Schema(description = "客商公司编码", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "客商公司编码", requiredMode = Schema.RequiredMode.REQUIRED)
@@ -43,4 +42,10 @@ public class AccountSaveReqVO {
@Schema(description = "客商公司名称", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "客商公司名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "客商公司名称不能为空") @NotEmpty(message = "客商公司名称不能为空")
private String customerName; private String customerName;
@Schema(description = "地址")
private String address;
@Schema(description = "电话")
private String phone;
} }

View File

@@ -32,7 +32,7 @@ public class CompanyRelativityPageReqVO extends PageParam {
@Schema(description = "负责人") @Schema(description = "负责人")
private String manager; private String manager;
@Schema(description = "部门来源") @Schema(description = "部门来源(字典编码sply_cpn_rel_sts)(1:外部部门;2:同步部门;)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
private String departmentSource; private String departmentSource;
} }

View File

@@ -2,6 +2,7 @@ package com.zt.plat.module.base.dal.dataobject.base;
import com.baomidou.mybatisplus.annotation.*; import com.baomidou.mybatisplus.annotation.*;
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO; import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*; import lombok.*;
/** /**
* 账户条款 DO * 账户条款 DO
@@ -102,4 +103,10 @@ public class AccountDO extends BusinessBaseDO {
@TableField("UPDATER_NAME") @TableField("UPDATER_NAME")
private String updaterName; private String updaterName;
@TableField("ADDRESS")
private String address;
@TableField("PHONE")
private String phone;
} }

View File

@@ -19,6 +19,8 @@ public interface AccountMapper extends BaseMapperX<AccountDO> {
return selectPage(reqVO, new LambdaQueryWrapperX<AccountDO>() return selectPage(reqVO, new LambdaQueryWrapperX<AccountDO>()
.eqIfPresent(AccountDO::getType, reqVO.getType()) .eqIfPresent(AccountDO::getType, reqVO.getType())
.likeIfPresent(AccountDO::getAccountName, reqVO.getAccountName()) .likeIfPresent(AccountDO::getAccountName, reqVO.getAccountName())
.likeIfPresent(AccountDO::getAddress, reqVO.getAddress())
.likeIfPresent(AccountDO::getPhone, reqVO.getPhone())
.eqIfPresent(AccountDO::getBankAccount, reqVO.getBankAccount()) .eqIfPresent(AccountDO::getBankAccount, reqVO.getBankAccount())
.eqIfPresent(AccountDO::getCustomerName, reqVO.getCustomerName()) .eqIfPresent(AccountDO::getCustomerName, reqVO.getCustomerName())
.eqIfPresent(AccountDO::getCustomerNumber, reqVO.getCustomerNumber()) .eqIfPresent(AccountDO::getCustomerNumber, reqVO.getCustomerNumber())