You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.2 KiB
43 lines
1.2 KiB
1 year ago
|
package com.qs.serve.modules.base;
|
||
|
|
||
|
import cn.hutool.crypto.digest.DigestUtil;
|
||
|
import com.qs.serve.common.util.HttpUtil;
|
||
|
import lombok.extern.slf4j.Slf4j;
|
||
|
import org.springframework.beans.factory.annotation.Value;
|
||
|
import org.springframework.stereotype.Service;
|
||
|
|
||
|
import javax.annotation.PostConstruct;
|
||
|
import java.io.UnsupportedEncodingException;
|
||
|
import java.net.URLEncoder;
|
||
|
|
||
|
/**
|
||
|
* @author YenHex
|
||
|
* @since 2024/1/26
|
||
|
*/
|
||
|
@Slf4j
|
||
|
@Service
|
||
|
public class ErpDataBaseService {
|
||
|
|
||
|
@Value("${spring.datasource.dynamic.datasource.qisheng.url}")
|
||
|
private String erpJslGroupDbUrl;
|
||
|
|
||
|
@Value("${spring.datasource.dynamic.datasource.qisheng.username}")
|
||
|
private String erpJslGroupDbUsername;
|
||
|
|
||
|
@Value("${spring.datasource.dynamic.datasource.qisheng.password}")
|
||
|
private String erpJslGroupDbPassword;
|
||
|
|
||
|
|
||
|
public static String erpJslGroupDbConnectionUrl;
|
||
|
|
||
|
public static String getErpJslGroupDbConnectionUrl(){
|
||
|
return erpJslGroupDbConnectionUrl;
|
||
|
}
|
||
|
|
||
|
@PostConstruct
|
||
|
public void initErpJslGroupDbConnectionUrl() {
|
||
|
erpJslGroupDbConnectionUrl = this.erpJslGroupDbUrl + ";user=" + this.erpJslGroupDbUsername + ";password=" + this.erpJslGroupDbPassword;
|
||
|
}
|
||
|
|
||
|
}
|