bugfix:移动医保对账

This commit is contained in:
Yuan
2025-12-23 09:24:28 +08:00
parent f084043a4b
commit ae385398fc
13 changed files with 502 additions and 9 deletions

View File

@@ -452,6 +452,16 @@ public class PaymentStatisticsController {
public HashMap<Object, Object> findTenpaySummary(String startTime, String endTime) {
HashMap<Object, Object> response = new HashMap<>();
try {
// 如果未选择日期,则默认查询昨日到今日,避免无条件查全量
if ((startTime == null || "".equals(startTime.trim())) && (endTime == null || "".equals(endTime.trim()))) {
Calendar calendar = Calendar.getInstance();
calendar.setTime(new Date());
calendar.add(Calendar.DATE, -1);
Date startDate = calendar.getTime();
startTime = DateDUtil.DateToStr(DateDUtil.yyyy_MM_dd, startDate);
endTime = DateDUtil.getCurrentDate(DateDUtil.yyyy_MM_dd);
}
HashMap<Object, Object> map = new HashMap<>();
map.put("startTime", startTime);
map.put("endTime", endTime);