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