|
|
@ -528,7 +528,7 @@ public class ExcelService implements IExcelService { |
|
|
|
if (StrUtil.isNotEmpty(memberCell) && StrUtil.isEmpty(phoneCell)) { |
|
|
|
throw new BaseException(CodeEnum.WBS_NOT_PHONE.addMsg(memberSheet.getSheetName(), (i+1),memberCell)); |
|
|
|
} |
|
|
|
//TODO 判断手机号格式
|
|
|
|
//判断手机号格式
|
|
|
|
String regex ="^[1]([3-9])[0-9]{9}$"; |
|
|
|
if (StrUtil.isEmpty(phoneCell) || !phoneCell.matches(regex)){ |
|
|
|
throw new BaseException(CodeEnum.WBS_PHONE_ERROR.addMsg(memberSheet.getSheetName(),(i+1),memberCell)); |
|
|
@ -958,9 +958,8 @@ public class ExcelService implements IExcelService { |
|
|
|
if (StrUtil.isNotEmpty(delayTime)) { |
|
|
|
taskDetail.setDelayTime(DateUtil.str2MillSeconds(delayTime)); |
|
|
|
} |
|
|
|
//TODO 跳转任务(应该在循环外处理
|
|
|
|
|
|
|
|
//输入文档 新的
|
|
|
|
//输入文档
|
|
|
|
if(StrUtil.isNotEmpty(inputFiles)){ |
|
|
|
String regex=",|,|;|;|、|/"; |
|
|
|
String[] fileNames= inputFiles.split(regex); |
|
|
@ -969,8 +968,6 @@ public class ExcelService implements IExcelService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//TODO 设备挂载暂不处理
|
|
|
|
|
|
|
|
//没有开始时间默认项目开始时间
|
|
|
|
if (StrUtil.isNotEmpty(beginTime)) { |
|
|
|
taskDetail.setBeginTime(Long.valueOf(beginTime)); |
|
|
@ -1120,7 +1117,6 @@ public class ExcelService implements IExcelService { |
|
|
|
//添加周报
|
|
|
|
saveMeetingTask("周报", "每周一", taskDetails, sysProject, pmRoleId, allMemberId, firstTaskDetail.getId(), |
|
|
|
"/home/report?type=\"week\""); |
|
|
|
// TODO 添加季报
|
|
|
|
//添加月报
|
|
|
|
saveMeetingTask("月报", "每月1号", taskDetails, sysProject, pmRoleId, allMemberId, firstTaskDetail.getId(), |
|
|
|
"/home/report?type=\"month\""); |
|
|
|