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
676e41ed
Commit
676e41ed
authored
Aug 22, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修复BUG
parent
882f75d6
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
16 deletions
+22
-16
HGXSOrg.xml
src/main/java/com/baosight/hggp/hg/xs/sql/HGXSOrg.xml
+5
-5
SqlMapDaoLogProxy.java
...sight/iplat4j/core/data/ibatis/dao/SqlMapDaoLogProxy.java
+7
-1
ServiceXSOG0800.java
...com/baosight/xservices/xs/og/service/ServiceXSOG0800.java
+1
-1
ServiceXSOG0801.java
...com/baosight/xservices/xs/og/service/ServiceXSOG0801.java
+1
-1
ServiceXSOG0801A.java
...om/baosight/xservices/xs/og/service/ServiceXSOG0801A.java
+1
-1
ServiceXSOG0801B.java
...om/baosight/xservices/xs/og/service/ServiceXSOG0801B.java
+1
-1
XSOG01.xml
src/main/java/com/baosight/xservices/xs/og/sql/XSOG01.xml
+6
-6
No files found.
src/main/java/com/baosight/hggp/hg/xs/sql/HGXSOrg.xml
View file @
676e41ed
...
...
@@ -4,9 +4,9 @@
<sql
id=
"condition"
>
AND IS_DELETED = '0'
<isNotE
qual
prepend=
" AND "
property=
"accountCode"
compareValue=
"ADMIN
"
>
<isNotE
mpty
prepend=
" AND "
property=
"accountCode
"
>
ACCOUNT_CODE = #accountCode#
</isNotE
qual
>
</isNotE
mpty
>
<isNotEmpty
prepend=
" AND "
property=
"orgEname"
>
ORG_ENAME = #orgEname#
</isNotEmpty>
...
...
@@ -83,9 +83,9 @@
(SELECT @CODES:=GROUP_CONCAT(ORG_ID)
FROM ${platSchema}.TXSOG01
WHERE FIND_IN_SET(PARENT_ORG_ID, @CODES)
<isNotE
qual
property=
"accountCode"
compareValue=
"ADMIN
"
>
A
ND A
CCOUNT_CODE = #accountCode#
</isNotE
qual
>
<isNotE
mpty
prepend=
" AND "
property=
"accountCode
"
>
ACCOUNT_CODE = #accountCode#
</isNotE
mpty
>
AND IS_DELETED = 0
) AS T1,
@LEVEL:=@LEVEL+1 AS LEVEL
...
...
src/main/java/com/baosight/iplat4j/core/data/ibatis/dao/SqlMapDaoLogProxy.java
View file @
676e41ed
...
...
@@ -192,7 +192,13 @@ public class SqlMapDaoLogProxy extends SqlMapDao {
}
// 本来是BUG,避免业务代码改动依然保持原逻辑ADMIN时依然置空
String
accountCode
=
UserSessionUtils
.
getAccountCode
();
((
Map
)
parameters
).
put
(
"accountCode"
,
CommonConstant
.
Field
.
ADMIN
.
equals
(
accountCode
)
?
""
:
accountCode
);
if
(
CommonConstant
.
Field
.
ADMIN
.
equals
(
accountCode
))
{
((
Map
)
parameters
).
put
(
"accountCode"
,
null
);
}
else
if
(
StringUtils
.
isBlank
(
accountCode
))
{
((
Map
)
parameters
).
put
(
"accountCode"
,
" "
);
}
else
{
((
Map
)
parameters
).
put
(
"accountCode"
,
accountCode
);
}
}
/**
...
...
src/main/java/com/baosight/xservices/xs/og/service/ServiceXSOG0800.java
View file @
676e41ed
...
...
@@ -59,7 +59,7 @@ public class ServiceXSOG0800 extends TreeService {
queryMap
.
put
(
"node"
,
parentLabel
);
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
queryMap
.
put
(
"accountCode"
,
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
())
?
CommonConstant
.
Field
.
ADMIN
:
UserSessionUtils
.
getAccountCode
());
?
null
:
UserSessionUtils
.
getAccountCode
());
List
<
Map
>
ret
=
this
.
dao
.
query
(
"XSOG01.queryOrganiation"
,
queryMap
,
0
,
-
999999
);
Map
parentOrgMap
=
new
HashMap
();
...
...
src/main/java/com/baosight/xservices/xs/og/service/ServiceXSOG0801.java
View file @
676e41ed
...
...
@@ -410,7 +410,7 @@ public class ServiceXSOG0801 extends ServiceBase {
}
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
inInfo
.
set
(
"inqu_status-0-accountCode"
,
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
())
?
CommonConstant
.
Field
.
ADMIN
:
UserSessionUtils
.
getAccountCode
());
?
null
:
UserSessionUtils
.
getAccountCode
());
EiInfo
outInfo
=
super
.
query
(
inInfo
,
"XSOG01.query"
,
new
XSOG01
());
r2Block
.
setRows
(
outInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
());
outInfo
.
addBlock
(
r2Block
);
...
...
src/main/java/com/baosight/xservices/xs/og/service/ServiceXSOG0801A.java
View file @
676e41ed
...
...
@@ -92,7 +92,7 @@ public class ServiceXSOG0801A extends ServiceEPBase {
}
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
queryMap
.
put
(
"accountCode"
,
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
())
?
CommonConstant
.
Field
.
ADMIN
:
UserSessionUtils
.
getAccountCode
());
?
null
:
UserSessionUtils
.
getAccountCode
());
inInfo
=
super
.
query
(
inInfo
,
"XSOG01.query"
,
new
XSOG01
());
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
...
...
src/main/java/com/baosight/xservices/xs/og/service/ServiceXSOG0801B.java
View file @
676e41ed
...
...
@@ -84,7 +84,7 @@ public class ServiceXSOG0801B extends ServiceEPBase {
}
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
queryMap
.
put
(
"accountCode"
,
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
())
?
CommonConstant
.
Field
.
ADMIN
:
UserSessionUtils
.
getAccountCode
());
?
null
:
UserSessionUtils
.
getAccountCode
());
inInfo
=
super
.
query
(
inInfo
,
"XSOG01.query"
,
new
XSOG01
());
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
...
...
src/main/java/com/baosight/xservices/xs/og/sql/XSOG01.xml
View file @
676e41ed
...
...
@@ -158,9 +158,9 @@
<isNotEmpty
prepend=
" AND "
property=
"orgType"
>
ORG_TYPE like ('%$orgType$%')
</isNotEmpty>
<isNotE
qual
prepend=
" AND "
property=
"accountCode"
compareValue=
"ADMIN
"
>
<isNotE
mpty
prepend=
" AND "
property=
"accountCode
"
>
ACCOUNT_CODE = #accountCode#
</isNotE
qual
>
</isNotE
mpty
>
ORDER BY SORT_INDEX ASC
</select>
...
...
@@ -185,9 +185,9 @@
<isNotEmpty
prepend=
" AND "
property=
"orgType"
>
ORG_TYPE like ('%$orgType$%')
</isNotEmpty>
<isNotE
qual
prepend=
" AND "
property=
"accountCode"
compareValue=
"ADMIN
"
>
<isNotE
mpty
prepend=
" AND "
property=
"accountCode
"
>
ACCOUNT_CODE = #accountCode#
</isNotE
qual
>
</isNotE
mpty
>
</select>
<!-- 根据id查询组织机构 -->
...
...
@@ -279,9 +279,9 @@
<isNotEmpty
prepend=
" AND "
property=
"node"
>
PARENT_ORG_ID = #node#
</isNotEmpty>
<isNotE
qual
prepend=
" AND "
property=
"accountCode"
compareValue=
"ADMIN
"
>
<isNotE
mpty
prepend=
" AND "
property=
"accountCode
"
>
ACCOUNT_CODE = #accountCode#
</isNotE
qual
>
</isNotE
mpty
>
order by SORT_INDEX asc
</select>
...
...
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