|
@@ -297,14 +297,16 @@ public class HmBookOrderServiceImpl implements HmBookOrderService {
|
|
|
public int updateByBookOrderNo(String bookOrderNo, String stationCode) {
|
|
|
HmToken hmToken = hmTokenMapper.selectAll();
|
|
|
String token = hmToken.getToken();
|
|
|
- if ("147001".equals(stationCode) || StringUtils.isBlank(stationCode)) {
|
|
|
+ if ("147001".equals(stationCode) || StringUtils.isBlank(stationCode) || "null".equals(stationCode)) {
|
|
|
token = hmToken.getSubToken();
|
|
|
}
|
|
|
|
|
|
HmBookOrderDTO hmBookOrderDTO = new HmBookOrderDTO();
|
|
|
+ hmBookOrderDTO.setPageSize(1);
|
|
|
+ hmBookOrderDTO.setPageIndex(50);
|
|
|
hmBookOrderDTO.setBookOrderNo(bookOrderNo);
|
|
|
+
|
|
|
String jsonString = JSONObject.toJSONString(hmBookOrderDTO);
|
|
|
- //JSONObject jsonObject = HttpUtil.requestPost(token, jsonString, JlifeConstant.BOOK_ORDER_URL);
|
|
|
|
|
|
Map<String, Object> request = retryService.requestPost(token, jsonString, JlifeConstant.BOOK_ORDER_URL);
|
|
|
|
|
@@ -331,7 +333,7 @@ public class HmBookOrderServiceImpl implements HmBookOrderService {
|
|
|
});
|
|
|
//成功
|
|
|
hmDownHistoryService.insertDownLog("服务单",
|
|
|
- JlifeConstant.BOOK_ORDER_URL, jsonString, hmBookOrderDTO.getStartTime(), null, 0);
|
|
|
+ JlifeConstant.BOOK_ORDER_URL, bookOrderNo, null, null, 0);
|
|
|
//同步插入客户到customer_client
|
|
|
//customerClientMapper.insertClientByBatch(hmBookOrders);
|
|
|
|
|
@@ -339,7 +341,7 @@ public class HmBookOrderServiceImpl implements HmBookOrderService {
|
|
|
} else {
|
|
|
//失败
|
|
|
hmDownHistoryService.insertDownLog("服务单",
|
|
|
- JlifeConstant.BOOK_ORDER_URL, jsonString, hmBookOrderDTO.getStartTime(), null, 1);
|
|
|
+ JlifeConstant.BOOK_ORDER_URL, bookOrderNo, null, null, 1);
|
|
|
return 0;
|
|
|
}
|
|
|
}
|