|
|
@ -505,7 +505,7 @@ public class BusArrearsCarryVehicleApplyService extends MybatisBaseService<BusAr |
|
|
|
AppArrearsCarryVehicleQuery params = pagerQuery.getParams(); |
|
|
|
QueryWrapper<AppArrearsCarryVehicleQuery> qw = new QueryWrapper<>(); |
|
|
|
if (StringUtils.isNotBlank(params.getUserSid())) { |
|
|
|
qw.eq("createBySid", params.getUserSid()); |
|
|
|
qw.eq("ba.createBySid", params.getUserSid()); |
|
|
|
} |
|
|
|
/*if (StringUtils.isNotBlank(params.getType())) { |
|
|
|
qw.eq("type", params.getType()); |
|
|
@ -513,15 +513,25 @@ public class BusArrearsCarryVehicleApplyService extends MybatisBaseService<BusAr |
|
|
|
if (StringUtils.isNotBlank(params.getType())) { |
|
|
|
//待办理
|
|
|
|
if ("1".equals(params.getType())) { |
|
|
|
qw.isNull("nodeState"); |
|
|
|
qw.isNull("ba.nodeState"); |
|
|
|
} |
|
|
|
//已办理
|
|
|
|
if ("2".equals(params.getType())) { |
|
|
|
qw.isNotNull("nodeState"); |
|
|
|
qw.isNotNull("ba.nodeState"); |
|
|
|
} |
|
|
|
} |
|
|
|
IPage<AppArrearsCarryVehicleQuery> page = PagerUtil.queryToPage(pagerQuery); |
|
|
|
IPage<AppArrearsCarryVehiclePageVo> iPage = baseMapper.getAdvanceInvoiceList(page, qw, params.getName()); |
|
|
|
List<AppArrearsCarryVehiclePageVo> records = iPage.getRecords(); |
|
|
|
records.removeAll(Collections.singleton(null)); |
|
|
|
if(!records.isEmpty()){ |
|
|
|
for(AppArrearsCarryVehiclePageVo v : records){ |
|
|
|
//根据sid查找车辆信息
|
|
|
|
List<String> stringList = busArrearsCarryVehicleDetailsService.selectByApplySidOne(v.getSid()); |
|
|
|
v.setVinNo(String.join(",",stringList)); |
|
|
|
} |
|
|
|
} |
|
|
|
iPage.setRecords(records); |
|
|
|
return iPage; |
|
|
|
} |
|
|
|
|
|
|
|