//package com.jiayue.ipp.idp.service.impl;
//
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//import org.springframework.stereotype.Service;
//
//import java.util.HashMap;
//import java.util.List;
//import java.util.Map;
//
///**
// * @author whc
// * @date 2022-04-19 10:45:36
// */
//@Service
//public class EquipmentAttributeServiceImpl extends ServiceImpl<EquipmentAttributeMapper, EquipmentAttribute> implements EquipmentAttributeService {
//
//    public List<EquipmentAttribute> getByEquipmentType(String equipmentType) {
//        QueryWrapper<EquipmentAttribute> wrapper = new QueryWrapper<>();
//        if (equipmentType != null) {
//            wrapper.eq("equipment_type", equipmentType);
//        }
//        return baseMapper.selectList(wrapper);
//    }
//
//    public Map<String, String> findByEquipmentTypeforWINDTOWER() {
//        Map<String, String> map = new HashMap<>();
//        QueryWrapper<EquipmentAttribute> wrapper = new QueryWrapper<>();
//        wrapper.eq("equipment_type", "WINDTOWER");
//        List<EquipmentAttribute> equipmentAttributeList = baseMapper.selectList(wrapper);
//        for (EquipmentAttribute e : equipmentAttributeList) {
//            map.put(e.getFieldName(), e.getSignificance());
//        }
//        return map;
//    }
//}
