This commit is contained in:
andy 2026-04-01 13:41:02 +08:00
parent fb3c3b44f1
commit 76cf1cfc2b

View File

@ -298,6 +298,8 @@ public class SysStaffServiceImpl extends ServiceImpl<SysStaffMapper, SysStaff> i
JSONObject deptObject = JSONObject.parseObject(deptResult).getJSONObject("result");
String deptName = deptObject.getString("name");
dept = deptMapper.selectByName(deptName);
dept.setDingId(dingDeptId);
deptMapper.updateById(dept);
if(dept != null){
return dept.getDeptId()+"_"+dept.getAncestors();
}else{