Merge remote-tracking branch 'origin/develop' into develop

master
liuxinxin 5 years ago
commit 073fa81ccd

@ -24,15 +24,14 @@ public class CustomQueryTask {
private PmtCustomReportMapper pmtCustomReportMapper;
@Scheduled(cron = "0 0/10 * * * *")
public void customReportQuery(){
public void customReportQuery() {
List<JSONObject> reports = pmtCustomReportMapper.findCustomReportNotScucess();
if(!reports.isEmpty()){
for (JSONObject report:reports) {
//Alipay直接返回成功与否Wechat返回的结果较多成功提交至海关后状态才会变为success因此只有Wechat需要定时查询报关单状态
if(report.getString("channel").equals("Wechat")){
customSupport.queryCustomResult(report.getString("report_id"));
}
reports.forEach(report -> {
try {
customSupport.queryCustomResult(report.getString("report_id"));
} catch (Exception e) {
//donothing
}
}
});
}
}

Loading…
Cancel
Save