buhuazhen
2026-04-16 df13b146673c8fc43a7495a6d017383b80346948
feat(supplier): 增加供应商类型字段支持

- 在 SupplierManage 实体中新增 supplierType 字段及相关注解
- 在 SupplierManageExcelDto 中添加 supplierType 字段及 Excel 注解
- 修改 SupplierManageMapper.xml,查询结果包含 supplier_type 字段
- 调整 SupplierManage 中 supplierType 字段位置,移除重复定义
已修改3个文件
15 ■■■■ 文件已修改
src/main/java/com/ruoyi/basic/excel/SupplierManageExcelDto.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/basic/pojo/SupplierManage.java 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/basic/SupplierManageMapper.xml 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/basic/excel/SupplierManageExcelDto.java
@@ -15,6 +15,9 @@
    @Excel(name = "供应商名称")
    private String supplierName;
    @Excel(name = "供应商类型")
    private String supplierType;
    @Excel(name = "纳税人识别号")
    private String taxpayerIdentificationNum;
src/main/java/com/ruoyi/basic/pojo/SupplierManage.java
@@ -20,6 +20,11 @@
    @Excel(name = "供应商名称")
    private String supplierName;
    @ApiModelProperty(value = "供应商类型")
    @TableField(value = "supplier_type")
    @Excel(name = "供应商名称")
    private String supplierType;
    @ApiModelProperty(value = "纳税人识别号")
    @Excel(name = "纳税人识别号")
    private String taxpayerIdentificationNum;
@@ -80,9 +85,7 @@
    @TableField(fill = FieldFill.INSERT)
    private Long tenantId;
    @ApiModelProperty(value = "供应商类型")
    @TableField(value = "supplier_type")
    private String supplierType;
    @TableField(fill = FieldFill.INSERT)
    private Long deptId;
src/main/resources/mapper/basic/SupplierManageMapper.xml
@@ -56,7 +56,8 @@
        T1.update_user,
        T1.tenant_id,
        T1.is_white,
        T2.nick_name AS maintainUserName
        T2.nick_name AS maintainUserName,
        T1.supplier_type
        FROM supplier_manage T1
        LEFT JOIN sys_user T2 ON T1.maintain_user_id = T2.user_id
        <where>