Przeglądaj źródła

租赁费用增加year_no,month_no

weijianghai 2 miesięcy temu
rodzic
commit
7dbef957ef

+ 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);