成本中心同步插件添加用户过滤条件为可用

This commit is contained in:
zengweihai 2024-07-01 11:10:30 +08:00
parent 17bd3f2250
commit 0fdc863d0b
1 changed files with 1 additions and 0 deletions

View File

@ -82,6 +82,7 @@ public class CostCenterTaskImpl extends AbstractTask {
Set<String> keys = orgMap.keySet();
for (String key : keys) {
QFilter userQF = new QFilter("number", QCP.equals, key);
userQF.and("enable",QCP.equals,"1");
DynamicObject bos_user = BusinessDataServiceHelper.loadSingle("bos_user", userQF.toArray());//查找星瀚对应人员
if (bos_user != null){//当人员数据不为空时
boolean changeFlag = false;