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
b9a6371d
Commit
b9a6371d
authored
Feb 26, 2024
by
wancheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产日报xml更新
parent
83c1b227
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
HPBI001.xml
src/main/java/com/baosight/hpjx/hp/bi/sql/HPBI001.xml
+20
-20
No files found.
src/main/java/com/baosight/hpjx/hp/bi/sql/HPBI001.xml
View file @
b9a6371d
...
...
@@ -39,7 +39,7 @@
WHERE A.DELETE_FLAG = 0
GROUP BY A.FACTORY_CODE
) B ON A.FACTORY_CODE=B.FACTORY_CODE
JOIN hpjx.t_hpkc003 C ON A.PROD
UCTION
_ORDER_NO = C.PROD_ORDER_NO
JOIN hpjx.t_hpkc003 C ON A.PROD_ORDER_NO = C.PROD_ORDER_NO
WHERE ifnull(C.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"date"
>
C.DOCUMENT_DATE = replace(#date#,'-','')
...
...
@@ -75,7 +75,7 @@
WHERE A.DELETE_FLAG = 0
GROUP BY A.FACTORY_CODE
) B ON A.FACTORY_CODE=B.FACTORY_CODE
JOIN hpjx.t_hpkc003 C ON A.PROD
UCTION
_ORDER_NO = C.PROD_ORDER_NO
JOIN hpjx.t_hpkc003 C ON A.PROD_ORDER_NO = C.PROD_ORDER_NO
WHERE ifnull(C.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"date"
>
C.DOCUMENT_DATE = replace(#date#,'-','')
...
...
@@ -116,7 +116,7 @@
WHERE A.DELETE_FLAG = 0
GROUP BY A.FACTORY_CODE
) B ON A.FACTORY_CODE=B.FACTORY_CODE
JOIN hpjx.t_hpkc003 C ON A.PROD
UCTION
_ORDER_NO = C.PROD_ORDER_NO
JOIN hpjx.t_hpkc003 C ON A.PROD_ORDER_NO = C.PROD_ORDER_NO
WHERE ifnull(C.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"date"
>
C.DOCUMENT_DATE = replace(#date#,'-','')
...
...
@@ -157,7 +157,7 @@
WHERE A.DELETE_FLAG = 0
GROUP BY A.FACTORY_CODE
) B ON A.FACTORY_CODE=B.FACTORY_CODE
JOIN hpjx.t_hpkc003 C ON A.PROD
UCTION
_ORDER_NO = C.PROD_ORDER_NO
JOIN hpjx.t_hpkc003 C ON A.PROD_ORDER_NO = C.PROD_ORDER_NO
WHERE ifnull(C.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"date"
>
C.DOCUMENT_DATE = replace(#date#,'-','')
...
...
@@ -199,7 +199,7 @@
WHERE A.DELETE_FLAG = 0
GROUP BY A.FACTORY_CODE
) B ON A.FACTORY_CODE=B.FACTORY_CODE
JOIN hpjx.t_hpkc003 C ON A.PROD
UCTION
_ORDER_NO = C.PROD_ORDER_NO
JOIN hpjx.t_hpkc003 C ON A.PROD_ORDER_NO = C.PROD_ORDER_NO
WHERE ifnull(C.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"date"
>
C.DOCUMENT_DATE = replace(#date#,'-','')
...
...
@@ -227,7 +227,7 @@
NUM as VALUE
FROM (select FACTORY_CODE,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VAULE
FROM hpjx.t_hpkc003 A
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD
UCTION
_ORDER_NO
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
...
...
@@ -257,7 +257,7 @@
NUM as VALUE
FROM (select FACTORY_CODE,sum(ifnull(WEIGHT,0)) as VAULE
FROM hpjx.t_hpkc003 A
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD
UCTION
_ORDER_NO
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
...
...
@@ -288,7 +288,7 @@
NUM as VALUE
FROM (select FACTORY_CODE,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VAULE
FROM hpjx.t_hpkc003 A
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD
UCTION
_ORDER_NO
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
...
...
@@ -329,7 +329,7 @@
MAX(case when substring(DOCUMENT_DATE,5,2) = '12' THEN NUM ELSE 0 END) as decValue
FROM (select FACTORY_CODE,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VAULE
FROM hpjx.t_hpkc003 A
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD
UCTION
_ORDER_NO
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
...
...
@@ -365,7 +365,7 @@
VALUE
FROM (select FACTORY_CODE,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VALUE
FROM hpjx.t_hpkc003 A
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD
UCTION
_ORDER_NO
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
...
...
@@ -395,7 +395,7 @@
VALUE
FROM (select FACTORY_CODE,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VALUE
FROM hpjx.t_hpkc003 A
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD
UCTION
_ORDER_NO
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
...
...
@@ -426,7 +426,7 @@
VALUE
FROM (select FACTORY_CODE,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VALUE
FROM hpjx.t_hpkc003 A
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD
UCTION
_ORDER_NO
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
...
...
@@ -467,7 +467,7 @@
MAX(case when substring(DOCUMENT_DATE,5,2) = '12' THEN VALUE ELSE 0 END) as decValue
FROM (select FACTORY_CODE,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VALUE
FROM hpjx.t_hpkc003 A
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD
UCTION
_ORDER_NO
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
...
...
@@ -503,7 +503,7 @@
VALUE/NUM AS VALUE
FROM (select FACTORY_CODE,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VALUE
FROM hpjx.t_hpkc003 A
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD
UCTION
_ORDER_NO
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
...
...
@@ -533,7 +533,7 @@
VALUE/NUM AS VALUE
FROM (select FACTORY_CODE,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VALUE
FROM hpjx.t_hpkc003 A
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD
UCTION
_ORDER_NO
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
...
...
@@ -564,7 +564,7 @@
VALUE/NUM AS VALUE
FROM (select FACTORY_CODE,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VALUE
FROM hpjx.t_hpkc003 A
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD
UCTION
_ORDER_NO
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
...
...
@@ -605,7 +605,7 @@
MAX(case when substring(DOCUMENT_DATE,5,2) = '12' THEN VALUE/NUM ELSE 0 END) as decValue
FROM (select FACTORY_CODE,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VALUE
FROM hpjx.t_hpkc003 A
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD
UCTION
_ORDER_NO
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
...
...
@@ -652,7 +652,7 @@
VAULE as VALUE
FROM (select FACTORY_CODE,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VAULE
FROM hpjx.t_hpkc003 A
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD
UCTION
_ORDER_NO
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
...
...
@@ -690,7 +690,7 @@
NUM as VALUE
FROM (select FACTORY_CODE,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VAULE
FROM hpjx.t_hpkc003 A
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD
UCTION
_ORDER_NO
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
...
...
@@ -728,7 +728,7 @@
VAULE/NUM as VALUE
FROM (select FACTORY_CODE,DOCUMENT_DATE,sum(ifnull(WEIGHT,0)) as VAULE
FROM hpjx.t_hpkc003 A
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD
UCTION
_ORDER_NO
JOIN hpjx.t_hpsc005 B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
where ifnull(A.DOCUMENT_DATE,'')
<![CDATA[<>]]>
''
<isNotEmpty
prepend=
" AND "
property=
"pro_code"
>
A.PROJ_CODE = #pro_code#
...
...
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