修改工号生成逻辑

This commit is contained in:
yangjun 2026-01-28 15:19:06 +08:00
parent 81f8beacae
commit 55ad3850fb
1 changed files with 3 additions and 1 deletions

View File

@ -1924,9 +1924,11 @@ public class SysUserController {
if(depart == null){
return Result.error("未找到机构信息");
}
//生成六位随机数
String random = RandomUtil.randomNumbers(6);
selectedDeparts = depart.getId();
user.setOrgCode(depart.getOrgCode());
user.setWorkNo(depart.getOrgCode()+"01");
user.setWorkNo(depart.getOrgCode()+random);
user.setPassword("123456");
user.setCreateTime(new Date());//设置创建时间
String salt = oConvertUtils.randomGen(8);