|
@@ -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);
|
|
|
+ }
|
|
|
}
|