@@ -76,4 +76,9 @@ public class StockWaitDetailsVo extends StockWaitDetails {
*/
private String productCustomCode;
+ /**
+ * 产品sn
+ */
+ private String productSn;
+
}
@@ -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