使用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);

浙公网安备 33010602011771号