提交
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
package com.njcn.csdevice.controller.project;
|
||||
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.csdevice.pojo.param.CsLineTopologyTemplateParm;
|
||||
import com.njcn.csdevice.pojo.vo.CsTopologyDiagramTemplateVO;
|
||||
import com.njcn.csdevice.service.CsLineTopologyTemplateService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (cs_line_topology_template)表控制层
|
||||
*
|
||||
* @author xxxxx
|
||||
*/
|
||||
@RestController
|
||||
@Slf4j
|
||||
@RequestMapping("/lineTemplate")
|
||||
@Api(tags = " 监测点位置模板")
|
||||
@AllArgsConstructor
|
||||
public class CsLineTopologyTemplateController extends BaseController {
|
||||
|
||||
private final CsLineTopologyTemplateService csLineTopologyTemplateService;
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.UPLOAD)
|
||||
@PostMapping("/addLineTemplate")
|
||||
@ApiOperation("上传拓扑图模板监测点位置")
|
||||
@ApiImplicitParam(name = "csLineTopologyTemplateParms", value = "扑图模板监测点位置", required = true)
|
||||
public HttpResult<Boolean> addLineTemplate(@RequestBody List<CsLineTopologyTemplateParm> csLineTopologyTemplateParms){
|
||||
String methodDescribe = getMethodDescribe("addLineTemplate");
|
||||
Boolean flag = csLineTopologyTemplateService.add(csLineTopologyTemplateParms);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS,flag, methodDescribe);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.njcn.csdevice.controller.project;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.csdevice.pojo.param.AppProjectAddParm;
|
||||
import com.njcn.csdevice.pojo.param.AppProjectAuditParm;
|
||||
import com.njcn.csdevice.pojo.param.AppProjectQueryParm;
|
||||
import com.njcn.csdevice.pojo.po.AppProjectPO;
|
||||
import com.njcn.csdevice.pojo.vo.AppProjectVO;
|
||||
import com.njcn.csdevice.service.RoleEngineerDevService;
|
||||
import com.njcn.csdevice.service.impl.RoleEngineerDevServiceImpl;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* 接口文档访问地址:http://serverIP:port/swagger-ui.html
|
||||
* Date: 2023/3/27 10:54【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/roleEngineerDev")
|
||||
@Api(tags = " 角色工程设备")
|
||||
@AllArgsConstructor
|
||||
public class RoleEngineerDevController extends BaseController {
|
||||
|
||||
|
||||
private final RoleEngineerDevService roleEngineerDevService;
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/getRoleengineer")
|
||||
@ApiOperation("角色工程查询")
|
||||
public HttpResult<List<String>> getRoleengineer(){
|
||||
String methodDescribe = getMethodDescribe("getRoleengineer");
|
||||
|
||||
List<String> roleengineer = roleEngineerDevService.getRoleengineer();
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, roleengineer, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/getDevice")
|
||||
@ApiOperation("角色设备查询")
|
||||
public HttpResult<List<String>> getDevice(){
|
||||
String methodDescribe = getMethodDescribe("getDevice");
|
||||
List<String> device = roleEngineerDevService.getDevice();
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, device, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -31,7 +31,7 @@ import java.util.List;
|
||||
@RestController
|
||||
@Slf4j
|
||||
@RequestMapping("/topologyTemplate")
|
||||
@Api(tags = " 拓扑图-监测点")
|
||||
@Api(tags = " 拓扑图模板")
|
||||
@AllArgsConstructor
|
||||
public class TopologyTemplateController extends BaseController {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user