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) {
|
private Optional<EssPerson> find(Long ouId, Long personId, boolean forUpdate) {
|
||||||
return lambdaQuery().eq(EssPerson::getOuId, ouId).eq(EssPerson::getPersonId, personId).last(forUpdate,
|
return lambdaQuery() //
|
||||||
"FOR UPDATE").oneOpt();
|
.eq(EssPerson::getOuId, ouId) //
|
||||||
|
.eq(EssPerson::getPersonId, personId) //
|
||||||
|
.last(forUpdate, "FOR UPDATE") //
|
||||||
|
.oneOpt();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOrgPersonState(EssPerson person, EssPersonState state) {
|
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) {
|
public List<EssPerson> getByPersonIds(Collection<Long> personIds) {
|
||||||
if (CollectionUtils.isEmpty(personIds))
|
if (CollectionUtils.isEmpty(personIds))
|
||||||
return Collections.emptyList();
|
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