联系人,账户条款新增字段,公司配置字段优化

This commit is contained in:
liss
2025-09-26 15:08:27 +08:00
parent a2ec48fd94
commit 72b1097c0f
12 changed files with 88 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
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 lombok.Data; import lombok.Data;
@@ -32,4 +33,13 @@ public class AccountPageReqVO extends PageParam {
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] createTime; private LocalDateTime[] createTime;
@Schema(description = "是否启用")
private String isEnable;
@Schema(description = "客商公司编码")
private String customerNumber;
@Schema(description = "客商公司名称")
private String customerName;
} }

View File

@@ -2,6 +2,7 @@ package com.zt.plat.module.base.controller.admin.base.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty; import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
@@ -40,4 +41,16 @@ public class AccountRespVO {
@ExcelProperty("创建时间") @ExcelProperty("创建时间")
private LocalDateTime createTime; private LocalDateTime createTime;
@Schema(description = "是否启用")
@ExcelProperty("是否启用")
private String isEnable;
@Schema(description = "客商公司编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("客商公司编码")
private String customerNumber;
@Schema(description = "客商公司名称", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("客商公司名称")
private String customerName;
} }

View File

@@ -1,5 +1,6 @@
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 io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty; import jakarta.validation.constraints.NotEmpty;
import lombok.Data; import lombok.Data;
@@ -31,4 +32,15 @@ public class AccountSaveReqVO {
@NotEmpty(message = "税号/社会信用代码不能为空") @NotEmpty(message = "税号/社会信用代码不能为空")
private String taxNumber; private String taxNumber;
@Schema(description = "是否启用")
@ExcelProperty("是否启用")
private String isEnable;
@Schema(description = "客商公司编码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "客商公司编码不能为空")
private String customerNumber;
@Schema(description = "客商公司名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "客商公司名称不能为空")
private String customerName;
} }

View File

@@ -1,5 +1,6 @@
package com.zt.plat.module.base.controller.admin.base.vo; package com.zt.plat.module.base.controller.admin.base.vo;
import com.baomidou.mybatisplus.annotation.TableField;
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 lombok.Data; import lombok.Data;
@@ -37,4 +38,10 @@ public class ContactPageReqVO extends PageParam {
@Schema(description = "是否启用") @Schema(description = "是否启用")
private String isEnable; private String isEnable;
@TableField("CSTM_NUM")
private String customerNumber;
@TableField("CSTM_NAME")
private String customerName;
} }

View File

@@ -47,4 +47,12 @@ public class ContactRespVO {
@Schema(description = "是否启用") @Schema(description = "是否启用")
@ExcelProperty("是否启用") @ExcelProperty("是否启用")
private String isEnable; private String isEnable;
@Schema(description = "客商公司编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("客商公司编码")
private String customerNumber;
@Schema(description = "客商公司名称", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("客商公司名称")
private String customerName;
} }

View File

@@ -36,4 +36,12 @@ public class ContactSaveReqVO {
@Schema(description = "是否启用") @Schema(description = "是否启用")
private String isEnable; private String isEnable;
@Schema(description = "客商公司编码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "客商公司编码不能为空")
private String customerNumber;
@Schema(description = "客商公司名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "客商公司名称不能为空")
private String customerName;
} }

View File

@@ -3,6 +3,8 @@ 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.BaseDO; import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
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 jakarta.validation.constraints.NotEmpty;
import lombok.*; import lombok.*;
/** /**
* 账户条款 DO * 账户条款 DO
@@ -54,6 +56,19 @@ public class AccountDO extends BusinessBaseDO {
*/ */
@TableField("TAX_NUM") @TableField("TAX_NUM")
private String taxNumber; private String taxNumber;
/**
* 是否启用
*/
@TableField("IS_ENB")
private String isEnable;
@TableField("CSTM_NUM")
private String customerNumber;
@TableField("CSTM_NAME")
private String customerName;
/** /**
* 公司编号 * 公司编号
*/ */

View File

@@ -33,7 +33,7 @@ public class CompanyRelaDeptDO {
// 公司名称 // 公司名称
private String companyName; private String companyName;
// 部门编码 // 部门编码
private String deptNumber; private String companyNumber;
// 负责人id // 负责人id
private String leaderUserId; private String leaderUserId;
// 是否公司 // 是否公司

View File

@@ -100,4 +100,10 @@ public class ContactDO extends BusinessBaseDO {
@TableField("UPDATER_NAME") @TableField("UPDATER_NAME")
private String updaterName; private String updaterName;
@TableField("CSTM_NUM")
private String customerNumber;
@TableField("CSTM_NAME")
private String customerName;
} }

View File

@@ -20,6 +20,9 @@ public interface AccountMapper extends BaseMapperX<AccountDO> {
.eqIfPresent(AccountDO::getType, reqVO.getType()) .eqIfPresent(AccountDO::getType, reqVO.getType())
.likeIfPresent(AccountDO::getAccountName, reqVO.getAccountName()) .likeIfPresent(AccountDO::getAccountName, reqVO.getAccountName())
.eqIfPresent(AccountDO::getBankAccount, reqVO.getBankAccount()) .eqIfPresent(AccountDO::getBankAccount, reqVO.getBankAccount())
.eqIfPresent(AccountDO::getCustomerName, reqVO.getCustomerName())
.eqIfPresent(AccountDO::getCustomerNumber, reqVO.getCustomerNumber())
.eqIfPresent(AccountDO::getIsEnable, reqVO.getIsEnable())
.eqIfPresent(AccountDO::getAccountNumber, reqVO.getAccountNumber()) .eqIfPresent(AccountDO::getAccountNumber, reqVO.getAccountNumber())
.eqIfPresent(AccountDO::getTaxNumber, reqVO.getTaxNumber()) .eqIfPresent(AccountDO::getTaxNumber, reqVO.getTaxNumber())
.betweenIfPresent(AccountDO::getCreateTime, reqVO.getCreateTime()) .betweenIfPresent(AccountDO::getCreateTime, reqVO.getCreateTime())

View File

@@ -4,6 +4,7 @@ import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX; import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX; import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.zt.plat.module.base.controller.admin.base.vo.ContactPageReqVO; import com.zt.plat.module.base.controller.admin.base.vo.ContactPageReqVO;
import com.zt.plat.module.base.dal.dataobject.base.AccountDO;
import com.zt.plat.module.base.dal.dataobject.base.ContactDO; import com.zt.plat.module.base.dal.dataobject.base.ContactDO;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
@@ -20,6 +21,9 @@ public interface ContactMapper extends BaseMapperX<ContactDO> {
.eqIfPresent(ContactDO::getType, reqVO.getType()) .eqIfPresent(ContactDO::getType, reqVO.getType())
.eqIfPresent(ContactDO::getContact, reqVO.getContact()) .eqIfPresent(ContactDO::getContact, reqVO.getContact())
.eqIfPresent(ContactDO::getTel, reqVO.getTel()) .eqIfPresent(ContactDO::getTel, reqVO.getTel())
.eqIfPresent(ContactDO::getCustomerName, reqVO.getCustomerName())
.eqIfPresent(ContactDO::getCustomerNumber, reqVO.getCustomerNumber())
.eqIfPresent(ContactDO::getIsEnable, reqVO.getIsEnable())
.eqIfPresent(ContactDO::getEmail, reqVO.getEmail()) .eqIfPresent(ContactDO::getEmail, reqVO.getEmail())
.eqIfPresent(ContactDO::getFax, reqVO.getFax()) .eqIfPresent(ContactDO::getFax, reqVO.getFax())
.eqIfPresent(ContactDO::getAddress, reqVO.getAddress()) .eqIfPresent(ContactDO::getAddress, reqVO.getAddress())

View File

@@ -17,7 +17,7 @@
c.NUM as erpNumber, c.NUM as erpNumber,
c.NAME as erpName, c.NAME as erpName,
d.NAME as companyName, d.NAME as companyName,
d.CODE as deptId, d.CODE as companyNumber,
d.LEADER_USER_ID as leaderUserId, d.LEADER_USER_ID as leaderUserId,
d.IS_COMPANY as isCompany , d.IS_COMPANY as isCompany ,
d.IS_GROUP as isGroup, d.IS_GROUP as isGroup,