|
|
@@ -53,7 +53,7 @@ public class QueryInspectionFileDistributionListService { |
|
|
|
@Autowired |
|
|
|
private RoadInformationMapper roadInformationMapper; |
|
|
|
|
|
|
|
public JsonResult getPageList(QueryInspectionFileDistributionListRequest request) { |
|
|
|
public JsonResult getList(QueryInspectionFileDistributionListRequest request) { |
|
|
|
log.info("进入查询任务问题分布列表业务, request:{}", request.toString()); |
|
|
|
|
|
|
|
String userId = ShiroUtils.getUserId(); |
|
|
@@ -68,27 +68,17 @@ public class QueryInspectionFileDistributionListService { |
|
|
|
List<String> deptIdList = this.getDeptIdList(userId); |
|
|
|
request.setDeptIdList(deptIdList); |
|
|
|
|
|
|
|
// 设置分页参数 |
|
|
|
IPage<InspectionFile> page = new Page<>(request.getPage(), request.getLimit()); |
|
|
|
// 查询结果 |
|
|
|
IPage<InspectionFileDistribution> pageData = inspectionFileMapper.selectDistributionList(page, request); |
|
|
|
if (null == pageData || pageData.getTotal() == 0) { |
|
|
|
List<InspectionFileDistribution> inspectionFileDistributionList = inspectionFileMapper.selectDistributionList(request); |
|
|
|
if (null == inspectionFileDistributionList || inspectionFileDistributionList.size() == 0) { |
|
|
|
log.info("获取任务问题分布列表为空"); |
|
|
|
return JsonResult.success(null, QueryInspectionPageListCodeEnum.DATA_IS_FAILED.getMsg()); |
|
|
|
} |
|
|
|
|
|
|
|
// 构造返回结果对象 |
|
|
|
List<InspectionFileDistributionListVo> inspectionFileDistributionListVoList = this.buildInspectionFileDistributionListVo(pageData.getRecords()); |
|
|
|
List<InspectionFileDistributionListVo> inspectionFileDistributionListVoList = this.buildInspectionFileDistributionListVo(inspectionFileDistributionList); |
|
|
|
|
|
|
|
// 重写返回结果对象 |
|
|
|
IPage<InspectionFileDistributionListVo> inspectionFileDistributionListVoData = new Page<>(); |
|
|
|
inspectionFileDistributionListVoData.setPages(pageData.getPages()); |
|
|
|
inspectionFileDistributionListVoData.setCurrent(pageData.getCurrent()); |
|
|
|
inspectionFileDistributionListVoData.setSize(pageData.getSize()); |
|
|
|
inspectionFileDistributionListVoData.setTotal(pageData.getTotal()); |
|
|
|
inspectionFileDistributionListVoData.setRecords(inspectionFileDistributionListVoList); |
|
|
|
|
|
|
|
return JsonResult.success(inspectionFileDistributionListVoData); |
|
|
|
return JsonResult.success(inspectionFileDistributionListVoList); |
|
|
|
} |
|
|
|
|
|
|
|
/** |