配置文件简化修改

This commit is contained in:
方亮 2026-02-05 10:22:07 +08:00
parent 55ed1e2f08
commit a86a1cea13
37 changed files with 609 additions and 268 deletions

View File

@ -1 +1 @@
EWEPEPEOGMGTELIZJUGECKIUJDBCJTCNISGPBNHLJTJUBHEWGNAKGEGAIOHJDQAJGNCFDRFZJEDMJTGFHLAYBZHFFEJTGGEQISJJEJBYCQFZIIJCHQAXCREZEHJFGCIEEAGLIYJDGPGGGPCVAXJEBRILDTALHEACDJJLIOFDHOIPEDEUEYHXAOCUHZFWGVHAILAZAMDWHNDMCCAPEBHEBLARGZANGSJIDRFYCRDECPBCBYJCDGBYDNDTDPGXFWAHHLESEHJCDTBOEQHJEUIFFEHYELDIBGEDHVIUDQBIEOAFGOAQHXFFIYCCDLFPCXCABUGEEKBREXDLHSFPIAGUFSIUFCGPEXESFEDTAAILCGIJBBEBGWGLHJIOIXCYHWFYBJIKJLGNFCGBITCVJSACAGCPDDEJFYCEFSJBGYCFHIARGXFKAZELBMCLAODUDGARCBEBGLGIEHFNBAGRFHJRGUECBWFJHBDIEUIEIQCQDZIOFVHLCIFYAMBAGMGEBVCHGOCUGKFFEZCDACBEECCLBEBRDDBBGWEAJBDKIUAXFABDEUABHZCPAIGGGNDWFLHDGJFACDEWGPHPFRAPHBCPHJBZFTFNDBDIBRGJJDJKFVGKHNEIHDDLGWCQBKHCCHESJIFUAMAHJLEYEMHFBRBYAEGKDJFPHXFAJEERIMGEJAJGACAWEPAGAEIGFOFFDLECAUINHKGCCRAUITFTJCGFFWJNFFJQFACPFYFACEJQIWCEHJDUJMDQDKGKANANHQFMCTIAJEJSCPEHCZENGVJPANFRBREIISAQCMGBBAAMJPCKDYHOEQFJJGBIEICGHVAABSJAGWGKJGBRENGMBRCOIZGGAFCYHQCCDNDMBQJFHDIPBEGLJIBVJAFOCWJGCOINGFDUGBCPEKEIHUIIDUITANDZFBDIIVEWDDAZCUIZACDOGBFQDYFPGWJDAMFLGWBXFVAKBVBUGSGFCLDGBADFHBEZCIHZECDHEFFWAFHHGZCOBMASHYEFEDGUBADIIFDFDZDQAHBVDQEDEFHZHOBBJMCVINGUIUGYAIEHCXBBGGGWBBGNDWFGBHAKIQDRHRHLBJGEDEDCDRGHEKJBBIEGALDXAPBAFRIOGHEJCLJVITCODLGPBEJUCQBIJTCTHYFUFHDOHDBPHOEOFTGYHSAEAVFKGSFBAOJDDKJRGFHXASDHFP EWEPEPEOGMGTELIZJUGECKIUJDBCJTCNISGPBNHLJTJUBHEWGNAKGEGAIOHJDQAJGNCFDRFZJEDMJTGFHLAYBZHFFEJTGGEQISJJEJBYCQFZIIJCHQAXCREZEHIYEWIHIGBHBOBFAZHKJFFEHICACEBBBMIPIDBQETFPBOIAFCFVHNFIGODZBXEADHFBFUJPIXHVAQGLHTGEEUBNDWCPGRBRGZIQFGHQFYFCBHFCGXIAGCBKHVBHGWJUIYBJFAGPFUEBENJVGMCIIUJSJKCBJTBXEQIOEIGIIYGJCHFZFGECHEBOCAHQGADQACCPBMDTBUCNAJCYDSCNBPIVDFIICCHPGUHJEZIJDUFPGXECJBBCEJHVAOJFCHFKCWCICAEKHODKBTJKATCLALJDCOHUFTANAQBMBXAEEEFVJJDJJTBOGRDGJMIBGODYHWBDECEZFSEMCUFLELDMBBHRCFCXEKETEVEXJTBRFJDMJPBUEICZGBABFHIYDBBAIFEUBXDWAPGBGMDYHQAIFBFEAHDBECBUDKJQEVECHXCZFRAKHKHQCLJOACJFBTCPJQHNGGJLCSCPARCJAUIJHKGVEIAABXDXELJACXGSBPHMEEGDDSFZCWFQEKBVBCEKHRFTGDDIHNDFEOIVHXAAFUEDCJDEGGADHCJCFNCFEUDIJJFHGEBIJEGEDQEBEOELDPAUHCITAZAACSAWHAEIHUGMAFGFGVBPDHDYJJGYITGPAMIQBEIZDUFDGYBLBMCYBMGCCOISBGIACLCFGPHEDGCPAHIXDOCHJUAXCOHWANJLGUIWDNDSEHIPIHIVFVDWAHDVIMEOFAJNBFAJHFHGCIEABGFDIQBOEKIQDPDLJBIUGCEOHUBCIGILECJNDREWFEHACPCADSIKJJFFACGKALAAIIGACMEKDSEEDUFIALDHDQFRDGAGDHJUJFGLHRDYCTBDFDAYGZILFCFKDNGYADHMIOHEAKJRFKBMEBJEIBHHJGCSGTFZFKEJGTHFFOIDBGFLDODCEAASHEFUFMCSICIAFSCHFUFSBQFRJBBLGODPCGDTEPJJAIFYFKHQGIBUAKCMJOFOCYDNGRAZBRFCIVFXHIHKAYAAEDJPHLBAEYDUDAFNGNFUAICZDMJDEXAYJQFWEWFPCBCGIQHVFYGPHXCGBDBCHBINCPARGAASDVICCFBZEEAZDQ

View File

@ -0,0 +1,26 @@
# Tomcat
server:
port: 39200
## Spring 测试环境
spring:
cloud:
loadbalancer:
nacos:
enabled: true
nacos:
username: nacos
password: nacos
discovery:
# 服务注册地址
server-addr: 192.168.0.14:8848
namespace: lp_smz_dev
config:
# 配置中心地址
server-addr: 192.168.0.14:8848
namespace: lp_smz_dev
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}

View File

@ -0,0 +1,26 @@
# Tomcat
server:
port: 39200
## Spring 测试环境
spring:
cloud:
loadbalancer:
nacos:
enabled: true
nacos:
username: nacos
password: nacos
discovery:
# 服务注册地址
server-addr: 192.168.1.6:4412
namespace: lp_prod
config:
# 配置中心地址
server-addr: 192.168.1.6:4412
namespace: lp_prod
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}

View File

@ -0,0 +1,26 @@
# Tomcat
server:
port: 39200
## Spring 测试环境
spring:
cloud:
loadbalancer:
nacos:
enabled: true
nacos:
username: nacos
password: nacos
discovery:
# 服务注册地址
server-addr: 192.168.0.14:8848
namespace: lp-smz-test
config:
# 配置中心地址
server-addr: 192.168.0.14:8848
namespace: lp-smz-test
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}

View File

@ -1,7 +1,3 @@
# Tomcat
server:
port: 39200
## Spring 测试环境 ## Spring 测试环境
spring: spring:
application: application:
@ -9,33 +5,7 @@ spring:
name: auth name: auth
profiles: profiles:
# 环境配置 # 环境配置
active: @profiles.active@ active: local
cloud:
loadbalancer:
# 关闭Ribbon的负载均衡器
ribbon:
enabled: false
# 开启Nacos的负载均衡器
nacos:
enabled: true
nacos:
discovery:
# 服务注册地址
server-addr: @nacos.server@
namespace: @name.space@
username: @username@
password: @password@
config:
# 配置中心地址
server-addr: @nacos.server@
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: @name.space@
username: @username@
password: @password@
management: management:
server: server:
@ -47,4 +17,4 @@ management:
enabled-by-default: false enabled-by-default: false
endpoint: endpoint:
beans: beans:
enabled: false enabled: false

View File

@ -0,0 +1,27 @@
# Tomcat
server:
# 本地、测试
port: 39100
## Spring 测试环境
spring:
cloud:
loadbalancer:
nacos:
enabled: true
nacos:
username: nacos
password: nacos
discovery:
# 服务注册地址
server-addr: 192.168.0.14:8848
namespace: lp_smz_dev
config:
# 配置中心地址
server-addr: 192.168.0.14:8848
namespace: lp_smz_dev
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}

View File

@ -0,0 +1,26 @@
# Tomcat
server:
port: 19100
## Spring 测试环境
spring:
cloud:
loadbalancer:
nacos:
enabled: true
nacos:
username: nacos
password: nacos
discovery:
# 服务注册地址
server-addr: 192.168.1.6:4412
namespace: lp_prod
config:
# 配置中心地址
server-addr: 192.168.1.6:4412
namespace: lp_prod
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}

View File

@ -0,0 +1,27 @@
# Tomcat
server:
# 本地、测试
port: 39100
## Spring 测试环境
spring:
cloud:
loadbalancer:
nacos:
enabled: true
nacos:
username: nacos
password: nacos
discovery:
# 服务注册地址
server-addr: 192.168.0.14:8848
namespace: lp_smz_new
config:
# 配置中心地址
server-addr: 192.168.0.14:8848
namespace: lp_smz_new
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}

View File

@ -1,11 +1,3 @@
# Tomcat
server:
# 本地、测试
port: 39100
# 线上
# port: 19100
# servlet:
# context-path: lpRealName
# Spring # Spring
spring: spring:
@ -14,38 +6,4 @@ spring:
name: gateway name: gateway
profiles: profiles:
# 环境配置 # 环境配置
active: @profiles.active@ active: local
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: @nacos.server@
namespace: @name.space@
username: @username@
password: @password@
config:
# 配置中心地址
server-addr: @nacos.server@
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: @name.space@
username: @username@
password: @password@
sentinel:
# 取消控制台懒加载
eager: true
transport:
# 控制台地址
server-addr: 192.168.0.14:8858
# nacos配置持久化
datasource:
ds1:
nacos:
server-addr: 192.168.0.14:8848
dataId: sentinel-gateway
groupId: DEFAULT_GROUP
data-type: json
rule-type: flow

View File

@ -0,0 +1,26 @@
# Tomcat
server:
port: 1913
## Spring 测试环境
spring:
cloud:
loadbalancer:
nacos:
enabled: true
nacos:
username: nacos
password: nacos
discovery:
# 服务注册地址
server-addr: 192.168.0.14:8848
namespace: lp_smz_dev
config:
# 配置中心地址
server-addr: 192.168.0.14:8848
namespace: lp_smz_dev
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}

View File

@ -0,0 +1,26 @@
# Tomcat
server:
port: 1913
## Spring 测试环境
spring:
cloud:
loadbalancer:
nacos:
enabled: true
nacos:
username: nacos
password: nacos
discovery:
# 服务注册地址
server-addr: 192.168.1.6:4412
namespace: lp_prod
config:
# 配置中心地址
server-addr: 192.168.1.6:4412
namespace: lp_prod
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}

View File

@ -0,0 +1,26 @@
# Tomcat
server:
port: 1913
## Spring 测试环境
spring:
cloud:
loadbalancer:
nacos:
enabled: true
nacos:
username: nacos
password: nacos
discovery:
# 服务注册地址
server-addr: 192.168.0.14:8848
namespace: lp-smz-test
config:
# 配置中心地址
server-addr: 192.168.0.14:8848
namespace: lp-smz-test
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}

View File

@ -1,33 +1,8 @@
# Tomcat
server:
port: 1913
# servlet:
# context-path: /app
# Spring # Spring
spring: spring:
application: application:
# 应用名称 # 应用名称
name: app name: app
profiles: profiles:
# 环境配置 # 环境配置
active: @profiles.active@ active: local
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: @nacos.server@
namespace: @name.space@
username: @username@
password: @password@
config:
# 配置中心地址
server-addr: @nacos.server@
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: @name.space@
username: @username@
password: @password@

View File

@ -0,0 +1,26 @@
# Tomcat
server:
port: 38084
## Spring 测试环境
spring:
cloud:
loadbalancer:
nacos:
enabled: true
nacos:
username: nacos
password: nacos
discovery:
# 服务注册地址
server-addr: 192.168.0.14:8848
namespace: lp_smz_dev
config:
# 配置中心地址
server-addr: 192.168.0.14:8848
namespace: lp_smz_dev
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}

View File

@ -0,0 +1,26 @@
# Tomcat
server:
port: 38084
## Spring 测试环境
spring:
cloud:
loadbalancer:
nacos:
enabled: true
nacos:
username: nacos
password: nacos
discovery:
# 服务注册地址
server-addr: 192.168.1.6:4412
namespace: lp_prod
config:
# 配置中心地址
server-addr: 192.168.1.6:4412
namespace: lp_prod
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}

View File

@ -0,0 +1,26 @@
# Tomcat
server:
port: 38084
## Spring 测试环境
spring:
cloud:
loadbalancer:
nacos:
enabled: true
nacos:
username: nacos
password: nacos
discovery:
# 服务注册地址
server-addr: 192.168.0.14:8848
namespace: lp-smz-test
config:
# 配置中心地址
server-addr: 192.168.0.14:8848
namespace: lp-smz-test
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}

View File

@ -1,7 +1,3 @@
# Tomcat
server:
port: 38084
# Spring # Spring
spring: spring:
application: application:
@ -9,23 +5,4 @@ spring:
name: attMachine name: attMachine
profiles: profiles:
# 环境配置 # 环境配置
active: @profiles.active@ active: local
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: @nacos.server@
namespace: @name.space@
username: @username@
password: @password@
config:
# 配置中心地址
server-addr: @nacos.server@
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: @name.space@
username: @username@
password: @password@

View File

@ -1,9 +1,7 @@
package com.bonus.bmw.basic.controller; package com.bonus.bmw.basic.controller;
import com.bonus.bmw.basic.dao.UserDao; import com.bonus.bmw.basic.dao.UserDao;
import com.bonus.bmw.basic.entity.BankCardBean; import com.bonus.bmw.basic.entity.*;
import com.bonus.bmw.basic.entity.PushUserBean;
import com.bonus.bmw.basic.entity.UserBean;
import com.bonus.bmw.basic.service.OrgService; import com.bonus.bmw.basic.service.OrgService;
import com.bonus.bmw.basic.service.UserService; import com.bonus.bmw.basic.service.UserService;
import com.bonus.bmw.person.dao.GetChildListDao; import com.bonus.bmw.person.dao.GetChildListDao;
@ -81,14 +79,20 @@ public class UserController {
public PageTableResponse listUsers(PageTableRequest request) { public PageTableResponse listUsers(PageTableRequest request) {
SelfPermissionSettingUtils.getSelfPermission(request); SelfPermissionSettingUtils.getSelfPermission(request);
Map<String, Object> params = request.getParams();
String orgId = (String) request.getParams().get("orgId"); String orgId = (String) request.getParams().get("orgId");
if(!StringUtils.isEmpty(orgId)){ if(!StringUtils.isEmpty(orgId)){
String childList = getChildListDao.getChildList(orgId); String childList = getChildListDao.getChildList(orgId);
Map<String, Object> params = request.getParams();
params.put("orgAll",childList); params.put("orgAll",childList);
} }
String userName = SecurityUtils.getLoginUser().getSysUser().getPhonenumber();
if("lpAdmin".equals(userName)){
params.put("isAdmin","1");
}else {
params.put("isAdmin","0");
}
return new PageTableHandler(new PageTableHandler.CountHandler() { return new PageTableHandler(new PageTableHandler.CountHandler() {
@Override @Override
public int count(PageTableRequest request) { public int count(PageTableRequest request) {

View File

@ -71,6 +71,11 @@ public class UserServiceImpl implements UserService {
return i > 0 ? R.ok(null, "添加成功"):R.fail("添加失败"); return i > 0 ? R.ok(null, "添加成功"):R.fail("添加失败");
} }
public static void main(String[] args) {
BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();
System.out.println(passwordEncoder.encode("Lphd@123456"));
}
private void saveUserRoles(String userId, String roleId) { private void saveUserRoles(String userId, String roleId) {
if (roleId != null) { if (roleId != null) {
userDao.deleteUserRole(userId); userDao.deleteUserRole(userId);

View File

@ -1,20 +1,27 @@
package com.bonus.bmw.config; package com.bonus.bmw.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
/** /**
* @author fly * @author fly
*/ */
//@Component @Component
public class IpAndPathConfig { public class IpAndPathConfig {
/** /**
* 当前环境 * 当前环境
* 其他 本地 * 其他/本地 -> dev
* test 测试 * test -> 测试
* prod 固定 * prod -> 生产
*/ */
// @Value("${environment}") public static String environment;
// public static String environment;
public static String environment = "其他"; // 通过非静态 setter 方法注入并赋值给 static 字段
@Value("${environment:dev}") // 默认值设为 dev防止未配置时报错
public void setEnvironment(String env) {
IpAndPathConfig.environment = env;
}
/** /**
* 持证 * 持证

View File

@ -1,7 +1,7 @@
package com.bonus.bmw.person.utils; package com.bonus.bmw.person.utils;
import com.arcsoft.face.*; import com.arcsoft.face.*;
import com.arcsoft.face.enums.*; import com.arcsoft.face.enums.ImageFormat;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import javax.imageio.ImageIO; import javax.imageio.ImageIO;
import java.awt.color.ColorSpace; import java.awt.color.ColorSpace;

View File

@ -0,0 +1,29 @@
# Tomcat
server:
port: 31912
## Spring 测试环境
spring:
cloud:
loadbalancer:
nacos:
enabled: true
nacos:
username: nacos
password: nacos
discovery:
# 服务注册地址
server-addr: 192.168.0.14:8848
namespace: lp_smz_dev
config:
# 配置中心地址
server-addr: 192.168.0.14:8848
namespace: lp_smz_dev
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
environment: local

View File

@ -0,0 +1,29 @@
# Tomcat
server:
port: 31912
## Spring 测试环境
spring:
cloud:
loadbalancer:
nacos:
enabled: true
nacos:
username: nacos
password: nacos
discovery:
# 服务注册地址
server-addr: 192.168.1.6:4412
namespace: lp_prod
config:
# 配置中心地址
server-addr: 192.168.1.6:4412
namespace: lp_prod
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
environment: prod

View File

@ -0,0 +1,29 @@
# Tomcat
server:
port: 31912
## Spring 测试环境
spring:
cloud:
loadbalancer:
nacos:
enabled: true
nacos:
username: nacos
password: nacos
discovery:
# 服务注册地址
server-addr: 192.168.0.14:8848
namespace: lp-smz-test
config:
# 配置中心地址
server-addr: 192.168.0.14:8848
namespace: lp-smz-test
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
environment: test

View File

@ -1,10 +1,3 @@
# Tomcat
server:
# 本地、测试
port: 31912
# servlet:
# context-path: /bmw
# Spring # Spring
spring: spring:
application: application:
@ -12,27 +5,7 @@ spring:
name: bmw name: bmw
profiles: profiles:
# 环境配置 # 环境配置
active: @profiles.active@ active: local
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: @nacos.server@
namespace: @name.space@
username: @username@
password: @password@
config:
# 配置中心地址
server-addr: @nacos.server@
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: @name.space@
username: @username@
password: @password@
devtools: devtools:
restart: restart:
@ -47,4 +20,4 @@ management:
enabled-by-default: false enabled-by-default: false
endpoint: endpoint:
beans: beans:
enabled: false enabled: false

View File

@ -21,7 +21,10 @@
LEFT JOIN ( SELECT id_number, project_id, is_furlough_person FROM bm_worker_ein_history WHERE ( is_furlough_person = '1' OR exit_status != 1 ) AND is_active = '1' limit 1) bweh ON bweh.id_number = t.id_number LEFT JOIN ( SELECT id_number, project_id, is_furlough_person FROM bm_worker_ein_history WHERE ( is_furlough_person = '1' OR exit_status != 1 ) AND is_active = '1' limit 1) bweh ON bweh.id_number = t.id_number
LEFT JOIN bm_project bp2 ON bp2.id = bweh.project_id LEFT JOIN bm_project bp2 ON bp2.id = bweh.project_id
<where> <where>
t.is_active = '1' and t.id != '1' and t.username is not null AND sr.id !='5' and sr.id !='36' t.is_active = '1' and t.id != '1' and t.username is not null
<if test='params.isAdmin != "1"'>
AND sr.id !='5' and sr.id !='36'
</if>
<if test="params.userName != null and params.userName != ''"> <if test="params.userName != null and params.userName != ''">
and t.username like concat('%', #{params.userName}, '%') and t.username like concat('%', #{params.userName}, '%')
</if> </if>
@ -81,7 +84,10 @@
LEFT JOIN ( SELECT id_number, project_id, is_furlough_person FROM bm_worker_ein_history WHERE ( is_furlough_person = '1' OR exit_status != 1 ) AND is_active = '1' limit 1) bweh ON bweh.id_number = t.id_number LEFT JOIN ( SELECT id_number, project_id, is_furlough_person FROM bm_worker_ein_history WHERE ( is_furlough_person = '1' OR exit_status != 1 ) AND is_active = '1' limit 1) bweh ON bweh.id_number = t.id_number
LEFT JOIN bm_project bp2 ON bp2.id = bweh.project_id LEFT JOIN bm_project bp2 ON bp2.id = bweh.project_id
<where> <where>
t.is_active = '1' and t.id != '1' and t.username is not null AND sr.id !='5' and sr.id !='36' t.is_active = '1' and t.id != '1' and t.username is not null
<if test='params.isAdmin != "1"'>
AND sr.id !='5' and sr.id !='36'
</if>
<if test="params.userName != null and params.userName != ''"> <if test="params.userName != null and params.userName != ''">
and t.username like concat('%', #{params.userName}, '%') and t.username like concat('%', #{params.userName}, '%')
</if> </if>

View File

@ -8,9 +8,7 @@
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>real-name-file-lp</artifactId> <artifactId>real-name-file-lp</artifactId>
<description> <description>
modules-file文件模块 modules-file文件模块
</description> </description>
@ -165,4 +163,4 @@
</plugins> </plugins>
</build> </build>
</project> </project>

View File

@ -0,0 +1,26 @@
# Tomcat
server:
port: 31909
## Spring 测试环境
spring:
cloud:
loadbalancer:
nacos:
enabled: true
nacos:
username: nacos
password: nacos
discovery:
# 服务注册地址
server-addr: 192.168.0.14:8848
namespace: lp_smz_dev
config:
# 配置中心地址
server-addr: 192.168.0.14:8848
namespace: lp_smz_dev
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}

View File

@ -0,0 +1,26 @@
# Tomcat
server:
port: 1909
## Spring 测试环境
spring:
cloud:
loadbalancer:
nacos:
enabled: true
nacos:
username: nacos
password: nacos
discovery:
# 服务注册地址
server-addr: 192.168.1.6:4412
namespace: lp_prod
config:
# 配置中心地址
server-addr: 192.168.1.6:4412
namespace: lp_prod
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}

View File

@ -0,0 +1,26 @@
# Tomcat
server:
port: 31909
## Spring 测试环境
spring:
cloud:
loadbalancer:
nacos:
enabled: true
nacos:
username: nacos
password: nacos
discovery:
# 服务注册地址
server-addr: 192.168.0.14:8848
namespace: lp-smz-test
config:
# 配置中心地址
server-addr: 192.168.0.14:8848
namespace: lp-smz-test
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}

View File

@ -1,14 +1,3 @@
# Tomcat
server:
# 本地、测试
# port: 31909
# 线上
port: 1909
# servlet:
# context-path: /file
# Spring # Spring
spring: spring:
application: application:
@ -16,26 +5,7 @@ spring:
name: file name: file
profiles: profiles:
# 环境配置 # 环境配置
active: @profiles.active@ active: local
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: @nacos.server@
namespace: @name.space@
# username: @username@
# password: @password@
config:
# 配置中心地址
server-addr: @nacos.server@
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: @name.space@
# username: @username@
# password: @password@
management: management:
server: server:
@ -47,4 +17,4 @@ management:
enabled-by-default: false enabled-by-default: false
endpoint: endpoint:
beans: beans:
enabled: false enabled: false

View File

@ -31,12 +31,6 @@
<groupId>com.bonus</groupId> <groupId>com.bonus</groupId>
<artifactId>common-log</artifactId> <artifactId>common-log</artifactId>
</dependency> </dependency>
<dependency>
<groupId>com.bonus</groupId>
<artifactId>modules-file</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<!--图片压缩--> <!--图片压缩-->
<dependency> <dependency>
@ -57,4 +51,4 @@
</dependencies> </dependencies>
</project> </project>

View File

@ -0,0 +1,26 @@
# Tomcat
server:
port: 31910
## Spring 测试环境
spring:
cloud:
loadbalancer:
nacos:
enabled: true
nacos:
username: nacos
password: nacos
discovery:
# 服务注册地址
server-addr: 192.168.0.14:8848
namespace: lp_smz_dev
config:
# 配置中心地址
server-addr: 192.168.0.14:8848
namespace: lp_smz_dev
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}

View File

@ -0,0 +1,26 @@
# Tomcat
server:
port: 31910
## Spring 测试环境
spring:
cloud:
loadbalancer:
nacos:
enabled: true
nacos:
username: nacos
password: nacos
discovery:
# 服务注册地址
server-addr: 192.168.1.6:4412
namespace: lp_prod
config:
# 配置中心地址
server-addr: 192.168.1.6:4412
namespace: lp_prod
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}

View File

@ -0,0 +1,26 @@
# Tomcat
server:
port: 31909
## Spring 测试环境
spring:
cloud:
loadbalancer:
nacos:
enabled: true
nacos:
username: nacos
password: nacos
discovery:
# 服务注册地址
server-addr: 192.168.0.14:8848
namespace: lp-smz-test
config:
# 配置中心地址
server-addr: 192.168.0.14:8848
namespace: lp-smz-test
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}

View File

@ -1,7 +1,3 @@
# Tomcat
server:
port: 31910
## Spring 测试环境 ## Spring 测试环境
spring: spring:
application: application:
@ -9,31 +5,6 @@ spring:
name: system name: system
profiles: profiles:
# 环境配置 # 环境配置
active: @profiles.active@ active: local
cloud:
loadbalancer:
# 关闭Ribbon的负载均衡器
ribbon:
enabled: false
# 开启Nacos的负载均衡器
nacos:
enabled: true
nacos:
discovery:
# 服务注册地址
server-addr: @nacos.server@
namespace: @name.space@
username: @username@
password: @password@
config:
# 配置中心地址
server-addr: @nacos.server@
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: @name.space@
username: @username@
password: @password@

24
pom.xml
View File

@ -348,20 +348,6 @@
<profiles> <profiles>
<profile>
<id>dev</id>
<properties>
<profiles.active>lp_smz_dev</profiles.active>
<nacos.server>192.168.0.14:8848</nacos.server>
<name.space>lp_smz_dev</name.space>
<username>nacos</username>
<password>nacos</password>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<profile> <profile>
<id>lSun</id> <id>lSun</id>
<properties> <properties>
@ -376,16 +362,6 @@
</activation> </activation>
</profile> </profile>
<profile>
<id>lp_prod</id>
<properties>
<profiles.active>lp_prod</profiles.active>
<nacos.server>192.168.1.6:4412</nacos.server>
<name.space>lp_prod</name.space>
<username>nacos</username>
<password>nacos</password>
</properties>
</profile>
<!-- 可以添加更多环境配置 --> <!-- 可以添加更多环境配置 -->
</profiles> </profiles>