Merge remote-tracking branch 'origin/cc_20230520_partner' into cc_20230520_partner
# Conflicts: # coolstore-partner-service/src/main/java/com/cool/store/service/impl/InterviewServiceImpl.java
This commit is contained in:
@@ -12,6 +12,8 @@ public class ZoneCheckDTO {
|
||||
|
||||
private Long openAreaMappingId;
|
||||
|
||||
private Long zoneId;
|
||||
|
||||
private String areaName;
|
||||
|
||||
private String zoneName;
|
||||
|
||||
@@ -31,10 +31,10 @@ public class BlackListVO {
|
||||
private String phoneAddress;
|
||||
|
||||
@ApiModelProperty("创建时间")
|
||||
private Date createTime;
|
||||
private String createTime;
|
||||
|
||||
@ApiModelProperty("操作时间")
|
||||
private Date closeTime;
|
||||
private String closeTime;
|
||||
|
||||
@ApiModelProperty("操作人ID")
|
||||
private String closeUserId;
|
||||
|
||||
@@ -1,10 +1,19 @@
|
||||
package com.cool.store.vo;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import com.cool.store.dto.partner.PartnerIntentApplyInfoDTO;
|
||||
import com.cool.store.entity.HyPartnerUserInfoDO;
|
||||
import com.cool.store.utils.CoolDateUtils;
|
||||
import com.google.common.collect.Lists;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
@@ -16,7 +25,6 @@ import java.util.Date;
|
||||
@ApiModel
|
||||
public class PartnerIntentApplyInfoVO {
|
||||
|
||||
|
||||
@ApiModelProperty("")
|
||||
private Long id;
|
||||
|
||||
@@ -45,7 +53,7 @@ public class PartnerIntentApplyInfoVO {
|
||||
private Integer acceptAdjustType;
|
||||
|
||||
@ApiModelProperty("截止时间")
|
||||
private Date deadline;
|
||||
private String deadline;
|
||||
|
||||
@ApiModelProperty("阶段提交时间")
|
||||
private Date partnerSubmitTime;
|
||||
@@ -53,4 +61,31 @@ public class PartnerIntentApplyInfoVO {
|
||||
@ApiModelProperty("阶段状态")
|
||||
private String WorkflowStatus;
|
||||
|
||||
|
||||
public static List<PartnerIntentApplyInfoVO> convertList(List<PartnerIntentApplyInfoDTO> list, Map<String, HyPartnerUserInfoDO> infoDOMap, Map<String, String> wantShopAreaNameMap, String workflowStatus){
|
||||
if(CollectionUtils.isEmpty(list)){
|
||||
return Lists.newArrayList();
|
||||
}
|
||||
List<PartnerIntentApplyInfoVO> resultList = new ArrayList<>();
|
||||
for (PartnerIntentApplyInfoDTO partnerIntentApplyInfoDTO : list) {
|
||||
PartnerIntentApplyInfoVO partnerIntentApplyInfoVO = new PartnerIntentApplyInfoVO();
|
||||
partnerIntentApplyInfoVO.setId(partnerIntentApplyInfoDTO.getId());
|
||||
partnerIntentApplyInfoVO.setPartnerId(partnerIntentApplyInfoDTO.getPartnerId());
|
||||
partnerIntentApplyInfoVO.setLineId(partnerIntentApplyInfoDTO.getPartnerLineId());
|
||||
partnerIntentApplyInfoVO.setPartnerSubmitTime(partnerIntentApplyInfoDTO.getPartnerSubmitTime());
|
||||
partnerIntentApplyInfoVO.setAcceptAdjustType(partnerIntentApplyInfoDTO.getAcceptAdjustType());
|
||||
partnerIntentApplyInfoVO.setLiveArea(partnerIntentApplyInfoDTO.getLiveArea());
|
||||
partnerIntentApplyInfoVO.setWantShopArea(partnerIntentApplyInfoDTO.getWantShopArea());
|
||||
String deadLine = DateUtil.format(partnerIntentApplyInfoDTO.getDeadline(), CoolDateUtils.DATE_FORMAT_SEC);
|
||||
partnerIntentApplyInfoVO.setDeadline(deadLine);
|
||||
HyPartnerUserInfoDO infoDOMapOrDefault = infoDOMap.getOrDefault(partnerIntentApplyInfoDTO.getPartnerId(), new HyPartnerUserInfoDO());
|
||||
partnerIntentApplyInfoVO.setPartnerUserName(infoDOMapOrDefault.getUsername());
|
||||
partnerIntentApplyInfoVO.setPartnerUserPhone(infoDOMapOrDefault.getMobile());
|
||||
partnerIntentApplyInfoVO.setWorkflowStatus(workflowStatus);
|
||||
partnerIntentApplyInfoVO.setWantShopAreaName(wantShopAreaNameMap.get(partnerIntentApplyInfoDTO.getWantShopArea()));
|
||||
resultList.add(partnerIntentApplyInfoVO);
|
||||
}
|
||||
return resultList;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
package com.cool.store.vo;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import com.cool.store.entity.HyPartnerLineInfoDO;
|
||||
import com.cool.store.utils.CoolDateUtils;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
@@ -19,7 +23,6 @@ public class PartnerLineInfoVO {
|
||||
@ApiModelProperty("")
|
||||
private Long lineId;
|
||||
|
||||
|
||||
@ApiModelProperty("hy_partner_user_info.partner_id")
|
||||
private String partnerId;
|
||||
|
||||
@@ -42,7 +45,7 @@ public class PartnerLineInfoVO {
|
||||
private String developmentManager;
|
||||
|
||||
@ApiModelProperty("截止时间")
|
||||
private Date deadline;
|
||||
private String deadline;
|
||||
|
||||
@ApiModelProperty("通过原因")
|
||||
private String passReason;
|
||||
@@ -59,20 +62,50 @@ public class PartnerLineInfoVO {
|
||||
@ApiModelProperty("冷静期首次登录 是-true 否-false")
|
||||
private Boolean coolingPeriodFirstLoginFlag;
|
||||
|
||||
@ApiModelProperty("加盟商用户ID")
|
||||
private String partnerUserId;
|
||||
|
||||
@ApiModelProperty("加盟商用户名称")
|
||||
private String partnerUserName;
|
||||
|
||||
@ApiModelProperty("加盟商用户手机号")
|
||||
private String partnerUserPhone;
|
||||
|
||||
@ApiModelProperty("结束操作人ID")
|
||||
private String closeUserId ;
|
||||
private String closeUserId ;
|
||||
|
||||
@ApiModelProperty("结束操作人名称")
|
||||
private String closeUserName ;
|
||||
private String closeUserName ;
|
||||
|
||||
@ApiModelProperty("结束时间")
|
||||
private Date closeDate ;
|
||||
private String closeDate ;
|
||||
|
||||
/**
|
||||
*
|
||||
* @param lineList
|
||||
* @return
|
||||
*/
|
||||
public static List<PartnerLineInfoVO> convertList(List<HyPartnerLineInfoDO> lineList, Map<String, String> userNamePhoneMap){
|
||||
List<PartnerLineInfoVO> resultList = new ArrayList<>();
|
||||
for (HyPartnerLineInfoDO line : lineList) {
|
||||
PartnerLineInfoVO result = new PartnerLineInfoVO();
|
||||
result.setLineId(line.getId());
|
||||
result.setPartnerId(line.getPartnerId());
|
||||
result.setCertifyFile(line.getCertifyFile());
|
||||
result.setWorkflowStage(line.getWorkflowStage());
|
||||
result.setWorkflowStatus(line.getWorkflowStatus());
|
||||
result.setLineStatus(line.getLineStatus());
|
||||
String deadLine = DateUtil.format(line.getDeadline(), CoolDateUtils.DATE_FORMAT_SEC);
|
||||
result.setDeadline(deadLine);
|
||||
result.setPassReason(line.getPassReason());
|
||||
result.setRejectPublicReason(line.getRejectPublicReason());
|
||||
result.setRejectRealReason(line.getRejectRealReason());
|
||||
result.setCertifyFile(line.getCertifyFile());
|
||||
result.setCloseUserId(line.getCloseUserId());
|
||||
result.setCloseUserName(userNamePhoneMap.get(line.getCloseUserId()));
|
||||
String closeDate = DateUtil.format(line.getCloseTime(), CoolDateUtils.DATE_FORMAT_SEC_7);
|
||||
result.setCloseDate(closeDate);
|
||||
resultList.add(result);
|
||||
}
|
||||
return resultList;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,10 +1,17 @@
|
||||
package com.cool.store.vo;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import com.cool.store.dto.partner.PrivateSeaLineDTO;
|
||||
import com.cool.store.utils.CoolDateUtils;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.time.DateUtils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
@@ -35,7 +42,7 @@ public class PrivateSeaLineListVo {
|
||||
private String partnerUserPhone;
|
||||
|
||||
@ApiModelProperty("截止时间")
|
||||
private Date deadline;
|
||||
private String deadline;
|
||||
|
||||
@ApiModelProperty("招商经理")
|
||||
private String investmentManager;
|
||||
@@ -52,11 +59,14 @@ public class PrivateSeaLineListVo {
|
||||
@ApiModelProperty("意向开店区域")
|
||||
private String wantShopArea;
|
||||
|
||||
@ApiModelProperty("意向开店区域名称")
|
||||
private String wantShopAreaName;
|
||||
|
||||
@ApiModelProperty("0不接受调剂、1全国调剂、2省内调剂、3市内调剂")
|
||||
private Integer acceptAdjustType;
|
||||
|
||||
@ApiModelProperty("更新时间")
|
||||
private Date updateTime;
|
||||
private String updateTime;
|
||||
|
||||
@ApiModelProperty("门店编码")
|
||||
private String storeCode;
|
||||
@@ -73,4 +83,40 @@ public class PrivateSeaLineListVo {
|
||||
@ApiModelProperty("推荐加盟商名称")
|
||||
private String recommendPartnerName;
|
||||
|
||||
|
||||
public static List<PrivateSeaLineListVo> convertList(List<PrivateSeaLineDTO> list, Map<String, String> finalDevManagerMap, Map<String, String> wantShopAreaNameMap){
|
||||
List<PrivateSeaLineListVo> resultList = new ArrayList<>();
|
||||
for (PrivateSeaLineDTO x : list) {
|
||||
PrivateSeaLineListVo privateSeaLineListVo = new PrivateSeaLineListVo();
|
||||
privateSeaLineListVo.setLineId(x.getLineId());
|
||||
privateSeaLineListVo.setLineStatus(x.getLineStatus());
|
||||
privateSeaLineListVo.setPartnerId(x.getPartnerId());
|
||||
privateSeaLineListVo.setWorkflowStatus(x.getWorkflowStatus());
|
||||
String deadLine = DateUtil.format(x.getDeadline(), CoolDateUtils.DATE_FORMAT_SEC);
|
||||
privateSeaLineListVo.setDeadline(deadLine);
|
||||
privateSeaLineListVo.setPartnerUserPhone(x.getPartnerUserPhone());
|
||||
privateSeaLineListVo.setPartnerUserName(x.getPartnerUserName());
|
||||
privateSeaLineListVo.setAcceptAdjustType(x.getAcceptAdjustType());
|
||||
privateSeaLineListVo.setInvestmentManagerName(x.getInvestmentManager());
|
||||
privateSeaLineListVo.setDevelopmentManager(x.getDevelopmentManager());
|
||||
privateSeaLineListVo.setInvestmentManagerName(x.getInvestmentManagerName());
|
||||
privateSeaLineListVo.setStoreCode(x.getStoreCode());
|
||||
privateSeaLineListVo.setStoreName(x.getStoreName());
|
||||
String updateTime = DateUtil.format(x.getUpdateTime(), CoolDateUtils.DATE_FORMAT_SEC);
|
||||
privateSeaLineListVo.setUpdateTime(updateTime);
|
||||
privateSeaLineListVo.setRecommendPartnerId(x.getRecommendPartnerId());
|
||||
privateSeaLineListVo.setAcceptAdjustType(x.getAcceptAdjustType());
|
||||
privateSeaLineListVo.setWantShopArea(x.getWantShopArea());
|
||||
privateSeaLineListVo.setWantShopAreaName(wantShopAreaNameMap.get(x.getWantShopArea()));
|
||||
privateSeaLineListVo.setInvestmentManager(x.getInvestmentManager());
|
||||
privateSeaLineListVo.setRecommendPartnerName(x.getRecommendPartnerName());
|
||||
privateSeaLineListVo.setWorkflowStage(x.getWorkflowStage());
|
||||
privateSeaLineListVo.setWantShopArea(x.getWantShopArea());
|
||||
privateSeaLineListVo.setWorkflowStage(x.getWorkflowStage());
|
||||
privateSeaLineListVo.setDevelopmentManagerName(finalDevManagerMap.get(x.getDevelopmentManager()));
|
||||
resultList.add(privateSeaLineListVo);
|
||||
}
|
||||
return resultList;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ public class PublicSeaLineListVo {
|
||||
private String rejectRealReason;
|
||||
|
||||
@ApiModelProperty("返回公海时间")
|
||||
private Date LastCloseDate ;
|
||||
private String LastCloseDate ;
|
||||
|
||||
@ApiModelProperty("招商经理")
|
||||
private String lastInvestmentManager;
|
||||
|
||||
Reference in New Issue
Block a user