|
@@ -1,6 +1,7 @@
|
|
package cn.com.ty.lift.business.maintenance.controller;
|
|
package cn.com.ty.lift.business.maintenance.controller;
|
|
|
|
|
|
import cn.com.ty.lift.business.maintenance.dao.entity.model.request.PropertyMaintenanceVO;
|
|
import cn.com.ty.lift.business.maintenance.dao.entity.model.request.PropertyMaintenanceVO;
|
|
|
|
+import cn.com.ty.lift.business.maintenance.dao.entity.model.response.DynamicMessageResponse;
|
|
import cn.com.ty.lift.business.maintenance.dao.entity.model.response.PropertyMtResponse;
|
|
import cn.com.ty.lift.business.maintenance.dao.entity.model.response.PropertyMtResponse;
|
|
import cn.com.ty.lift.business.maintenance.service.PropertyMaintenanceService;
|
|
import cn.com.ty.lift.business.maintenance.service.PropertyMaintenanceService;
|
|
import cn.com.xwy.boot.web.dto.RestResponse;
|
|
import cn.com.xwy.boot.web.dto.RestResponse;
|
|
@@ -28,4 +29,16 @@ public class PropertyMaintenanceController {
|
|
public RestResponse<?> maintenanceNumForMonth(@RequestBody PropertyMaintenanceVO propertyMaintenanceVO) {
|
|
public RestResponse<?> maintenanceNumForMonth(@RequestBody PropertyMaintenanceVO propertyMaintenanceVO) {
|
|
return propertyMaintenanceService.queryMaintenancePlanMonth(propertyMaintenanceVO);
|
|
return propertyMaintenanceService.queryMaintenancePlanMonth(propertyMaintenanceVO);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @PostMapping("repair/message")
|
|
|
|
+ public RestResponse<?> repairMessage(@RequestBody PropertyMaintenanceVO propertyMaintenanceVO) {
|
|
|
|
+ IPage<DynamicMessageResponse> dynamicMessageResponsePage = new Page<>(propertyMaintenanceVO.getPageNum(), propertyMaintenanceVO.getPageSize());
|
|
|
|
+ return propertyMaintenanceService.queryEmergencyRepairDynamicMessage(dynamicMessageResponsePage, propertyMaintenanceVO);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @PostMapping("maintenance/message")
|
|
|
|
+ public RestResponse<?> maintenanceMessage(@RequestBody PropertyMaintenanceVO propertyMaintenanceVO) {
|
|
|
|
+ IPage<DynamicMessageResponse> dynamicMessageResponsePage = new Page<>(propertyMaintenanceVO.getPageNum(), propertyMaintenanceVO.getPageSize());
|
|
|
|
+ return propertyMaintenanceService.queryMaintenanceSuccessDynamicMessage(dynamicMessageResponsePage, propertyMaintenanceVO);
|
|
|
|
+ }
|
|
}
|
|
}
|