Commit e29d8f8d authored by huyuchen's avatar huyuchen

预派单 参数校验修改

parent 291d1220
...@@ -592,6 +592,11 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap ...@@ -592,6 +592,11 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
int i = 1; int i = 1;
for (TPreDispatchInfo info : listInfo) { for (TPreDispatchInfo info : listInfo) {
i++; i++;
if (!CommonConstants.IS_TRUE.equals(info.getTelNotice()) &&
!CommonConstants.IS_FALSE.equals(info.getTelNotice())) {
errorList.add(new ErrorMessage(i,"是否电话通知不允许导入【是】和【否】之外的内容"));
continue;
}
// 1.验重 // 1.验重
if (checkAddRepeat(errorList, existsMap, i, info)) { if (checkAddRepeat(errorList, existsMap, i, info)) {
continue; continue;
...@@ -736,6 +741,11 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap ...@@ -736,6 +741,11 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
String str = null; String str = null;
for (TPreDispatchInfo info:listInfo){ for (TPreDispatchInfo info:listInfo){
i++; i++;
if (!CommonConstants.IS_TRUE.equals(info.getTelNotice()) &&
!CommonConstants.IS_FALSE.equals(info.getTelNotice())) {
errorList.add(new ErrorMessage(i,"是否电话通知不允许导入【是】和【否】之外的内容"));
continue;
}
// 重置异常状态 // 重置异常状态
info.setExceptionContent(""); info.setExceptionContent("");
info.setPreStatus(CommonConstants.ZERO_STRING); info.setPreStatus(CommonConstants.ZERO_STRING);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment