+班组长OUID

This commit is contained in:
wuyu 2023-12-06 20:06:53 +08:00
parent d553bc9132
commit 7052cb8dad

View File

@ -658,6 +658,10 @@ public class PendingMessageNewServiceImpl implements PendingMessageNewService {
if(null == record.getOuId()){
record.setOuId(getPractitionOuId(executor, workspaceId));
}
// 班组长ouId默认0
if (IdentityTypeEnum.WORKER_LEADER == executor.getIdentity().getType()) {
record.setOuId(0L);
}
}
private Long getPractitionOuId(PersonDTO executor, Long workspaceId) {