소스 검색

物管用户获取维保急修条数

黄远 5 년 전
부모
커밋
e9105f1d91
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      lift-business-service/src/main/java/cn/com/ty/lift/business/common/CommonController.java

+ 10 - 0
lift-business-service/src/main/java/cn/com/ty/lift/business/common/CommonController.java

@@ -175,4 +175,14 @@ public class CommonController {
         common.setMaintain(maintain);
         return RestResponse.success(common);
     }
+
+    @PostMapping("propertyCount")
+    public RestResponse propertyCount(@RequestBody CommonRequest request) {
+        long repair = emergencyRepairService.countDoingByUser(request);
+        long maintain = maintenancePlanService.countWaitingMaintenanceByUser(request);
+        CommonResponse common = new CommonResponse();
+        common.setRepair(repair);
+        common.setMaintain(maintain);
+        return RestResponse.success(common);
+    }
 }