InitiatingResponse

This commit is contained in:
guohb
2024-04-10 15:40:56 +08:00
parent a161281d68
commit aa73e37f60
2 changed files with 6 additions and 2 deletions

View File

@@ -64,6 +64,7 @@ public enum ErrorCodeEnum {
ZONE_NOT_EXIST(500004, "战区不存在!", null),
PARTNER_BASEINFO_NOT_EXIST(500005, "基本信息不存在!", null),
INTENT_INFO_NOT_EXIST(500006, "意向信息不存在!", null),
INTENT_WHAT_NOT_EXIST(500016, "加盟问卷信息不存在!", null),
INTENT_AREA_NOT_BING_ZONE(500007, "意向区域没有绑定战区 分配招商经理失败!", null),
PUBLIC_LINE_NOT_OPERATE(500008, "公海线索不允许操作!", null),
PARTNER_BASE_INFO_NOT_EXIST(500009, "加盟商信息不存在!", null),

View File

@@ -119,11 +119,14 @@ public class JoinIntentionServiceImpl extends LineFlowService implements JoinInt
@Override
public PartnerBaseInfoVO getByLineId(Long lineId) {
MemberQuestionDO result = joinIntentionMapper.getByLineId(lineId);
LineInfoDO byLineId = lineInfoDAO.getLineInfo(lineId);
MemberQuestionDO result = joinIntentionMapper.getByLineId(lineId);
if (Objects.isNull(byLineId)) {
throw new ServiceException(LINE_ID_IS_NOT_EXIST);
throw new ServiceException(ErrorCodeEnum.LINE_ID_IS_NOT_EXIST);
}
if (Objects.isNull(result)){
return null;
}
PartnerBaseInfoVO response = PartnerBaseInfoVO.from(result, byLineId);
HyOpenAreaInfoDO openAreaInfoDO = openAreaInfoMapper.selectById(Long.valueOf(response.getAreaCode()));