| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- package cn.com.goldenwater.dcproj.controller.fjqa;
- import cn.com.goldenwater.dcproj.model.BisInspQaScore;
- import cn.com.goldenwater.dcproj.param.BisInspQaScoreParam;
- import cn.com.goldenwater.dcproj.service.BisInspQaScoreService;
- import cn.com.goldenwater.core.web.BaseController;
- import cn.com.goldenwater.core.web.BaseResponse;
- import io.swagger.annotations.Api;
- import io.swagger.annotations.ApiOperation;
- import io.swagger.annotations.ApiParam;
- import org.slf4j.Logger;
- import org.slf4j.LoggerFactory;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.*;
- import java.util.List;
- /**
- * @author hjp
- * @date 2022-7-28
- */
- @Api(value = "工程质量监督履职情况评分管理", tags = "工程质量监督履职情况评分管理")
- @RestController
- @RequestMapping("/bis/insp/fjqa/score")
- public class BisInspQaScoreController extends BaseController {
- private Logger logger = LoggerFactory.getLogger(getClass());
- @Autowired
- private BisInspQaScoreService bisInspQaScoreService;
- @ApiOperation(value = "修改工程质量监督履职情况评分")
- @RequestMapping(value = "", method = RequestMethod.POST)
- public BaseResponse<BisInspQaScore> insert(@ApiParam(name = "bisInspQaScore", value = "BisInspQaScore", required = true) @RequestBody BisInspQaScore bisInspQaScore) {
- bisInspQaScore.setPersId(getCurrentPersId());
- bisInspQaScoreService.update(bisInspQaScore);
- return buildSuccessResponse(bisInspQaScore);
- }
- @ApiOperation(value = "根据ID删除工程质量监督履职情况评分")
- @RequestMapping(value = "delete/{id}", method = RequestMethod.POST)
- public BaseResponse<?> delete(@ApiParam(name = "id", value = "id", required = true) @PathVariable String id) {
- int ret = bisInspQaScoreService.delete(id);
- return buildSuccessResponse();
- }
- @ApiOperation(value = "根据ID获取工程质量监督履职情况评分(单表)")
- @RequestMapping(value = "/{id}", method = RequestMethod.GET)
- public BaseResponse<BisInspQaScore> get(@ApiParam(name = "id", value = "id", required = true) @PathVariable String id) {
- BisInspQaScore bisInspQaScore = bisInspQaScoreService.get(id);
- return buildSuccessResponse(bisInspQaScore);
- }
- @ApiOperation(value = "获取工程质量监督履职情况评分")
- @RequestMapping(value = "/findList/{rgstrId}", method = RequestMethod.GET)
- public BaseResponse<List<BisInspQaScore>> findList(@ApiParam(name = "rgstrId", value = "rgstrId", required = true) @PathVariable String rgstrId) {
- BisInspQaScoreParam bisInspQaScoreParam = new BisInspQaScoreParam();
- bisInspQaScoreParam.setRgstrId(rgstrId);
- List<BisInspQaScore> list = bisInspQaScoreService.findList(bisInspQaScoreParam);
- return buildSuccessResponse(list);
- }
- }
|