From 46b42395710666c4b896a2e71240cefdcb2a27ac Mon Sep 17 00:00:00 2001 From: dearlin <1261008090@qq.com> Date: Sat, 23 Dec 2023 11:36:32 +0800 Subject: [PATCH] =?UTF-8?q?add:=20app=E7=94=A8=E6=88=B7=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E6=97=B6=E5=80=99=E5=90=8E=E5=8F=B0=E5=9C=B0=E5=9D=80=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/system/LoginController.java | 31 +++++++++++++++++++ src/main/resources/application-dev.properties | 11 +++++++ .../mybatis/datasource/system/UsersMapper.xml | 2 +- 3 files changed, 43 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/zcloud/controller/system/LoginController.java b/src/main/java/com/zcloud/controller/system/LoginController.java index d94ab3e4..e69a771a 100644 --- a/src/main/java/com/zcloud/controller/system/LoginController.java +++ b/src/main/java/com/zcloud/controller/system/LoginController.java @@ -70,7 +70,19 @@ public class LoginController extends BaseController { @Autowired private PhotoService photoService; + @Value("${czks-useridentity}") + private String czksIdentity; + @Value("${czks-baseimgpath}") + private String czksBaseimgpath; + @Value("${czks-backendaddr}") + private String czksBackendaddr; + @Value("${gwj-useridentity}") + private String gwjIdentity; + @Value("${gwj-baseimgpath}") + private String gwjBaseimgpath; + @Value("${gwj-backendaddr}") + private String gwjBackendaddr; /** * 请求登录验证用户接口 * @@ -171,6 +183,25 @@ public class LoginController extends BaseController { map.put("failMsg", "帐号已锁定,请联系管理员"); return map; } + // 判断是不是沧州矿石的用户 + if (czksIdentity.equals(pd.getString("USER_IDENTITY"))) { + // 沧州矿石的用户 + // 用户标识 + map.put("USER_IDENTITY", czksIdentity); + // 图片路径 + map.put("baseImgPath", czksBaseimgpath); + // 后台地址 + map.put("BACKENDADDR", czksBackendaddr); + } + if ("".equals(pd.getString("USER_IDENTITY"))) { + // 港股的用户 + // 用户标识 + map.put("USER_IDENTITY", gwjIdentity); + // 图片路径 + map.put("baseImgPath", gwjBaseimgpath); + // 后台地址 + map.put("BACKENDADDR", gwjBackendaddr); + } PageData cpd = corpinfoService.findById(pd); //System.out.println(cpd.getString("ISUSE")); if (cpd != null) { diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties index 6dd4d9ea..c0c9adec 100644 --- a/src/main/resources/application-dev.properties +++ b/src/main/resources/application-dev.properties @@ -93,3 +93,14 @@ mq.group.eightWork=scheduled_tasks_eightWork corp.default.pic-path=https://qgqy.qhdsafety.com/file/ corp.default.back-end-path=https://skqhdg.porthebei.com:9004/file/ + + +#用户标识 +# 沧州矿石 +czks-useridentity=CZKS +czks-baseimgpath=https://wwag.qhdsafety.com/file/ +czks-backendaddr=http://192.168.0.79:8091/ +# 港务局 +gwj-useridentity=GWJ +gwj-baseimgpath=https://qgqy.qhdsafety.com/file/ +gwj-backendaddr=http://192.168.0.31:8991/qa-prevention-gwj/ diff --git a/src/main/resources/mybatis/datasource/system/UsersMapper.xml b/src/main/resources/mybatis/datasource/system/UsersMapper.xml index 59ce3768..9ed6e5db 100644 --- a/src/main/resources/mybatis/datasource/system/UsersMapper.xml +++ b/src/main/resources/mybatis/datasource/system/UsersMapper.xml @@ -249,7 +249,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"