添加缺失的inferDeptType方法
This commit is contained in:
parent
43c6a6ce36
commit
f0ae3dabdf
@ -671,6 +671,26 @@ public class DingTalkService {
|
||||
|
||||
return allDepartments;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据部门名称推断部门类型
|
||||
* 可以根据实际业务规则调整判断逻辑
|
||||
*/
|
||||
private String inferDeptType(String deptName) {
|
||||
if (deptName == null) {
|
||||
return "demand"; // 默认需求部门
|
||||
}
|
||||
|
||||
String name = deptName.toLowerCase();
|
||||
// 常见的接单部门关键词
|
||||
if (name.contains("设计") || name.contains("创意") || name.contains("美工") ||
|
||||
name.contains("视觉") || name.contains("ui") || name.contains("ux")) {
|
||||
return "receiving";
|
||||
}
|
||||
|
||||
// 默认需求部门
|
||||
return "demand";
|
||||
}
|
||||
|
||||
/**
|
||||
* 同步钉钉用户
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user