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
1e3904d7
Commit
1e3904d7
authored
Aug 22, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-sx' of
http://git.pseer.com:8800/platform/hg-smart
into dev
parents
e9cdf7ea
7c8c4b97
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
33 additions
and
27 deletions
+33
-27
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
application.properties
src/main/resources/application.properties
+6
-6
quartz.properties
src/main/resources/quartz.properties
+5
-5
No files found.
src/main/java/com/baosight/hggp/hg/xs/sql/HGXSOrg.xml
View file @
1e3904d7
...
@@ -4,9 +4,9 @@
...
@@ -4,9 +4,9 @@
<sql
id=
"condition"
>
<sql
id=
"condition"
>
AND IS_DELETED = '0'
AND IS_DELETED = '0'
<isNotE
qual
prepend=
" AND "
property=
"accountCode"
compareValue=
"ADMIN
"
>
<isNotE
mpty
prepend=
" AND "
property=
"accountCode
"
>
ACCOUNT_CODE = #accountCode#
ACCOUNT_CODE = #accountCode#
</isNotE
qual
>
</isNotE
mpty
>
<isNotEmpty
prepend=
" AND "
property=
"orgEname"
>
<isNotEmpty
prepend=
" AND "
property=
"orgEname"
>
ORG_ENAME = #orgEname#
ORG_ENAME = #orgEname#
</isNotEmpty>
</isNotEmpty>
...
@@ -83,9 +83,9 @@
...
@@ -83,9 +83,9 @@
(SELECT @CODES:=GROUP_CONCAT(ORG_ID)
(SELECT @CODES:=GROUP_CONCAT(ORG_ID)
FROM ${platSchema}.TXSOG01
FROM ${platSchema}.TXSOG01
WHERE FIND_IN_SET(PARENT_ORG_ID, @CODES)
WHERE FIND_IN_SET(PARENT_ORG_ID, @CODES)
<isNotE
qual
property=
"accountCode"
compareValue=
"ADMIN
"
>
<isNotE
mpty
prepend=
" AND "
property=
"accountCode
"
>
A
ND A
CCOUNT_CODE = #accountCode#
ACCOUNT_CODE = #accountCode#
</isNotE
qual
>
</isNotE
mpty
>
AND IS_DELETED = 0
AND IS_DELETED = 0
) AS T1,
) AS T1,
@LEVEL:=@LEVEL+1 AS LEVEL
@LEVEL:=@LEVEL+1 AS LEVEL
...
...
src/main/java/com/baosight/iplat4j/core/data/ibatis/dao/SqlMapDaoLogProxy.java
View file @
1e3904d7
...
@@ -192,7 +192,13 @@ public class SqlMapDaoLogProxy extends SqlMapDao {
...
@@ -192,7 +192,13 @@ public class SqlMapDaoLogProxy extends SqlMapDao {
}
}
// 本来是BUG,避免业务代码改动依然保持原逻辑ADMIN时依然置空
// 本来是BUG,避免业务代码改动依然保持原逻辑ADMIN时依然置空
String
accountCode
=
UserSessionUtils
.
getAccountCode
();
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 @
1e3904d7
...
@@ -59,7 +59,7 @@ public class ServiceXSOG0800 extends TreeService {
...
@@ -59,7 +59,7 @@ public class ServiceXSOG0800 extends TreeService {
queryMap
.
put
(
"node"
,
parentLabel
);
queryMap
.
put
(
"node"
,
parentLabel
);
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
queryMap
.
put
(
"accountCode"
,
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
())
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
);
List
<
Map
>
ret
=
this
.
dao
.
query
(
"XSOG01.queryOrganiation"
,
queryMap
,
0
,
-
999999
);
Map
parentOrgMap
=
new
HashMap
();
Map
parentOrgMap
=
new
HashMap
();
...
...
src/main/java/com/baosight/xservices/xs/og/service/ServiceXSOG0801.java
View file @
1e3904d7
...
@@ -410,7 +410,7 @@ public class ServiceXSOG0801 extends ServiceBase {
...
@@ -410,7 +410,7 @@ public class ServiceXSOG0801 extends ServiceBase {
}
}
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
inInfo
.
set
(
"inqu_status-0-accountCode"
,
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
())
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
());
EiInfo
outInfo
=
super
.
query
(
inInfo
,
"XSOG01.query"
,
new
XSOG01
());
r2Block
.
setRows
(
outInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
());
r2Block
.
setRows
(
outInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
());
outInfo
.
addBlock
(
r2Block
);
outInfo
.
addBlock
(
r2Block
);
...
...
src/main/java/com/baosight/xservices/xs/og/service/ServiceXSOG0801A.java
View file @
1e3904d7
...
@@ -92,7 +92,7 @@ public class ServiceXSOG0801A extends ServiceEPBase {
...
@@ -92,7 +92,7 @@ public class ServiceXSOG0801A extends ServiceEPBase {
}
}
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
queryMap
.
put
(
"accountCode"
,
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
())
queryMap
.
put
(
"accountCode"
,
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
())
?
CommonConstant
.
Field
.
ADMIN
:
UserSessionUtils
.
getAccountCode
());
?
null
:
UserSessionUtils
.
getAccountCode
());
inInfo
=
super
.
query
(
inInfo
,
"XSOG01.query"
,
new
XSOG01
());
inInfo
=
super
.
query
(
inInfo
,
"XSOG01.query"
,
new
XSOG01
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
...
...
src/main/java/com/baosight/xservices/xs/og/service/ServiceXSOG0801B.java
View file @
1e3904d7
...
@@ -84,7 +84,7 @@ public class ServiceXSOG0801B extends ServiceEPBase {
...
@@ -84,7 +84,7 @@ public class ServiceXSOG0801B extends ServiceEPBase {
}
}
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
queryMap
.
put
(
"accountCode"
,
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
())
queryMap
.
put
(
"accountCode"
,
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
())
?
CommonConstant
.
Field
.
ADMIN
:
UserSessionUtils
.
getAccountCode
());
?
null
:
UserSessionUtils
.
getAccountCode
());
inInfo
=
super
.
query
(
inInfo
,
"XSOG01.query"
,
new
XSOG01
());
inInfo
=
super
.
query
(
inInfo
,
"XSOG01.query"
,
new
XSOG01
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
...
...
src/main/java/com/baosight/xservices/xs/og/sql/XSOG01.xml
View file @
1e3904d7
...
@@ -158,9 +158,9 @@
...
@@ -158,9 +158,9 @@
<isNotEmpty
prepend=
" AND "
property=
"orgType"
>
<isNotEmpty
prepend=
" AND "
property=
"orgType"
>
ORG_TYPE like ('%$orgType$%')
ORG_TYPE like ('%$orgType$%')
</isNotEmpty>
</isNotEmpty>
<isNotE
qual
prepend=
" AND "
property=
"accountCode"
compareValue=
"ADMIN
"
>
<isNotE
mpty
prepend=
" AND "
property=
"accountCode
"
>
ACCOUNT_CODE = #accountCode#
ACCOUNT_CODE = #accountCode#
</isNotE
qual
>
</isNotE
mpty
>
ORDER BY SORT_INDEX ASC
ORDER BY SORT_INDEX ASC
</select>
</select>
...
@@ -185,9 +185,9 @@
...
@@ -185,9 +185,9 @@
<isNotEmpty
prepend=
" AND "
property=
"orgType"
>
<isNotEmpty
prepend=
" AND "
property=
"orgType"
>
ORG_TYPE like ('%$orgType$%')
ORG_TYPE like ('%$orgType$%')
</isNotEmpty>
</isNotEmpty>
<isNotE
qual
prepend=
" AND "
property=
"accountCode"
compareValue=
"ADMIN
"
>
<isNotE
mpty
prepend=
" AND "
property=
"accountCode
"
>
ACCOUNT_CODE = #accountCode#
ACCOUNT_CODE = #accountCode#
</isNotE
qual
>
</isNotE
mpty
>
</select>
</select>
<!-- 根据id查询组织机构 -->
<!-- 根据id查询组织机构 -->
...
@@ -279,9 +279,9 @@
...
@@ -279,9 +279,9 @@
<isNotEmpty
prepend=
" AND "
property=
"node"
>
<isNotEmpty
prepend=
" AND "
property=
"node"
>
PARENT_ORG_ID = #node#
PARENT_ORG_ID = #node#
</isNotEmpty>
</isNotEmpty>
<isNotE
qual
prepend=
" AND "
property=
"accountCode"
compareValue=
"ADMIN
"
>
<isNotE
mpty
prepend=
" AND "
property=
"accountCode
"
>
ACCOUNT_CODE = #accountCode#
ACCOUNT_CODE = #accountCode#
</isNotE
qual
>
</isNotE
mpty
>
order by SORT_INDEX asc
order by SORT_INDEX asc
</select>
</select>
...
...
src/main/resources/application.properties
View file @
1e3904d7
...
@@ -21,10 +21,10 @@ projectName=hggp
...
@@ -21,10 +21,10 @@ projectName=hggp
moduleName
=
ep
moduleName
=
ep
projectEnv
=
dev
projectEnv
=
dev
platSchema
=
iplat_hggp
platSchema
=
iplat_hggp
eplatSchema
=
EPLAT
eplatSchema
=
EPLAT
_HGGP
lowcodedbSchema
=
lowcodedb
lowcodedbSchema
=
lowcodedb
_hggp
lowCodeSchema
=
LOWCODEDB
lowCodeSchema
=
LOWCODEDB
_HGGP
projectSchema
=
LOWCODEDB
projectSchema
=
LOWCODEDB
_HGGP
metaSchema
=
hggp
metaSchema
=
hggp
hggpSchema
=
hggp
hggpSchema
=
hggp
...
@@ -34,11 +34,11 @@ customerName=\u6B66\u6C49\u5B9D\u4FE1\u5927\u6570\u636E\u4E8B\u4E1A\u90E8
...
@@ -34,11 +34,11 @@ customerName=\u6B66\u6C49\u5B9D\u4FE1\u5927\u6570\u636E\u4E8B\u4E1A\u90E8
enterpriseName
=
\u
6B66
\u
6C49
\u
5B9D
\u
4FE1
\u5927\u6570\u
636E
\u
4E8B
\u
4E1A
\u
90E8
enterpriseName
=
\u
6B66
\u
6C49
\u
5B9D
\u
4FE1
\u5927\u6570\u
636E
\u
4E8B
\u
4E1A
\u
90E8
datasource.type
=
dbcp
datasource.type
=
dbcp
jdbc.driverClassName
=
com.mysql.cj.jdbc.Driver
jdbc.driverClassName
=
com.mysql.cj.jdbc.Driver
#jdbc.url=jdbc:mysql://
127.0.0.1:3306/iplat
?useSSL=false&useUnicode=true&characterEncoding=utf-8
#jdbc.url=jdbc:mysql://
rm-uf60e9vbmanleydq4.mysql.rds.aliyuncs.com:3306/iplat_hggp
?useSSL=false&useUnicode=true&characterEncoding=utf-8
jdbc.url
=
jdbc:mysql://129.211.46.84:3306/iplat_hggp?useSSL=false&useUnicode=true&characterEncoding=utf-8
jdbc.url
=
jdbc:mysql://129.211.46.84:3306/iplat_hggp?useSSL=false&useUnicode=true&characterEncoding=utf-8
#jdbc.username=hggp
#jdbc.username=hggp
jdbc.username
=
root
jdbc.username
=
root
#jdbc.password=hggp
123!@#
#jdbc.password=hggp
_Twhxz2024Aly
jdbc.password
=
Whxz@2019
jdbc.password
=
Whxz@2019
jdbc.maxActive
=
20
jdbc.maxActive
=
20
jdbc.validationQuery
=
SELECT 1 FROM ${platSchema}.TEDFA00
jdbc.validationQuery
=
SELECT 1 FROM ${platSchema}.TEDFA00
...
...
src/main/resources/quartz.properties
View file @
1e3904d7
...
@@ -26,12 +26,12 @@ org.quartz.jobStore.isClustered = true
...
@@ -26,12 +26,12 @@ org.quartz.jobStore.isClustered = true
#\uFFFD\u02F4\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u077F\uFFFD\u05BE\u00FB\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u077F\uFFFD\uFFFD\uFFFD\u0635\uFFFD\uFFFD\uFFFD\u03E2
#\uFFFD\u02F4\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u077F\uFFFD\u05BE\u00FB\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u077F\uFFFD\uFFFD\uFFFD\u0635\uFFFD\uFFFD\uFFFD\u03E2
org.quartz.jobStore.clusterCheckinInterval
=
20000
org.quartz.jobStore.clusterCheckinInterval
=
20000
org.quartz.dataSource.appDS.driver
=
com.mysql.cj.jdbc.Driver
org.quartz.dataSource.appDS.driver
=
com.mysql.cj.jdbc.Driver
#org.quartz.dataSource.appDS.URL = jdbc:mysql://rm-uf60e9vbmanleydq4.mysql.rds.aliyuncs.com:3306/iplat_hggp?useSSL=false&useUnicode=true&characterEncoding=utf-8
org.quartz.dataSource.appDS.URL
=
jdbc:mysql://129.211.46.84:3306/iplat_hggp?useSSL=false&useUnicode=true&characterEncoding=utf-8
org.quartz.dataSource.appDS.URL
=
jdbc:mysql://129.211.46.84:3306/iplat_hggp?useSSL=false&useUnicode=true&characterEncoding=utf-8
#org.quartz.dataSource.appDS.URL = jdbc:mysql://127.0.0.1:3306/iplat?useSSL=false&useUnicode=true&characterEncoding=utf-8
#org.quartz.dataSource.appDS.user = hggp
org.quartz.dataSource.appDS.user
=
root
org.quartz.dataSource.appDS.user
=
root
#org.quartz.dataSource.appDS.user = root
#org.quartz.dataSource.appDS.password = hggp_Twhxz2024Aly
org.quartz.dataSource.appDS.password
=
Whxz@2019
org.quartz.dataSource.appDS.password
=
Whxz@2019
#org.quartz.dataSource.appDS.password =123456
org.quartz.dataSource.appDS.maxConnections
=
30
org.quartz.dataSource.appDS.maxConnections
=
30
#\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u05B1\uFFFD\uFFFD\uFFFD\uFFFD\u05BE\uFFFD\uFFFD\u00BC\uFFFD\uFFFD\uFFFD
#\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u05B1\uFFFD\uFFFD\uFFFD\uFFFD\u05BE\uFFFD\uFFFD\u00BC\uFFFD\uFFFD\uFFFD
...
...
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