|
@@ -164,7 +164,8 @@ public class MuseumInfoController {
|
|
|
int currentYear =date.getYear();
|
|
|
List<MuseuminfoMonthSaveVO> result = new ArrayList<>();
|
|
|
for (int month = 1 ; month <= 12 ; month++) {
|
|
|
- int number = countSampleNumbers(museumInfoService.MuseumInfoBySaveOut(month, currentYear));
|
|
|
+ //TODO 可以直接使用List<String>.size(),就不用写一个countSampleNumbers来计算list中元素的个数了
|
|
|
+ int number = museumInfoService.MuseumInfoBySaveOut(month, currentYear).size();
|
|
|
MuseuminfoMonthSaveVO re = new MuseuminfoMonthSaveVO();
|
|
|
re.setMonth(month);
|
|
|
re.setCount(number);
|
|
@@ -210,6 +211,7 @@ public class MuseumInfoController {
|
|
|
map.put(year,innerMap);
|
|
|
result.add(map);
|
|
|
}
|
|
|
+
|
|
|
return CommonResult.success(result);
|
|
|
}
|
|
|
|
|
@@ -233,8 +235,6 @@ public class MuseumInfoController {
|
|
|
return count;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
@GetMapping("/originCount")
|
|
|
@Operation(summary = "标本来源计数")
|
|
|
public CommonResult<List<Map<Integer,Object>>> getOrigin(){
|
|
@@ -261,6 +261,7 @@ public class MuseumInfoController {
|
|
|
}
|
|
|
return CommonResult.success(result);
|
|
|
}
|
|
|
+
|
|
|
@GetMapping("/get-import-sample")
|
|
|
@Operation(summary = "获得导入标本模板")
|
|
|
public void importSample(HttpServletResponse response) throws IOException {
|
|
@@ -286,7 +287,6 @@ public class MuseumInfoController {
|
|
|
return success(museumInfoService.importSampleList(list, updateSupport));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ //TODO 有空可以研究一下Excel导出
|
|
|
+ // 参考yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/UserController.java文件下的exportUserList接口方法
|
|
|
}
|