xiaochen před 2 roky
rodič
revize
f353769545
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      src/main/resources/mapper/DeliveryMapper.xml

+ 4 - 1
src/main/resources/mapper/DeliveryMapper.xml

@@ -172,7 +172,10 @@
     <select id="getScanIsNot" resultType="java.util.Map">
         select
             (select ifnull(amount,0) from tld_inventory where id = #{id}) as amount,
-            (select ifnull(sum(num),0) from tld_ask_goods_vitrual where wbs = #{wbs} and wllb_code = #{wllbCode} and storage_location_code = #{storageLocationCode} and produc_date = #{producDate} and account_sleeve = #{companyNumber}) as vitrualNum
+            (select ifnull(sum(num),0) from tld_ask_goods_vitrual where wbs = #{wbs} and wllb_code = #{wllbCode} and storage_location_code = #{storageLocationCode} and produc_date = #{producDate} and account_sleeve = #{companyNumber}
+              <if test="serial != null and serial !=''">
+                  and serial = #{serial}
+              </if>) as vitrualNum
         from dual
     </select>
     <!-- 查询销售交货单原始数据 -->