Commit 84976539 by 裴大威

Merge branch 'fix-rsy' into 'master'

屏蔽质检测试类

See merge request rays/pcloud-book!628
parents 2511f32d fdd5881f
...@@ -34,7 +34,7 @@ public interface PcloudRobotClassifyBiz { ...@@ -34,7 +34,7 @@ public interface PcloudRobotClassifyBiz {
/** /**
* 分页查询所有小号分类 * 分页查询所有小号分类
*/ */
PageBeanNew<PcloudRobotClassifyResponseVO> listClassifyByPage(Integer currentPage, Integer numPerPage); PageBeanNew<PcloudRobotClassifyResponseVO> listClassifyByPage(Integer currentPage, Integer numPerPage,Boolean testShow);
ClassifyWelcomeDTO getClassifyWelcome(Long classifyId,Integer robotType); ClassifyWelcomeDTO getClassifyWelcome(Long classifyId,Integer robotType);
......
...@@ -101,8 +101,10 @@ public class PcloudRobotClassifyBizImpl implements PcloudRobotClassifyBiz { ...@@ -101,8 +101,10 @@ public class PcloudRobotClassifyBizImpl implements PcloudRobotClassifyBiz {
} }
@Override @Override
public PageBeanNew<PcloudRobotClassifyResponseVO> listClassifyByPage(Integer currentPage, Integer numPerPage) { public PageBeanNew<PcloudRobotClassifyResponseVO> listClassifyByPage(Integer currentPage, Integer numPerPage,Boolean testShow) {
PageBeanNew<PcloudRobotClassifyResponseVO> listClassifyByPage = pcloudRobotClassifyDao.listPageNew(new PageParam(currentPage, numPerPage), new HashMap<>(), "listClassifyByPage"); Map<String,Object> map=new HashMap<>();
map.put("testShow",testShow);
PageBeanNew<PcloudRobotClassifyResponseVO> listClassifyByPage = pcloudRobotClassifyDao.listPageNew(new PageParam(currentPage, numPerPage), map, "listClassifyByPage");
if(ListUtils.isEmpty(listClassifyByPage.getRecordList())){ if(ListUtils.isEmpty(listClassifyByPage.getRecordList())){
return new PageBeanNew<>(currentPage, numPerPage, 0, new ArrayList<>()); return new PageBeanNew<>(currentPage, numPerPage, 0, new ArrayList<>());
} }
......
...@@ -54,9 +54,10 @@ public class PcloudRobotClassifyFacade { ...@@ -54,9 +54,10 @@ public class PcloudRobotClassifyFacade {
@GetMapping("listClassifyByPage") @GetMapping("listClassifyByPage")
public ResponseDto<?> listClassifyByPage( public ResponseDto<?> listClassifyByPage(
@RequestParam(value = "testShow", required = false) Boolean testShow,
@RequestParam("currentPage") Integer currentPage, @RequestParam("currentPage") Integer currentPage,
@RequestParam("numPerPage") Integer numPerPage) throws BizException, PermissionException { @RequestParam("numPerPage") Integer numPerPage) throws BizException, PermissionException {
return new ResponseDto<>(pcloudRobotClassifyBiz.listClassifyByPage(currentPage, numPerPage)); return new ResponseDto<>(pcloudRobotClassifyBiz.listClassifyByPage(currentPage, numPerPage, testShow));
} }
@GetMapping("listClassifyByPage4Mini") @GetMapping("listClassifyByPage4Mini")
......
...@@ -77,11 +77,14 @@ ...@@ -77,11 +77,14 @@
from pcloud_robot_classify where id=#{id} from pcloud_robot_classify where id=#{id}
</select> </select>
<select id="listClassifyByPage" resultMap="pageResultMap"> <select id="listClassifyByPage" resultMap="pageResultMap" parameterType="map">
select select
id, classify_name, qrcode_url, seq_num, mimi_app_qr miniAppQr,mini_app_content id, classify_name, qrcode_url, seq_num, mimi_app_qr miniAppQr,mini_app_content
from pcloud_robot_classify from pcloud_robot_classify
where is_delete = 0 where is_delete = 0
<if test="testShow!=null and testShow==false">
and classify_name!="质检测试类"
</if>
order by seq_num order by seq_num
</select> </select>
......
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