Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
fbdfa5c4
提交
fbdfa5c4
authored
3月 28, 2023
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(区块链模块): 修复配发,退回,入库问题
修复了入库接收人为null,修复了配发,退回验证为假
上级
61456bd7
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
21 行增加
和
10 行删除
+21
-10
DeviceApplyBillServiceImpl.java
...device/apply/service/impl/DeviceApplyBillServiceImpl.java
+11
-4
RepairBackBillServiceImpl.java
...device/repair/service/impl/RepairBackBillServiceImpl.java
+8
-4
StorageBillServiceImpl.java
...v/device/storage/service/impl/StorageBillServiceImpl.java
+2
-2
没有找到文件。
dev-apply/src/main/java/com/tykj/dev/device/apply/service/impl/DeviceApplyBillServiceImpl.java
浏览文件 @
fbdfa5c4
...
...
@@ -32,6 +32,7 @@ import com.tykj.dev.misc.base.BlockBusinessEnum;
import
com.tykj.dev.misc.base.BusinessEnum
;
import
com.tykj.dev.misc.base.StatusEnum
;
import
com.tykj.dev.misc.utils.*
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.stereotype.Service
;
...
...
@@ -47,6 +48,7 @@ import static java.util.stream.Collectors.groupingBy;
* @author dengdiyi
*/
@Service
@Slf4j
public
class
DeviceApplyBillServiceImpl
implements
DeviceApplyBillService
{
@Autowired
...
...
@@ -86,6 +88,7 @@ public class DeviceApplyBillServiceImpl implements DeviceApplyBillService {
public
DeviceApplyBill
addEntity
(
DeviceApplyBill
deviceApplyBillEntity
)
{
DeviceApplyBill
deviceApplyBill
=
deviceApplyBillDao
.
save
(
deviceApplyBillEntity
);
sendText
(
deviceApplyBill
.
getId
());
log
.
info
(
"新增[申请]上链"
);
return
deviceApplyBill
;
}
...
...
@@ -106,7 +109,9 @@ public class DeviceApplyBillServiceImpl implements DeviceApplyBillService {
@Override
public
DeviceApplyBill
update
(
DeviceApplyBill
deviceApplyBillEntity
)
{
DeviceApplyBill
deviceApplyBill
=
deviceApplyBillDao
.
save
(
deviceApplyBillEntity
);
CompletableFuture
.
runAsync
(()->
blockChainUtil
.
appendHash
(
JacksonUtil
.
toJSon
(
deviceApplyBill
),
deviceApplyBill
.
getRecordId
()),
TaskBeanConfig
.
getThreadPoolTaskScheduler
());
sendText
(
deviceApplyBill
.
getId
());
log
.
info
(
"更新[申请]上链"
);
// CompletableFuture.runAsync(()->blockChainUtil.appendHash(JacksonUtil.toJSon(deviceApplyBill),deviceApplyBill.getRecordId()),TaskBeanConfig.getThreadPoolTaskScheduler());
return
deviceApplyBill
;
}
...
...
@@ -365,9 +370,11 @@ public class DeviceApplyBillServiceImpl implements DeviceApplyBillService {
StringBuffer
buf
=
new
StringBuffer
();
buf
.
append
(
deviceApplyBill
.
getApplyUser
())
.
append
(
","
)
.
append
(
deviceApplyBill
.
getAgent
());
.
append
(
","
);
String
agent
=
deviceApplyBill
.
getAgent
();
if
(
agent
!=
null
){
buf
.
append
(
agent
);
}
return
buf
.
toString
();
}
...
...
dev-repair/src/main/java/com/tykj/dev/device/repair/service/impl/RepairBackBillServiceImpl.java
浏览文件 @
fbdfa5c4
...
...
@@ -25,6 +25,7 @@ import com.tykj.dev.device.repair.subject.domin.RepairBill;
import
com.tykj.dev.device.repair.subject.domin.RepairSendBill
;
import
com.tykj.dev.device.repair.subject.vo.RepairBillSelectVo
;
import
com.tykj.dev.device.task.service.TaskService
;
import
com.tykj.dev.device.user.cache.UserCache
;
import
com.tykj.dev.device.user.util.UserUtils
;
import
com.tykj.dev.misc.base.BlockBusinessEnum
;
import
com.tykj.dev.misc.base.BusinessEnum
;
...
...
@@ -82,6 +83,9 @@ public class RepairBackBillServiceImpl implements RepairBackBillService {
@Resource
private
RepairBillService
repairBillService
;
@Resource
private
UserCache
userCache
;
@Override
public
RepairBackBill
save
(
RepairBackBill
deviceRepairBackBillEntity
)
{
RepairBackBill
repairBackBill
=
deviceRepairBackBillDao
.
save
(
deviceRepairBackBillEntity
);
...
...
@@ -227,13 +231,13 @@ public class RepairBackBillServiceImpl implements RepairBackBillService {
private
String
operatorName
(
RepairBackBill
repairBackBill
)
{
StringBuffer
buf
=
new
StringBuffer
();
buf
.
append
(
repairBackBill
.
getStartUserA
())
buf
.
append
(
userCache
.
findById
(
repairBackBill
.
getStartUseraId
()).
getName
())
.
append
(
","
)
.
append
(
repairBackBill
.
getStartUserB
())
.
append
(
userCache
.
findById
(
repairBackBill
.
getStartUserbId
()).
getName
())
.
append
(
","
)
.
append
(
repairBackBill
.
getReceiveUserA
())
.
append
(
userCache
.
findById
(
repairBackBill
.
getReceiveUseraId
()).
getName
())
.
append
(
","
)
.
append
(
repairBackBill
.
getReceiveUserB
());
.
append
(
userCache
.
findById
(
repairBackBill
.
getReceiveUserbId
()).
getName
());
return
buf
.
toString
();
}
...
...
dev-storage/src/main/java/com/tykj/dev/device/storage/service/impl/StorageBillServiceImpl.java
浏览文件 @
fbdfa5c4
...
...
@@ -174,7 +174,7 @@ public class StorageBillServiceImpl implements StorageBillService {
traceabilityParsingData
.
setCarrierIds
(
getSeqNumber
(
storageBill
));
traceabilityParsingData
.
setInitiateUnitName
(
storageBill
.
getSendUnit
());
traceabilityParsingData
.
setReceiveUnitName
(
"浙江省机要局"
);
traceabilityParsingData
.
setOperationTime
(
DateUtil
.
getLocalDateTime
NoSecond
(
storageBill
.
getSendTime
()));
traceabilityParsingData
.
setOperationTime
(
DateUtil
.
getLocalDateTime
(
storageBill
.
getSendTime
()));
traceabilityParsingData
.
setOperatorUserName
(
operatorName
(
storageBill
));
blockTraceabilityParsing
.
setBusinessTraceabilityParsingData
(
traceabilityParsingData
);
...
...
@@ -187,7 +187,7 @@ public class StorageBillServiceImpl implements StorageBillService {
traceabilityParsingData1
.
setCarrierIds
(
getSeqNumber
(
storageBill1
));
traceabilityParsingData1
.
setInitiateUnitName
(
storageBill1
.
getSendUnit
());
traceabilityParsingData1
.
setReceiveUnitName
(
"浙江省机要局"
);
traceabilityParsingData1
.
setOperationTime
(
DateUtil
.
getLocalDateTime
NoSecond
(
storageBill1
.
getSendTime
()));
traceabilityParsingData1
.
setOperationTime
(
DateUtil
.
getLocalDateTime
(
storageBill1
.
getSendTime
()));
traceabilityParsingData1
.
setOperatorUserName
(
operatorName
(
storageBill1
));
blockTraceabilityParsing
.
setBlockTraceabilityParsingData
(
traceabilityParsingData1
);
blockTraceabilityParsing
.
setBlockData
(
storageBill1
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论