|
@@ -1,10 +1,12 @@
|
|
|
package com.jjt.doc.controller;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
import java.io.IOException;
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
+import com.jjt.common.core.utils.DateUtils;
|
|
|
import com.jjt.common.security.utils.SecurityUtils;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -37,6 +39,18 @@ public class DocInfoController extends BaseController {
|
|
|
private IDocInfoService docInfoService;
|
|
|
|
|
|
/**
|
|
|
+ * 获取文档年份列表
|
|
|
+ */
|
|
|
+ @GetMapping(value = "/years")
|
|
|
+ public AjaxResult getYears() {
|
|
|
+ List<Integer> list = new ArrayList<>();
|
|
|
+ for (int i = 2023; i <= DateUtils.getCurrentYear(); i++) {
|
|
|
+ list.add(i);
|
|
|
+ }
|
|
|
+ return success(list);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 查询文档基本信息列表
|
|
|
*/
|
|
|
// @RequiresPermissions("doc:info:list")
|