Commit 50d33909 authored by yuanshuo's avatar yuanshuo

/review/standard/list接口修改

parent 7818ef4f
...@@ -3,10 +3,7 @@ package com.ruoyi.mapper; ...@@ -3,10 +3,7 @@ package com.ruoyi.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.domain.ReviewKeyPoint; import com.ruoyi.domain.ReviewKeyPoint;
import com.ruoyi.domain.ReviewStandard; import com.ruoyi.domain.ReviewStandard;
import com.ruoyi.web.request.ReviewFindListRequest; import com.ruoyi.web.request.*;
import com.ruoyi.web.request.ReviewStandardListByPageRequest;
import com.ruoyi.web.request.ReviewStandardListRequest;
import com.ruoyi.web.request.StandardListNewRequest;
import com.ruoyi.web.response.*; import com.ruoyi.web.response.*;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
......
...@@ -87,4 +87,5 @@ public interface ReviewStandardService extends IService<ReviewStandard> { ...@@ -87,4 +87,5 @@ public interface ReviewStandardService extends IService<ReviewStandard> {
* 标准内容库新界面接口 * 标准内容库新界面接口
* */ * */
ReviewStandardListNewResponse getListNew(StandardListNewRequest request); ReviewStandardListNewResponse getListNew(StandardListNewRequest request);
} }
...@@ -94,8 +94,10 @@ public class ReviewStandardServiceImpl extends ServiceImpl<ReviewStandardMapper, ...@@ -94,8 +94,10 @@ public class ReviewStandardServiceImpl extends ServiceImpl<ReviewStandardMapper,
ReviewStandard reviewStandard = ReviewStandard.builder().id(id).build(); ReviewStandard reviewStandard = ReviewStandard.builder().id(id).build();
List<ReviewStandard> reviewStandardList = new ArrayList<>(); List<ReviewStandard> reviewStandardList = new ArrayList<>();
reviewStandardList.add(reviewStandard); reviewStandardList.add(reviewStandard);
// 查询审查要点 // 查询审查要点
List<ReviewKeyPoint> reviewKeyPointList = reviewKeyPointService.findByStandardList(reviewStandardList); List<ReviewKeyPoint> reviewKeyPointList = reviewKeyPointService.findByStandardList(reviewStandardList);
// 查询审查细则 // 查询审查细则
List<ReviewDetails> reivewDetailsList = reviewDetailsService.findByKeyPointsList(reviewKeyPointList); List<ReviewDetails> reivewDetailsList = reviewDetailsService.findByKeyPointsList(reviewKeyPointList);
// 查询审查场景 // 查询审查场景
......
...@@ -40,7 +40,7 @@ public class ReviewStandardController extends BaseController { ...@@ -40,7 +40,7 @@ public class ReviewStandardController extends BaseController {
@Anonymous @Anonymous
@ApiOperation("分页查询标准(检验内容库)") @ApiOperation("分页查询标准(检验内容库)")
@PostMapping("/list") @PostMapping("/list")
public TableDataInfo<ReviewStandardResponse> listByPage(@Validated @RequestBody ReviewStandardListByPageRequest request) { public TableDataInfo<ReviewStandardResponse> listByPage(@RequestBody ReviewStandardListByPageRequest request) {
startPage(request); startPage(request);
List<ReviewStandardResponse> list = reviewStandardService.listByPage(request); List<ReviewStandardResponse> list = reviewStandardService.listByPage(request);
return getDataTable(list); return getDataTable(list);
......
...@@ -116,4 +116,5 @@ ...@@ -116,4 +116,5 @@
</select> </select>
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment