待处理 意向加盟+邀约面试
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package com.cool.store.dao;
|
||||
|
||||
import com.cool.store.entity.HyPartnerLabelDO;
|
||||
import com.cool.store.mapper.HyPartnerLabelMapper;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2024/3/26 16:39
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Repository
|
||||
public class HyPartnerLabelDAO {
|
||||
|
||||
@Resource
|
||||
HyPartnerLabelMapper hyPartnerLabelMapper;
|
||||
|
||||
public List<HyPartnerLabelDO> listByIds(List<Long> ids ){
|
||||
if (CollectionUtils.isEmpty(ids)){
|
||||
return null;
|
||||
}
|
||||
return hyPartnerLabelMapper.getLabelListByIds(ids);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -8,9 +8,11 @@ import com.cool.store.enums.WorkflowSubStageStatusEnum;
|
||||
import com.cool.store.exception.ServiceException;
|
||||
import com.cool.store.mapper.LineInfoMapper;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
@@ -72,4 +74,12 @@ public class LineInfoDAO {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public List<LineInfoDO> listByInvestmentManager(String investmentManagerUserId,Integer subStageStatus) {
|
||||
if (StringUtils.isBlank(investmentManagerUserId)){
|
||||
return null;
|
||||
}
|
||||
List<LineInfoDO> lineInfo = lineInfoMapper.listByInvestmentManager(investmentManagerUserId,subStageStatus);
|
||||
return lineInfo;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,9 +8,11 @@ import com.cool.store.request.LineInterviewPageRequest;
|
||||
import com.github.pagehelper.Page;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
@@ -32,6 +34,13 @@ public class LineInterviewDAO {
|
||||
return lineInterviewMapper.getInterviewInfo(lineId, interviewType.getCode());
|
||||
}
|
||||
|
||||
public List<LineInterviewDO> getInterviewByLindIds(List<Long> lineIds, InterviewTypeEnum interviewType){
|
||||
if(CollectionUtils.isEmpty(lineIds) || Objects.isNull(interviewType)){
|
||||
return null;
|
||||
}
|
||||
return lineInterviewMapper.getInterviewByLindIds(lineIds, interviewType.getCode());
|
||||
}
|
||||
|
||||
public Integer updateInterviewInfo(LineInterviewDO interview){
|
||||
return lineInterviewMapper.updateByPrimaryKeySelective(interview);
|
||||
}
|
||||
|
||||
@@ -1,11 +1,21 @@
|
||||
package com.cool.store.mapper;
|
||||
|
||||
import com.cool.store.entity.LineInfoDO;
|
||||
import com.cool.store.enums.WorkflowSubStageStatusEnum;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface LineInfoMapper extends Mapper<LineInfoDO> {
|
||||
LineInfoDO getByPartnerId(@Param("partnerId") String partnerId);
|
||||
|
||||
LineInfoDO getByLineId(@Param("lineId") Long lineId);
|
||||
|
||||
/**
|
||||
* 查询招商经理待处理数据
|
||||
* @param investmentManagerUserId
|
||||
* @return
|
||||
*/
|
||||
List<LineInfoDO> listByInvestmentManager(@Param("investmentManagerUserId") String investmentManagerUserId, @Param("code") Integer code);
|
||||
}
|
||||
@@ -7,6 +7,8 @@ import com.github.pagehelper.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface LineInterviewMapper extends Mapper<LineInterviewDO> {
|
||||
|
||||
/**
|
||||
@@ -17,6 +19,14 @@ public interface LineInterviewMapper extends Mapper<LineInterviewDO> {
|
||||
*/
|
||||
LineInterviewDO getInterviewInfo(@Param("lineId") Long lineId, @Param("interviewType") Integer interviewType);
|
||||
|
||||
/**
|
||||
* getInterviewByLindIds
|
||||
* @param lineIds
|
||||
* @param interviewType
|
||||
* @return
|
||||
*/
|
||||
List<LineInterviewDO> getInterviewByLindIds(@Param("lineIds") List<Long> lineIds, @Param("interviewType") Integer interviewType);
|
||||
|
||||
/**
|
||||
* 获取面试分页
|
||||
* @param request
|
||||
|
||||
@@ -38,4 +38,17 @@
|
||||
select * from xfsg_line_info where id = #{lineId} and deleted = 0
|
||||
</select>
|
||||
|
||||
<select id="listByInvestmentManager" resultMap="BaseResultMap">
|
||||
select * from xfsg_line_info
|
||||
where deleted = 0
|
||||
and workflow_sub_stage_status = 5
|
||||
<if test="investmentManagerUserId != null and investmentManagerUserId != ''">
|
||||
and investment_manager = #{investmentManagerUserId}
|
||||
</if>
|
||||
<if test="code != null">
|
||||
and workflow_sub_stage_status = #{code}
|
||||
</if>
|
||||
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -30,6 +30,15 @@
|
||||
select * from xfsg_line_interview where line_id = #{lineId} and interview_type = #{interviewType} and deleted = '0'
|
||||
</select>
|
||||
|
||||
<select id="getInterviewByLindIds" resultMap="BaseResultMap">
|
||||
select * from xfsg_line_interview where interview_type = #{interviewType} and deleted = '0'
|
||||
<if test="lineIds != null">
|
||||
<foreach collection="lineIds" item="item" separator="," open="and line_id in (" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="getInterviewerPage" resultType="com.cool.store.dto.interview.LineInterviewPageDTO">
|
||||
select
|
||||
a.id as interviewId,
|
||||
|
||||
Reference in New Issue
Block a user