feat:意向阶段数据

This commit is contained in:
苏竹红
2025-05-15 16:47:00 +08:00
parent c3d2ec4832
commit 0acb2dbea1
3 changed files with 52 additions and 0 deletions

View File

@@ -17,4 +17,12 @@ public class UserDTO {
private String name;
@ApiModelProperty(value = "手机号")
private String mobile;
public UserDTO() {
}
public UserDTO(String name, String mobile) {
this.name = name;
this.mobile = mobile;
}
}

View File

@@ -1,5 +1,6 @@
package com.cool.store.service;
import com.cool.store.dto.UserDTO;
import com.cool.store.entity.LineInfoDO;
import com.cool.store.entity.ShopInfoDO;
import com.cool.store.request.*;
@@ -113,4 +114,13 @@ public interface ShopService {
String getFranchiseBrandName(Long shopId);
//处理shop表省市区
Integer dateHandler(Integer pageNum, Integer pageSize);
/**
* 获取意向阶段处理人
* @param lineId
* @param subStage
* @return
*/
List<UserDTO> getIntendSubStageHandle(Long lineId,Integer subStage);
}

View File

@@ -7,6 +7,7 @@ import com.cool.store.dto.Preparation.PreparationDTO;
import com.cool.store.dto.Preparation.ScheduleDTO;
import com.cool.store.dto.RegionNode;
import com.cool.store.dto.ShopNameAndCodeDTO;
import com.cool.store.dto.UserDTO;
import com.cool.store.dto.openPreparation.PlanLineDTO;
import com.cool.store.entity.*;
import com.cool.store.enums.*;
@@ -45,6 +46,7 @@ import java.util.function.Function;
import java.util.stream.Collectors;
import static com.cool.store.enums.ErrorCodeEnum.UPDATE_INVESTMENT_MANAGER_FAIL;
import static com.cool.store.enums.WorkflowSubStageStatusEnum.*;
/**
* @author zhangchenbiao
@@ -672,5 +674,37 @@ public class ShopServiceImpl implements ShopService {
return shopInfoDAO.updateShopCity(shopList);
}
@Override
public List<UserDTO> getIntendSubStageHandle(Long lineId,Integer subStage) {
//查询线索
LineInfoDO lineInfo = lineInfoDAO.getLineInfo(lineId);
List<UserDTO> userList = new ArrayList<>();
//如果阶段对应不上 直接返回空
if(lineInfo.getWorkflowSubStage().equals(subStage)){
return userList;
}
//加盟商处理时子阶段状态
List<Integer> intendPartnerList = Arrays.asList(INTENT_0.getCode(), PAY_DEPOSIT_45.getCode());
if (intendPartnerList.contains(lineInfo.getWorkflowSubStageStatus())){
UserDTO userDTO = new UserDTO(lineInfo.getUsername(), lineInfo.getMobile());
userList.add(userDTO);
return userList;
}
//督导处理阶段
List<Integer> intendManagerList = Arrays.asList(INTENT_5.getCode(), PAY_DEPOSIT_50.getCode(),SIGN_INTENT_AGREEMENT_70.getCode());
if (intendManagerList.contains(lineInfo.getWorkflowSubStageStatus())){
EnterpriseUserDO userInfo = enterpriseUserDAO.getUserInfoById(lineInfo.getInvestmentManager());
if (Objects.nonNull(userInfo)){
UserDTO userDTO = new UserDTO(userInfo.getName(), userInfo.getMobile());
userList.add(userDTO);
}
return userList;
}
return userList;
}
}