Преглед на файлове

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

黄远 преди 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);
+    }
 }