Sfoglia il codice sorgente

【奥维-赛力斯】

DINGYL 2 settimane fa
parent
commit
2a16f97cf7
1 ha cambiato i file con 1 aggiunte e 17 eliminazioni
  1. 1 17
      src/test/java/com/uas/eis/UasEisApplicationTests.java

+ 1 - 17
src/test/java/com/uas/eis/UasEisApplicationTests.java

@@ -28,7 +28,6 @@ public class UasEisApplicationTests {
 
 	@Test
 	public void test() {
-		seresService.getERPStock();
 	}
 
 	@Test
@@ -48,20 +47,5 @@ public class UasEisApplicationTests {
 		System.out.println("reqBody:"+reqBody.toString());
 		HttpUtil.Response response = HttpUtil.doPost(tokenUrl,reqBody.toString(),false,null);
 	}
-	@Test
-	public void test2() {
-		String gridStore="[{\"SerialNumber\": 1,\"FactoryCode\": \"F001\",\"WarehouseCode\": \"WH001\",\"SupplierCode\": \"SUP001\",\"SupplierName\": \"华域模具\",\"MaterialCode\": \"CMP-AXLE-001\",\"MaterialName\": \"前轴组件\",\"AlertType\": \"LowStock\",\"AlertLevel\": \"High\",\"UpperLimit\": 200.00,\"LowerLimit\": 100.00,\"CurrentValue\": 80.00,\"VarianceQty\": -20.00,\"VariancePercent\": -20.00,\"AlertTime\": \"2025-09-15T10:30:00\",\"Remark\": \"可用库存低于安全库存阈值20%\",\"Attribute1\": \"\",\"Attribute2\": \"\",\"Attribute3\": \"\",\"Attribute4\": \"\",\"Attribute5\": \"\"},{\"SerialNumber\": 2,\"FactoryCode\": \"F002\",\"WarehouseCode\": \"WH003\",\"SupplierCode\": \"SUP002\",\"SupplierName\": \"博世电子\",\"MaterialCode\": \"ELEC-ECU-002\",\"MaterialName\": \"电子控制单元\",\"AlertType\": \"OverStock\",\"AlertLevel\": \"Medium\",\"UpperLimit\": 150.00,\"LowerLimit\": 50.00,\"CurrentValue\": 210.00,\"VarianceQty\": 60.00,\"VariancePercent\": 40.00,\"AlertTime\": \"2025-09-16T14:45:30\",\"Remark\": \"库存超过上限40%,存在积压风险\",\"Attribute1\": \"需求预测下调\",\"Attribute2\": \"\",\"Attribute3\": \"\",\"Attribute4\": \"\",\"Attribute5\": \"\"}]";
-		//grid = BaseUtil.parseGridStoreToMaps(gridStore);
-		/*List<SeresStockAlertInfo> dets= JacksonUtil.fromJsonArray(gridStore);
-		for (SeresStockAlertInfo info : dets) {
-			System.out.println(info.getSerialNumber());
-		}*/
-		System.out.println(seresConfig.getClientCode());
-		/*SpObserver.putSp("AW_ZHJK");
-		seresService.saveAlert(gridStore);*/
-		/*List<Map<String, Object>> dets = FlexJsonUtil.fromJsonArray(gridStore, HashMap.class);
-		for (Map<String, Object> det : dets) {
-			System.out.println(det.get("SerialNumber"));
-		}*/
-	}
+
 }