Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
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
platform
hg-smart
Commits
5cce6990
Commit
5cce6990
authored
Sep 23, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.增加是否权限校验参数
parent
1235c928
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
HGWDTools.java
src/main/java/com/baosight/hggp/hg/wd/tools/HGWDTools.java
+1
-0
SqlMapDaoLogProxy.java
...sight/iplat4j/core/data/ibatis/dao/SqlMapDaoLogProxy.java
+6
-0
No files found.
src/main/java/com/baosight/hggp/hg/wd/tools/HGWDTools.java
View file @
5cce6990
...
@@ -234,6 +234,7 @@ public class HGWDTools {
...
@@ -234,6 +234,7 @@ public class HGWDTools {
AssertUtils
.
isNull
(
extId
,
"实体ID不能为空!"
);
AssertUtils
.
isNull
(
extId
,
"实体ID不能为空!"
);
Map
queryMap
=
new
HashMap
();
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
HGWD005
.
FIELD_EXT_ID
,
extId
);
queryMap
.
put
(
HGWD005
.
FIELD_EXT_ID
,
extId
);
queryMap
.
put
(
"notAuth"
,
true
);
List
<
HGWD005
>
results
=
DaoBase
.
getInstance
().
query
(
HGWD005
.
QUERY
,
queryMap
);
List
<
HGWD005
>
results
=
DaoBase
.
getInstance
().
query
(
HGWD005
.
QUERY
,
queryMap
);
return
CollectionUtils
.
isEmpty
(
results
)
?
null
:
results
.
get
(
0
);
return
CollectionUtils
.
isEmpty
(
results
)
?
null
:
results
.
get
(
0
);
}
}
...
...
src/main/java/com/baosight/iplat4j/core/data/ibatis/dao/SqlMapDaoLogProxy.java
View file @
5cce6990
...
@@ -7,6 +7,7 @@ import com.baosight.hggp.core.tools.ThreadLocalTools;
...
@@ -7,6 +7,7 @@ import com.baosight.hggp.core.tools.ThreadLocalTools;
import
com.baosight.hggp.hg.xs.domain.UserGroup
;
import
com.baosight.hggp.hg.xs.domain.UserGroup
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.MapUtils
;
import
com.baosight.hggp.util.StringUtils
;
import
com.baosight.hggp.util.StringUtils
;
import
com.baosight.iplat4j.core.ioc.spring.PlatApplicationContext
;
import
com.baosight.iplat4j.core.ioc.spring.PlatApplicationContext
;
import
com.baosight.iplat4j.core.service.soa.DomainQuery.PageStatus
;
import
com.baosight.iplat4j.core.service.soa.DomainQuery.PageStatus
;
...
@@ -208,6 +209,11 @@ public class SqlMapDaoLogProxy extends SqlMapDao {
...
@@ -208,6 +209,11 @@ public class SqlMapDaoLogProxy extends SqlMapDao {
* @param parameters
* @param parameters
*/
*/
private
void
setDataAuth
(
String
name
,
Object
parameters
)
{
private
void
setDataAuth
(
String
name
,
Object
parameters
)
{
// 本次操作不做权限
boolean
notAuth
=
MapUtils
.
getBooleanValue
((
Map
)
parameters
,
"notAuth"
);
if
(
notAuth
)
{
return
;
}
// 需要过滤部分sql name,否则会形成死循环;admin账户不需要校验
// 需要过滤部分sql name,否则会形成死循环;admin账户不需要校验
String
loginName
=
UserSessionUtils
.
getLoginName
();
String
loginName
=
UserSessionUtils
.
getLoginName
();
String
[]
serviceFilter
=
{
"HGXSUser"
,
"HGXSOrg"
,
"HGXSUserGroup"
,
"HGPZ009.query"
,
"HGPZ010.query"
};
String
[]
serviceFilter
=
{
"HGXSUser"
,
"HGXSOrg"
,
"HGXSUserGroup"
,
"HGPZ009.query"
,
"HGPZ010.query"
};
...
...
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