Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-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
hp-smart
Commits
45751a7a
Commit
45751a7a
authored
Mar 14, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.字段取值错误修复
parent
9b3bfac7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
10 deletions
+26
-10
HPSC002A.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC002A.xml
+2
-2
HPSC002B.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC002B.xml
+2
-2
HPZL001A.xml
src/main/java/com/baosight/hpjx/hp/zl/sql/HPZL001A.xml
+22
-6
No files found.
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC002A.xml
View file @
45751a7a
...
...
@@ -88,7 +88,7 @@
<select
id=
"queryDev"
resultClass=
"com.baosight.hpjx.hp.sc.domain.HPSC002A"
>
SELECT
<include
refid=
"column"
/>
<include
refid=
"column
Dev
"
/>
FROM ${hpjxSchema}.T_HPSC002A A, ${platSchema}.TEUDM02 B
WHERE 1=1
<include
refid=
"conditionDev"
/>
...
...
@@ -105,7 +105,7 @@
<select
id=
"queryRun"
resultClass=
"com.baosight.hpjx.hp.sc.domain.HPSC002A"
>
SELECT
<include
refid=
"column"
/>
<include
refid=
"column
Run
"
/>
FROM ${hpjxSchema}.T_HPSC002A A, ${platSchema}.TEUDM05 B
WHERE 1=1
<include
refid=
"conditionRun"
/>
...
...
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC002B.xml
View file @
45751a7a
...
...
@@ -106,7 +106,7 @@
<select
id=
"queryDev"
resultClass=
"com.baosight.hpjx.hp.sc.domain.HPSC002B"
>
SELECT
<include
refid=
"column"
/>
<include
refid=
"column
Dev
"
/>
FROM ${hpjxSchema}.T_HPSC002A A, ${platSchema}.TEUDM02 B
WHERE 1=1
<include
refid=
"conditionDev"
/>
...
...
@@ -123,7 +123,7 @@
<select
id=
"queryRun"
resultClass=
"com.baosight.hpjx.hp.sc.domain.HPSC002B"
>
SELECT
<include
refid=
"column"
/>
<include
refid=
"column
Run
"
/>
FROM ${hpjxSchema}.T_HPSC002A A, ${platSchema}.TEUDM05 B
WHERE 1=1
<include
refid=
"conditionRun"
/>
...
...
src/main/java/com/baosight/hpjx/hp/zl/sql/HPZL001A.xml
View file @
45751a7a
...
...
@@ -66,6 +66,24 @@
</isNotEmpty>
</sql>
<!-- 开发环境 -->
<sql
id=
"conditionDev"
>
AND A.DOC_ID = B.DOC_ID
<include
refid=
"condition"
/>
<isNotEmpty
prepend=
" AND "
property=
"docName"
>
B.DOC_NAME LIKE CONCAT('%', #docName#, '%')
</isNotEmpty>
</sql>
<!-- 正式环境 -->
<sql
id=
"conditionRun"
>
AND A.DOC_ID = B.RES_ID
<include
refid=
"condition"
/>
<isNotEmpty
prepend=
" AND "
property=
"docName"
>
B.RES_CNAME LIKE CONCAT('%', #docName#, '%')
</isNotEmpty>
</sql>
<sql
id=
"customCondition"
>
<isNotEmpty
prepend=
" AND "
property=
"createdDateFrom"
>
A.CREATED_TIME
>
= CONCAT(REPLACE(#createdDateFrom#, '-', ''), '000000')
...
...
@@ -91,8 +109,7 @@
<include
refid=
"columnDev"
/>
FROM ${hpjxSchema}.T_HPZL001A A, ${platSchema}.TEUDM02 B
WHERE 1=1
AND A.DOC_ID = B.DOC_ID
<include
refid=
"condition"
/>
<include
refid=
"conditionDev"
/>
<include
refid=
"customCondition"
/>
<include
refid=
"order"
/>
</select>
...
...
@@ -100,7 +117,7 @@
<select
id=
"countDev"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hpjxSchema}.T_HPZL001A A, ${platSchema}.TEUDM02 B
WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"condition
Dev
"
/>
<include
refid=
"customCondition"
/>
</select>
...
...
@@ -109,8 +126,7 @@
<include
refid=
"columnRun"
/>
FROM ${hpjxSchema}.T_HPZL001A A, ${platSchema}.TEUDM05 B
WHERE 1=1
AND A.DOC_ID = B.RES_ID
<include
refid=
"condition"
/>
<include
refid=
"conditionRun"
/>
<include
refid=
"customCondition"
/>
<include
refid=
"order"
/>
</select>
...
...
@@ -118,7 +134,7 @@
<select
id=
"countRun"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hpjxSchema}.T_HPZL001A A, ${platSchema}.TEUDM05 B
WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"condition
Run
"
/>
<include
refid=
"customCondition"
/>
</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