|
@@ -9,6 +9,7 @@ import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
@RequiredArgsConstructor
|
|
@@ -23,10 +24,10 @@ public class OrderBaseCountController {
|
|
|
|
|
|
@PostMapping("/status/count")
|
|
|
@ApiOperation(value = "按工单状态统计")
|
|
|
- public ResponseHelper<OrderBaseCountBean> countStatus() {
|
|
|
- OrderBaseCountBean orderBaseCountBean = orderBaseCountLogic.baseCountBean();
|
|
|
+ public ResponseHelper<OrderBaseCountBean> countStatus( @RequestParam(required = false) String startTime,
|
|
|
+ @RequestParam(required = false) String endTime) {
|
|
|
+ OrderBaseCountBean orderBaseCountBean = orderBaseCountLogic.baseCountBean(startTime,endTime);
|
|
|
return ResponseHelper.success(orderBaseCountBean);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
}
|