@Select("<script>"
+ "select * from gs_store"
+ " <where>"
+ " <if test='storeTel != null and storeTel!= ''' > "
+ " and store_tel = #{storeTel}"
+ " </if>"
+ "</where>"
+ "</script>")
List<GsStore> getStoreInfoBySelect(@Param("storeTel")String storeTel);
MyBatis注解写 SQL判断空字符串或判断为空
最新推荐文章于 2024-07-12 08:15:00 发布

6382

被折叠的 条评论
为什么被折叠?



