|
@@ -106,6 +106,12 @@ public class ReportController {
|
|
|
return reportService.getReport(date, request);
|
|
|
}
|
|
|
|
|
|
+ @RequestMapping("/getCardTime")
|
|
|
+ public HttpRespMsg getCardTime(@RequestParam String date) {
|
|
|
+ return reportService.getCardTime(date, request);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
private void fillReportProgress(Report report, String professionProgress) {
|
|
|
if (!StringUtil.isEmpty(professionProgress)) {
|
|
|
professionProgress = professionProgress.replaceAll("@",",");
|
|
@@ -437,7 +443,7 @@ public class ReportController {
|
|
|
String[] dateArray = createDate[i].split("@");
|
|
|
String startDate = dateArray[0];
|
|
|
String endDate = dateArray[1];
|
|
|
- //检查该时间范围是否已经有填写过的日报了
|
|
|
+ //检查该时间范围是否已经有填写过的日报了,代填日报不需要检查
|
|
|
List<Report> oldReportList = reportService.list(new QueryWrapper<Report>().between("create_date", startDate, endDate).eq("creator_id", token));
|
|
|
if (oldReportList.size() > 0) {
|
|
|
List<LocalDate> collect = oldReportList.stream().map(Report::getCreateDate).collect(Collectors.toList());
|
|
@@ -820,7 +826,7 @@ public class ReportController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (!createDate[0].contains("@")) {
|
|
|
+ if (!createDate[0].contains("@") && targetUids.length == 0) {
|
|
|
//不是批量,可能是按周填报。
|
|
|
boolean isWeeklyFill = true;
|
|
|
if (reportList.stream().anyMatch(r->r.getId() != null)) {
|