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
d54b3c7f
Commit
d54b3c7f
authored
Jul 06, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql hpjx to schema
parent
50ad3625
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
49 additions
and
49 deletions
+49
-49
HPBI001.xml
src/main/java/com/baosight/hpjx/hp/bi/sql/HPBI001.xml
+20
-20
HPKC006.xml
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC006.xml
+2
-2
HPMT002.xml
src/main/java/com/baosight/hpjx/hp/mt/sql/HPMT002.xml
+18
-18
HPPZ015A.xml
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ015A.xml
+1
-1
HPSC002.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC002.xml
+1
-1
HPSC005.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC005.xml
+2
-2
HPSC005B.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC005B.xml
+5
-5
No files found.
src/main/java/com/baosight/hpjx/hp/bi/sql/HPBI001.xml
View file @
d54b3c7f
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
A.PROJ_CODE, MAX(A.TOTAL_WT) AS TOTAL_WT,
A.PROJ_CODE, MAX(A.TOTAL_WT) AS TOTAL_WT,
SUM(WEIGHT) AS WEIGHT, MAX(C.NUM) AS NUM
SUM(WEIGHT) AS WEIGHT, MAX(C.NUM) AS NUM
FROM ${hpjxSchema}.t_hpsc005 A
FROM ${hpjxSchema}.t_hpsc005 A
INNER JOIN
HPJX
.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
JOIN (
JOIN (
SELECT
SELECT
A.ORG_ID AS FACTORY_CODE, C.ORG_ID AS GROUP_ID,COUNT(*) AS NUM
A.ORG_ID AS FACTORY_CODE, C.ORG_ID AS GROUP_ID,COUNT(*) AS NUM
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
A.PROJ_CODE,MAX(A.TOTAL_WT) AS TOTAL_WT,SUM(WEIGHT) AS WEIGHT,
A.PROJ_CODE,MAX(A.TOTAL_WT) AS TOTAL_WT,SUM(WEIGHT) AS WEIGHT,
MAX(C.NUM) AS NUM
MAX(C.NUM) AS NUM
FROM ${hpjxSchema}.t_hpsc005 A
FROM ${hpjxSchema}.t_hpsc005 A
INNER JOIN
HPJX
.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
JOIN (
JOIN (
SELECT
SELECT
A.ORG_ID AS FACTORY_CODE, C.ORG_ID AS GROUP_ID,COUNT(*) AS NUM
A.ORG_ID AS FACTORY_CODE, C.ORG_ID AS GROUP_ID,COUNT(*) AS NUM
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
A.PROJ_CODE,MAX(A.TOTAL_WT) AS TOTAL_WT,
A.PROJ_CODE,MAX(A.TOTAL_WT) AS TOTAL_WT,
SUM(WEIGHT) AS WEIGHT,MAX(C.NUM) AS NUM
SUM(WEIGHT) AS WEIGHT,MAX(C.NUM) AS NUM
FROM ${hpjxSchema}.t_hpsc005 A
FROM ${hpjxSchema}.t_hpsc005 A
INNER JOIN
HPJX
.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
JOIN (
JOIN (
SELECT
SELECT
A.ORG_ID AS FACTORY_CODE, C.ORG_ID AS GROUP_ID,COUNT(*) AS NUM
A.ORG_ID AS FACTORY_CODE, C.ORG_ID AS GROUP_ID,COUNT(*) AS NUM
...
@@ -141,7 +141,7 @@
...
@@ -141,7 +141,7 @@
A.PROJ_CODE,MAX(A.TOTAL_WT) AS TOTAL_WT,
A.PROJ_CODE,MAX(A.TOTAL_WT) AS TOTAL_WT,
SUM(WEIGHT) AS WEIGHT,MAX(C.NUM) AS NUM
SUM(WEIGHT) AS WEIGHT,MAX(C.NUM) AS NUM
FROM ${hpjxSchema}.t_hpsc005 A
FROM ${hpjxSchema}.t_hpsc005 A
INNER JOIN
HPJX
.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
JOIN (
JOIN (
SELECT
SELECT
A.ORG_ID AS FACTORY_CODE, C.ORG_ID AS GROUP_ID,COUNT(*) AS NUM
A.ORG_ID AS FACTORY_CODE, C.ORG_ID AS GROUP_ID,COUNT(*) AS NUM
...
@@ -182,7 +182,7 @@
...
@@ -182,7 +182,7 @@
A.PROJ_CODE, MAX(A.TOTAL_WT) AS TOTAL_WT,
A.PROJ_CODE, MAX(A.TOTAL_WT) AS TOTAL_WT,
SUM(WEIGHT) AS WEIGHT, MAX(C.NUM) AS NUM
SUM(WEIGHT) AS WEIGHT, MAX(C.NUM) AS NUM
FROM ${hpjxSchema}.t_hpsc005 A
FROM ${hpjxSchema}.t_hpsc005 A
INNER JOIN
HPJX
.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
JOIN (
JOIN (
SELECT
SELECT
A.ORG_ID AS FACTORY_CODE, C.ORG_ID AS GROUP_ID,COUNT(*) AS NUM
A.ORG_ID AS FACTORY_CODE, C.ORG_ID AS GROUP_ID,COUNT(*) AS NUM
...
@@ -224,7 +224,7 @@
...
@@ -224,7 +224,7 @@
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VAULE
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VAULE
FROM ${hpjxSchema}.t_hpkc003 A
FROM ${hpjxSchema}.t_hpkc003 A
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
HPJX
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
A.PROJ_CODE = #pro_code#
...
@@ -255,7 +255,7 @@
...
@@ -255,7 +255,7 @@
FROM (select C.FACTORY_CODE,C.ORG_NO,sum(ifnull(WEIGHT,0)) as VAULE
FROM (select C.FACTORY_CODE,C.ORG_NO,sum(ifnull(WEIGHT,0)) as VAULE
FROM ${hpjxSchema}.t_hpkc003 A
FROM ${hpjxSchema}.t_hpkc003 A
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
HPJX
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
A.PROJ_CODE = #pro_code#
...
@@ -287,7 +287,7 @@
...
@@ -287,7 +287,7 @@
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VAULE
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VAULE
FROM ${hpjxSchema}.t_hpkc003 A
FROM ${hpjxSchema}.t_hpkc003 A
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
HPJX
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
A.PROJ_CODE = #pro_code#
...
@@ -329,7 +329,7 @@
...
@@ -329,7 +329,7 @@
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VAULE
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VAULE
FROM ${hpjxSchema}.t_hpkc003 A
FROM ${hpjxSchema}.t_hpkc003 A
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
HPJX
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
A.PROJ_CODE = #pro_code#
...
@@ -366,7 +366,7 @@
...
@@ -366,7 +366,7 @@
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VALUE
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VALUE
FROM ${hpjxSchema}.t_hpkc003 A
FROM ${hpjxSchema}.t_hpkc003 A
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
HPJX
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
A.PROJ_CODE = #pro_code#
...
@@ -397,7 +397,7 @@
...
@@ -397,7 +397,7 @@
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VALUE
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VALUE
FROM ${hpjxSchema}.t_hpkc003 A
FROM ${hpjxSchema}.t_hpkc003 A
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
HPJX
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
A.PROJ_CODE = #pro_code#
...
@@ -429,7 +429,7 @@
...
@@ -429,7 +429,7 @@
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VALUE
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VALUE
FROM ${hpjxSchema}.t_hpkc003 A
FROM ${hpjxSchema}.t_hpkc003 A
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
HPJX
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
A.PROJ_CODE = #pro_code#
...
@@ -471,7 +471,7 @@
...
@@ -471,7 +471,7 @@
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VALUE
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VALUE
FROM ${hpjxSchema}.t_hpkc003 A
FROM ${hpjxSchema}.t_hpkc003 A
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
HPJX
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
A.PROJ_CODE = #pro_code#
...
@@ -508,7 +508,7 @@
...
@@ -508,7 +508,7 @@
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VALUE
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VALUE
FROM ${hpjxSchema}.t_hpkc003 A
FROM ${hpjxSchema}.t_hpkc003 A
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
HPJX
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
A.PROJ_CODE = #pro_code#
...
@@ -539,7 +539,7 @@
...
@@ -539,7 +539,7 @@
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VALUE
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VALUE
FROM ${hpjxSchema}.t_hpkc003 A
FROM ${hpjxSchema}.t_hpkc003 A
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
HPJX
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
A.PROJ_CODE = #pro_code#
...
@@ -571,7 +571,7 @@
...
@@ -571,7 +571,7 @@
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VALUE
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VALUE
FROM ${hpjxSchema}.t_hpkc003 A
FROM ${hpjxSchema}.t_hpkc003 A
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
HPJX
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
A.PROJ_CODE = #pro_code#
...
@@ -613,7 +613,7 @@
...
@@ -613,7 +613,7 @@
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VALUE
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VALUE
FROM ${hpjxSchema}.t_hpkc003 A
FROM ${hpjxSchema}.t_hpkc003 A
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
HPJX
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
A.PROJ_CODE = #pro_code#
...
@@ -661,7 +661,7 @@
...
@@ -661,7 +661,7 @@
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VAULE
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VAULE
FROM ${hpjxSchema}.t_hpkc003 A
FROM ${hpjxSchema}.t_hpkc003 A
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
HPJX
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
A.PROJ_CODE = #pro_code#
...
@@ -700,7 +700,7 @@
...
@@ -700,7 +700,7 @@
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VAULE
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VAULE
FROM ${hpjxSchema}.t_hpkc003 A
FROM ${hpjxSchema}.t_hpkc003 A
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
HPJX
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
A.PROJ_CODE = #pro_code#
...
@@ -739,7 +739,7 @@
...
@@ -739,7 +739,7 @@
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VAULE
FROM (select C.FACTORY_CODE,C.ORG_NO,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VAULE
FROM ${hpjxSchema}.t_hpkc003 A
FROM ${hpjxSchema}.t_hpkc003 A
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
JOIN ${hpjxSchema}.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
HPJX
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A C ON B.PROD_ORDER_NO = C.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
A.PROJ_CODE = #pro_code#
...
...
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC006.xml
View file @
d54b3c7f
...
@@ -125,8 +125,8 @@
...
@@ -125,8 +125,8 @@
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hpjx.hp.kc.domain.HPKC006"
>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hpjx.hp.kc.domain.HPKC006"
>
SELECT
SELECT
<include
refid=
"column"
/>
<include
refid=
"column"
/>
FROM
HPJX
.T_HPKC006 A
FROM
${hpjxSchema}
.T_HPKC006 A
LEFT JOIN
HPJX
.T_HPPZ006 B ON A.INVENT_RECORD_ID = B.ID
LEFT JOIN
${hpjxSchema}
.T_HPPZ006 B ON A.INVENT_RECORD_ID = B.ID
WHERE 1=1
WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
<include
refid=
"customCondition"
/>
<include
refid=
"customCondition"
/>
...
...
src/main/java/com/baosight/hpjx/hp/mt/sql/HPMT002.xml
View file @
d54b3c7f
...
@@ -241,8 +241,8 @@
...
@@ -241,8 +241,8 @@
SELECT DISTINCT
SELECT DISTINCT
B.FACTORY_CODE as "factoryCode",
B.FACTORY_CODE as "factoryCode",
B.FACTORY_NAME as "factoryName"
B.FACTORY_NAME as "factoryName"
FROM
HPJX
.`t_hpsc005` A LEFT JOIN (
FROM
${hpjxSchema}
.`t_hpsc005` A LEFT JOIN (
SELECT * FROM
HPJX
.`t_hpsc005a` WHERE COMPANY_CODE=#companyCode#
SELECT * FROM
${hpjxSchema}
.`t_hpsc005a` WHERE COMPANY_CODE=#companyCode#
) B ON A.PROD_ORDER_NO=B.PROD_ORDER_NO WHERE A.COMPANY_CODE=#companyCode#
) B ON A.PROD_ORDER_NO=B.PROD_ORDER_NO WHERE A.COMPANY_CODE=#companyCode#
AND A.STATUS IN('1','2') AND B.NUM!=B.COMPLETE_NUM
AND A.STATUS IN('1','2') AND B.NUM!=B.COMPLETE_NUM
</select>
</select>
...
@@ -251,8 +251,8 @@
...
@@ -251,8 +251,8 @@
SELECT DISTINCT
SELECT DISTINCT
B.ORG_NO as "orgNo",
B.ORG_NO as "orgNo",
B.ORG_NAME as "orgName"
B.ORG_NAME as "orgName"
FROM
HPJX
.`t_hpsc005` A LEFT JOIN (
FROM
${hpjxSchema}
.`t_hpsc005` A LEFT JOIN (
SELECT * FROM
HPJX
.`t_hpsc005a` WHERE COMPANY_CODE=#companyCode#
SELECT * FROM
${hpjxSchema}
.`t_hpsc005a` WHERE COMPANY_CODE=#companyCode#
) B ON A.PROD_ORDER_NO=B.PROD_ORDER_NO WHERE A.COMPANY_CODE=#companyCode#
) B ON A.PROD_ORDER_NO=B.PROD_ORDER_NO WHERE A.COMPANY_CODE=#companyCode#
AND A.STATUS IN('1','2') AND B.NUM!=B.COMPLETE_NUM
AND A.STATUS IN('1','2') AND B.NUM!=B.COMPLETE_NUM
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
...
@@ -265,8 +265,8 @@
...
@@ -265,8 +265,8 @@
SELECT DISTINCT
SELECT DISTINCT
A.PROJ_CODE as "projCode",
A.PROJ_CODE as "projCode",
A.PROJ_NAME as "projName"
A.PROJ_NAME as "projName"
FROM
HPJX
.`t_hpsc005` A LEFT JOIN (
FROM
${hpjxSchema}
.`t_hpsc005` A LEFT JOIN (
SELECT * FROM
HPJX
.`t_hpsc005a` WHERE COMPANY_CODE=#companyCode#
SELECT * FROM
${hpjxSchema}
.`t_hpsc005a` WHERE COMPANY_CODE=#companyCode#
) B ON A.PROD_ORDER_NO=B.PROD_ORDER_NO WHERE A.COMPANY_CODE=#companyCode#
) B ON A.PROD_ORDER_NO=B.PROD_ORDER_NO WHERE A.COMPANY_CODE=#companyCode#
AND A.STATUS IN('1','2') AND B.NUM!=B.COMPLETE_NUM
AND A.STATUS IN('1','2') AND B.NUM!=B.COMPLETE_NUM
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
...
@@ -283,8 +283,8 @@
...
@@ -283,8 +283,8 @@
A.PRDT_CODE as "prdtCode",
A.PRDT_CODE as "prdtCode",
A.PRDT_NAME as "prdtName",
A.PRDT_NAME as "prdtName",
A.PRDT_SPEC as "prdtSpec"
A.PRDT_SPEC as "prdtSpec"
FROM
HPJX
.`t_hpsc005` A LEFT JOIN (
FROM
${hpjxSchema}
.`t_hpsc005` A LEFT JOIN (
SELECT * FROM
HPJX
.`t_hpsc005a` WHERE COMPANY_CODE=#companyCode#
SELECT * FROM
${hpjxSchema}
.`t_hpsc005a` WHERE COMPANY_CODE=#companyCode#
) B ON A.PROD_ORDER_NO=B.PROD_ORDER_NO WHERE A.COMPANY_CODE=#companyCode#
) B ON A.PROD_ORDER_NO=B.PROD_ORDER_NO WHERE A.COMPANY_CODE=#companyCode#
AND A.STATUS IN('1','2') AND B.NUM!=B.COMPLETE_NUM
AND A.STATUS IN('1','2') AND B.NUM!=B.COMPLETE_NUM
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
...
@@ -304,8 +304,8 @@
...
@@ -304,8 +304,8 @@
A.PART_CODE as "partCode",
A.PART_CODE as "partCode",
A.PART_NAME as "partName",
A.PART_NAME as "partName",
A.PART_SPEC as "partSpec"
A.PART_SPEC as "partSpec"
FROM
HPJX
.`t_hpsc005` A LEFT JOIN (
FROM
${hpjxSchema}
.`t_hpsc005` A LEFT JOIN (
SELECT * FROM
HPJX
.`t_hpsc005a` WHERE COMPANY_CODE=#companyCode#
SELECT * FROM
${hpjxSchema}
.`t_hpsc005a` WHERE COMPANY_CODE=#companyCode#
) B ON A.PROD_ORDER_NO=B.PROD_ORDER_NO WHERE A.COMPANY_CODE=#companyCode#
) B ON A.PROD_ORDER_NO=B.PROD_ORDER_NO WHERE A.COMPANY_CODE=#companyCode#
AND A.STATUS IN('1','2') AND B.NUM!=B.COMPLETE_NUM
AND A.STATUS IN('1','2') AND B.NUM!=B.COMPLETE_NUM
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
...
@@ -327,8 +327,8 @@
...
@@ -327,8 +327,8 @@
SELECT DISTINCT
SELECT DISTINCT
B.PROD_TASK_NO as "prodTaskNo",
B.PROD_TASK_NO as "prodTaskNo",
B.PROD_ORDER_NO as "prodorderNo"
B.PROD_ORDER_NO as "prodorderNo"
FROM
HPJX
.`t_hpsc005` A LEFT JOIN (
FROM
${hpjxSchema}
.`t_hpsc005` A LEFT JOIN (
SELECT * FROM
HPJX
.`t_hpsc005a` WHERE COMPANY_CODE=#companyCode#
SELECT * FROM
${hpjxSchema}
.`t_hpsc005a` WHERE COMPANY_CODE=#companyCode#
) B ON A.PROD_ORDER_NO=B.PROD_ORDER_NO WHERE A.COMPANY_CODE=#companyCode#
) B ON A.PROD_ORDER_NO=B.PROD_ORDER_NO WHERE A.COMPANY_CODE=#companyCode#
AND A.STATUS IN('1','2') AND B.NUM!=B.COMPLETE_NUM
AND A.STATUS IN('1','2') AND B.NUM!=B.COMPLETE_NUM
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
...
@@ -412,24 +412,24 @@
...
@@ -412,24 +412,24 @@
<select
id=
"kcEnterPmList"
resultClass=
"java.util.HashMap"
>
<select
id=
"kcEnterPmList"
resultClass=
"java.util.HashMap"
>
select distinct A.PROJ_CODE as "projCode",A.PROJ_NAME as "projName"
select distinct A.PROJ_CODE as "projCode",A.PROJ_NAME as "projName"
FROM
HPJX
.T_HPSC005 A
FROM
${hpjxSchema}
.T_HPSC005 A
INNER JOIN
HPJX
.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
where A.COMPANY_CODE = #companyCode# AND B.NUM - B.COMPLETE_NUM > 0
where A.COMPANY_CODE = #companyCode# AND B.NUM - B.COMPLETE_NUM > 0
AND B.ORG_NO != 'R24050801'
AND B.ORG_NO != 'R24050801'
</select>
</select>
<select
id=
"kcEnterPrdtList"
resultClass=
"java.util.HashMap"
>
<select
id=
"kcEnterPrdtList"
resultClass=
"java.util.HashMap"
>
select distinct A.PRDT_CODE as "prdtCode",A.PRDT_NAME as "prdtName"
select distinct A.PRDT_CODE as "prdtCode",A.PRDT_NAME as "prdtName"
FROM
HPJX
.T_HPSC005 A
FROM
${hpjxSchema}
.T_HPSC005 A
INNER JOIN
HPJX
.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
where A.PROJ_CODE = #projCode# and A.COMPANY_CODE = #companyCode#
where A.PROJ_CODE = #projCode# and A.COMPANY_CODE = #companyCode#
AND B.NUM - B.COMPLETE_NUM > 0 AND B.ORG_NO != 'R24050801'
AND B.NUM - B.COMPLETE_NUM > 0 AND B.ORG_NO != 'R24050801'
</select>
</select>
<select
id=
"kcEnterPartList"
resultClass=
"java.util.HashMap"
>
<select
id=
"kcEnterPartList"
resultClass=
"java.util.HashMap"
>
select distinct A.PART_CODE as "partCode",A.PART_NAME as "partName"
select distinct A.PART_CODE as "partCode",A.PART_NAME as "partName"
FROM
HPJX
.T_HPSC005 A
FROM
${hpjxSchema}
.T_HPSC005 A
INNER JOIN
HPJX
.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
where A.PROJ_CODE = #projCode# and A.COMPANY_CODE = #companyCode#
where A.PROJ_CODE = #projCode# and A.COMPANY_CODE = #companyCode#
and A.PRDT_CODE = #prdtCode# AND B.NUM - B.COMPLETE_NUM > 0 AND B.ORG_NO != 'R24050801'
and A.PRDT_CODE = #prdtCode# AND B.NUM - B.COMPLETE_NUM > 0 AND B.ORG_NO != 'R24050801'
</select>
</select>
...
...
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ015A.xml
View file @
d54b3c7f
...
@@ -405,7 +405,7 @@
...
@@ -405,7 +405,7 @@
<select
id=
"queryEntityByParentPrtdCode"
resultClass=
"com.baosight.hpjx.hp.pz.domain.HPPZ015A"
>
<select
id=
"queryEntityByParentPrtdCode"
resultClass=
"com.baosight.hpjx.hp.pz.domain.HPPZ015A"
>
SELECT
SELECT
<include
refid=
"column"
/>
<include
refid=
"column"
/>
FROM
HPJX
.t_hppz015a
FROM
${hpjxSchema}
.t_hppz015a
WHERE 1 = 1
WHERE 1 = 1
<isNotEmpty
prepend=
" AND "
property=
"id"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
ID = #id#
...
...
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC002.xml
View file @
d54b3c7f
...
@@ -463,7 +463,7 @@
...
@@ -463,7 +463,7 @@
<select
id=
"queryEntityByParentPrtdCode"
resultClass=
"com.baosight.hpjx.hp.sc.domain.HPSC002"
>
<select
id=
"queryEntityByParentPrtdCode"
resultClass=
"com.baosight.hpjx.hp.sc.domain.HPSC002"
>
SELECT
SELECT
<include
refid=
"column"
/>
<include
refid=
"column"
/>
FROM
HPJX
.T_HPSC002
FROM
${hpjxSchema}
.T_HPSC002
WHERE 1 = 1
WHERE 1 = 1
<isNotEmpty
prepend=
" AND "
property=
"id"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
ID = #id#
...
...
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC005.xml
View file @
d54b3c7f
...
@@ -395,8 +395,8 @@
...
@@ -395,8 +395,8 @@
SELECT
SELECT
(CASE WHEN A.DOCUMENT_TYPE = 1 THEN B.ORG_NO ELSE A.ORG_NO END) AS "orgNo",
(CASE WHEN A.DOCUMENT_TYPE = 1 THEN B.ORG_NO ELSE A.ORG_NO END) AS "orgNo",
(CASE WHEN A.DOCUMENT_TYPE = 1 THEN B.ORG_NAME ELSE A.ORG_NAME END) AS "orgName"
(CASE WHEN A.DOCUMENT_TYPE = 1 THEN B.ORG_NAME ELSE A.ORG_NAME END) AS "orgName"
FROM
HPJX
.T_HPSC005 A
FROM
${hpjxSchema}
.T_HPSC005 A
LEFT JOIN
HPJX
.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
LEFT JOIN
${hpjxSchema}
.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
A.COMPANY_CODE = #companyCode#
A.COMPANY_CODE = #companyCode#
</isNotEmpty>
</isNotEmpty>
...
...
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC005B.xml
View file @
d54b3c7f
...
@@ -142,11 +142,11 @@
...
@@ -142,11 +142,11 @@
<select
id=
"query"
resultClass=
"com.baosight.hpjx.hp.sc.domain.HPSC005B"
>
<select
id=
"query"
resultClass=
"com.baosight.hpjx.hp.sc.domain.HPSC005B"
>
SELECT
SELECT
<include
refid=
"column"
/>
<include
refid=
"column"
/>
FROM
HPJX
.T_HPSC005 A
FROM
${hpjxSchema}
.T_HPSC005 A
INNER JOIN
HPJX
.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
LEFT JOIN ( SELECT
LEFT JOIN ( SELECT
DISTINCT PROD_TASK_NO
DISTINCT PROD_TASK_NO
FROM
HPJX
.T_HPZL001 WHERE 1=1 AND DELETE_FLAG = 0 AND STATUS = 0) C ON B.PROD_TASK_NO = C.PROD_TASK_NO
FROM
${hpjxSchema}
.T_HPZL001 WHERE 1=1 AND DELETE_FLAG = 0 AND STATUS = 0) C ON B.PROD_TASK_NO = C.PROD_TASK_NO
WHERE 1=1
WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
<include
refid=
"customCondition"
/>
<include
refid=
"customCondition"
/>
...
@@ -156,8 +156,8 @@
...
@@ -156,8 +156,8 @@
<!-- 选择生产任务 -->
<!-- 选择生产任务 -->
<select
id=
"count"
resultClass=
"int"
>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*)
SELECT COUNT(*)
FROM
HPJX
.T_HPSC005 A
FROM
${hpjxSchema}
.T_HPSC005 A
INNER JOIN
HPJX
.T_HPSC005A B ON A.PRODUCTION_ORDER_NO = B.PROD_ORDER_NO
INNER JOIN
${hpjxSchema}
.T_HPSC005A B ON A.PRODUCTION_ORDER_NO = B.PROD_ORDER_NO
WHERE 1=1
WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
<include
refid=
"customCondition"
/>
<include
refid=
"customCondition"
/>
...
...
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