修复xml传递字段,自费改为微信,pacs时间往后+1

This commit is contained in:
sangchengzhi
2026-01-12 09:32:00 +08:00
parent 7202d6778e
commit 6d3df4951a
2 changed files with 7 additions and 1 deletions

View File

@@ -285,6 +285,12 @@ public class DateUtils {
Date startDate = inputFormat.parse(startTime);
Date endDate = inputFormat.parse(endTime);
// 结束日期加一天
Calendar calendar = Calendar.getInstance();
calendar.setTime(endDate);
calendar.add(Calendar.DAY_OF_MONTH, 1);
endDate = calendar.getTime();
// 定义输出格式
SimpleDateFormat outputFormat = new SimpleDateFormat("yyyyMMdd");

View File

@@ -706,7 +706,7 @@ public class XmlUtil {
(vo.getYbtcamount() == null || vo.getYbtcamount().compareTo(BigDecimal.valueOf(0.00)) == 0) &&
vo.getZfamount().compareTo(BigDecimal.valueOf(0.00)) >= 0) {
str.append("<PayType>");
str.append("自费");
str.append("微信");
str.append("</PayType>");
} else {
str.append("<PayType>");