|
|
@ -4,12 +4,14 @@ import com.ruoyi.common.enums.FlagStatus;
|
|
|
|
import com.ruoyi.common.enums.LarkActiveInviteStageEnum;
|
|
|
|
import com.ruoyi.common.enums.LarkActiveInviteStageEnum;
|
|
|
|
import com.ruoyi.common.utils.DateUtils;
|
|
|
|
import com.ruoyi.common.utils.DateUtils;
|
|
|
|
import com.ruoyi.flyingbook.domain.LarkUserActiveInviteRelatoin;
|
|
|
|
import com.ruoyi.flyingbook.domain.LarkUserActiveInviteRelatoin;
|
|
|
|
|
|
|
|
import com.ruoyi.flyingbook.domain.larkactive.LarkInviteVo;
|
|
|
|
import com.ruoyi.flyingbook.mapper.LarkUserActiveInviteRelatoinMapper;
|
|
|
|
import com.ruoyi.flyingbook.mapper.LarkUserActiveInviteRelatoinMapper;
|
|
|
|
import com.ruoyi.flyingbook.service.ILarkUserActiveInviteRelatoinService;
|
|
|
|
import com.ruoyi.flyingbook.service.ILarkUserActiveInviteRelatoinService;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 【请填写功能名称】Service业务层处理
|
|
|
|
* 【请填写功能名称】Service业务层处理
|
|
|
@ -51,6 +53,22 @@ public class LarkUserActiveInviteRelatoinServiceImpl implements ILarkUserActiveI
|
|
|
|
return larkUserActiveInviteRelatoinMapper.queryTopTen(larkUserActiveInviteRelatoin);
|
|
|
|
return larkUserActiveInviteRelatoinMapper.queryTopTen(larkUserActiveInviteRelatoin);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public List<LarkInviteVo> queryMyInviteList(LarkUserActiveInviteRelatoin larkUserActiveInviteRelatoin) {
|
|
|
|
|
|
|
|
larkUserActiveInviteRelatoin.setFlag(FlagStatus.OK.getCode());
|
|
|
|
|
|
|
|
List<LarkUserActiveInviteRelatoin> larkUserActiveInviteRelatoins = larkUserActiveInviteRelatoinMapper.selectLarkUserActiveInviteRelatoinList(larkUserActiveInviteRelatoin);
|
|
|
|
|
|
|
|
List<LarkInviteVo> result = larkUserActiveInviteRelatoins.stream().map(r -> {
|
|
|
|
|
|
|
|
LarkInviteVo larkInviteVo = new LarkInviteVo();
|
|
|
|
|
|
|
|
larkInviteVo.setUrl(r.getInviteUserName());
|
|
|
|
|
|
|
|
larkInviteVo.setUrl(r.getInviteUserName());
|
|
|
|
|
|
|
|
LarkActiveInviteStageEnum inviteStageEnum = LarkActiveInviteStageEnum.getByCode(r.getInviteStage());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
larkInviteVo.setType(inviteStageEnum != null ? inviteStageEnum.getType() : "primary");
|
|
|
|
|
|
|
|
return larkInviteVo;
|
|
|
|
|
|
|
|
}).collect(Collectors.toList());
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 新增【请填写功能名称】
|
|
|
|
* 新增【请填写功能名称】
|
|
|
|
*
|
|
|
|
*
|
|
|
|