|
@@ -867,8 +867,9 @@ public class WmScorePackageSettleNoteServiceImpl extends ServiceImpl<WmScorePack
|
|
|
// 发起结算
|
|
|
HttpHeaders headers = new HttpHeaders();
|
|
|
headers.setContentType(MediaType.APPLICATION_JSON);
|
|
|
+ log.info("政企之星结算req: {}", params);
|
|
|
HttpEntity<String> result = new RestTemplate().exchange(gigSettleUrl, HttpMethod.POST, new HttpEntity<>(params, headers), String.class);
|
|
|
- log.warn("政企之星结算: {}", result.getBody());
|
|
|
+ log.info("政企之星结算resp: {}", result.getBody());
|
|
|
if (!JSONUtil.isJson(result.getBody())) {
|
|
|
return R.failed("结算失败");
|
|
|
}
|
|
@@ -906,6 +907,7 @@ public class WmScorePackageSettleNoteServiceImpl extends ServiceImpl<WmScorePack
|
|
|
}
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
+ log.error("", e);
|
|
|
noteIds.forEach(id -> {
|
|
|
WmScorePackageSettleNote note = new WmScorePackageSettleNote();
|
|
|
note.setId(id);
|
|
@@ -1271,8 +1273,9 @@ public class WmScorePackageSettleNoteServiceImpl extends ServiceImpl<WmScorePack
|
|
|
// 发起结算
|
|
|
HttpHeaders headers = new HttpHeaders();
|
|
|
headers.setContentType(MediaType.APPLICATION_JSON);
|
|
|
+ log.info("政企之星结算req: {}", params);
|
|
|
HttpEntity<String> result = new RestTemplate().exchange(gigSettleUrl, HttpMethod.POST, new HttpEntity<>(params, headers), String.class);
|
|
|
- log.warn("政企之星结算: {}", result.getBody());
|
|
|
+ log.info("政企之星结算resp: {}", result.getBody());
|
|
|
if (!JSONUtil.isJson(result.getBody())) {
|
|
|
return R.failed("结算失败");
|
|
|
}
|
|
@@ -1299,6 +1302,7 @@ public class WmScorePackageSettleNoteServiceImpl extends ServiceImpl<WmScorePack
|
|
|
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
+ log.error("", e);
|
|
|
log.warn("政企之星结算提交失败: {}", note.getSettleNo());
|
|
|
note.setUpdateTime(LocalDateTime.now());
|
|
|
note.setSettleNoteStatus(DingEnum.NOTE_STATUS_FAIL.getType());
|