|
@@ -11,6 +11,7 @@ import com.steerinfo.dil.util.DataChange;
|
|
|
import com.steerinfo.dil.util.HTTPRequestUtils;
|
|
|
import com.steerinfo.dil.util.getRequestUtils;
|
|
|
import io.swagger.models.auth.In;
|
|
|
+import org.apache.http.ParseException;
|
|
|
import org.apache.poi.ss.formula.functions.T;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -105,13 +106,22 @@ public class TmstruckMeasureCommissionServiceImpl implements ITmstruckMeasureCom
|
|
|
String url = "http://172.16.33.122:44325/api/logistics/modifyLoadPlace";
|
|
|
String ysdd = (String) map.get("orderNumber");
|
|
|
String memo = (String) map.get("insertUpdateRemark");
|
|
|
- String sendUrl = url + "?ysdd=" + ysdd + "&loadingPace=" + loadingPace;
|
|
|
+ Map<String, Object> loadMap = new HashMap<>();
|
|
|
+ loadMap.put("ysdd",ysdd);
|
|
|
+ loadMap.put("loadingPace",loadingPace);
|
|
|
if (memo != null) {
|
|
|
- sendUrl += "&memo=" + memo;
|
|
|
+ loadMap.put("memo",memo);
|
|
|
+ }
|
|
|
+ JSONObject json = new JSONObject(loadMap);
|
|
|
+ String sendUrl = url ;
|
|
|
+ String jsonData = null;
|
|
|
+ try {
|
|
|
+ jsonData = HTTPRequestUtils.send(sendUrl, json,"utf-8");
|
|
|
+ } catch (ParseException e) {
|
|
|
+ e.printStackTrace();
|
|
|
}
|
|
|
- String jsonData = getRequestUtils.doGet(sendUrl);
|
|
|
System.out.println(sendUrl);
|
|
|
- System.out.println("委托已发送" + jsonData);
|
|
|
+ System.out.println("装货点已发送" + json);
|
|
|
MeasureJsonData measureJsonData = new MeasureJsonData();
|
|
|
BigDecimal measureId = measureJsonDataMapper.selectMaxId();
|
|
|
//设置主键id
|
|
@@ -582,7 +592,6 @@ public class TmstruckMeasureCommissionServiceImpl implements ITmstruckMeasureCom
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
jsonObject.put("data", sendMap);
|
|
|
String jsonData = null;
|
|
|
-
|
|
|
try {
|
|
|
jsonData = HTTPRequestUtils.send(daGangUrl, jsonObject, "utf-8");
|
|
|
} catch (IOException e) {
|