Pārlūkot izejas kodu

fix getComponentId bug

allen 1 gadu atpakaļ
vecāks
revīzija
e29c0ac78c

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

@@ -88,8 +88,8 @@ 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="result1 != null  and result1 != ''"> AND t_electron_component.quality_grade=#{attr1}</if>
-        <if test="result1 != null  and result1 != ''"> AND t_electron_component.component_name=#{attr2}</if>
+        <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>