| | |
| | | import java.util.List; |
| | | import javax.annotation.PostConstruct; |
| | | import javax.annotation.Resource; |
| | | import javax.management.Query; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import org.springframework.stereotype.Service; |
| | | import com.ruoyi.common.annotation.DataSource; |
| | | import com.ruoyi.common.constant.CacheConstants; |
| | |
| | | return ""; |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public String getHealth() { |
| | | List<SysConfig> result = configMapper.selectByType("health"); |
| | | if(result.size() > 0){ |
| | | return result.get(0).getConfigValue(); |
| | | }else{ |
| | | return ""; |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public List<SysConfig> getAccPwd() { |
| | | return configMapper.selectList(new QueryWrapper<SysConfig>().in("config_key","eqHealthUrl","eqHealthAccount","eqHealthPassword")); |
| | | } |
| | | } |