@@ -372,6 +373,10 @@ public class GoodsServiceImpl implements GoodsService {
...
@@ -372,6 +373,10 @@ public class GoodsServiceImpl implements GoodsService {
StringcontractNo=(String)map.get("contractNo");
StringcontractNo=(String)map.get("contractNo");
Stringsql="select acg.*, asa.sWarehouseNO, w.sWarehouseName, asa.nStockQty, asa.nOnlineStockQty, asa.nLockedQty from tAgentContractGoods acg LEFT JOIN tAgentContractWarehouse acw on acw.sAgentContractNO = acg.sAgentContractNO left join tWarehouse w on w.sWarehouseNO = acw.sWarehouseNO left join tAgentStockAccount asa on asa.nAgentID = acg.nAgentID and asa.nGoodsID = acg.nGoodsID and asa.sWarehouseNO = acw.sWarehouseNO where acg.sAgentContractNO = ? and acg.nGoodsID = ?";
Stringsql="select acg.*, asa.sWarehouseNO, w.sWarehouseName, asa.nStockQty, asa.nOnlineStockQty, asa.nLockedQty from tAgentContractGoods acg LEFT JOIN tAgentContractWarehouse acw on acw.sAgentContractNO = acg.sAgentContractNO left join tWarehouse w on w.sWarehouseNO = acw.sWarehouseNO left join tAgentStockAccount asa on asa.nAgentID = acg.nAgentID and asa.nGoodsID = acg.nGoodsID and asa.sWarehouseNO = acw.sWarehouseNO where acg.sAgentContractNO = ? and acg.nGoodsID = ?";