|
|
@ -17,6 +17,7 @@ |
|
|
|
|
|
|
|
package com.epmet.modules.partymember.service.impl; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
@ -25,6 +26,7 @@ import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.constant.PartyMemberConstant; |
|
|
|
import com.epmet.dto.form.CreatedTimeByUserIdFormDTO; |
|
|
|
import com.epmet.dto.result.CertifiedResultDTO; |
|
|
|
import com.epmet.dto.result.CreatedTimeByUserIdResultDTO; |
|
|
@ -41,6 +43,7 @@ import com.epmet.resi.partymember.dto.partymember.form.CertifiedDetailFormDTO; |
|
|
|
import com.epmet.resi.partymember.dto.partymember.form.CertifiedFormDTO; |
|
|
|
import com.epmet.resi.partymember.dto.partymember.result.CertifiedDetailResultDTO; |
|
|
|
import com.epmet.resi.partymember.dto.partymember.result.PartyAuthProcessingCountResultDTO; |
|
|
|
import kotlin.jvm.internal.Lambda; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
@ -235,4 +238,14 @@ public class PartymemberInfoServiceImpl extends BaseServiceImpl<PartymemberInfoD |
|
|
|
List<PartymemberInfoDTO> list = baseDao.selectListPartymemberInfoByGridId(gridIdList); |
|
|
|
return list; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public PartymemberInfoDTO getPartyMemberInfoByUser(String customerId, String userId) { |
|
|
|
LambdaQueryWrapper<PartymemberInfoEntity> wrapper = new LambdaQueryWrapper<>(); |
|
|
|
wrapper.eq(PartymemberInfoEntity :: getCustomerId, customerId); |
|
|
|
wrapper.eq(PartymemberInfoEntity :: getUserId, userId); |
|
|
|
wrapper.ne(PartymemberInfoEntity :: getConfirmResult, PartyMemberConstant.REJECTED); |
|
|
|
PartymemberInfoEntity entity = baseDao.selectOne(wrapper); |
|
|
|
return ConvertUtils.sourceToTarget(entity, PartymemberInfoDTO.class); |
|
|
|
} |
|
|
|
} |
|
|
|