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
09ea606e
authored
Jan 23, 2026
by
zhu.zewen
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
完善可销毁药品信息
parent
2fae4ba7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
jmai-physic/src/main/java/com/jmai/physic/vo/PhysicDestroyNumVO.java
jmai-physic/src/main/resources/mapper/PhysicStorageAmpouleMapper.xml
jmai-physic/src/main/java/com/jmai/physic/vo/PhysicDestroyNumVO.java
View file @
09ea606e
...
@@ -6,17 +6,24 @@ import lombok.Data;
...
@@ -6,17 +6,24 @@ import lombok.Data;
@Data
@Data
public
class
PhysicDestroyNumVO
{
public
class
PhysicDestroyNumVO
{
@ApiModelProperty
(
value
=
"药品名称"
)
@ApiModelProperty
(
value
=
"药品名称"
)
private
String
physicName
;
private
String
physicName
;
@ApiModelProperty
(
value
=
"规格"
)
@ApiModelProperty
(
value
=
"
药品
规格"
)
private
String
physicSpec
;
private
String
physicSpec
;
@ApiModelProperty
(
value
=
"批号"
)
@ApiModelProperty
(
value
=
"药品类型"
)
private
String
batchNo
;
private
String
physicType
;
@ApiModelProperty
(
value
=
"生产厂家"
)
private
String
factoryName
;
private
String
factoryName
;
@ApiModelProperty
(
value
=
"单位"
)
private
String
unit
;
private
String
unit
;
private
String
remark
;
@ApiModelProperty
(
value
=
"过期日期"
)
private
String
expireDate
;
@ApiModelProperty
(
value
=
"批号"
)
private
String
batchNo
;
@ApiModelProperty
(
value
=
"剩余数量/可销毁数量"
)
@ApiModelProperty
(
value
=
"剩余数量/可销毁数量"
)
private
Integer
destroyNum
;
private
Integer
destroyNum
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
}
}
jmai-physic/src/main/resources/mapper/PhysicStorageAmpouleMapper.xml
View file @
09ea606e
...
@@ -46,9 +46,11 @@
...
@@ -46,9 +46,11 @@
SELECT
SELECT
s.physic_name,
s.physic_name,
s.physic_spec,
s.physic_spec,
s.physic_type,
s.batch_no,
s.batch_no,
s.factory_name,
s.factory_name,
s.unit,
s.unit,
s.expire_date,
(IFNULL(s.total_physic_num, 0) - IFNULL(d.total_destroy_num, 0)) AS destroyNum
(IFNULL(s.total_physic_num, 0) - IFNULL(d.total_destroy_num, 0)) AS destroyNum
FROM (
FROM (
-- 按药品名称、规格、批号、厂家分组统计physic_storage_ampoule表中的physic_num数量
-- 按药品名称、规格、批号、厂家分组统计physic_storage_ampoule表中的physic_num数量
...
...
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