大赛管理功能
This commit is contained in:
parent
6843a987d5
commit
287e004ee5
|
@ -29,7 +29,7 @@ public interface RacetrSceneDAO extends MyBatisBaseDao<RacetrScene, Long, Racetr
|
|||
+ " and A.name like CONCAT('%',#{vo.name},'%') "
|
||||
+ "</if> "
|
||||
+ "<if test='vo.type!= null and vo.type!= \"\"'> "
|
||||
+ " and A.type = ${vo.type}"
|
||||
+ " and A.type = #{vo.type}"
|
||||
+ "</if> "
|
||||
+ "</script>")
|
||||
List<RaceScenePageVO> pages(@Param("vo") RaceSceneQueryVO vo);
|
||||
|
|
|
@ -8,5 +8,5 @@ import lombok.Data;
|
|||
public class RaceSceneQueryVO extends PageQueryVO {
|
||||
|
||||
private String name;
|
||||
private Type type;
|
||||
private String type;
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@ package club.joylink.rtss.services.race;
|
|||
|
||||
import club.joylink.rtss.util.JsonUtils;
|
||||
import club.joylink.rtss.vo.client.PageVO;
|
||||
import club.joylink.rtss.vo.race.RaceSceneOuterClass.RaceScene.Type;
|
||||
import club.joylink.rtss.vo.race.RaceSceneOuterClass.RaceSceneListVO;
|
||||
import club.joylink.rtss.vo.race.RaceSceneOuterClass.RaceScenePublishVO;
|
||||
import club.joylink.rtss.vo.race.RaceSceneOuterClass.RaceSceneVO;
|
||||
|
@ -29,6 +30,7 @@ public class SceneServiceTest {
|
|||
RaceSceneQueryVO query = new RaceSceneQueryVO();
|
||||
query.setPageNum(1);
|
||||
query.setPageSize(10);
|
||||
query.setType(Type.Video.name());
|
||||
PageVO<RaceSceneListVO> page = this.sceneService.page(query);
|
||||
System.out.println(JsonUtils.writeValueAsString(page));
|
||||
|
||||
|
@ -36,7 +38,7 @@ public class SceneServiceTest {
|
|||
|
||||
@Test
|
||||
public void detailTest() {
|
||||
RaceSceneVO vo = this.sceneService.detail(2L);
|
||||
RaceSceneVO vo = this.sceneService.detail(5L);
|
||||
System.out.println(JsonUtils.writeValueAsString(vo));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue