联系人,账户条款新增字段,公司配置字段优化
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
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 io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
@@ -32,4 +33,13 @@ public class AccountPageReqVO extends PageParam {
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
@Schema(description = "是否启用")
|
||||
private String isEnable;
|
||||
|
||||
@Schema(description = "客商公司编码")
|
||||
private String customerNumber;
|
||||
|
||||
@Schema(description = "客商公司名称")
|
||||
private String customerName;
|
||||
|
||||
}
|
||||
@@ -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.ExcelProperty;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -40,4 +41,16 @@ public class AccountRespVO {
|
||||
@ExcelProperty("创建时间")
|
||||
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;
|
||||
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
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 jakarta.validation.constraints.NotEmpty;
|
||||
import lombok.Data;
|
||||
@@ -31,4 +32,15 @@ public class AccountSaveReqVO {
|
||||
@NotEmpty(message = "税号/社会信用代码不能为空")
|
||||
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;
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
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 io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
@@ -37,4 +38,10 @@ public class ContactPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "是否启用")
|
||||
private String isEnable;
|
||||
|
||||
@TableField("CSTM_NUM")
|
||||
private String customerNumber;
|
||||
|
||||
@TableField("CSTM_NAME")
|
||||
private String customerName;
|
||||
}
|
||||
@@ -47,4 +47,12 @@ public class ContactRespVO {
|
||||
@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;
|
||||
}
|
||||
@@ -36,4 +36,12 @@ public class ContactSaveReqVO {
|
||||
@Schema(description = "是否启用")
|
||||
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;
|
||||
|
||||
}
|
||||
@@ -3,6 +3,8 @@ package com.zt.plat.module.base.dal.dataobject.base;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import lombok.*;
|
||||
/**
|
||||
* 账户条款 DO
|
||||
@@ -54,6 +56,19 @@ public class AccountDO extends BusinessBaseDO {
|
||||
*/
|
||||
@TableField("TAX_NUM")
|
||||
private String taxNumber;
|
||||
|
||||
/**
|
||||
* 是否启用
|
||||
*/
|
||||
@TableField("IS_ENB")
|
||||
private String isEnable;
|
||||
|
||||
@TableField("CSTM_NUM")
|
||||
private String customerNumber;
|
||||
|
||||
@TableField("CSTM_NAME")
|
||||
private String customerName;
|
||||
|
||||
/**
|
||||
* 公司编号
|
||||
*/
|
||||
|
||||
@@ -33,7 +33,7 @@ public class CompanyRelaDeptDO {
|
||||
// 公司名称
|
||||
private String companyName;
|
||||
// 部门编码
|
||||
private String deptNumber;
|
||||
private String companyNumber;
|
||||
// 负责人id
|
||||
private String leaderUserId;
|
||||
// 是否公司
|
||||
|
||||
@@ -100,4 +100,10 @@ public class ContactDO extends BusinessBaseDO {
|
||||
@TableField("UPDATER_NAME")
|
||||
private String updaterName;
|
||||
|
||||
@TableField("CSTM_NUM")
|
||||
private String customerNumber;
|
||||
|
||||
@TableField("CSTM_NAME")
|
||||
private String customerName;
|
||||
|
||||
}
|
||||
@@ -20,6 +20,9 @@ public interface AccountMapper extends BaseMapperX<AccountDO> {
|
||||
.eqIfPresent(AccountDO::getType, reqVO.getType())
|
||||
.likeIfPresent(AccountDO::getAccountName, reqVO.getAccountName())
|
||||
.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::getTaxNumber, reqVO.getTaxNumber())
|
||||
.betweenIfPresent(AccountDO::getCreateTime, reqVO.getCreateTime())
|
||||
|
||||
@@ -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.query.LambdaQueryWrapperX;
|
||||
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 org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@@ -20,6 +21,9 @@ public interface ContactMapper extends BaseMapperX<ContactDO> {
|
||||
.eqIfPresent(ContactDO::getType, reqVO.getType())
|
||||
.eqIfPresent(ContactDO::getContact, reqVO.getContact())
|
||||
.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::getFax, reqVO.getFax())
|
||||
.eqIfPresent(ContactDO::getAddress, reqVO.getAddress())
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
c.NUM as erpNumber,
|
||||
c.NAME as erpName,
|
||||
d.NAME as companyName,
|
||||
d.CODE as deptId,
|
||||
d.CODE as companyNumber,
|
||||
d.LEADER_USER_ID as leaderUserId,
|
||||
d.IS_COMPANY as isCompany ,
|
||||
d.IS_GROUP as isGroup,
|
||||
|
||||
Reference in New Issue
Block a user