Эх сурвалжийг харах

待入库分页添加产品sn

yzc 1 жил өмнө
parent
commit
08392d7149

+ 5 - 0
hx-wms/src/main/java/com/fjhx/wms/entity/stock/vo/StockWaitDetailsVo.java

@@ -76,4 +76,9 @@ public class StockWaitDetailsVo extends StockWaitDetails {
      */
     private String productCustomCode;
 
+    /**
+     * 产品sn
+     */
+    private String productSn;
+
 }

+ 2 - 1
hx-wms/src/main/resources/mapper/stock/StockWaitDetailsMapper.xml

@@ -16,7 +16,8 @@
             swd.create_time,
             swd.update_user,
             swd.update_time,
-            swd.victoriatourist_json
+            swd.victoriatourist_json,
+            if(sw.business_type =2,(SELECT ptd.product_sn from bytesailing_mes.production_task_detail ptd where ptd.id=sw.business_id),'') as productSn
         FROM
             stock_wait_details swd
                 JOIN stock_wait sw ON swd.stock_wait_id = sw.id