| | |
| | | import com.vci.ubcs.code.webservice.service.IDockingPreAttrMappingService; |
| | | import com.vci.ubcs.code.webservice.service.IDockingPreAttrRangeService; |
| | | import com.vci.ubcs.code.webservice.service.IDockingPreMetaAttrService; |
| | | import com.vci.ubcs.code.webservice.vo.DokingAttributeSerchVO; |
| | | import com.vci.ubcs.code.webservice.wrapper.DockingPreAttrMappingWrapper; |
| | | import com.vci.ubcs.code.webservice.wrapper.DockingPreAttrRangeWrapper; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | |
| | | import com.vci.ubcs.code.webservice.entity.DockingPreMetaAttr; |
| | | import com.vci.ubcs.code.webservice.vo.DockingPreAttrMappingVO; |
| | | import com.vci.ubcs.code.webservice.vo.DockingPreAttrRangeVO; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | */ |
| | | @Service |
| | | public class DockingPreAttrMappingServiceImpl extends ServiceImpl<DockingPreAttrMappingMapper, DockingPreAttrMapping> implements IDockingPreAttrMappingService { |
| | | |
| | | |
| | | |
| | | /*** |
| | | * 集团分类属性属性映射配置服务 |
| | |
| | | /*** |
| | | * 根据主数据oid检测是否属性映射配置 |
| | | * @param targetClassifyId |
| | | * @param sourceClassifyId |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | @Override |
| | | public boolean checkHasConfigByTragetCodeclassifyId(String targetClassifyId){ |
| | | public boolean checkHasConfigByTragetCodeclassifyId(String targetClassifyId,String sourceClassifyId){ |
| | | Long count =0L; |
| | | try { |
| | | count = dockingPreAttrMappingMapper.selectCount(Wrappers.<DockingPreAttrMapping>query().lambda().eq(DockingPreAttrMapping::getTargetClassifyId, targetClassifyId)); |
| | | count = dockingPreAttrMappingMapper.selectCount(Wrappers.<DockingPreAttrMapping>query().lambda().eq(DockingPreAttrMapping::getTargetClassifyId, targetClassifyId).eq(DockingPreAttrMapping::getSourceClassifyId,sourceClassifyId)); |
| | | }catch (Throwable e){ |
| | | e.printStackTrace();; |
| | | } finally { |
| | |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public R search(DokingAttributeSerchVO dokingAttributeSerchVO) { |
| | | return null; |
| | | } |
| | | |
| | | |
| | | /*** |
| | | * 对象转换 |