Commit 96918b420347159d53e67014b56cbcb04f6edede

Authored by YunaiV
1 parent 9307f567

🐛 fix(system):修复租户 get-by-website 接口不支持端口的问题

🐛 fix(mes):修复常见缺陷的「检测项类型」错用独立字典的问题

「常见缺陷」与「检测项设置」的「检测项类型」语义一致,应共用同一份字典;DefectForm 与列表页统一改为 MES_INDICATOR_TYPE,并清理未使用的 MES_DEFECT_TYPE 常量。
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/controller/admin/qc/defect/vo/MesQcDefectRespVO.java
@@ -29,7 +29,7 @@ public class MesQcDefectRespVO { @@ -29,7 +29,7 @@ public class MesQcDefectRespVO {
29 29
30 @Schema(description = "检测项类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") 30 @Schema(description = "检测项类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
31 @ExcelProperty(value = "检测项类型", converter = DictConvert.class) 31 @ExcelProperty(value = "检测项类型", converter = DictConvert.class)
32 - @DictFormat(DictTypeConstants.MES_DEFECT_TYPE) 32 + @DictFormat(DictTypeConstants.MES_INDICATOR_TYPE)
33 private Integer type; 33 private Integer type;
34 34
35 @Schema(description = "缺陷等级", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") 35 @Schema(description = "缺陷等级", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/dal/dataobject/qc/defect/MesQcDefectDO.java
@@ -38,7 +38,7 @@ public class MesQcDefectDO extends BaseDO { @@ -38,7 +38,7 @@ public class MesQcDefectDO extends BaseDO {
38 /** 38 /**
39 * 检测项类型 39 * 检测项类型
40 * 40 *
41 - * 字典类型 {@link cn.iocoder.yudao.module.mes.enums.DictTypeConstants#MES_DEFECT_TYPE} 41 + * 字典类型 {@link cn.iocoder.yudao.module.mes.enums.DictTypeConstants#MES_INDICATOR_TYPE}
42 */ 42 */
43 private Integer type; 43 private Integer type;
44 /** 44 /**
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/enums/DictTypeConstants.java
@@ -71,7 +71,6 @@ public interface DictTypeConstants { @@ -71,7 +71,6 @@ public interface DictTypeConstants {
71 // ========== 质量管理 (QC) ========== 71 // ========== 质量管理 (QC) ==========
72 String MES_INDICATOR_TYPE = "mes_indicator_type"; // MES 检测项类型 72 String MES_INDICATOR_TYPE = "mes_indicator_type"; // MES 检测项类型
73 String MES_QC_RESULT_TYPE = "mes_qc_result_type"; // MES 质检结果值类型 73 String MES_QC_RESULT_TYPE = "mes_qc_result_type"; // MES 质检结果值类型
74 - String MES_DEFECT_TYPE = "mes_defect_type"; // MES 缺陷检测项类型  
75 String MES_DEFECT_LEVEL = "mes_defect_level"; // MES 缺陷等级 74 String MES_DEFECT_LEVEL = "mes_defect_level"; // MES 缺陷等级
76 String MES_QC_TYPE = "mes_qc_type"; // MES 检测种类(IQC/IPQC/OQC/RQC) 75 String MES_QC_TYPE = "mes_qc_type"; // MES 检测种类(IQC/IPQC/OQC/RQC)
77 String MES_IPQC_TYPE = "mes_ipqc_type"; // MES IPQC 检验类型 76 String MES_IPQC_TYPE = "mes_ipqc_type"; // MES IPQC 检验类型