Commit 6a45626d authored by Data-王博's avatar Data-王博

修复重复推送 第一次数据错误问题,回盘文件空行问题

parent 18f0805c
......@@ -327,6 +327,7 @@ public class HuBeiServiceImpl implements IHuBeiService {
String base64String = "";
List<HuBeiHistory> errorHuBeiHistoryList = new ArrayList<>();
Date deadline = HubeiCFCUtil.getTodayDeadLine();
int cursor = 0;
if(huBeiHistoryList!=null&&huBeiHistoryList.size()>0){
int size = huBeiHistoryList.size();
for(int index=0;index<size;index++){
......@@ -363,15 +364,18 @@ public class HuBeiServiceImpl implements IHuBeiService {
logger.info("jsonBean is null, history={}", JSON.toJSONString(history));
}
}
if(index==0){
if(cursor==0){
stringBuilder.append(huBeiHandlerDispatcher.builder(hubeiCFCDataType,history));
cursor++;
}else {
stringBuilder.append("\r").append(huBeiHandlerDispatcher.builder(hubeiCFCDataType,history));
cursor++;
}
}
if(!CollectionUtils.isEmpty(errorHuBeiHistoryList)){
sendErrorMailNotice(errorHuBeiHistoryList,"以下是应扣金额与实扣金额不符:\r\n");
}
logger.info("returnDisc fileContent={}",stringBuilder.toString());
base64String = new String(Base64.encodeBase64Chunked(stringBuilder.toString().getBytes(EncodingConfig.defaultCharset)),EncodingConfig.defaultCharset);
}
......
部署须知
----
域名
financial-api.xyqb.com
maven打包 三种选项:
`-Plocal` 本地
`-Ptest` 测试环境
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment