|
@@ -43,9 +43,13 @@
|
|
|
</if>
|
|
|
<if test="componentsNo != null and componentsNo != ''">
|
|
|
AND components_no = #{componentsNo}
|
|
|
- </if>
|
|
|
+ </if>
|
|
|
+ <if test="componentsId != null">
|
|
|
+ AND components_id = #{componentsId}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
+
|
|
|
<select id="listPtsComponents" parameterType="PtsComponents" resultType="PtsComponents" >
|
|
|
SELECT
|
|
|
t.components_id AS componentsId,
|
|
@@ -73,6 +77,9 @@
|
|
|
<if test="componentsStatus !=null">
|
|
|
AND t.components_status = #{componentsStatus}
|
|
|
</if>
|
|
|
+ <if test="componentsId !=null">
|
|
|
+ AND t.components_id = #{componentsId}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
</mapper>
|