Commit b1e862c5 authored by fangxinjiang's avatar fangxinjiang

专项扣除导入

parent 64170664
......@@ -132,7 +132,7 @@ public class TSpecialDeducationSumServiceImpl extends ServiceImpl<TSpecialDeduca
if (Common.isEmpty(declareTitle)) {
return R.failed("申报单位不能为空");
}
List<String> uc = sdsList.stream().map(TSpecialDeducationSum::getDeclareTitle).collect(Collectors.toList());
List<String> uc = sdsList.stream().map(TSpecialDeducationSum::getDeclareTitle).distinct().collect(Collectors.toList());
if (Common.isNotNull(uc) && uc.size() > CommonConstants.ONE_INT){
return R.failed("一次只允许导入一个申报单位");
}
......
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