Merge remote-tracking branch 'origin/cc_20230520_partner' into cc_20230520_partner
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.cool.store.dao;
|
||||
|
||||
import com.cool.store.dto.partner.AdvanceLineDTO;
|
||||
import com.cool.store.dto.partner.PartnerInterviewInfoDTO;
|
||||
import com.cool.store.dto.partner.SpecialDateRangeInterviewCountDTO;
|
||||
import com.cool.store.entity.HyPartnerInterviewPlanDO;
|
||||
@@ -36,11 +37,11 @@ public class HyPartnerInterviewPlanDAO {
|
||||
* @param currentDate
|
||||
* @return
|
||||
*/
|
||||
public Integer getCurrentDateInterviewCount(String userId,String currentDate){
|
||||
public List<AdvanceLineDTO> getCurrentDateInterviewCount(String userId, String currentDate, String endDate){
|
||||
if (StringUtils.isEmpty(userId)){
|
||||
return 0;
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return hyPartnerInterviewPlanMapper.getCurrentDateInterviewCount(userId,currentDate);
|
||||
return hyPartnerInterviewPlanMapper.getCurrentDateInterviewCount(userId,currentDate,endDate);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -64,11 +64,11 @@ public class HyPartnerLineInfoDAO {
|
||||
}
|
||||
|
||||
|
||||
public Integer getAdventLineCount( String userId, String currentDate){
|
||||
public List<AdvanceLineDTO> getAdventLineCount( String userId, String currentDate,String endDate){
|
||||
if (StringUtils.isEmpty(userId)){
|
||||
return 0;
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return hyPartnerLineInfoMapper.getAdventLineCount(userId,currentDate);
|
||||
return hyPartnerLineInfoMapper.getAdventLineCount(userId,currentDate,endDate);
|
||||
}
|
||||
|
||||
public StageCountDTO selectStagePendingCount(String userId){
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.cool.store.mapper;
|
||||
|
||||
import com.cool.store.dto.message.RemindInterviewMsgDTO;
|
||||
import com.cool.store.dto.partner.AdvanceLineDTO;
|
||||
import com.cool.store.dto.partner.PartnerInterviewInfoDTO;
|
||||
import com.cool.store.dto.partner.SpecialDateRangeInterviewCountDTO;
|
||||
import com.cool.store.entity.HyPartnerInterviewPlanDO;
|
||||
@@ -39,7 +40,7 @@ public interface HyPartnerInterviewPlanMapper {
|
||||
* @param currentDate
|
||||
* @return
|
||||
*/
|
||||
Integer getCurrentDateInterviewCount(@Param("userId") String userId, @Param("currentDate") String currentDate);
|
||||
List<AdvanceLineDTO> getCurrentDateInterviewCount(@Param("userId") String userId, @Param("currentDate") String currentDate, String endDate);
|
||||
|
||||
/**
|
||||
* todo 当天面试数据需要修改
|
||||
|
||||
@@ -61,7 +61,7 @@ public interface HyPartnerLineInfoMapper {
|
||||
* @param currentDate
|
||||
* @return
|
||||
*/
|
||||
Integer getAdventLineCount(@Param("userId") String userId, @Param("currentDate") String currentDate);
|
||||
List<AdvanceLineDTO> getAdventLineCount(@Param("userId") String userId, @Param("currentDate") String currentDate, @Param("endDate") String endDate);
|
||||
|
||||
/**
|
||||
* 招商经理 对应各阶段待处理数据
|
||||
|
||||
@@ -255,17 +255,18 @@
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<select id="getCurrentDateInterviewCount" resultType="java.lang.Integer">
|
||||
select count(1) from hy_partner_interview_plan
|
||||
<select id="getCurrentDateInterviewCount" resultType="com.cool.store.dto.partner.AdvanceLineDTO">
|
||||
select interview_date as date,count(1) as count from hy_partner_interview_plan
|
||||
<where>
|
||||
<if test="userId!=null and userId!=''">
|
||||
and interviewer = #{userId}
|
||||
</if>
|
||||
<if test="currentDate!=null and currentDate!=''">
|
||||
and interview_date = #{currentDate}
|
||||
and interview_date BETWEEN #{currentDate} and #{endDate}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
group by interview_date
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getInterviewCount" resultType="com.cool.store.dto.partner.SpecialDateRangeInterviewCountDTO">
|
||||
|
||||
@@ -278,17 +278,18 @@
|
||||
where id = #{record.id}
|
||||
</update>
|
||||
|
||||
<select id="getAdventLineCount" resultType="java.lang.Integer">
|
||||
select count(1) from hy_partner_line_info
|
||||
<select id="getAdventLineCount" resultType="com.cool.store.dto.partner.AdvanceLineDTO">
|
||||
select DATE(deadline) as date ,count(1) as count from hy_partner_line_info
|
||||
<where>
|
||||
<if test="userId!=null and userId!=''">
|
||||
and investment_manager = #{userId}
|
||||
</if>
|
||||
<if test="currentDate!=null and currentDate!=''">
|
||||
and DATE(deadline) = #{currentDate}
|
||||
and DATE(deadline) BETWEEN #{currentDate} and #{endDate}
|
||||
</if>
|
||||
and (workflow_stage = 2 and workflow_status = 0)
|
||||
</where>
|
||||
group by DATE(deadline)
|
||||
</select>
|
||||
|
||||
<select id="selectStagePendingCount" resultType="com.cool.store.dto.partner.StageCountDTO">
|
||||
|
||||
Reference in New Issue
Block a user