Browse Source

fix getComponentId bug

allen 1 year ago
parent
commit
e29c0ac78c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      cirs-biz/src/main/resources/mapper/biz/SysTrainMapper.xml

+ 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>