Merge remote-tracking branch 'hs/dev/feat/partner1.1_20230727' into dev/feat/partner1.1_20230727
This commit is contained in:
@@ -52,7 +52,7 @@
|
|||||||
#{record.workflowStage},
|
#{record.workflowStage},
|
||||||
#{record.workflowStatus},
|
#{record.workflowStatus},
|
||||||
#{record.lineStatus},
|
#{record.lineStatus},
|
||||||
#{record.investmentManager}
|
#{record.investmentManager})
|
||||||
</foreach>
|
</foreach>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
@@ -579,7 +579,12 @@
|
|||||||
<select id="getFollowCountList" resultType="com.cool.store.dto.partner.LineCountDTO">
|
<select id="getFollowCountList" resultType="com.cool.store.dto.partner.LineCountDTO">
|
||||||
SELECT partner_id, IFNULL(COUNT(1), 0) AS followCount
|
SELECT partner_id, IFNULL(COUNT(1), 0) AS followCount
|
||||||
FROM hy_partner_line_info
|
FROM hy_partner_line_info
|
||||||
where (deleted = 1 or (deleted=0 and line_status=0 and close_time is not null))
|
where (deleted = 1 or (deleted=0 and line_status in (0,3) and close_time is not null )) and investment_manager is not null
|
||||||
|
<if test="partnerIdList!=null and partnerIdList.size>0">
|
||||||
|
<foreach collection="partnerIdList" item="partnerId" open="and partner_id in (" close=")" separator=",">
|
||||||
|
#{partnerId}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
GROUP BY partner_id;
|
GROUP BY partner_id;
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@@ -600,7 +605,7 @@
|
|||||||
<select id="getLineFollowHistoryList" resultMap="BaseResultMap">
|
<select id="getLineFollowHistoryList" resultMap="BaseResultMap">
|
||||||
SELECT <include refid="Base_Column_List"></include>
|
SELECT <include refid="Base_Column_List"></include>
|
||||||
FROM hy_partner_line_info
|
FROM hy_partner_line_info
|
||||||
where (deleted = 1 or (deleted=0 and line_status in (0,3) and close_time is not null and investment_manager is not null))
|
where (deleted = 1 or (deleted=0 and line_status in (0,3) and close_time is not null )) and investment_manager is not null
|
||||||
and partner_id = #{partner_id}
|
and partner_id = #{partner_id}
|
||||||
order by id desc
|
order by id desc
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
@@ -577,6 +577,12 @@ public class HyPartnerLineInfoServiceImpl implements HyPartnerLineInfoService {
|
|||||||
@Override
|
@Override
|
||||||
public Boolean assignFollowUser(String partnerId, String wantShopArea, Integer acceptAdjustType) {
|
public Boolean assignFollowUser(String partnerId, String wantShopArea, Integer acceptAdjustType) {
|
||||||
log.info("assignFollowUser partnerId:{},wantShopArea:{},acceptAdjustType:{}",partnerId,wantShopArea,acceptAdjustType);
|
log.info("assignFollowUser partnerId:{},wantShopArea:{},acceptAdjustType:{}",partnerId,wantShopArea,acceptAdjustType);
|
||||||
|
|
||||||
|
List<HyPartnerLineInfoDO> lineFollowHistoryList = hyPartnerLineInfoDAO.getLineFollowHistoryList(partnerId);
|
||||||
|
//如果跟进次数大于1 直接使用上一次的招商经理
|
||||||
|
if (CollectionUtils.isNotEmpty(lineFollowHistoryList)){
|
||||||
|
return Boolean.TRUE;
|
||||||
|
}
|
||||||
//当前加盟商线索
|
//当前加盟商线索
|
||||||
HyPartnerLineInfoDO HyPartnerLineInfo = hyPartnerLineInfoDAO.getByPartnerId(partnerId);
|
HyPartnerLineInfoDO HyPartnerLineInfo = hyPartnerLineInfoDAO.getByPartnerId(partnerId);
|
||||||
//如果意向区域没有绑定战区 不分配招商经理
|
//如果意向区域没有绑定战区 不分配招商经理
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import java.util.List;
|
|||||||
@Slf4j
|
@Slf4j
|
||||||
@Service
|
@Service
|
||||||
public class NoticeService {
|
public class NoticeService {
|
||||||
@Value("${feishu.notice.link.url:null}")
|
@Value("${feishu.notice.link.url}")
|
||||||
private String linkUrl;
|
private String linkUrl;
|
||||||
@Autowired
|
@Autowired
|
||||||
private ISVHttpRequest isvHttpRequest;
|
private ISVHttpRequest isvHttpRequest;
|
||||||
|
|||||||
Reference in New Issue
Block a user