guarantee-lsq il y a 2 ans
Parent
commit
6c0d60338a

+ 2 - 0
platform-dao/src/main/java/com/platform/dao/vo/query/repair/RepairSchemeVO.java

@@ -88,4 +88,6 @@ public class RepairSchemeVO extends BaseVO implements Serializable {
     private String errorTypeId; // 异常类别
 
     private String errorContent; // 故障描述
+
+    private String sbName; // 设备名称
 }

+ 2 - 2
platform-dao/src/main/resources/mapper/repair/RepairSchemeMapper.xml

@@ -78,8 +78,8 @@
     </sql>
     <select id="selectList" parameterType="com.platform.dao.dto.repair.RepairSchemeDTO"
             resultType="com.platform.dao.vo.query.repair.RepairSchemeVO">
-        select repair.*
-        from t_repair_scheme as repair
+        select repair.*,sb.name as sbName
+        from t_repair_scheme as repair join t_sb_info sb on repair.sb_id = sb.id
         <where>
             <include refid="List_Condition"/>
         </where>

+ 1 - 1
platform-dao/src/main/resources/mapper/sb/SbModelSpareBomMapper.xml

@@ -59,7 +59,7 @@
 
     <select id="selectLongYanVOList" parameterType="com.platform.dao.dto.store.SpareStoreDTO"
             resultType="com.platform.dao.vo.query.store.SpareStoreVO">
-        select
+        select bom.id,
         bom.spare_name as spareName,bom.no as no,bom.ggxh as ggxh from t_sb_model_spare_bom bom
         <where>
             <if test="spareId != null">