|
@@ -2202,6 +2202,8 @@ public class AmsSaleOrderServiceImpl implements IAmsSaleOrderService {
|
|
|
String oldCapacityNumber = omstruckOrderMapper.getOldCapacityNumber(oldCapacityId);
|
|
|
if(oldCapacityId.compareTo(DataChange.dataToBigDecimal(mapValue.get("capacityId"))) == 0) {
|
|
|
mapValue.put("result",1);
|
|
|
+ mapValue.put("updateFlag",1);
|
|
|
+ mapValue.put("oldCapacityNumber",oldCapacityNumber);
|
|
|
pushCarNumberToEas(mapValue);
|
|
|
return mapValue;
|
|
|
}
|
|
@@ -3205,7 +3207,6 @@ public class AmsSaleOrderServiceImpl implements IAmsSaleOrderService {
|
|
|
*/
|
|
|
@Override
|
|
|
public int pushCarNumberToEas(Map<String, Object> map) throws Exception {
|
|
|
-
|
|
|
// 调用EAS接口将车牌号传给金蝶
|
|
|
List<Map<String,Object>> mapList = new ArrayList<>();
|
|
|
|
|
@@ -3236,6 +3237,20 @@ public class AmsSaleOrderServiceImpl implements IAmsSaleOrderService {
|
|
|
//如果status不为1,抛出异常
|
|
|
if(!result.getJSONObject("res").getString("status").equals("1")){
|
|
|
throw new Exception("上传金蝶失败!请重试派车:"+result.getJSONObject("requestException").getString("message"));
|
|
|
+ }else {
|
|
|
+ if(map.get("oldCapacityNumber") != null && DataChange.dataToBigDecimal(map.get("capacityId")).compareTo(new BigDecimal(35128)) == 0) {
|
|
|
+ String url = "http://172.16.33.122:44325/api/logistics/CancleOrdersBill";
|
|
|
+ Map<String, Object> cancelOrderMap = new HashMap<>();
|
|
|
+ cancelOrderMap.put("carNo",map.get("oldCapacityNumber"));
|
|
|
+ JSONObject cancelOrderJson = new JSONObject(cancelOrderMap);
|
|
|
+ String sendUrl = url ;
|
|
|
+ String jsonData = null;
|
|
|
+ try {
|
|
|
+ jsonData = HTTPRequestUtils.send(sendUrl, cancelOrderJson,"utf-8");
|
|
|
+ } catch (org.apache.http.ParseException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|