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
eaa15396
Commit
eaa15396
authored
Jul 09, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.pseer.com:8800/platform/hg-smart
into dev-ly
parents
d54c8a35
f57ce1ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
HGSJ001.xml
src/main/java/com/baosight/hggp/hg/sj/sql/HGSJ001.xml
+1
-1
HGXSOrg.xml
src/main/java/com/baosight/hggp/hg/xs/sql/HGXSOrg.xml
+6
-6
No files found.
src/main/java/com/baosight/hggp/hg/sj/sql/HGSJ001.xml
View file @
eaa15396
...
@@ -321,7 +321,7 @@
...
@@ -321,7 +321,7 @@
<isNotEmpty
property=
"userId"
>
<isNotEmpty
property=
"userId"
>
left join ${platSchema}.txsog02 b on a.ORG_ID = b.ORG_ID
left join ${platSchema}.txsog02 b on a.ORG_ID = b.ORG_ID
</isNotEmpty>
</isNotEmpty>
where
1=1
where
a.IS_DELETED = 0
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
a.ACCOUNT_CODE = #accountCode#
a.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
</isNotEmpty>
...
...
src/main/java/com/baosight/hggp/hg/xs/sql/HGXSOrg.xml
View file @
eaa15396
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
) T2,
) T2,
${platSchema}.TXSOG01 T3
${platSchema}.TXSOG01 T3
LEFT JOIN ${platSchema}.TXSOG01 T5 ON T3.FACTORY_CODE = T5.ORG_ID
LEFT JOIN ${platSchema}.TXSOG01 T5 ON T3.FACTORY_CODE = T5.ORG_ID
WHERE
1=1
WHERE
T3.IS_DELETED = 0
AND FIND_IN_SET(T3.ORG_ID, T2.CODES)
AND FIND_IN_SET(T3.ORG_ID, T2.CODES)
AND T3.ORG_ID != 'root'
AND T3.ORG_ID != 'root'
<isNotEmpty
prepend=
" AND "
property=
"orgType"
>
<isNotEmpty
prepend=
" AND "
property=
"orgType"
>
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
where @CODES is not null
where @CODES is not null
) T2,
) T2,
${platSchema}.TXSOG01 T3
${platSchema}.TXSOG01 T3
WHERE
1=1
WHERE
T3.IS_DELETED = 0
AND FIND_IN_SET(T3.ORG_ID, T2.CODES)
AND FIND_IN_SET(T3.ORG_ID, T2.CODES)
<isNotEmpty
prepend=
" AND "
property=
"orgType"
>
<isNotEmpty
prepend=
" AND "
property=
"orgType"
>
ORG_TYPE = #orgType#
ORG_TYPE = #orgType#
...
@@ -143,7 +143,7 @@
...
@@ -143,7 +143,7 @@
ORG_ID as "orgId",
ORG_ID as "orgId",
ORG_CNAME as "orgCname"
ORG_CNAME as "orgCname"
FROM ${platSchema}.TXSOG01
FROM ${platSchema}.TXSOG01
WHERE
1=1
WHERE
T3.IS_DELETED = 0
AND ORG_TYPE != 'org'
AND ORG_TYPE != 'org'
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
<include
refid=
"customCondition"
/>
<include
refid=
"customCondition"
/>
...
@@ -191,7 +191,7 @@
...
@@ -191,7 +191,7 @@
) T2,
) T2,
${platSchema}.TXSOG01 T3
${platSchema}.TXSOG01 T3
LEFT JOIN ${platSchema}.TXSOG01 T5 ON T3.FACTORY_CODE = T5.ORG_ID
LEFT JOIN ${platSchema}.TXSOG01 T5 ON T3.FACTORY_CODE = T5.ORG_ID
WHERE
1=1
WHERE
T3.IS_DELETED = 0
AND FIND_IN_SET(T3.ORG_ID, T2.CODES)
AND FIND_IN_SET(T3.ORG_ID, T2.CODES)
AND T3.ORG_TYPE IN ('prodGroup', 'cutGroup')
AND T3.ORG_TYPE IN ('prodGroup', 'cutGroup')
<isNotEmpty
prepend=
" AND "
property=
"orgType"
>
<isNotEmpty
prepend=
" AND "
property=
"orgType"
>
...
@@ -205,7 +205,7 @@
...
@@ -205,7 +205,7 @@
from ${platSchema}.txsog02 a
from ${platSchema}.txsog02 a
join ${platSchema}.xs_user b on a.USER_ID=b.USER_ID
join ${platSchema}.xs_user b on a.USER_ID=b.USER_ID
join ${platSchema}.txsog01 c on c.ORG_ID = a.ORG_ID and c.IS_DELETED = 0
join ${platSchema}.txsog01 c on c.ORG_ID = a.ORG_ID and c.IS_DELETED = 0
where
1=1
and c.ORG_TYPE = 'prodGroup'
where
c.IS_DELETED = 0
and c.ORG_TYPE = 'prodGroup'
<isNotEmpty
prepend=
" AND "
property=
"userId"
>
<isNotEmpty
prepend=
" AND "
property=
"userId"
>
b.USER_ID = #userId#
b.USER_ID = #userId#
</isNotEmpty>
</isNotEmpty>
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
A.COMPANY_NAME AS "companyName",
A.COMPANY_NAME AS "companyName",
A.PARENT_ORG_ID as "parentOrgId"
A.PARENT_ORG_ID as "parentOrgId"
FROM ${platSchema}.TXSOG01 A, ${platSchema}.TXSOG02 B, ${platSchema}.XS_USER C
FROM ${platSchema}.TXSOG01 A, ${platSchema}.TXSOG02 B, ${platSchema}.XS_USER C
WHERE
1=1
WHERE
A.IS_DELETED = 0
AND A.ORG_ID = B.ORG_ID
AND A.ORG_ID = B.ORG_ID
AND B.USER_ID = C.USER_ID
AND B.USER_ID = C.USER_ID
AND C.LOGIN_NAME = #loginName#
AND C.LOGIN_NAME = #loginName#
...
...
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