| | |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.applyjtcodeservice.vo.GroupAttrPoolMappingVO; |
| | | import com.vci.ubcs.code.entity.CodeClassify; |
| | | import com.vci.ubcs.code.feign.ICodeClassifyClient; |
| | | import com.vci.ubcs.code.applyjtcodeservice.entity.*; |
| | |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import com.vci.ubcs.code.applyjtcodeservice.vo.DockingPreAttrMappingVO; |
| | | import com.vci.ubcs.code.applyjtcodeservice.vo.DockingPreAttrRangeVO; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.annotation.Lazy; |
| | |
| | | * @date 2023-05-22 |
| | | */ |
| | | @Service |
| | | @Slf4j |
| | | public class DockingPreAttrMappingServiceImpl extends ServiceImpl<DockingPreAttrMappingMapper, DockingPreAttrMapping> implements IDockingPreAttrMappingService { |
| | | |
| | | /*** |
| | |
| | | * 1.传递过来的有可能主数据模板新增属性,这样的需要添加,也有可能删除的属性,这样的映射需要删除 |
| | | * 也有更新的这样则更新 |
| | | */ |
| | | List<DockingPreAttrMapping> newDockingPreAttrMapping=new ArrayList<>(); |
| | | List<DockingPreAttrMapping> newDockingPreAttrMapping = new ArrayList<>(); |
| | | List<String>appingConfigOidList=new ArrayList<>(); |
| | | List<String>attrIdList=new ArrayList<>(); |
| | | List<String> attributeOidList=new ArrayList<>(); |
| | |
| | | return dockingPreAttrMappingVOList; |
| | | } |
| | | |
| | | @Override |
| | | public boolean syncGroupAttrMapping(List<GroupAttrPoolMappingVO> groupAttrPoolMappingVOS) { |
| | | log.info("开始集团属性池同步到集团属性映射配置表"); |
| | | //groupAttrPoolMappingVOS.stream().map(GroupAttrPoolMapping::getGroupAttrKey); |
| | | dockingPreAttrMappingMapper.selectList( |
| | | Wrappers.<DockingPreAttrMapping>query().lambda().in(DockingPreAttrMapping::getSourceClassifyId) |
| | | ); |
| | | log.info("集团属性池同步到集团属性映射配置表完成!"); |
| | | return false; |
| | | } |
| | | |
| | | } |