Your Name 3 年之前
父節點
當前提交
458613f399

+ 1 - 1
src/main/java/com/steerinfo/dil/mapper/RmsCapacityMapper.java

@@ -18,6 +18,6 @@ public interface RmsCapacityMapper extends IBaseMapper<RmsCapacity, BigDecimal>
 
     List<Map<String,Object>> stackingId();
 
-    @Select("select seq__RMS_PWAREHOUSE_GRID.nextval from dual")
+    @Select("select seq__RMS_PWAREHOUSE_GRIDTEST.nextval from dual")
     BigDecimal gridId();
 }

+ 9 - 9
src/main/java/com/steerinfo/dil/service/impl/OmstruckOrderMaterialServiceImpl.java

@@ -4,6 +4,7 @@ import com.steerinfo.dil.mapper.OmstruckOrderMaterialMapper;
 import com.steerinfo.dil.mapper.RmsCapacityMapper;
 import com.steerinfo.dil.mapper.RmsPwarehouseGridMapper;
 import com.steerinfo.dil.model.OmstruckOrderMaterial;
+import com.steerinfo.dil.model.RmsCapacity;
 import com.steerinfo.dil.model.RmsPwarehouseGrid;
 import com.steerinfo.dil.service.IOmstruckOrderMaterialService;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -113,7 +114,7 @@ public class OmstruckOrderMaterialServiceImpl implements IOmstruckOrderMaterialS
                 for (Map<String,Object> stackingIdMap : stackingIdList) {
                     BigDecimal stackingId = (BigDecimal) stackingIdMap.get("stackingId");
                     // 遍历层次
-                    for (int i = 1; i <= 8; i++) {
+                    for (int i = 1; i <= 25; i++) {
                         // 遍历层序
                         for (int j = 1; j <= 24; j++) {
                             // 一棒库时
@@ -170,7 +171,13 @@ public class OmstruckOrderMaterialServiceImpl implements IOmstruckOrderMaterialS
                                 }
                                 // B月台
                                 if (platformId.intValue() == 4) {
-
+                                    RmsPwarehouseGrid rmsPwarehouseGrid = new RmsPwarehouseGrid();
+                                    BigDecimal gridId = gridId();
+                                    rmsPwarehouseGrid.setGridId(gridId);
+                                    rmsPwarehouseGrid.setWarehouseId(warehouseId);
+                                    rmsPwarehouseGrid.setPlatformId(platformId);
+                                    insertSelective(rmsPwarehouseGrid);
+                                    count++;
                                 }
                                 // C月台
                                 if (platformId.intValue() == 5) {
@@ -205,13 +212,6 @@ public class OmstruckOrderMaterialServiceImpl implements IOmstruckOrderMaterialS
                                     }
                                 }
                             }
-                            // 高线库时
-                            if (warehouseId.intValue() == 3) {
-                                // A月台
-                                if (platformId.intValue() == 7) {
-//                                    RmsPwarehouseGrid rmsPwarehouseGrid = new RmsPwarehouseGrid();
-                                }
-                            }
                             // 配送库时:
                             if (warehouseId.intValue() == 4) {
                                 // A月台

+ 2 - 2
src/main/resources/application-dev.yml

@@ -13,9 +13,9 @@ openfeign:
   ColumnDataFeign:
     url: ${COLUMNDATAFEIGN_URL:172.16.33.166:8083}
   TmsTruckFeign:
-    url: ${TMSTRUCKFEIGN_URL:172.16.33.162:8008}
+    url: ${TMSTRUCKFEIGN_URL:localhost:8008}
   AmsFeign:
-    url: ${AMSFEIGN_URL:172.16.33.162:8015}
+    url: ${AMSFEIGN_URL:localhost:8015}
   ImFeign:
     url: ${IMFEIGN_URL:172.16.33.162:8055}