摘要:
一、使用count()聚合函数 当需要查询数据是否存在时,一般会使用count函数,统计其个数,用法如下: select count(1) from t_sys_user where username = "zhangsan" 在java中判断数量是否大于0即可: int num = userDao 阅读全文
摘要:
报错如下: 错误代码:‘ @Override public List<Pxml> selectList(String startTime, String endTime) { Example example = new Example(Pxml.class); example.createCrite 阅读全文
摘要:
错误代码: <if test="startTime!=null and startTime!='' and endTime!=null and endTime !=''"> AND t1.update_time BETWEEN #{startTime} AND #{endTime} </if> 原因 阅读全文
摘要:
报错如下: Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2021-10-31 11:08:35.055 ERROR 阅读全文