1. 参数中直接加入%%,注意不需要加两个单引号,加了就会出错,因为系统会自动为字符串类型加上两个单引号 <select id="selectPersons" resultType="person" parameterType="person"> select id,sex,age,username,password from person where true <if test="username!=null&qu
#region Linq to 字符串char.IsUpper意思是判断是否大写 //string strDemo = "HelloWord!"; //var query = from n in strDemo // where char.IsUpper(n) // select n; //foreach (char c in que
问题描述 @Select("select * from account order by #{orderBy} #{orderRule} limit #{start},#{offset}") public List<Account> getAccountList(@Param("orderBy") String orderBy, @Param("orderRule") String orderRule, @Param("st
// 判断一个字符是否是中文 public boolean isChinese(char c) { return c >= 0x4E00 && c <= 0x9FA5;// 根据字节码判断 } // 判断一个字符串是否含有中文 public boolean isChinese(String str) { if (str == null) return false; for (char c : str.toCharArray()) { if (isChinese(c)) retu