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
333ef8f7
authored
Jan 28, 2026
by
zhu.zewen
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
签名支持关联业务ID
parent
79faae14
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
9 deletions
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicAmpouleServiceImpl.java
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicApplyServiceImpl.java
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicBillServiceImpl.java
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicDestroyCheckServiceImpl.java
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicDestroyServiceImpl.java
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicRecordServiceImpl.java
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicStorageAmpouleServiceImpl.java
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicWarehouseServiceImpl.java
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicAmpouleServiceImpl.java
View file @
333ef8f7
...
...
@@ -154,7 +154,7 @@ public class PhysicAmpouleServiceImpl extends AbstractService implements PhysicA
public
PhysicAmpoule
sign
(
PhysicAmpouleSignReq
physicAmpouleSignReq
)
{
Boolean
finished
=
false
;
Long
userId
=
SpringContextUtils
.
getUserId
();
String
getstamp
=
cloudsignService
.
sign
(
physicAmpouleSignReq
.
getBase64SourceData
());
String
getstamp
=
cloudsignService
.
sign
(
physicAmpouleSignReq
.
getBase64SourceData
()
,
physicAmpouleSignReq
.
getPhysicAmpouleId
().
toString
()
);
PhysicAmpoule
ampoule
=
getInfo
(
physicAmpouleSignReq
.
getPhysicAmpouleId
());
SysUser
sysUser
=
sysUserMapper
.
selectById
(
userId
);
if
(
ampoule
.
getStatus
().
equals
(
0
)){
...
...
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicApplyServiceImpl.java
View file @
333ef8f7
...
...
@@ -165,7 +165,7 @@ public class PhysicApplyServiceImpl extends AbstractService implements PhysicApp
Boolean
finished
=
false
;
Long
userId
=
SpringContextUtils
.
getUserId
();
SysUser
sysUser
=
sysUserMapper
.
selectById
(
userId
);
String
getstamp
=
cloudsignService
.
sign
(
physicApplySignReq
.
getBase64SourceData
());
String
getstamp
=
cloudsignService
.
sign
(
physicApplySignReq
.
getBase64SourceData
()
,
physicApplySignReq
.
getPhysicApplyId
().
toString
()
);
PhysicApply
physicApply
=
physicApplyMapper
.
selectById
(
physicApplySignReq
.
getPhysicApplyId
());
if
(
physicApply
.
getStatus
().
equals
(
0
)){
if
(!
RoleTypeEum
.
isPass
(
sysUser
.
getRoleAsList
(),
RoleTypeEum
.
LY
)){
...
...
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicBillServiceImpl.java
View file @
333ef8f7
...
...
@@ -130,7 +130,7 @@ public class PhysicBillServiceImpl extends AbstractService implements PhysicBill
public
PhysicBill
sign
(
PhysicBillSignReq
physicBillSignReq
)
{
Boolean
finished
=
false
;
Long
userId
=
SpringContextUtils
.
getUserId
();
String
getstamp
=
cloudsignService
.
sign
(
physicBillSignReq
.
getBase64SourceData
());
String
getstamp
=
cloudsignService
.
sign
(
physicBillSignReq
.
getBase64SourceData
()
,
physicBillSignReq
.
getPhysicBillId
().
toString
()
);
PhysicBill
bill
=
physicBillMapper
.
selectById
(
physicBillSignReq
.
getPhysicBillId
());
SysUser
sysUser
=
sysUserMapper
.
selectById
(
userId
);
if
(
ObjectUtil
.
equals
(
bill
.
getStatus
(),
0
))
{
...
...
@@ -326,7 +326,7 @@ public class PhysicBillServiceImpl extends AbstractService implements PhysicBill
boolean
finished
=
false
;
Long
userId
=
SpringContextUtils
.
getUserId
();
Long
currentDeptId
=
SpringContextUtils
.
getDeptId
();
String
getstamp
=
cloudsignService
.
sign
(
req
.
getBase64SourceData
());
String
getstamp
=
cloudsignService
.
sign
(
req
.
getBase64SourceData
()
,
req
.
getHandoverId
().
toString
()
);
PhysicBillHandover
handover
=
physicBillHandoverMapper
.
selectById
(
req
.
getHandoverId
());
if
(
ObjectUtil
.
isEmpty
(
handover
))
{
throw
new
ServiceException
(
"未找到交接单:"
+
req
.
getHandoverId
());
...
...
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicDestroyCheckServiceImpl.java
View file @
333ef8f7
...
...
@@ -122,7 +122,7 @@ public class PhysicDestroyCheckServiceImpl extends BaseServiceImpl<PhysicDestroy
boolean
finished
=
false
;
Long
userId
=
SpringContextUtils
.
getUserId
();
SysUser
sysUser
=
sysUserMapper
.
selectById
(
userId
);
String
getstamp
=
cloudsignService
.
sign
(
physicDestroyCheckSignReq
.
getBase64SourceData
());
String
getstamp
=
cloudsignService
.
sign
(
physicDestroyCheckSignReq
.
getBase64SourceData
()
,
physicDestroyCheckSignReq
.
getPhysicDestroyCheckId
().
toString
()
);
PhysicDestroyCheck
physicDestroyCheck
=
physicDestroyCheckMapper
.
selectById
(
physicDestroyCheckSignReq
.
getPhysicDestroyCheckId
());
if
(
physicDestroyCheck
.
getStatus
().
equals
(
0
)){
if
(!
RoleTypeEum
.
isPass
(
sysUser
.
getRoleAsList
(),
RoleTypeEum
.
XH
)){
...
...
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicDestroyServiceImpl.java
View file @
333ef8f7
...
...
@@ -63,7 +63,7 @@ public class PhysicDestroyServiceImpl extends AbstractService implements PhysicD
public
PhysicDestroy
sign
(
PhysicDestroySignReq
physicDestroySignReq
)
{
boolean
finished
=
false
;
Long
userId
=
SpringContextUtils
.
getUserId
();
String
getstamp
=
cloudsignService
.
sign
(
physicDestroySignReq
.
getBase64SourceData
());
String
getstamp
=
cloudsignService
.
sign
(
physicDestroySignReq
.
getBase64SourceData
()
,
physicDestroySignReq
.
getPhysicDestroyId
().
toString
()
);
PhysicDestroy
physicDestroy
=
physicDestroyMapper
.
selectById
(
physicDestroySignReq
.
getPhysicDestroyId
());
SysUser
sysUser
=
sysUserMapper
.
selectById
(
userId
);
if
(
physicDestroy
.
getStatus
().
equals
(
0
)){
...
...
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicRecordServiceImpl.java
View file @
333ef8f7
...
...
@@ -153,7 +153,7 @@ public class PhysicRecordServiceImpl extends AbstractService implements PhysicRe
public
PhysicRecord
sign
(
PhysicRecordSignReq
physicRecordSignReq
)
{
boolean
finished
=
false
;
Long
userId
=
SpringContextUtils
.
getUserId
();
String
getstamp
=
cloudsignService
.
sign
(
physicRecordSignReq
.
getBase64SourceData
());
String
getstamp
=
cloudsignService
.
sign
(
physicRecordSignReq
.
getBase64SourceData
()
,
physicRecordSignReq
.
getPhysicRecordId
().
toString
()
);
PhysicRecord
physicRecord
=
getInfo
(
physicRecordSignReq
.
getPhysicRecordId
());
SysUser
sysUser
=
sysUserMapper
.
selectById
(
userId
);
if
(
ObjectUtil
.
equals
(
physicRecord
.
getStatus
(),
0
))
{
...
...
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicStorageAmpouleServiceImpl.java
View file @
333ef8f7
...
...
@@ -211,7 +211,7 @@ public class PhysicStorageAmpouleServiceImpl extends AbstractService implements
public
PhysicStorageAmpoule
sign
(
PhysicStorageAmpouleSignReq
physicStorageAmpouleSignReq
)
{
boolean
finished
=
false
;
Long
userId
=
SpringContextUtils
.
getUserId
();
String
getstamp
=
cloudsignService
.
sign
(
physicStorageAmpouleSignReq
.
getBase64SourceData
());
String
getstamp
=
cloudsignService
.
sign
(
physicStorageAmpouleSignReq
.
getBase64SourceData
()
,
physicStorageAmpouleSignReq
.
getPhysicStorageAmpouleId
().
toString
()
);
PhysicStorageAmpoule
ampoule
=
getInfo
(
physicStorageAmpouleSignReq
.
getPhysicStorageAmpouleId
());
if
(
ampoule
.
getType
()==
2
&&
ampoule
.
getDestroyStatus
()==
1
){
throw
new
ServiceException
(
"已销毁记录不需要签名"
);
...
...
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicWarehouseServiceImpl.java
View file @
333ef8f7
...
...
@@ -91,7 +91,7 @@ public class PhysicWarehouseServiceImpl extends AbstractService implements Phys
public
PhysicWarehouseVO
sign
(
PhysicWarehouseSignReq
physicWarehouseSignReq
)
{
boolean
finished
=
false
;
Long
userId
=
SpringContextUtils
.
getUserId
();
String
getstamp
=
cloudsignService
.
sign
(
physicWarehouseSignReq
.
getBase64SourceData
());
String
getstamp
=
cloudsignService
.
sign
(
physicWarehouseSignReq
.
getBase64SourceData
()
,
physicWarehouseSignReq
.
getPhysicWarehouseId
().
toString
()
);
PhysicWarehouse
physicWarehouse
=
physicWarehouseMapper
.
selectById
(
physicWarehouseSignReq
.
getPhysicWarehouseId
());
SysUser
sysUser
=
sysUserMapper
.
selectById
(
userId
);
if
(
physicWarehouse
.
getStatus
().
equals
(
0
)){
...
...
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