05 2023 档案
摘要:首先这是一次不规范编码出现的问题 1.mysql默认null是最小的,也就是说正序null会排在最上面,然后是空串,然后是有值的数据。 2.我们可以在排序添加加上 is null 这个在加排序条件 null就会排在后面,其他正常排序 SELECT customer_id,deal_status,up
阅读全文
摘要:public class Test { public static void main(String[] args) { List<Integer> integerList = new ArrayList<>(); integerList.add(1); integerList.add(2); in
阅读全文
摘要:一般是有这个job服务的,然后去.yml 文件里找任务调度中心的后台管理地址 JobHandler就是填注解加的类名,cron是执行规则,截图是一天一次,0点十分执行,运行模式选bean corn 表达式介绍 0 50 23 * * ? 是每天23点五十执行一次 依次是 秒 分 小时 日 月 年 可
阅读全文
摘要:1.在代码里将列表对该字段进行去重,可以考虑用Set 2. insert ignore into,遇到错误跳过,即重复的话会跳过,执行下一条 <insert id="insertDeptList"> insert ignore into yx_admin_dept (dept_id,pid,name
阅读全文