Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
03c1de42
Commit
03c1de42
authored
Mar 21, 2025
by
hezhuozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人大金仓适配
parent
5d8f10ac
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
77 additions
and
15 deletions
+77
-15
MybatisPlusConfig.java
...ava/com/yeejoin/equipmanage/config/MybatisPlusConfig.java
+62
-0
PersonIdentifyAspect.java
.../com/yeejoin/equipmanage/config/PersonIdentifyAspect.java
+10
-10
application-kingbase.properties
...-equip/src/main/resources/application-kingbase.properties
+1
-1
pom.xml
pom.xml
+4
-4
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/config/MybatisPlusConfig.java
View file @
03c1de42
package
com
.
yeejoin
.
equipmanage
.
config
;
import
com.baomidou.mybatisplus.autoconfigure.ConfigurationCustomizer
;
import
com.baomidou.mybatisplus.core.MybatisConfiguration
;
import
com.baomidou.mybatisplus.core.config.GlobalConfig
;
import
com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor
;
import
com.yeejoin.amos.boot.biz.config.MetaHandler
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Primary
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
/**
* @description: 分页插件
* @author: duanwei
* @create: 2020-06-30 13:57
**/
@EnableTransactionManagement
@Configuration
(
"MybatisPlusConfigPrecontrol"
)
@Primary
public
class
MybatisPlusConfig
{
/**
* plus分页插件支持
*/
@Bean
public
PaginationInterceptor
paginationInterceptor
()
{
PaginationInterceptor
page
=
new
PaginationInterceptor
();
//设置方言类型
page
.
setDialectType
(
"mysql"
);
//不限制
page
.
setLimit
(-
1
);
return
page
;
}
/**
* pageHelper插件支持
*
* @return
*/
@Bean
ConfigurationCustomizer
mybatisConfigurationCustomizer
()
{
return
new
ConfigurationCustomizer
()
{
@Override
public
void
customize
(
MybatisConfiguration
configuration
)
{
configuration
.
addInterceptor
(
new
com
.
github
.
pagehelper
.
PageInterceptor
());
}
};
}
/**
* mp参数切面
*
* @return
*/
@Bean
public
GlobalConfig
globalConfig
()
{
GlobalConfig
globalConfig
=
new
GlobalConfig
();
globalConfig
.
setMetaObjectHandler
(
new
MetaHandler
());
return
globalConfig
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/config/PersonIdentifyAspect.java
View file @
03c1de42
...
@@ -54,19 +54,19 @@ public class PersonIdentifyAspect {
...
@@ -54,19 +54,19 @@ public class PersonIdentifyAspect {
if
(
reginParam
.
getPersonIdentity
()
==
null
||
StringUtils
.
isEmpty
(
reginParam
.
getPersonIdentity
().
getBizOrgCode
())
||
StringUtils
.
isEmpty
(
reginParam
.
getPersonIdentity
().
getCompanyBizOrgCode
()))
{
if
(
reginParam
.
getPersonIdentity
()
==
null
||
StringUtils
.
isEmpty
(
reginParam
.
getPersonIdentity
().
getBizOrgCode
())
||
StringUtils
.
isEmpty
(
reginParam
.
getPersonIdentity
().
getCompanyBizOrgCode
()))
{
String
userId
=
reginParam
.
getUserModel
().
getUserId
();
String
userId
=
reginParam
.
getUserModel
().
getUserId
();
if
(
userId
!=
null
)
{
if
(
userId
!=
null
)
{
FeignClientResult
responseModel
=
jcsFeignClient
.
selectById
(
userId
);
//
FeignClientResult responseModel = jcsFeignClient.selectById(userId);
if
(
ObjectUtils
.
isEmpty
(
responseModel
.
getResult
())
||
responseModel
.
getStatus
()
!=
HttpStatus
.
OK
.
value
())
{
//
if (ObjectUtils.isEmpty(responseModel.getResult()) || responseModel.getStatus() != HttpStatus.OK.value()) {
throw
new
RuntimeException
(
responseModel
.
getDevMessage
());
//
throw new RuntimeException(responseModel.getDevMessage());
}
//
}
// ReginParams.PersonIdentity personIdentity = (ReginParams.PersonIdentity) Bean.mapToBean((Map<String, Object>) responseModel.getResult(), ReginParams.PersonIdentity.class);
// ReginParams.PersonIdentity personIdentity = (ReginParams.PersonIdentity) Bean.mapToBean((Map<String, Object>) responseModel.getResult(), ReginParams.PersonIdentity.class);
String
s
=
JSONObject
.
toJSONString
(
responseModel
.
getResult
());
//
String s = JSONObject.toJSONString(responseModel.getResult());
ReginParams
.
PersonIdentity
personIdentity
=
JSONObject
.
parseObject
(
s
,
ReginParams
.
PersonIdentity
.
class
);
//
ReginParams.PersonIdentity personIdentity = JSONObject.parseObject(s, ReginParams.PersonIdentity.class);
//电力默认走公司权限
//电力默认走公司权限
if
(!
logic
){
//
if (!logic){
personIdentity
.
setBizOrgCode
(
StringUtils
.
isEmpty
(
personIdentity
.
getCompanyBizOrgCode
())
?
"-1"
:
personIdentity
.
getCompanyBizOrgCode
());
//
personIdentity.setBizOrgCode(StringUtils.isEmpty(personIdentity.getCompanyBizOrgCode()) ? "-1" : personIdentity.getCompanyBizOrgCode());
}
//
}
reginParam
.
setPersonIdentity
(
personIdentity
);
reginParam
.
setPersonIdentity
(
new
ReginParams
.
PersonIdentity
()
);
redisUtils
.
set
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
()),
JSONObject
.
toJSONString
(
reginParam
));
redisUtils
.
set
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
()),
JSONObject
.
toJSONString
(
reginParam
));
}
}
}
}
...
...
amos-boot-system-equip/src/main/resources/application-kingbase.properties
View file @
03c1de42
...
@@ -39,7 +39,7 @@ spring.redis.expire.time=30000
...
@@ -39,7 +39,7 @@ spring.redis.expire.time=30000
## emqx
## emqx
emqx.clean-session
=
true
emqx.clean-session
=
true
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}
emqx.broker
=
tcp://172.16.10.234:18
0
83
emqx.broker
=
tcp://172.16.10.234:1883
emqx.user-name
=
super
emqx.user-name
=
super
emqx.password
=
123456
emqx.password
=
123456
mqtt.scene.host
=
mqtt://172.16.10.234:8083/mqtt
mqtt.scene.host
=
mqtt://172.16.10.234:8083/mqtt
...
...
pom.xml
View file @
03c1de42
...
@@ -306,17 +306,17 @@
...
@@ -306,17 +306,17 @@
<repository>
<repository>
<id>
public
</id>
<id>
public
</id>
<name>
public
</name>
<name>
public
</name>
<url>
http://
113.142.68.105
:8081/nexus/content/repositories/public/
</url>
<url>
http://
47.92.103.240
:8081/nexus/content/repositories/public/
</url>
</repository>
</repository>
<repository>
<repository>
<id>
Releases
</id>
<id>
Releases
</id>
<name>
Releases
</name>
<name>
Releases
</name>
<url>
http://
113.142.68.105
:8081/nexus/content/repositories/releases/
</url>
<url>
http://
47.92.103.240
:8081/nexus/content/repositories/releases/
</url>
</repository>
</repository>
<repository>
<repository>
<id>
Snapshots
</id>
<id>
Snapshots
</id>
<name>
Snapshots
</name>
<name>
Snapshots
</name>
<url>
http://
113.142.68.105
:8081/nexus/content/repositories/snapshots/
</url>
<url>
http://
47.92.103.240
:8081/nexus/content/repositories/snapshots/
</url>
</repository>
</repository>
<repository>
<repository>
<id>
com.e-iceblue
</id>
<id>
com.e-iceblue
</id>
...
@@ -326,7 +326,7 @@
...
@@ -326,7 +326,7 @@
<repository>
<repository>
<id>
thirdparty
</id>
<id>
thirdparty
</id>
<name>
thirdparty
</name>
<name>
thirdparty
</name>
<url>
http://
113.142.68.105
:8081/nexus/content/repositories/thirdparty/
</url>
<url>
http://
47.92.103.240
:8081/nexus/content/repositories/thirdparty/
</url>
</repository>
</repository>
</repositories>
</repositories>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment