|
@@ -1,22 +1,21 @@
|
|
|
package cn.com.ty.lift.business.project.controller;
|
|
|
|
|
|
import cn.com.ty.lift.business.framework.util.MessageUtils;
|
|
|
-import cn.com.ty.lift.business.project.dao.entity.ProjectLiftRelevance;
|
|
|
-import cn.com.ty.lift.business.project.dao.entity.model.request.ProjectOperateServiceRequest;
|
|
|
import cn.com.ty.lift.business.library.service.PlatformCompanyLiftRelevanceService;
|
|
|
import cn.com.ty.lift.business.project.dao.entity.Project;
|
|
|
import cn.com.ty.lift.business.project.dao.entity.ProjectHistory;
|
|
|
import cn.com.ty.lift.business.project.dao.entity.model.request.*;
|
|
|
-import cn.com.ty.lift.business.project.dao.entity.model.response.ProjectRelevanceResponse;
|
|
|
import cn.com.ty.lift.business.project.dao.entity.model.response.ProjectResponse;
|
|
|
-import cn.com.ty.lift.business.project.service.ProjectLiftRelevanceService;
|
|
|
import cn.com.ty.lift.business.project.service.ProjectService;
|
|
|
import cn.com.ty.lift.common.base.ExportRequest;
|
|
|
import cn.com.xwy.boot.web.dto.RestResponse;
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
import cn.hutool.core.map.MapUtil;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.validation.Valid;
|
|
@@ -38,9 +37,6 @@ public class ProjectController {
|
|
|
@Resource
|
|
|
private PlatformCompanyLiftRelevanceService platformService;
|
|
|
|
|
|
- @Resource
|
|
|
- private ProjectLiftRelevanceService projectLiftRelevanceService;
|
|
|
-
|
|
|
/**
|
|
|
* @param request 项目列表查询条件
|
|
|
* @return RestResponse 项目分页列表结果
|
|
@@ -157,21 +153,6 @@ public class ProjectController {
|
|
|
return RestResponse.fail(MessageUtils.get("msg.modify.fail"));
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * @param entry 修改项目电梯关联数据项
|
|
|
- * @return 1.成功, 0.失败, 消息描述
|
|
|
- * @description 修改项目电梯关联
|
|
|
- * @date 2020/2/3 1:29 下午
|
|
|
- */
|
|
|
- @PostMapping("relevance/modify")
|
|
|
- public RestResponse modify(@RequestBody ProjectLiftRelevance entry) {
|
|
|
- boolean result = projectLiftRelevanceService.modify(entry);
|
|
|
- if (result) {
|
|
|
- return RestResponse.success(null, MessageUtils.get("msg.modify.success"));
|
|
|
- }
|
|
|
- return RestResponse.fail(MessageUtils.get("msg.modify.fail"));
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* @param request liftIdList 电梯id列表
|
|
|
* @param request projectId 项目id
|
|
@@ -196,21 +177,6 @@ public class ProjectController {
|
|
|
return projectService.projectLockOrUnLock(request);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * @param request 用户id
|
|
|
- * @return 1.成功, 0.失败, 消息描述
|
|
|
- * @description 查询用户下的关联项目和电梯信息
|
|
|
- * @date 2019/12/26 4:27 PM
|
|
|
- */
|
|
|
- @PostMapping("relevance/list")
|
|
|
- public RestResponse relevanceList(@RequestBody ProjectLiftRelevanceRequest request) {
|
|
|
- IPage<ProjectRelevanceResponse> page = projectLiftRelevanceService.relevanceList(request);
|
|
|
- if (CollUtil.isEmpty(page.getRecords())) {
|
|
|
- return RestResponse.success();
|
|
|
- }
|
|
|
- return RestResponse.success(page, MessageUtils.get("msg.query.success"));
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* @param request 导出项目数据列表
|
|
|
* @return 1.成功, 0.失败, 消息描述
|