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
2c0e7d04
Commit
2c0e7d04
authored
Jul 19, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-07-19 qpp项目产量bug
parent
ce7c9135
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
8 deletions
+22
-8
HGSC007.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC007.xml
+22
-8
No files found.
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC007.xml
View file @
2c0e7d04
...
...
@@ -650,6 +650,7 @@
select
h.proj_code,
h.proj_name,
h.product_code,
h.finish_date,
h.total_weight,
0 as finish_weight,
...
...
@@ -674,6 +675,7 @@
select
h.proj_code,
h.proj_name,
h.product_code,
h.finish_date,
0 as totalWeight,
h.finish_weight,
...
...
@@ -695,14 +697,26 @@
left(h1.updated_time,8) = #updatedTime#
</isNotEmpty>
)a
inner join ${hggpSchema}.HGSC007 h2 on a.proj_code = h2.proj_code
where 1=1
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
h2.factory_code = #factoryCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"factoryName"
>
h2.factory_name = #factoryName#
</isNotEmpty>
inner join (
select proj_code, product_code from ${hggpSchema}.HGSC007
where (product_code,process_order) in (select INVENT_CODE,max(process_order) from hggp.hgpz005a group by INVENT_CODE)
<include
refid=
"HGXSDataAuth.authCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
account_code = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
company_code = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyName"
>
company_name = #companyName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
factory_code = #factoryCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"factoryName"
>
factory_name = #factoryName#
</isNotEmpty>
) h2 on a.proj_code = h2.proj_code and a.product_code = h2.product_code
group by a.proj_code, a.proj_name, a.finish_date, a.updated_time
order by a.updated_time desc
</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