Commit 2af09a5c authored by fangxinjiang's avatar fangxinjiang

代码优化-fxj

parent 23242aa6
...@@ -465,7 +465,7 @@ public class TAutoMainRelServiceImpl extends ServiceImpl<TAutoMainRelMapper, TAu ...@@ -465,7 +465,7 @@ public class TAutoMainRelServiceImpl extends ServiceImpl<TAutoMainRelMapper, TAu
} }
} }
if (checkContractSchemeForDuplicates(contractSchemes)){ if (checkContractSchemeForDuplicates(contractSchemes)){
return R.failed(buyStandardRepeat); return R.failed(schemeNameRepeat);
} }
} }
return null; return null;
...@@ -515,7 +515,7 @@ public class TAutoMainRelServiceImpl extends ServiceImpl<TAutoMainRelMapper, TAu ...@@ -515,7 +515,7 @@ public class TAutoMainRelServiceImpl extends ServiceImpl<TAutoMainRelMapper, TAu
Set<String> repeatItems = new HashSet<>(); Set<String> repeatItems = new HashSet<>();
for (SysAutoDictItem item : autoDictItems) { for (SysAutoDictItem item : autoDictItems) {
if (Common.isEmpty(item.getLabel())) { if (Common.isEmpty(item.getLabel())) {
return false; // 标签为空视为无效 return true; // 标签为空视为无效
} }
if (!repeatItems.add(item.getLabel())) { if (!repeatItems.add(item.getLabel())) {
return false; // 标签重复 return false; // 标签重复
...@@ -708,7 +708,6 @@ public class TAutoMainRelServiceImpl extends ServiceImpl<TAutoMainRelMapper, TAu ...@@ -708,7 +708,6 @@ public class TAutoMainRelServiceImpl extends ServiceImpl<TAutoMainRelMapper, TAu
//保存商险购买标准 //保存商险购买标准
if (Common.isNotNull(schemes)){ if (Common.isNotNull(schemes)){
for (TAutoContractScheme scheme:schemes){ for (TAutoContractScheme scheme:schemes){
scheme.setId(null);
if (!Common.isNotNull(scheme.getId())){ if (!Common.isNotNull(scheme.getId())){
schemeFlag =true; schemeFlag =true;
} }
......
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