mirror of
https://github.com/weizhiqiang1995/erp-pro.git
synced 2025-01-10 17:28:10 +08:00
用品采购整改
This commit is contained in:
parent
a0ec0c926a
commit
7519f0ab05
1 changed files with 4 additions and 0 deletions
|
@ -25,6 +25,7 @@ import com.skyeye.common.util.mybatisplus.MybatisPlusUtil;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
@ -64,6 +65,9 @@ public class AttrTransformServiceImpl extends SkyeyeBusinessServiceImpl<AttrTran
|
|||
queryWrapper.eq(MybatisPlusUtil.toColumns(AttrTransform::getClassName), className);
|
||||
queryWrapper.eq(MybatisPlusUtil.toColumns(AttrTransform::getActFlowId), actFlowId);
|
||||
List<AttrTransform> attrTransformList = list(queryWrapper);
|
||||
if (CollectionUtil.isEmpty(attrTransformList)) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
// 获取属性的基本信息
|
||||
List<String> attrKeyList = attrTransformList.stream().map(AttrTransform::getAttrKey).collect(Collectors.toList());
|
||||
Map<String, AttrDefinition> attrDefinitionMap = attrDefinitionService.queryAttrDefinitionMap(className, attrKeyList);
|
||||
|
|
Loading…
Reference in a new issue