Browse Source

修复年份

jinxia.mo 1 tháng trước cách đây
mục cha
commit
823f453e7e

+ 2 - 2
ie-admin/src/main/java/com/ruoyi/web/controller/front/UserController.java

@@ -137,8 +137,8 @@ public class UserController extends BaseController {
         List<JSONObject> resultList = new ArrayList<>();
         for(int i = year; i <= year + 6; i++) {
             JSONObject o = new JSONObject();
-            o.put("dictValue", year);
-            o.put("dictLabel", year.toString());
+            o.put("dictValue", i);
+            o.put("dictLabel", String.valueOf(i));
             resultList.add(o);
         }
         return AjaxResult.success(resultList);