|
@@ -24,10 +24,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.text.ParseException;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
-import java.util.Date;
|
|
|
-import java.util.HashMap;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
+import java.util.*;
|
|
|
|
|
|
//import com.sun.org.apache.bcel.internal.generic.IF_ACMPEQ;
|
|
|
|
|
@@ -722,10 +719,8 @@ public class AmsSaleOrderController extends BaseRESTfulController {
|
|
|
return failed("匹配不到车牌号!");
|
|
|
}
|
|
|
else {
|
|
|
- for (Map<String, Object> map : mapList) {
|
|
|
// 调用EAS接口将车牌号传给金蝶
|
|
|
- BigDecimal saleOrderMaterialId = new BigDecimal((Integer) map.get("saleOrderMaterialId")) ;
|
|
|
- Map<String,Object> input = joinFeign.findCarNumberByOrderId(saleOrderMaterialId);
|
|
|
+ Map<String,Object> input = joinFeign.findCarNumberByOrderList(mapList);
|
|
|
Map<String, Object> totalMap = easCapacityTestUtil.getTotalMap();
|
|
|
totalMap.put("input",input);
|
|
|
System.out.println(totalMap);
|
|
@@ -736,7 +731,6 @@ public class AmsSaleOrderController extends BaseRESTfulController {
|
|
|
throw new Exception("登录金蝶失败");
|
|
|
}
|
|
|
System.out.println(s);
|
|
|
- }
|
|
|
return success(result);
|
|
|
}
|
|
|
}
|
|
@@ -1178,8 +1172,9 @@ public class AmsSaleOrderController extends BaseRESTfulController {
|
|
|
}
|
|
|
else {
|
|
|
// 调用EAS接口将车牌号传给金蝶
|
|
|
- BigDecimal saleOrderMaterialId = new BigDecimal((Integer) mapValue.get("saleOrderMaterialId"));
|
|
|
- Map<String, Object> input = joinFeign.findCarNumberByOrderId(saleOrderMaterialId);
|
|
|
+ List<Map<String,Object>> mapList = new ArrayList<>();
|
|
|
+ mapList.add(mapValue);
|
|
|
+ Map<String, Object> input = joinFeign.findCarNumberByOrderList(mapList);
|
|
|
Map<String, Object> totalMap = easCapacityTestUtil.getTotalMap();
|
|
|
totalMap.put("input", input);
|
|
|
System.out.println(totalMap);
|