优化
This commit is contained in:
@ -459,7 +459,6 @@ public class WgzPayCalculationServiceImpl extends ServicePlusImpl<WgzPayCalculat
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BigDecimal getPayByTaskAndBgt(Long taskId,Long auditorUserId) {
|
public BigDecimal getPayByTaskAndBgt(Long taskId,Long auditorUserId) {
|
||||||
|
|
||||||
List<WgzPayCalculation> list = list(Wrappers.<WgzPayCalculation>lambdaQuery().eq(WgzPayCalculation::getTaskId, taskId)
|
List<WgzPayCalculation> list = list(Wrappers.<WgzPayCalculation>lambdaQuery().eq(WgzPayCalculation::getTaskId, taskId)
|
||||||
.eq(WgzPayCalculation::getAuditorType, "2")
|
.eq(WgzPayCalculation::getAuditorType, "2")
|
||||||
.eq(WgzPayCalculation::getAuditorUserId, auditorUserId));
|
.eq(WgzPayCalculation::getAuditorUserId, auditorUserId));
|
||||||
@ -487,6 +486,7 @@ public class WgzPayCalculationServiceImpl extends ServicePlusImpl<WgzPayCalculat
|
|||||||
|
|
||||||
BgtProjectRecruitApply apply = iBgtProjectRecruitApplyService.getOne(Wrappers.<BgtProjectRecruitApply>lambdaQuery()
|
BgtProjectRecruitApply apply = iBgtProjectRecruitApplyService.getOne(Wrappers.<BgtProjectRecruitApply>lambdaQuery()
|
||||||
.eq(BgtProjectRecruitApply::getRecruitId, recruitId).eq(BgtProjectRecruitApply::getUserId, userId)
|
.eq(BgtProjectRecruitApply::getRecruitId, recruitId).eq(BgtProjectRecruitApply::getUserId, userId)
|
||||||
|
.orderByDesc(BgtProjectRecruitApply::getId)
|
||||||
.last("limit 1"));
|
.last("limit 1"));
|
||||||
vo.setEntryTime(apply.getEntryTime());
|
vo.setEntryTime(apply.getEntryTime());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user