|
|
|
@ -144,7 +144,7 @@ public class InspectionRouteController extends DafController { |
|
|
|
|
public R submit(@Valid @RequestBody InspectionRoute inspectionRoute) { |
|
|
|
|
inspectionRoute.setIstatus(1); |
|
|
|
|
String date = LocalDate.now().toString().replace("-",""); |
|
|
|
|
String maxNo = inspectionRouteService.getMaxNo("'%" + date + "%'"); |
|
|
|
|
String maxNo = inspectionRouteService.getMaxNo(date); |
|
|
|
|
int number; |
|
|
|
|
if (StringUtil.isNotEmpty(maxNo)){ |
|
|
|
|
number = Integer.parseInt(maxNo.substring(9)); |
|
|
|
@ -217,12 +217,6 @@ public class InspectionRouteController extends DafController { |
|
|
|
|
@ApiLog |
|
|
|
|
public void exportInspectionRoute(@ApiIgnore @RequestParam Map<String, Object> entity, HttpServletResponse response) { |
|
|
|
|
entity.remove("daf-auth"); |
|
|
|
|
entity.forEach((key, value) -> { |
|
|
|
|
if (!"stations".equals(key) && !"istatus".equals(key)) |
|
|
|
|
{ |
|
|
|
|
entity.put(key, "%" + value + "%"); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
InspectionRoute vo = DataUtils.mapToEntity(entity, InspectionRoute::new); |
|
|
|
|
List<InspectionRouteExcel> list = inspectionRouteService.export(vo); |
|
|
|
|
response.setContentType("application/vnd.ms-excel"); |
|
|
|
@ -250,7 +244,7 @@ public class InspectionRouteController extends DafController { |
|
|
|
|
@ApiOperationSupport(order = 12) |
|
|
|
|
@ApiOperation(value = "获取路线信息", notes = "获取路线信息") |
|
|
|
|
public R<InspectionRoute> getDetailList(String routeNo) { |
|
|
|
|
InspectionRoute DetailList = inspectionRouteService.getDetailList("'" + routeNo + "'"); |
|
|
|
|
InspectionRoute DetailList = inspectionRouteService.getDetailList(routeNo); |
|
|
|
|
return R.data(DetailList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|