diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java index 85d95ced0..8a68fc6b2 100644 --- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java +++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java @@ -731,6 +731,17 @@ public class AftersalesWorkOrderController extends BladeController { @ApiOperation(value = "导出数据", notes = "传入aftersalesWorkOrder") public void exportWorkOrder(@ApiIgnore @RequestParam Map aftersalesWorkOrder, BladeUser bladeUser, HttpServletResponse response) { +// List list = aftersalesWorkOrderService.exportAftersalesWorkOrder(aftersalesWorkOrder); + List list = aftersalesWorkOrderService.exportWorkOrder(aftersalesWorkOrder); + ExcelUtil.export(response, "异常工单数据" + DateUtil.time(), "异常工单数据", list, AftersalesWorkOrderExcel.class); + } + + + @GetMapping("/exportAllWorkOrder") + @ApiOperationSupport(order = 9) + @ApiOperation(value = "导出数据", notes = "传入aftersalesWorkOrder") + public void exportAllWorkOrder(@ApiIgnore @RequestParam Map aftersalesWorkOrder, BladeUser bladeUser, HttpServletResponse response) { + // List list = aftersalesWorkOrderService.exportAftersalesWorkOrder(aftersalesWorkOrder); List list = aftersalesWorkOrderService.exportWorkOrder(aftersalesWorkOrder); ExcelUtil.export(response, "异常工单数据" + DateUtil.time(), "异常工单数据", list, AftersalesWorkOrderExcel.class); diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.java b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.java index 56da449b3..6688b96f6 100644 --- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.java +++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.java @@ -111,4 +111,10 @@ public interface AftersalesWorkOrderMapper extends BaseMapper exportListOwn(@Param("param") AftersalesWorkOrderEntity workOrderEntity); + /** + * 全部工单导出 + * @param workOrderEntity + * @return + */ + List exportAllListOwn(@Param("param")AftersalesWorkOrderEntity workOrderEntity); } diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.xml b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.xml index 6ea7e364f..ebcafdcfe 100644 --- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.xml +++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.xml @@ -668,7 +668,7 @@ `lawo`.`vehicle_route` AS vehicleRoute, `lacr`.`indemnitor` AS `indemnitor`, `lacr`.`reason` AS `reason`, - `lacr`.`money` AS `money`, + IFNUll(sum(`lacr`.`money`),0 ) AS `money`, `lawo`.`id` AS `lawoId`, `lawo`.`create_time` AS createTime, `lawo`.`process_number` AS processNumber, @@ -821,6 +821,172 @@ group by lawo.id ORDER BY lawo.create_time DESC + diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesWorkOrderServiceImpl.java b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesWorkOrderServiceImpl.java index 5180e51fa..146d45d64 100644 --- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesWorkOrderServiceImpl.java +++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesWorkOrderServiceImpl.java @@ -2638,7 +2638,7 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl list = baseMapper.exportListOwn(workOrderEntity); + List list = baseMapper.exportAllListOwn(workOrderEntity); return list;