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