REQ-3581: 印章授权人问题
This commit is contained in:
parent
b743534f40
commit
d1f4f9d0a3
@ -33,8 +33,11 @@ public class EssPersonDao extends ServiceImpl<EssPersonMapper, EssPerson> {
|
||||
}
|
||||
|
||||
private Optional<EssPerson> find(Long ouId, Long personId, boolean forUpdate) {
|
||||
return lambdaQuery().eq(EssPerson::getOuId, ouId).eq(EssPerson::getPersonId, personId).last(forUpdate,
|
||||
"FOR UPDATE").oneOpt();
|
||||
return lambdaQuery() //
|
||||
.eq(EssPerson::getOuId, ouId) //
|
||||
.eq(EssPerson::getPersonId, personId) //
|
||||
.last(forUpdate, "FOR UPDATE") //
|
||||
.oneOpt();
|
||||
}
|
||||
|
||||
public void setOrgPersonState(EssPerson person, EssPersonState state) {
|
||||
@ -48,7 +51,9 @@ public class EssPersonDao extends ServiceImpl<EssPersonMapper, EssPerson> {
|
||||
public List<EssPerson> getByPersonIds(Collection<Long> personIds) {
|
||||
if (CollectionUtils.isEmpty(personIds))
|
||||
return Collections.emptyList();
|
||||
return lambdaQuery().in(EssPerson::getPersonId, personIds).list();
|
||||
return lambdaQuery() //
|
||||
.in(EssPerson::getPersonId, personIds) //
|
||||
.list();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user