瀏覽代碼

2023/12/25

WangRuiLin 1 年之前
父節點
當前提交
d38836bb73

+ 1 - 1
cirs-biz/src/main/java/com/cirs/biz/mapper/TVerificationTaskDetailMapper.java

@@ -66,7 +66,7 @@ public interface TVerificationTaskDetailMapper
     public List<TVerificationTaskDetail> alldata(Long taskid);
 
 
-    public Long getComponentId(@Param("attr")String attr, @Param("attr1")String attr1, @Param("attr2")String attr2);
+    public Long getComponentId(@Param("attr")String attr);
 
     public List<VerificationData> getComponentids(Long taskid);
 

+ 2 - 2
cirs-biz/src/main/java/com/cirs/biz/service/impl/TVerificationTaskDetailServiceImpl.java

@@ -212,8 +212,8 @@ public class TVerificationTaskDetailServiceImpl implements ITVerificationTaskDet
 
     @Override
     public Long setComponentId(String result) {
-//        String[] attrs = result.split("-");//切割不同属性
-        return tVerificationTaskDetailMapper.getComponentId(result, null, null);
+
+        return tVerificationTaskDetailMapper.getComponentId(result);
     }
 
     @Override

+ 1 - 2
cirs-biz/src/main/resources/mapper/biz/TVerificationTaskDetailMapper.xml

@@ -110,8 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </select>
     <select id="getComponentId" resultType="java.lang.Long">
         select id from t_electron_component where t_electron_component.component_model=#{attr}
-        <if test="attr1 != null  and attr1 != ''"> AND t_electron_component.quality_grade=#{attr1}</if>
-        <if test="attr2 != null  and attr2 != ''"> AND t_electron_component.component_name=#{attr2}</if>
+
         LIMIT 1
     </select>
     <select id="getComponentids" resultMap="VerificationData">