Selaa lähdekoodia

零售单选择产品显示库存

liangtonghe 9 kuukautta sitten
vanhempi
säilyke
c290aeb417

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

@@ -260,10 +260,11 @@
 
     <select id="selectProductInventoryByLotNumAndProductId" resultType="com.zkqy.business.domain.ProductInventory">
         select sum(total_box_num) as totalBoxNum,sum(total_suttle) as totalSuttle from {DBNAME}.product_inventory
-        where del_flag = '0'
+        where del_flag = '0' and del_flag = '0'
         <if test="lotNum != null and lotNum != '' ">and lot_num = #{lotNum}</if>
         <if test="productId != null">and product_id = #{productId}</if>
-        <if test="productColour != null and productColour != ''">and product_colour = #{productColour}</if>
+        <if test="productColour != null and productColour != ''">and product_colour LIKE concat('%', #{productColour},
+            '%')</if>
         <if test="inventoryType != null and inventoryType != ''">and inventory_type = #{inventoryType}</if>
     </select>
 

+ 1 - 0
zkqy-ui/src/views/orderMange/retailMange/index.vue

@@ -1201,6 +1201,7 @@ export default {
         productColour =
           targetColor.materieEncoding + "" + targetColor.materieColorNumber;
       }
+      productColour =colours;
       let payload = {
         productId,
         productType,