面试查询时间修改

This commit is contained in:
苏竹红
2023-07-03 14:07:11 +08:00
parent 3ac68fbba7
commit 099f219850
8 changed files with 58 additions and 10 deletions

View File

@@ -6,12 +6,15 @@ import com.cool.store.entity.HyPartnerInterviewPlanDO;
import com.cool.store.mapper.HyPartnerInterviewPlanMapper;
import com.github.pagehelper.PageInfo;
import com.google.common.collect.Lists;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import javax.annotation.Resource;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
@@ -89,5 +92,17 @@ public class HyPartnerInterviewPlanDAO {
return hyPartnerInterviewPlanMapper.selectInterviewIdByLineId(lineId);
}
/**
* 根据线索表ID查询
* @param lindIds
* @return
*/
public List<HyPartnerInterviewPlanDO> getHyPartnerInterviewPlanByLineIds(List<Long> lindIds){
if (CollectionUtils.isEmpty(lindIds)){
return Lists.newArrayList();
}
return hyPartnerInterviewPlanMapper.getHyPartnerInterviewPlanByLineIds(lindIds);
}
}

View File

@@ -106,9 +106,16 @@ public interface HyPartnerInterviewPlanMapper {
*/
List<HyPartnerInterviewPlanDO> selectBySelective(@Param("record") HyPartnerInterviewPlanDO record);
/**
* 根据线索
* @param lindIds
* @return
*/
List<HyPartnerInterviewPlanDO> getHyPartnerInterviewPlanByLineIds(List<Long> lindIds);
/**
* 批量软删面试计划
* @param record
* @param interviewIds
* @return
*/
void batchDeleteInterviewPlans(@Param("interviewPlanIds")List<Long> interviewIds);

View File

@@ -463,6 +463,21 @@
select id from hy_partner_interview_plan where partner_line_id = #{lineId} and deleted = '0'
</select>
<select id="getHyPartnerInterviewPlanByLineIds" resultMap="BaseResultMap">
select <include refid="Base_Column_List"></include>
from hy_partner_interview_plan
where deleted = 0
<if test="lindIds!=null and lindIds.size>0">
<foreach collection="lindIds" item="lindId" open="and partner_line_id in (" close=")" separator=",">
#{lindId}
</foreach>
</if>
</select>
<!-- 查询用户基本信息 -->
<select id="getEnterpriseUserBaseInfo" resultType="com.cool.store.vo.EnterpriseUserBaseInfoVO">
select name, mobile

View File

@@ -479,21 +479,20 @@
hpuinfo.accept_adjust_type as acceptAdjustType,
hpuinfo.username as partnerUserName,
hpuinfo.mobile as partnerUserPhone,
hpuinfo.shop_code as storeCode,
hpuinfo.shop_name as storeName,
hpuinfo.recommend_partner_name as recommendPartnerName,
hpuinfo.recommend_partner_mobile as recommendPartnerMobile,
eu.name as investmentManagerName,
eu.mobile as investmentManagerMobile,
hpip.id as interviewPlanId,
hpip.start_time as startTime
eu.mobile as investmentManagerMobile
FROM
hy_partner_line_info hpli
LEFT JOIN hy_partner_intent_info hpii ON hpli.id = hpii.partner_line_id
LEFT JOIN hy_partner_user_info hpuinfo ON hpli.partner_id = hpuinfo.partner_id
LEFT JOIN enterprise_user eu ON hpli.investment_manager = eu.user_id
LEFT JOIN hy_partner_interview_plan hpip on hpli.id = hpip.partner_line_id
LEFT JOIN hy_open_area_info hoai ON hoai.id = hpuinfo.want_shop_area
WHERE hpli.line_status in (1,2)
AND ( hpli.deleted IS NULL OR hpli.deleted = 0 ) and (hpip.deleted is null or hpip.deleted=0)
AND ( hpli.deleted IS NULL OR hpli.deleted = 0 )
<if test="keyword!=null and keyword!='' and keywordType!=null and keywordType=='name'">
AND (eu.name like concat('%',#{keyword},'%') or hpuinfo.username like concat('%',#{keyword},'%'))
</if>