Parcourir la source

租赁费用增加year_no,month_no

weijianghai il y a 2 mois
Parent
commit
7dbef957ef
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/test/java/com/nokia/financeapi/shouqi/CarZuLinTests.java

+ 2 - 0
src/test/java/com/nokia/financeapi/shouqi/CarZuLinTests.java

@@ -219,6 +219,8 @@ class CarZuLinTests {
                     localDate = localDate.plusMonths(1);
                     Integer nextMonthInteger = Integer.valueOf(localDate.format(DateTimeFormatter.ofPattern("yyyyMM")));
                     t.put("year_month", nextMonthInteger.toString());
+                    t.put("year_no", localDate.format(DateTimeFormatter.ofPattern("yyyy")));
+                    t.put("month_no", localDate.format(DateTimeFormatter.ofPattern("MM")));
                     t.put("che_pai_hao", tiHuanNianYueInteger != null
                             && nextMonthInteger.compareTo(tiHuanNianYueInteger) >= 0 ? chePaiHaoTiHuan : chePaiHaoHeTong);
                     resultList.add(t);