07 2024 档案

js笔记,持续更新
摘要:1、判断必须是移动电话或者座机号码(11位) //必须是数字,可以是移动电话和座机 const flag = !isNaN(parseFloat(value)) && isFinite(value); if (!flag) { return cb(new Error('必须是11位数字')) } i 阅读全文

posted @ 2024-07-27 10:30 五官一体即忢 阅读(3) 评论(0) 推荐(0) 编辑

字段重复判断
摘要:select ifnull( (SELECT '已存在该手机号码,请勿重复添加!'from b_staff_temp as staff left join b_unit_temp as unit on unit.id = staff.unit_id where unit.unit_status in 阅读全文

posted @ 2024-07-26 16:52 五官一体即忢 阅读(4) 评论(0) 推荐(0) 编辑

常用的linux命令
摘要: 阅读全文

posted @ 2024-07-25 07:57 五官一体即忢 阅读(3) 评论(0) 推荐(0) 编辑

springboot属性统一配置,分层级
摘要:app.user.name=John Doe app.user.age=30 app.user.address.city=New York app.user.address.country=USA import org.springframework.boot.context.properties. 阅读全文

posted @ 2024-07-24 08:31 五官一体即忢 阅读(7) 评论(0) 推荐(0) 编辑

mysql字段脱敏
摘要:select CONCAT(LEFT(__T1.id_no,6), '****' ,RIGHT(__T1.id_no,4)) as id_no_tm, CONCAT(LEFT(__T1.phone,3), '******',RIGHT(__T1.phone,2) ) as phone_tm from 阅读全文

posted @ 2024-07-18 09:21 五官一体即忢 阅读(11) 评论(0) 推荐(0) 编辑

避免删库跑路的最好办法
摘要:一、前言 1.1 删库跑路是什么? 删库跑路:是一个在开发和运维领域常见的幽默说法,但它指的是一种严重的故障情境:意外删除了生产数据库中的数据。 在实际操作中,这种情况可能会导致严重的数据丢失和业务中断。 1.2 避免删除跑路的方式 权限控制: 限制对生产环境的直接访问和操作,确保只有受信任的人员才 阅读全文

posted @ 2024-07-02 10:27 五官一体即忢 阅读(70) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

导航

统计

点击右上角即可分享
微信分享提示