|
@@ -307,7 +307,7 @@ public class UplodeUtil {
|
|
*/
|
|
*/
|
|
public static String uploadLoad(HyCarrierInfo hyCarrierInfo) throws Exception {
|
|
public static String uploadLoad(HyCarrierInfo hyCarrierInfo) throws Exception {
|
|
LoadUtil loadUtil = new LoadUtil();
|
|
LoadUtil loadUtil = new LoadUtil();
|
|
- loadUtil.setShippingNoteNumber(hyCarrierInfo.getOrderNo());
|
|
|
|
|
|
+ loadUtil.setShippingNoteNumber(hyCarrierInfo.getTripartiteNo());
|
|
loadUtil.setSerialNumber("0000");
|
|
loadUtil.setSerialNumber("0000");
|
|
//装车标识
|
|
//装车标识
|
|
if ("1".equals(hyCarrierInfo.getLoadingFlag())){
|
|
if ("1".equals(hyCarrierInfo.getLoadingFlag())){
|
|
@@ -481,17 +481,41 @@ public class UplodeUtil {
|
|
JSONObject addressInfoDTO = new JSONObject();
|
|
JSONObject addressInfoDTO = new JSONObject();
|
|
addressInfoDTO.put("senderName", orderInfo.getCargoOwner());
|
|
addressInfoDTO.put("senderName", orderInfo.getCargoOwner());
|
|
addressInfoDTO.put("senderPhone", orderInfo.getCargoOwnerPhone());
|
|
addressInfoDTO.put("senderPhone", orderInfo.getCargoOwnerPhone());
|
|
- addressInfoDTO.put("senderProvince", orderInfo.getSendPrivate());
|
|
|
|
- addressInfoDTO.put("senderCity", orderInfo.getSendCity());
|
|
|
|
- addressInfoDTO.put("senderDistrict", orderInfo.getSendArea());
|
|
|
|
|
|
+ HyCommonSysParameter hyCommonSysParameter = uplodeUtil.commonSysParameterService.selectOne(new EntityWrapper<HyCommonSysParameter>()
|
|
|
|
+ .eq("const_id", "REGION1").eq("const_value", orderInfo.getSendPrivate()));
|
|
|
|
+ if (hyCommonSysParameter!=null) {
|
|
|
|
+ addressInfoDTO.put("senderProvince", hyCommonSysParameter.getConstKey());
|
|
|
|
+ }
|
|
|
|
+ HyCommonSysParameter hyCommonSysParameter2 = uplodeUtil.commonSysParameterService.selectOne(new EntityWrapper<HyCommonSysParameter>()
|
|
|
|
+ .eq("const_id", "REGION1").eq("const_value", orderInfo.getSendCity()));
|
|
|
|
+ if (hyCommonSysParameter2!=null) {
|
|
|
|
+ addressInfoDTO.put("senderCity",hyCommonSysParameter2.getConstKey());
|
|
|
|
+ }
|
|
|
|
+ HyCommonSysParameter hyCommonSysParameter3 = uplodeUtil.commonSysParameterService.selectOne(new EntityWrapper<HyCommonSysParameter>()
|
|
|
|
+ .eq("const_id", "REGION1").eq("const_value", orderInfo.getSendArea()));
|
|
|
|
+ if (hyCommonSysParameter3!=null) {
|
|
|
|
+ addressInfoDTO.put("senderDistrict", hyCommonSysParameter3.getConstKey());
|
|
|
|
+ }
|
|
addressInfoDTO.put("senderLocation", orderInfo.getSendDetailedAddress());
|
|
addressInfoDTO.put("senderLocation", orderInfo.getSendDetailedAddress());
|
|
addressInfoDTO.put("senderLng", orderInfo.getSendLongitude());
|
|
addressInfoDTO.put("senderLng", orderInfo.getSendLongitude());
|
|
addressInfoDTO.put("senderLat", orderInfo.getSendLatitude());
|
|
addressInfoDTO.put("senderLat", orderInfo.getSendLatitude());
|
|
addressInfoDTO.put("receiverName", orderInfo.getShipToName());
|
|
addressInfoDTO.put("receiverName", orderInfo.getShipToName());
|
|
addressInfoDTO.put("receiverPhone", "");
|
|
addressInfoDTO.put("receiverPhone", "");
|
|
- addressInfoDTO.put("receiverProvince", orderInfo.getUnloadPrivate());
|
|
|
|
- addressInfoDTO.put("receiverCity", orderInfo.getUnloadCity());
|
|
|
|
- addressInfoDTO.put("receiverDistrict", orderInfo.getUnloadArea());
|
|
|
|
|
|
+ HyCommonSysParameter hyCommonSysParameter4 = uplodeUtil.commonSysParameterService.selectOne(new EntityWrapper<HyCommonSysParameter>()
|
|
|
|
+ .eq("const_id", "REGION1").eq("const_value", orderInfo.getUnloadPrivate()));
|
|
|
|
+ if (hyCommonSysParameter4!=null) {
|
|
|
|
+ addressInfoDTO.put("receiverProvince", hyCommonSysParameter4.getConstKey());
|
|
|
|
+ }
|
|
|
|
+ HyCommonSysParameter hyCommonSysParameter5 = uplodeUtil.commonSysParameterService.selectOne(new EntityWrapper<HyCommonSysParameter>()
|
|
|
|
+ .eq("const_id", "REGION1").eq("const_value", orderInfo.getUnloadCity()));
|
|
|
|
+ if (hyCommonSysParameter5!=null) {
|
|
|
|
+ addressInfoDTO.put("receiverCity",hyCommonSysParameter5.getConstKey());
|
|
|
|
+ }
|
|
|
|
+ HyCommonSysParameter hyCommonSysParameter6 = uplodeUtil.commonSysParameterService.selectOne(new EntityWrapper<HyCommonSysParameter>()
|
|
|
|
+ .eq("const_id", "REGION1").eq("const_value", orderInfo.getUnloadArea()));
|
|
|
|
+ if (hyCommonSysParameter6!=null) {
|
|
|
|
+ addressInfoDTO.put("receiverDistrict", hyCommonSysParameter6.getConstKey());
|
|
|
|
+ }
|
|
addressInfoDTO.put("receiverLocation", orderInfo.getUnloadDetailedAddress());
|
|
addressInfoDTO.put("receiverLocation", orderInfo.getUnloadDetailedAddress());
|
|
addressInfoDTO.put("treceiverLng", orderInfo.getUnsendLongitude());
|
|
addressInfoDTO.put("treceiverLng", orderInfo.getUnsendLongitude());
|
|
addressInfoDTO.put("treceiverLat", orderInfo.getUnsendLatitude());
|
|
addressInfoDTO.put("treceiverLat", orderInfo.getUnsendLatitude());
|
|
@@ -512,9 +536,9 @@ public class UplodeUtil {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
carrierInfoDTO.put("carLicensePlate", orderInfo.getCarNumber());
|
|
carrierInfoDTO.put("carLicensePlate", orderInfo.getCarNumber());
|
|
- carrierInfoDTO.put("carrierTransportCost", orderInfo.getFreight());
|
|
|
|
|
|
+ carrierInfoDTO.put("carrierTransportCost", 0);
|
|
carrierInfoDTO.put("oilCardPaymenet", 0);
|
|
carrierInfoDTO.put("oilCardPaymenet", 0);
|
|
- carrierInfoDTO.put("prePayment", orderInfo.getAdvanceCharge());
|
|
|
|
|
|
+ carrierInfoDTO.put("prePayment", 0);
|
|
carrierInfoDTO.put("arrivePayment",0);
|
|
carrierInfoDTO.put("arrivePayment",0);
|
|
carrierInfoDTO.put("receiptPayment", 0);
|
|
carrierInfoDTO.put("receiptPayment", 0);
|
|
carrierInfoDTO.put("informationPayment", 0);
|
|
carrierInfoDTO.put("informationPayment", 0);
|