feat:校验
This commit is contained in:
@@ -79,7 +79,7 @@ public enum ErrorCodeEnum {
|
||||
NO_TRANSFER_REQUIRED(500013, "招商经理现有私海线索无需转让,请检查后重试!", null),
|
||||
NO_BATCH_TRANSFER_REQUIRED(500014, "已选线索包含此招商经理现有私海线索,无需转让,请检查后重试!", null),
|
||||
PARTNER_MOBILE_EXIST(500010, "手机号码已存在,请核实!", null),
|
||||
MOBILE_EXIST(500015, "此手机号码已存在,\n 线索状态:{0}\n 督导:{1}", null),
|
||||
MOBILE_EXIST(500015, "此手机号码已存在,线索所属列表:{0},督导:{1},创建日期:{2}", null),
|
||||
INVESTMENT_MANAGER_NOT_EXIST(500016, "当前招商经理不存在", null),
|
||||
PARTNER_MOBILE_EXIST_0(500017, "手机号码已存在", null),
|
||||
TIME_OCCUPIED(500018, "预约时间被占用", null),
|
||||
|
||||
@@ -477,7 +477,7 @@ public class LineServiceImpl implements LineService {
|
||||
String investmentManager = getInvestmentManagerName(lineInfo);
|
||||
String listName = determineListName(lineInfo);
|
||||
|
||||
throw new ServiceException(ErrorCodeEnum.MOBILE_EXIST, listName, investmentManager);
|
||||
throw new ServiceException(ErrorCodeEnum.MOBILE_EXIST, listName, investmentManager,DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD, lineInfo.getCreateTime()));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -504,11 +504,11 @@ public class LineServiceImpl implements LineService {
|
||||
|
||||
Integer lineStatus = lineInfo.getLineStatus();
|
||||
if (LineStatusEnum.PUBLIC_SEAS.getCode().equals(lineStatus)) {
|
||||
return StringUtils.isNotEmpty(lineInfo.getInvestmentManager()) ? "'公海列表'" : "'未分配列表'";
|
||||
return StringUtils.isNotEmpty(lineInfo.getInvestmentManager()) ? "线索公海" : "待分配线索";
|
||||
}
|
||||
|
||||
if (LineStatusEnum.PRIVATE_SEAS.getCode().equals(lineStatus)) {
|
||||
return lineInfo.getJoinStatus() == 0 ? "'线索列表'" : "'加盟商列表'";
|
||||
return lineInfo.getJoinStatus() == 0 ? "线索管理" : "加盟商管理";
|
||||
}
|
||||
|
||||
return "";
|
||||
|
||||
Reference in New Issue
Block a user