update:对账消息推送,军保账单统计,退款数据统计
This commit is contained in:
@@ -47,7 +47,7 @@ public class ReconciliationMethod {
|
||||
|
||||
|
||||
HisbillsHistoryService hisbillsHistoryService = GetBeanUtil.getBean(HisbillsHistoryServiceImpl.class);
|
||||
|
||||
OperatorService operatorService = GetBeanUtil.getBean(OperatorServiceImpl.class);
|
||||
|
||||
//记录是第几次对账
|
||||
int managerNum = 0;
|
||||
@@ -56,6 +56,12 @@ public class ReconciliationMethod {
|
||||
searchMap.put("trade_date", trade_date);
|
||||
searchMap.put("is_ok", 1);
|
||||
|
||||
//查询军保操作员,用于排除军保账单
|
||||
List<HashMap<Object, Object>> militaryOperators = operatorService.findMilitaryOperators(new HashMap<>());
|
||||
if (militaryOperators != null && militaryOperators.size() > 0) {
|
||||
searchMap.put("excludeMilitaryOperators", militaryOperators);
|
||||
}
|
||||
|
||||
//先判断是否已生成
|
||||
List<HashMap<Object, Object>> reconciliationLog = reconciliationLogService.findReconciliationLogByParam(searchMap);
|
||||
|
||||
@@ -803,6 +809,22 @@ public class ReconciliationMethod {
|
||||
}
|
||||
|
||||
reconciliationLogService.insertReconciliationLog(addMap);
|
||||
|
||||
// 对账完成后发送消息通知
|
||||
try {
|
||||
NotifyService notifyService = (NotifyService) GetBeanUtil.getBean("notifyServiceImpl");
|
||||
if (notifyService != null) {
|
||||
String status = "0".equals(errCode) ? "1" : "0"; // 1:成功 0:失败
|
||||
String message = "0".equals(errCode) ? "对账完成" : errMsg;
|
||||
notifyService.sendReconciliationNotify(trade_date, status, message);
|
||||
System.out.println("对账通知发送完成,日期:" + trade_date + ",状态:" + ("1".equals(status) ? "成功" : "失败"));
|
||||
}
|
||||
} catch (Exception e) {
|
||||
System.err.println("发送对账通知失败:" + e.getMessage());
|
||||
e.printStackTrace();
|
||||
// 消息推送失败不影响对账结果
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
errCode = "999";
|
||||
|
||||
Reference in New Issue
Block a user