REQ-3581: 印章授权人问题
This commit is contained in:
parent
d1f4f9d0a3
commit
27767939a5
@ -23,8 +23,10 @@ import java.util.Optional;
|
||||
public class EssContractDao extends ServiceImpl<EssContractMapper, EssContract> {
|
||||
|
||||
public Optional<EssContract> findByIdempotentCode(String appCode, String idempotentCode) {
|
||||
return lambdaQuery().eq(EssContract::getAppCode, appCode).eq(EssContract::getIdempotentCode,
|
||||
idempotentCode).oneOpt();
|
||||
return lambdaQuery() //
|
||||
.eq(EssContract::getAppCode, appCode) //
|
||||
.eq(EssContract::getIdempotentCode, idempotentCode) //
|
||||
.oneOpt();
|
||||
}
|
||||
|
||||
public EssContract getOrThrow(String essContractId) {
|
||||
@ -42,7 +44,10 @@ public class EssContractDao extends ServiceImpl<EssContractMapper, EssContract>
|
||||
}
|
||||
|
||||
private Optional<EssContract> find(String essContractId, boolean forUpdate) {
|
||||
return lambdaQuery().eq(EssContract::getEssContractId, essContractId).last(forUpdate, "FOR UPDATE").oneOpt();
|
||||
return lambdaQuery() //
|
||||
.eq(EssContract::getEssContractId, essContractId) //
|
||||
.last(forUpdate, "FOR UPDATE") //
|
||||
.oneOpt();
|
||||
}
|
||||
|
||||
public void setEssContractCreated(Long id, String flowId, List<String> essFileIds, List<Approver> approvers) {
|
||||
|
||||
@ -25,7 +25,9 @@ public class EssOrgDao extends ServiceImpl<EssOrgMapper, EssOrg> {
|
||||
public List<EssOrg> getByOuIds(Collection<Long> ouIds) {
|
||||
if (CollectionUtils.isEmpty(ouIds))
|
||||
return Collections.emptyList();
|
||||
return lambdaQuery().in(EssOrg::getOuId, ouIds).list();
|
||||
return lambdaQuery() //
|
||||
.in(EssOrg::getOuId, ouIds) //
|
||||
.list();
|
||||
}
|
||||
|
||||
public EssOrg findOrNull(Long ouId) {
|
||||
@ -37,7 +39,10 @@ public class EssOrgDao extends ServiceImpl<EssOrgMapper, EssOrg> {
|
||||
}
|
||||
|
||||
private Optional<EssOrg> find(Long ouId, boolean forUpdate) {
|
||||
return lambdaQuery().eq(EssOrg::getOuId, ouId).last(forUpdate, "FOR UPDATE").oneOpt();
|
||||
return lambdaQuery() //
|
||||
.eq(EssOrg::getOuId, ouId) //
|
||||
.last(forUpdate, "FOR UPDATE") //
|
||||
.oneOpt();
|
||||
}
|
||||
|
||||
public void setOrgAuthorized(OrgPerson superAdmin) {
|
||||
|
||||
@ -16,7 +16,9 @@ import java.util.Optional;
|
||||
public class EssSealDao extends ServiceImpl<EssSealMapper, EssSeal> {
|
||||
|
||||
public Optional<EssSeal> findByEssSealId(String essSealId) {
|
||||
return lambdaQuery().eq(EssSeal::getEssSealId, essSealId).oneOpt();
|
||||
return lambdaQuery() //
|
||||
.eq(EssSeal::getEssSealId, essSealId) //
|
||||
.oneOpt();
|
||||
}
|
||||
|
||||
public void updateState(String essSealId, EssSealState state) {
|
||||
|
||||
@ -43,16 +43,24 @@ public class EssSealPersonDao extends ServiceImpl<EssSealPersonMapper, EssSealPe
|
||||
}
|
||||
|
||||
public Optional<EssSealPerson> find(String essSealId, Long personId, boolean forUpdate) {
|
||||
return lambdaQuery().eq(EssSealPerson::getEssSealId, essSealId).eq(EssSealPerson::getPersonId, personId).last(
|
||||
forUpdate, "FOR UPDATE").oneOpt();
|
||||
return lambdaQuery() //
|
||||
.eq(EssSealPerson::getEssSealId, essSealId) //
|
||||
.eq(EssSealPerson::getPersonId, personId) //
|
||||
.last(forUpdate, "FOR UPDATE") //
|
||||
.oneOpt();
|
||||
}
|
||||
|
||||
public List<EssSealPerson> getByPersonId(Long ouId, Long personId) {
|
||||
return lambdaQuery().eq(EssSealPerson::getOuId, ouId).eq(EssSealPerson::getPersonId, personId).list();
|
||||
return lambdaQuery() //
|
||||
.eq(EssSealPerson::getOuId, ouId) //
|
||||
.eq(EssSealPerson::getPersonId, personId) //
|
||||
.list();
|
||||
}
|
||||
|
||||
public List<EssSealPerson> get(String essSealId) {
|
||||
return lambdaQuery().eq(EssSealPerson::getEssSealId, essSealId).list();
|
||||
return lambdaQuery() //
|
||||
.eq(EssSealPerson::getEssSealId, essSealId) //
|
||||
.list();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user