|
|
|
|
@ -8,12 +8,10 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
|
import com.biutag.supervision.constants.enums.ProblemSourcesEnum; |
|
|
|
|
import com.biutag.supervision.mapper.DataCaseVerifMapper; |
|
|
|
|
import com.biutag.supervision.mapper.DataThreadMapper; |
|
|
|
|
import com.biutag.supervision.pojo.Result; |
|
|
|
|
import com.biutag.supervision.pojo.entity.DataMailbox; |
|
|
|
|
import com.biutag.supervision.pojo.entity.DataMailboxBlame; |
|
|
|
|
import com.biutag.supervision.pojo.entity.DataPetitionComplaint; |
|
|
|
|
import com.biutag.supervision.pojo.entity.SupDictData; |
|
|
|
|
import com.biutag.supervision.pojo.entity.*; |
|
|
|
|
import com.biutag.supervision.pojo.param.DataPetitionComplaintQueryParam; |
|
|
|
|
import com.biutag.supervision.pojo.param.DataThreadQueryParam; |
|
|
|
|
import com.biutag.supervision.pojo.vo.DataPetitionComplaintVo; |
|
|
|
|
@ -47,6 +45,8 @@ public class DataThreadService {
|
|
|
|
|
private final DataMailboxService dataMailboxService; |
|
|
|
|
|
|
|
|
|
private final SupDictDataService dictDataService; |
|
|
|
|
|
|
|
|
|
private final DataCaseVerifService caseVerifService; |
|
|
|
|
public Result<Object> pageList(DataThreadQueryParam queryParam){ |
|
|
|
|
|
|
|
|
|
//录入时间
|
|
|
|
|
@ -67,7 +67,7 @@ public class DataThreadService {
|
|
|
|
|
BeanUtil.copyProperties(queryParam,dataPetitionComplaintQueryParam); |
|
|
|
|
return Result.success(dataPetitionComplaintService.page(dataPetitionComplaintQueryParam)); |
|
|
|
|
} |
|
|
|
|
else{ |
|
|
|
|
else if("23".equals(queryParam.getProblemSourcesCode())){ |
|
|
|
|
LambdaQueryWrapper<DataMailbox> wrapper = new LambdaQueryWrapper<DataMailbox>() |
|
|
|
|
.eq(DataMailbox::getProblemSourcesCode, ProblemSourcesEnum.JZXX.getValue()) |
|
|
|
|
.like(StrUtil.isNotBlank(queryParam.getOriginId()), DataMailbox::getOriginId, queryParam.getOriginId()) |
|
|
|
|
@ -87,6 +87,25 @@ public class DataThreadService {
|
|
|
|
|
} |
|
|
|
|
return Result.success(dataMailboxService.page(Page.of(queryParam.getCurrent(), queryParam.getSize()), wrapper)); |
|
|
|
|
} |
|
|
|
|
else{ |
|
|
|
|
LambdaQueryWrapper<DataCaseVerif> wrapper = new LambdaQueryWrapper<DataCaseVerif>() |
|
|
|
|
.like(StrUtil.isNotBlank(queryParam.getOriginId()), DataCaseVerif::getOriginId, queryParam.getOriginId()) |
|
|
|
|
.like(StrUtil.isNotBlank(queryParam.getThingDesc()), DataCaseVerif::getThingDesc, queryParam.getThingDesc()); |
|
|
|
|
if (queryParam.getDiscoveryTime().size() == 2) { |
|
|
|
|
wrapper.between(DataCaseVerif::getDiscoveryTime, queryParam.getDiscoveryTime().get(0), queryParam.getDiscoveryTime().get(1)); |
|
|
|
|
} |
|
|
|
|
if (StrUtil.isNotBlank(queryParam.getResponderKey()) && StrUtil.isNotBlank(queryParam.getResponderValue())) { |
|
|
|
|
switch (queryParam.getResponderKey()) { |
|
|
|
|
case "name": |
|
|
|
|
wrapper.like(DataCaseVerif::getResponderName, queryParam.getResponderValue()); |
|
|
|
|
break; |
|
|
|
|
case "phone": |
|
|
|
|
wrapper.like(DataCaseVerif::getResponderPhone, queryParam.getResponderValue()); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return Result.success(caseVerifService.page(Page.of(queryParam.getCurrent(), queryParam.getSize()), wrapper)); |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
return Result.success(dataThreadMapper.queryPage(Page.of(queryParam.getCurrent(), queryParam.getSize()),queryParam)); |
|
|
|
|
} |
|
|
|
|
|