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
8ee8787e
authored
Dec 05, 2025
by
huangtao
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
销毁审批
parent
90b819ae
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
9 deletions
jmai-physic/src/main/java/com/jmai/physic/controller/PhysicDestroyCheckController.java
jmai-physic/src/main/java/com/jmai/physic/mapper/PhysicStorageAmpouleMapper.java
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicDestroyCheckServiceImpl.java
jmai-physic/src/main/resources/mapper/PhysicStorageAmpouleMapper.xml
jmai-physic/src/main/java/com/jmai/physic/controller/PhysicDestroyCheckController.java
View file @
8ee8787e
...
...
@@ -13,7 +13,9 @@ import com.jmai.physic.vo.PhysicDestroyCheckVO;
import
com.jmai.physic.vo.PhysicDestroyNumVO
;
import
com.jmai.physic.vo.PhysicDestroyVO
;
import
com.jmai.sys.aop.Auth
;
import
com.jmai.sys.ctx.SpringContextUtils
;
import
com.jmai.sys.dto.ResponseData
;
import
com.jmai.sys.entity.SysUser
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
...
...
@@ -35,7 +37,6 @@ import java.util.List;
@Api
(
tags
=
"销毁审批"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"header"
,
name
=
"Access-Token"
,
value
=
"凭证"
,
required
=
true
,
dataType
=
"string"
)})
public
class
PhysicDestroyCheckController
{
@Resource
private
PhysicDestroyCheckService
physicDestroyCheckService
;
...
...
jmai-physic/src/main/java/com/jmai/physic/mapper/PhysicStorageAmpouleMapper.java
View file @
8ee8787e
...
...
@@ -20,6 +20,6 @@ public interface PhysicStorageAmpouleMapper extends BaseMapper<PhysicStorageAmpo
Integer
selectCurrentSumByName
(
@Param
(
"name"
)
String
name
,
@Param
(
"spec"
)
String
spec
,
@Param
(
"factoryName"
)
String
factoryName
,
@Param
(
"deptId"
)
Long
deptId
);
List
<
PhysicDestroyNumVO
>
selectDestroy
();
List
<
PhysicDestroyNumVO
>
selectDestroy
(
@Param
(
"deptId"
)
Long
deptId
);
}
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicDestroyCheckServiceImpl.java
View file @
8ee8787e
...
...
@@ -82,9 +82,9 @@ public class PhysicDestroyCheckServiceImpl extends BaseServiceImpl<PhysicDestroy
public
PhysicDestroyCheck
sign
(
PhysicDestroyCheckSignReq
physicDestroyCheckSignReq
)
{
Boolean
f
=
false
;
Long
userId
=
SpringContextUtils
.
getUserId
();
SysUser
sysUser
=
sysUserMapper
.
selectById
(
userId
);
String
getstamp
=
cloudsignService
.
sign
(
physicDestroyCheckSignReq
.
getEncryptedToken
(),
physicDestroyCheckSignReq
.
getRelBizNo
(),
physicDestroyCheckSignReq
.
getBase64SourceData
());
PhysicDestroyCheck
physicDestroyCheck
=
physicDestroyCheckMapper
.
selectById
(
physicDestroyCheckSignReq
.
getPhysicDestroyCheckId
());
SysUser
sysUser
=
sysUserMapper
.
selectById
(
userId
);
if
(
physicDestroyCheck
.
getStatus
().
equals
(
0
)){
if
(!
RoleTypeEum
.
isPass
(
sysUser
.
getRoleAsList
(),
RoleTypeEum
.
XH
)){
throw
new
ServiceException
(
"需要销毁人权限才可进行签名"
);
...
...
@@ -168,9 +168,10 @@ public class PhysicDestroyCheckServiceImpl extends BaseServiceImpl<PhysicDestroy
}
@Override
public
List
<
PhysicDestroyNumVO
>
listDestroy
()
{
List
<
PhysicDestroyNumVO
>
list
=
physicStorageAmpouleMapper
.
selectDestroy
();
public
List
<
PhysicDestroyNumVO
>
listDestroy
(
)
{
Long
userId
=
SpringContextUtils
.
getUserId
();
SysUser
sysUser
=
sysUserMapper
.
selectById
(
userId
);
List
<
PhysicDestroyNumVO
>
list
=
physicStorageAmpouleMapper
.
selectDestroy
(
sysUser
.
getDeptId
());
return
list
;
}
}
jmai-physic/src/main/resources/mapper/PhysicStorageAmpouleMapper.xml
View file @
8ee8787e
...
...
@@ -34,8 +34,8 @@
<select
id=
"selectDestroy"
resultType=
"com.jmai.physic.vo.PhysicDestroyNumVO"
>
select physic_name,physic_spec,batch_no,factory_name,unit,
remark
from physic_storage_ampoule
where
type =2 and destroy_status =0
gro
pu
by physic_name,physic_spec,batch_no,factory_name,accept_dept_id
select physic_name,physic_spec,batch_no,factory_name,unit,
(IFNULL(sum(acquire_num),0) - IFNULL(sum(expend_num),0))as destroyNum
from physic_storage_ampoule
where
((type =2 and destroy_status =0 and accept_dept_id =#{deptId}) or (type =2 and destroy_status =1 and accept_dept_id =#{deptId}))
gro
up
by physic_name,physic_spec,batch_no,factory_name,accept_dept_id
</select>
</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