企业入驻信息修改

master
杜函宇 2 weeks ago
parent 6f480439fd
commit bda277e690

@ -12,11 +12,13 @@ import com.ruoyi.gysl.login.util.HttpGetDataUtil;
import com.ruoyi.gysl.service.EnterpriseService; import com.ruoyi.gysl.service.EnterpriseService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import java.io.Serializable; import java.io.Serializable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -33,6 +35,11 @@ import java.util.stream.Collectors;
@RestController @RestController
@RequestMapping("/gysl/enterprise") @RequestMapping("/gysl/enterprise")
public class EnterpriseController extends BaseController { public class EnterpriseController extends BaseController {
@Value("${isZs}")
private Boolean isZs;
/** /**
* *
*/ */
@ -114,10 +121,15 @@ public class EnterpriseController extends BaseController {
//=============为将要导入的企业补充信息 //=============为将要导入的企业补充信息
pl.forEach(x -> { pl.forEach(x -> {
try { try {
Enterprise enterpriseData = httpGetDataUtil.getEnterpriseData(x.getTyshxydm()); if(isZs){
if (enterpriseData != null) { Enterprise enterpriseData = httpGetDataUtil.getEnterpriseData(x.getTyshxydm());
enterpriseData.setXmId(xmId); if (enterpriseData != null) {
enterpriseService.save(enterpriseData); enterpriseData.setXmId(xmId);
enterpriseService.save(enterpriseData);
}
}else {
x.setXmId(xmId);
enterpriseService.save(x);
} }
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException(e); throw new RuntimeException(e);

@ -34,7 +34,7 @@ spring:
druid: druid:
# 主库数据源 # 主库数据源
master: master:
url: jdbc:mysql://192.114.0.18/gysl?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 url: jdbc:mysql://192.114.0.18:3306/gysl?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root username: root
password: GyslMysql@1234 password: GyslMysql@1234
# 从库数据源 # 从库数据源

@ -0,0 +1,89 @@
# 项目相关配置
ruoyi:
# 文件路径 示例( Windows配置D:/ruoyi/uploadPathLinux配置 /home/ruoyi/uploadPath
profile: D:/ruoyi/uploadPath
# 数据源配置
spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver
druid:
# 主库数据源
master:
url: jdbc:mysql://36.213.9.3:3307/gysl?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: Jichuang@250603
# 从库数据源
slave:
# 从数据源开关/默认关闭
enabled: false
url:
username:
password:
# 初始连接数
initialSize: 5
# 最小连接池数量
minIdle: 10
# 最大连接池数量
maxActive: 20
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置连接超时时间
connectTimeout: 30000
# 配置网络超时时间
socketTimeout: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000
# 配置一个连接在池中最大生存的时间,单位是毫秒
maxEvictableIdleTimeMillis: 900000
# 配置检测连接是否有效
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
webStatFilter:
enabled: true
statViewServlet:
enabled: true
# 设置白名单,不填则允许所有访问
allow:
url-pattern: /druid/*
# 控制台管理用户名和密码
login-username: ruoyi
login-password: 123456
filter:
stat:
enabled: true
# 慢SQL记录
log-slow-sql: true
slow-sql-millis: 1000
merge-sql: true
wall:
config:
multi-statement-allow: true
redis:
# 地址
host: localhost
# 端口默认为6379
port: 6379
# 密码
password:
# 是否是正式环境
isZs: false
#企业端单点登陆url
url: http://114.216.202.175:8008/api/usercenter/User/ssoLogin
#企业端用户信息url
infoUrl: http://114.216.202.175:8008/api/usercenter/User/getInfo
#企业端退出登录url
logoutUrl: http://114.216.202.175:8008/api/usercenter/User/ssoLogOut
#企业端正式环境应用系统编号
enterpriseAppId: 193d64ab-316e-11f0-b7ab-9c5c8e847e61
# 应用私钥
enterpriseAppsecret: 7C21B5B9316E11F0B7AB9C5C8E847E61
#自己客户端地址
#returnUrl: http://192.168.0.119:80
returnUrl: http://36.213.9.3:81/gysl/index.html
Loading…
Cancel
Save