ソースを参照

厂外库优化

xiaosonghong 1 日 前
コミット
4fcf26af04

+ 1 - 0
src/main/java/com/steerinfo/dil/service/impl/OyeResultServiceImpl.java

@@ -314,6 +314,7 @@ public class OyeResultServiceImpl implements IOyeResultService {
             oyeRealtimeInventory.setTheoryWeight(realTimeTheoryWeight.subtract(theoryWeight));
             oyeRealtimeInventory.setNetWeight(realTimeNetWeight.subtract(netWeight));
         }
+        oyeRealtimeInventory.setUpdateTime(new Date());
         return oyeRealtimeInventory;
     }
 

+ 1 - 1
src/main/resources/com/steerinfo/dil/mapper/OyeRealtimeInventoryMapper.xml

@@ -684,7 +684,7 @@
     ORI.INVENTORY_ID     "inventoryId",
     ORI.INBOUND_WAREHOUSE "inboundWarehouse",
     ORI.INBOUND_AREA     "inboundArea",
-    ORI.INSERT_TIME      "insertTime",
+    nvl(ORI.UPDATE_TIME, ORI.INSERT_TIME)      "insertTime",
     ORI.UPDATE_TIME      "updateTime",
     RC.CONSIGNEE_ID      "consigneeId",
     RC.CONSIGNEE_COMPANY_NAME    "consigneeName",