Loading

使用mybatis逆向工程Example类,(或者)or条件查询(Day_47)

使用Example类,or条件查询

	SetmealExample setmealExample=new SetmealExample();
	
	setmealExample.or().andNameLike("xxx");
	setmealExample.or().andCodeLike("ddd"); 
	setmealExample.or().andHelpCodeLike("条件");
	
	Page<Setmeal> page= (Page<Setmeal>) setmealMapper.selectByExample(setmealExample);
posted @ 2021-04-26 15:00  A零号  阅读(382)  评论(0)    收藏  举报