diff --git a/src/main/java/club/joylink/rtss/services/publishData/Lesson3DServiceImpl.java b/src/main/java/club/joylink/rtss/services/publishData/Lesson3DServiceImpl.java index cf96d279d..df107aa40 100644 --- a/src/main/java/club/joylink/rtss/services/publishData/Lesson3DServiceImpl.java +++ b/src/main/java/club/joylink/rtss/services/publishData/Lesson3DServiceImpl.java @@ -53,14 +53,14 @@ public class Lesson3DServiceImpl implements Lesson3DService { @Override public List queryBy(Lesson3DQueryVO queryVO) { Lesson3dExample example = this.buildExampleByQueryVo(queryVO); + example.getOredCriteria().get(0).andStateEqualTo(StatusEnum.Valid.getCode()); List lesson3ds = this.lesson3dDAO.selectByExample(example); return Lesson3DVO.convertPublish2VOList(lesson3ds); } private Lesson3dExample buildExampleByQueryVo(Lesson3DQueryVO queryVO) { Lesson3dExample example = new Lesson3dExample(); - Lesson3dExample.Criteria criteria = example.createCriteria() - .andStateEqualTo(StatusEnum.Valid.getCode()); + Lesson3dExample.Criteria criteria = example.createCriteria(); if (StringUtils.hasText(queryVO.getName())) { criteria.andNameLike(String.format("%%%s%%", queryVO.getName())); }