소스 검색

选择颜色查询库存

阿赫 5 달 전
부모
커밋
58acb58159
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      zkqy-custom-business/src/main/resources/mapper/business/ProductInventoryMapper.xml

+ 1 - 1
zkqy-custom-business/src/main/resources/mapper/business/ProductInventoryMapper.xml

@@ -283,7 +283,7 @@
         <if test="lotNum != null and lotNum != '' ">and lot_num = #{lotNum}</if>
         <if test="productId != null">and a.product_id = #{productId}</if>
         <if test="productColour != null and productColour != ''">and bb.colours LIKE concat('%', #{productColour},
-            '%')</if>
+            '%')  OR a.product_colour LIKE concat('%',#{productColour},'%')</if>
         <if test="inventoryType != null and inventoryType != ''">and a.inventory_type = #{inventoryType}</if>
     </select>