Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
huang.tao
/
jmai-platform
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
92f5b04c
authored
Jan 23, 2026
by
zhu.zewen
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
可销毁药品列表过滤剩余数量为0的记录
parent
e2dfda9c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
jmai-physic/src/main/resources/mapper/PhysicStorageAmpouleMapper.xml
jmai-physic/src/main/resources/mapper/PhysicStorageAmpouleMapper.xml
View file @
92f5b04c
...
@@ -82,6 +82,8 @@
...
@@ -82,6 +82,8 @@
AND s.physic_spec = d.physic_spec
AND s.physic_spec = d.physic_spec
AND s.batch_no = d.batch_no
AND s.batch_no = d.batch_no
AND s.factory_name = d.factory_name
AND s.factory_name = d.factory_name
-- 过滤剩余数量为0的记录
WHERE (IFNULL(s.total_physic_num, 0) - IFNULL(d.total_destroy_num, 0)) > 0
ORDER BY s.physic_name ASC, s.physic_spec ASC, s.factory_name ASC, s.batch_no ASC
ORDER BY s.physic_name ASC, s.physic_spec ASC, s.factory_name ASC, s.batch_no ASC
</select>
</select>
</mapper>
</mapper>
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