|
|
|
@ -236,6 +236,7 @@ public class MtFactoryDataServiceImpl implements IMtFactoryDataService {
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 获取梦天的工厂的数据token |
|
|
|
|
* |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
private String getMtToken() throws NoSuchAlgorithmException { |
|
|
|
@ -298,11 +299,9 @@ public class MtFactoryDataServiceImpl implements IMtFactoryDataService {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
logger.info("##################orderStatusHandler: 异常tag={}", 0); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if("4".equals(status)){
|
|
|
|
|
//
|
|
|
|
|
// // 需要推送数据
|
|
|
|
@ -380,8 +379,6 @@ public class MtFactoryDataServiceImpl implements IMtFactoryDataService {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//拼接参数
|
|
|
|
|
MtOrderStatusDTO mtOrderStatusDTO = new MtOrderStatusDTO(); |
|
|
|
|
mtOrderStatusDTO.setInvoiceOrderCode(mtFactoryOrderMain.getInvoiceOrderCode()); |
|
|
|
@ -416,7 +413,6 @@ public class MtFactoryDataServiceImpl implements IMtFactoryDataService {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Transactional |
|
|
|
|
@Override |
|
|
|
|
public R sendReceiveInfo(ReceiveInfoDTO receiveInfoDTO) throws JsonProcessingException, NoSuchAlgorithmException { |
|
|
|
@ -511,7 +507,6 @@ public class MtFactoryDataServiceImpl implements IMtFactoryDataService {
|
|
|
|
|
logger.info("#############sendReceiveInfo:tag{}", 11); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return sendMtFactoryData(mtFactoryProperties.getUrl() + "/ZXCFaHuoDan/QianShouDan", s, 5); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
@ -520,7 +515,7 @@ public class MtFactoryDataServiceImpl implements IMtFactoryDataService {
|
|
|
|
|
@Override |
|
|
|
|
public R sendUnloadCarNum(String unloadCarNum, String data) throws ParseException, JsonProcessingException, NoSuchAlgorithmException { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
logger.info(">>>>>>sendUnloadCarNum tag ={}", 1); |
|
|
|
|
MtUnLoadCarNumDTO unLoadCarNumDTO = new MtUnLoadCarNumDTO(); |
|
|
|
|
unLoadCarNumDTO.setInvoiceOrderCode(unloadCarNum); |
|
|
|
|
unLoadCarNumDTO.setInvoiceTime(data); |
|
|
|
@ -530,13 +525,20 @@ public class MtFactoryDataServiceImpl implements IMtFactoryDataService {
|
|
|
|
|
|
|
|
|
|
//推送数据到梦天
|
|
|
|
|
//请求参数
|
|
|
|
|
return sendMtFactoryData(mtFactoryProperties.getUrl()+"/ZXCFaHuoDan/QueRenShouHuo",s,4); |
|
|
|
|
logger.info(">>>>>>sendUnloadCarNum tag ={}", 1); |
|
|
|
|
R r =sendMtFactoryData(mtFactoryProperties.getUrl() + "/ZXCFaHuoDan/QueRenShouHuo", s, 4); |
|
|
|
|
logger.info(">>>>>>sendUnloadCarNum r ={}", r); |
|
|
|
|
|
|
|
|
|
logger.info(">>>>>>sendUnloadCarNum tag ={}", 2); |
|
|
|
|
|
|
|
|
|
return r; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 封装梦天数据对接接口 |
|
|
|
|
* |
|
|
|
|
* @param url |
|
|
|
|
* @param data |
|
|
|
|
* @return |
|
|
|
|