@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判断空字符串或判断为空
最新推荐文章于 2023-08-22 15:30:07 发布