|
|
@ -167,11 +167,13 @@ public class IcResiUserConfirmServiceImpl extends BaseServiceImpl<IcResiUserConf |
|
|
|
if (null != result) { |
|
|
|
LambdaQueryWrapper<IcResiUserConfirmEntity> wrapper = new LambdaQueryWrapper<>(); |
|
|
|
wrapper.eq(IcResiUserConfirmEntity::getIcResiUserId, dto.getIcResiUserId()); |
|
|
|
wrapper.eq(IcResiUserConfirmEntity::getHouseId, result.getHouseId()); |
|
|
|
wrapper.in(IcResiUserConfirmEntity::getSubmitType, Arrays.asList("in", "out")); |
|
|
|
wrapper.orderByDesc(IcResiUserConfirmEntity::getCreatedTime); |
|
|
|
List<IcResiUserConfirmEntity> list = baseDao.selectList(wrapper); |
|
|
|
if (CollectionUtils.isNotEmpty(list)) { |
|
|
|
result.setMoveOutStatus(list.get(NumConstant.ZERO).getConfirmResult()); |
|
|
|
result.setMoveOutStatus(NumConstant.ONE_STR.equals(list.get(NumConstant.ZERO).getConfirmResult())? |
|
|
|
NumConstant.THREE_STR:list.get(NumConstant.ZERO).getConfirmResult()); |
|
|
|
} else { |
|
|
|
result.setMoveOutStatus(NumConstant.THREE_STR); |
|
|
|
} |
|
|
|