|
@@ -1500,7 +1500,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
@Override
|
|
@Override
|
|
public List<Formula> getFormulaList(List<KeyMapper> keyMapperList) {
|
|
public List<Formula> getFormulaList(List<KeyMapper> keyMapperList) {
|
|
if(Func.isNotEmpty(keyMapperList)){
|
|
if(Func.isNotEmpty(keyMapperList)){
|
|
- List<Formula> result = this.listByIds(keyMapperList.stream().map(KeyMapper::getFormulaId).collect(Collectors.toList()));
|
|
|
|
|
|
+ List<Formula> result = this.listByIds(keyMapperList.stream().map(KeyMapper::getFormulaId).distinct().collect(Collectors.toList()));
|
|
if(Func.isNotEmpty(result)){
|
|
if(Func.isNotEmpty(result)){
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|