杜函宇 3 months ago
parent c47b126c74
commit 2870f56859

@ -4,16 +4,13 @@ package com.ruoyi.gysl.controller;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.exception.ServiceException; import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.gysl.entity.BasicInformation;
import com.ruoyi.gysl.entity.BuildingInformation; import com.ruoyi.gysl.entity.BuildingInformation;
import com.ruoyi.gysl.entity.request.ZwIdPageReq; import com.ruoyi.gysl.entity.request.ZwIdPageReq;
import com.ruoyi.gysl.service.BasicInformationService; import com.ruoyi.gysl.service.BasicInformationService;
import com.ruoyi.gysl.service.BuildingInformationService; import com.ruoyi.gysl.service.BuildingInformationService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
@ -21,7 +18,6 @@ import javax.annotation.Resource;
import javax.validation.Valid; import javax.validation.Valid;
import java.io.Serializable; import java.io.Serializable;
import java.util.List; import java.util.List;
import java.util.Objects;
/** /**
* (BuildingInformation) * (BuildingInformation)
@ -58,6 +54,20 @@ public class BuildingInformationController extends BaseController {
} }
/**
*
*
* @param id
* @return
*/
@GetMapping("/{id}")
@ApiOperation(value = "通过主键查询单条数据",response = BuildingInformation.class )
public AjaxResult selectOne(@PathVariable Serializable id) {
BuildingInformation byId = buildingInformationService.getById(id);
basicInformationService.testXmId(byId.getXmId());
return success(byId);
}
/** /**
* *
* *

@ -23,7 +23,7 @@ import java.util.List;
@Api(tags = "模型管理") @Api(tags = "模型管理")
@RestController @RestController
@RequestMapping("/gysl/mx") @RequestMapping("/gysl/mx")
@PreAuthorize("@ss.hasAnyRoles('admin,common')")
public class MxController extends BaseController { public class MxController extends BaseController {

@ -9,7 +9,6 @@ import com.ruoyi.gysl.service.BasicInformationService;
import com.ruoyi.gysl.service.ProjectLegendService; import com.ruoyi.gysl.service.ProjectLegendService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -63,6 +62,20 @@ public class ProjectLegendController extends BaseController {
return success(projectLegendService.save(projectLegend)); return success(projectLegendService.save(projectLegend));
} }
/**
*
*
* @param id
* @return
*/
@GetMapping("/{id}")
@ApiOperation(value = "通过主键查询单条数据",response = ProjectLegend.class )
public AjaxResult selectOne(@PathVariable Serializable id) {
ProjectLegend byId = projectLegendService.getById(id);
basicInformationService.testXmId(byId.getXmId());
return success(byId);
}
/** /**
* *
* *

@ -16,6 +16,7 @@ import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid; import javax.validation.Valid;
import java.io.Serializable;
import java.util.List; import java.util.List;
/** /**
@ -67,6 +68,21 @@ public class ProjectMonthInfoController extends BaseController {
return success(projectMonthInfoService.save(projectMonthInfo)); return success(projectMonthInfoService.save(projectMonthInfo));
} }
/**
*
*
* @param id
* @return
*/
@GetMapping("/{id}")
@ApiOperation(value = "通过主键查询单条数据",response = ProjectMonthInfo.class )
public AjaxResult selectOne(@PathVariable Serializable id) {
ProjectMonthInfo byId = projectMonthInfoService.getById(id);
basicInformationService.testXmId(byId.getXmId());
return success(byId);
}
/** /**
* *
* *

@ -50,7 +50,19 @@ public class ProjectRemarkController extends BaseController {
return success(projectRemarkService.list(projectRemark)); return success(projectRemarkService.list(projectRemark));
} }
/**
*
*
* @param id
* @return
*/
@GetMapping("/{id}")
@ApiOperation(value = "通过主键查询单条数据",response = ProjectRemark.class )
public AjaxResult selectOne(@PathVariable Serializable id) {
ProjectRemark byId = projectRemarkService.getById(id);
basicInformationService.testXmId(byId.getXmId());
return success(byId);
}
/** /**
* *
* *

@ -51,6 +51,19 @@ public class XmxlController extends BaseController {
return success(xmxlService.list(zwIdPageReq)); return success(xmxlService.list(zwIdPageReq));
} }
/**
*
*
* @param id
* @return
*/
@GetMapping("/{id}")
@ApiOperation(value = "通过主键查询单条数据",response = Xmxl.class )
public AjaxResult selectOne(@PathVariable Serializable id) {
Xmxl byId = xmxlService.getById(id);
basicInformationService.testXmId(byId.getXmId());
return success(byId);
}
/** /**
* *

Loading…
Cancel
Save