|
|
@@ -46,6 +46,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
+import java.time.LocalDate;
|
|
|
import java.util.*;
|
|
|
import java.util.concurrent.atomic.AtomicInteger;
|
|
|
import java.util.stream.Collectors;
|
|
|
@@ -804,9 +805,12 @@ public class CwProjectReportArchiveService extends ServiceImpl<CwProjectReportAr
|
|
|
* @param reportType
|
|
|
* @return
|
|
|
*/
|
|
|
- public CwProjectReportArchiveDTO findByReportType(String reportType) {
|
|
|
+ public CwProjectReportArchiveDTO findByReportType(String reportType,String year) {
|
|
|
+ if(StringUtils.isBlank(year)){
|
|
|
+ year = String.valueOf(LocalDate.now().getYear());
|
|
|
+ }
|
|
|
if (StringUtils.isNotBlank(reportType)){
|
|
|
- CwProjectReportArchiveDTO cwProjectReportArchiveDTO = cwProjectReportArchiveMapper.findByReportType(reportType);
|
|
|
+ CwProjectReportArchiveDTO cwProjectReportArchiveDTO = cwProjectReportArchiveMapper.findByReportType(reportType,year);
|
|
|
return cwProjectReportArchiveDTO;
|
|
|
}
|
|
|
return null;
|