|
@@ -1,9 +1,10 @@
|
|
|
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.PropertyVo;
|
|
|
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.service.PropertyMaintenanceService;
|
|
|
+import cn.com.ty.lift.business.maintenance.service.PropertyService;
|
|
|
import cn.com.xwy.boot.web.dto.RestResponse;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
@@ -17,28 +18,38 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
@AllArgsConstructor
|
|
|
@RequestMapping("property")
|
|
|
public class PropertyMaintenanceController {
|
|
|
- private final PropertyMaintenanceService propertyMaintenanceService;
|
|
|
+ private final PropertyService propertyService;
|
|
|
|
|
|
@PostMapping("maintenance")
|
|
|
public RestResponse<?> maintenance(@RequestBody PropertyMaintenanceVO propertyMaintenanceVO) {
|
|
|
IPage<PropertyMtResponse> propertyMtResponsePage = new Page<>(propertyMaintenanceVO.getPageNum(), propertyMaintenanceVO.getPageSize());
|
|
|
- return RestResponse.success(propertyMaintenanceService.propertyMtResponsePage(propertyMtResponsePage, propertyMaintenanceVO));
|
|
|
+ return RestResponse.success(propertyService.propertyMtResponsePage(propertyMtResponsePage, propertyMaintenanceVO));
|
|
|
}
|
|
|
|
|
|
@PostMapping("maintenance/num/month")
|
|
|
public RestResponse<?> maintenanceNumForMonth(@RequestBody PropertyMaintenanceVO propertyMaintenanceVO) {
|
|
|
- return propertyMaintenanceService.queryMaintenancePlanMonth(propertyMaintenanceVO);
|
|
|
+ return propertyService.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);
|
|
|
+ return propertyService.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);
|
|
|
+ return propertyService.queryMaintenanceSuccessDynamicMessage(dynamicMessageResponsePage, propertyMaintenanceVO);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("evaluate")
|
|
|
+ public RestResponse<?> evaluate(@RequestBody PropertyVo propertyVo) {
|
|
|
+ return propertyService.queryEvaluateAuth(propertyVo);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("project")
|
|
|
+ public RestResponse<?> project(@RequestBody PropertyVo propertyVo) {
|
|
|
+ return propertyService.queryJoinProjectList(propertyVo);
|
|
|
}
|
|
|
}
|