diff --git a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/controller/OrderController.java b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/controller/OrderController.java index 3885048..c310812 100644 --- a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/controller/OrderController.java +++ b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/controller/OrderController.java @@ -108,9 +108,7 @@ public class OrderController { @ApiOperation(value="订单状态统计", notes="订单状态统计") @GetMapping(value = "/queryState") public Result queryState(@RequestParam(name="userId",required=true) String userId){ - OrderStateVo orderStateVo = new OrderStateVo(); - orderStateVo = orderService.queryState(userId); - return Result.OK(orderStateVo); + return Result.OK(orderService.queryState(userId)); } /** * 添加 diff --git a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/mapper/xml/OrderMapper.xml b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/mapper/xml/OrderMapper.xml index ee5e75b..2eb1f3c 100644 --- a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/mapper/xml/OrderMapper.xml +++ b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/mapper/xml/OrderMapper.xml @@ -6,7 +6,7 @@