摘要:1、判断必须是移动电话或者座机号码(11位) //必须是数字,可以是移动电话和座机 const flag = !isNaN(parseFloat(value)) && isFinite(value); if (!flag) { return cb(new Error('必须是11位数字')) } i
阅读全文
摘要: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
阅读全文
摘要: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.
阅读全文
摘要: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
阅读全文
摘要:一、前言 1.1 删库跑路是什么? 删库跑路:是一个在开发和运维领域常见的幽默说法,但它指的是一种严重的故障情境:意外删除了生产数据库中的数据。 在实际操作中,这种情况可能会导致严重的数据丢失和业务中断。 1.2 避免删除跑路的方式 权限控制: 限制对生产环境的直接访问和操作,确保只有受信任的人员才
阅读全文