REQ-2481: 设置模版中IM的发送优先级
This commit is contained in:
parent
9a21327e1b
commit
144267c3cb
@ -15,6 +15,7 @@ import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* @author yanglin
|
||||
@ -37,11 +38,10 @@ public class PersonService {
|
||||
return new PersonIdInfo(resp.getData());
|
||||
}
|
||||
|
||||
public Long getPersonIdByPhone(String phone) {
|
||||
public Optional<Long> getPersonIdByPhone(String phone) {
|
||||
CommonResponse<PersonProfileDto> profileResp = userProfileServiceApi
|
||||
.getUnionPersonProfile(null, phone);
|
||||
PersonProfileDto personProfile = BizAssertions.assertResponse(profileResp, "未找根据手机找到人员");
|
||||
BizAssertions.assertNotNull(personProfile, "未找根据手机找到人员");
|
||||
return personProfile.getId();
|
||||
PersonProfileDto data = profileResp.getData();
|
||||
return Optional.ofNullable(data == null ? null : data.getId());
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user