Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
da8f1f80
Commit
da8f1f80
authored
Jul 27, 2022
by
xixinzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改建筑装备统计不包含批量管理的装备
parent
c1ad9392
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
Building.xml
...-boot-system-equip/src/main/resources/mapper/Building.xml
+9
-6
No files found.
amos-boot-system-equip/src/main/resources/mapper/Building.xml
View file @
da8f1f80
...
...
@@ -353,7 +353,9 @@
</select>
<select
id=
"getEquipmentCount"
resultType=
"Long"
>
select
if(sum(sto.amount) is null,0,sum(sto.amount)) as count from
-- IF ( sum( sto.amount ) IS NULL, 0, sum( sto.amount ) ) AS count
count(1)
from
wl_stock_detail as sto
left join wl_warehouse_structure as war on sto.warehouse_structure_id = war.id
where war.source_id in(
...
...
@@ -523,11 +525,12 @@
</select>
<select
id=
"getEquipCount"
resultType=
"java.lang.Long"
>
SELECT
IF (
sum(sto.amount) IS NULL,
0,
sum(sto.amount)
) AS count
-- IF (
-- sum(sto.amount) IS NULL,
-- 0,
-- sum(sto.amount)
-- ) AS count
count( 1 )
FROM
wl_stock_detail AS sto
LEFT JOIN wl_warehouse_structure AS war ON sto.warehouse_structure_id = war.id
...
...
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