|
|
@@ -84,13 +84,24 @@ public class CompanyDataReportServiceImpl implements CompanyDataReportService {
|
|
|
*/
|
|
|
@Override
|
|
|
public BasePageResult<CompanyQutationCountDataDto> queryCompanyQutationCountDataPage(CompanyQutationCountDataQueryDto companyQutationCountDataQueryDto) {
|
|
|
+
|
|
|
Page<QuotationCountDataDto> page = new Page<>(companyQutationCountDataQueryDto.getPageNum(), companyQutationCountDataQueryDto.getPageSize());
|
|
|
//判断开始时间和结束时间是否为空,如果为空的走时间类型逻辑
|
|
|
HashMap<String, String> dateMapByType = getDateMapByType(companyQutationCountDataQueryDto.getDateType(), companyQutationCountDataQueryDto.getBeginDate(), companyQutationCountDataQueryDto.getEndDate());
|
|
|
- companyQutationCountDataQueryDto.setBeginDate(dateMapByType.get("startDate"));
|
|
|
- companyQutationCountDataQueryDto.setEndDate(dateMapByType.get("endDate"));
|
|
|
+// companyQutationCountDataQueryDto.setBeginDate(dateMapByType.get("startDate"));
|
|
|
+// companyQutationCountDataQueryDto.setEndDate(dateMapByType.get("endDate"));
|
|
|
page.setSearchCount(false).setOptimizeCountSql(false);//关闭count查询
|
|
|
|
|
|
+ if(StringUtils.isNotEmpty(companyQutationCountDataQueryDto.getTaskType()) && "1".equals(companyQutationCountDataQueryDto.getTaskType())){
|
|
|
+ companyQutationCountDataQueryDto.setBeginDate(null);
|
|
|
+ companyQutationCountDataQueryDto.setEndDate(null);
|
|
|
+ companyQutationCountDataQueryDto.setSigningTimeStart(dateMapByType.get("startDate"));
|
|
|
+ companyQutationCountDataQueryDto.setSigningTimeEnd(dateMapByType.get("endDate"));
|
|
|
+ }else {
|
|
|
+ companyQutationCountDataQueryDto.setBeginDate(dateMapByType.get("startDate"));
|
|
|
+ companyQutationCountDataQueryDto.setEndDate(dateMapByType.get("endDate"));
|
|
|
+ }
|
|
|
+
|
|
|
Page<CompanyQutationCountDataDto> resultSubOrder = insAreaCompanyMapper.queryCompanyQutationCountDataPage(companyQutationCountDataQueryDto, page);
|
|
|
Long total = this.insAreaCompanyMapper.queryCompanyQutationCountDataPageTotal(companyQutationCountDataQueryDto);
|
|
|
|