wangxiaoming 7 gadi atpakaļ
vecāks
revīzija
17207fbccd

+ 8 - 1
watero-rst-service/src/main/java/com/iamberry/rst/service/pts/mapper/machinePartsMapper.xml

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