田源
2024-04-18 3aae81075a18a11d6b605c7583eb03b75366b466
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package com.vci.ubcs.code.applyjtcodeservice.service;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.vci.ubcs.code.applyjtcodeservice.entity.DockingPreMetaAttr;
import com.vci.ubcs.code.applyjtcodeservice.entity.GroupAttrPoolMapping;
import com.vci.ubcs.code.applyjtcodeservice.vo.GroupAttrPoolMappingVO;
import com.vci.ubcs.omd.vo.EnumVO;
import com.vci.ubcs.starter.web.pagemodel.BladeQueryObject;
import org.springblade.core.log.exception.ServiceException;
import org.springblade.core.tool.api.R;
 
import javax.sql.rowset.serial.SerialException;
import java.util.List;
 
/**
 * 集团属性池映射服务层
 * @author ludc
 * @date 2024/4/15 16:52
 */
public interface IGroupAttrPoolMappingService extends IService<GroupAttrPoolMapping> {
 
    /**
     * 查询全部集团属性池映射的属性
     * @param bladeQueryObject
     * @return
     * @throws SerialException
     */
    IPage<GroupAttrPoolMappingVO> getGroupAttrPoolALlList(BladeQueryObject bladeQueryObject) throws ServiceException;
 
    /**
     * 根据集团属性编号查询集团属性池映射
     * @param groupAttrPoolMappingVO
     * @return
     * @throws SerialException
     */
    List<GroupAttrPoolMappingVO> getByGroupAttrKeyList(GroupAttrPoolMappingVO groupAttrPoolMappingVO) throws ServiceException;
 
    /**
     * 点击同步详细模型时调用该方法,
     * 实现将集团获取的属性去重放到集团属性池映射表中
     * @return
     * @throws SerialException
     */
    boolean saveDistinctGroupAttr(List<DockingPreMetaAttr> dockingPreMetaAttrList) throws ServiceException;
 
    /**
     * 集团属性映射界面修改的映射配置保存
     * @param groupAttrPoolMappingVO
     * @return
     * @throws SerialException
     */
    boolean editGroupAttr(List<GroupAttrPoolMappingVO> groupAttrPoolMappingVO) throws ServiceException;
 
    /**
     * 同步集团属性池中的映射配置到,所有应用了该集团属性的具体某个分类上去
     * @param groupAttrPoolMappingVOS
     * @return
     * @throws SerialException
     */
    R syncGroupAttrMapping(List<GroupAttrPoolMappingVO> groupAttrPoolMappingVOS) throws ServiceException;
 
    /**
     * 根据分类OID获取到模板再根据属性id获取到模板下的属性id的enum值,然后查询出枚举
     * @param groupAttrPoolMappingVOS
     * @return
     */
    List<EnumVO> getEnumAttrByClsOIdAndAttrId(GroupAttrPoolMappingVO groupAttrPoolMappingVOS);
 
}