Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
548d1b8d
提交
548d1b8d
authored
12月 07, 2020
作者:
邓砥奕
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改为hash上链
上级
3ec17b41
隐藏空白字符变更
内嵌
并排
正在显示
28 个修改的文件
包含
92 行增加
和
79 行删除
+92
-79
AllotBackBillServiceImpl.java
...v/device/allot/service/impl/AllotBackBillServiceImpl.java
+3
-3
AllotBillServiceImpl.java
...j/dev/device/allot/service/impl/AllotBillServiceImpl.java
+3
-3
DeviceApplyBillServiceImpl.java
...device/apply/service/impl/DeviceApplyBillServiceImpl.java
+3
-3
DeviceDestroyBillServiceImpl.java
...ce/destroy/service/Impl/DeviceDestroyBillServiceImpl.java
+3
-3
DeviceChangeServiceImpl.java
.../device/library/service/impl/DeviceChangeServiceImpl.java
+3
-3
DeviceLibraryServiceImpl.java
...device/library/service/impl/DeviceLibraryServiceImpl.java
+3
-3
DeviceLogServiceImpl.java
...dev/device/library/service/impl/DeviceLogServiceImpl.java
+3
-3
MatchingDeviceBillServiceImpl.java
.../matching/service/impl/MatchingDeviceBillServiceImpl.java
+3
-3
MatchingDeviceLibraryServiceImpl.java
...tching/service/impl/MatchingDeviceLibraryServiceImpl.java
+3
-3
PackingLibraryServiceImpl.java
...evice/packing/service/impl/PackingLibraryServiceImpl.java
+3
-3
RepairBackBillServiceImpl.java
...device/repair/service/impl/RepairBackBillServiceImpl.java
+3
-3
RepairBillServiceImpl.java
...dev/device/repair/service/impl/RepairBillServiceImpl.java
+3
-3
RepairDetailServiceImpl.java
...v/device/repair/service/impl/RepairDetailServiceImpl.java
+3
-3
RepairSendBillServiceImpl.java
...device/repair/service/impl/RepairSendBillServiceImpl.java
+3
-3
DeviceRetiredBillServiceImpl.java
...ce/retired/service/Impl/DeviceRetiredBillServiceImpl.java
+3
-3
AccessControlNameServiceImpl.java
...j/dev/rfid/service/impl/AccessControlNameServiceImpl.java
+3
-3
InputOutputDeviceServiceImpl.java
...j/dev/rfid/service/impl/InputOutputDeviceServiceImpl.java
+3
-3
LibraryWarningLogDetailServiceImp.java
.../rfid/service/impl/LibraryWarningLogDetailServiceImp.java
+3
-3
LibraryWarningLogServiceImpl.java
...j/dev/rfid/service/impl/LibraryWarningLogServiceImpl.java
+3
-3
RfidChangeBillServiceImpl.java
...tykj/dev/rfid/service/impl/RfidChangeBillServiceImpl.java
+3
-3
RfidChangeLogServiceImpl.java
.../tykj/dev/rfid/service/impl/RfidChangeLogServiceImpl.java
+3
-3
ScrapBillServiceImpl.java
...j/dev/device/scrap/service/impl/ScrapBillServiceImpl.java
+3
-3
SelfCheckBillServiceImpl.java
...vice/selfcheck/service/impl/SelfCheckBillServiceImpl.java
+3
-3
StorageBillServiceImpl.java
...v/device/storage/service/impl/StorageBillServiceImpl.java
+3
-3
TaskLogServiceImpl.java
...tykj/dev/device/task/service/impl/TaskLogServiceImpl.java
+3
-3
TaskServiceImpl.java
...om/tykj/dev/device/task/service/impl/TaskServiceImpl.java
+3
-3
DeviceUseReportServiceImpl.java
...ce/usereport/service/impl/DeviceUseReportServiceImpl.java
+12
-1
DeviceUseReport.java
...j/dev/device/usereport/subject/domin/DeviceUseReport.java
+2
-0
没有找到文件。
dev-allot/src/main/java/com/tykj/dev/device/allot/service/impl/AllotBackBillServiceImpl.java
浏览文件 @
548d1b8d
package
com
.
tykj
.
dev
.
device
.
allot
.
service
.
impl
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.device.allot.repository.AllotBackBillDao
;
import
com.tykj.dev.device.allot.service.AllotBackBillService
;
...
...
@@ -28,7 +28,7 @@ public class AllotBackBillServiceImpl implements AllotBackBillService {
@Override
public
AllotBackBill
addEntity
(
AllotBackBill
allotBackBill
)
{
AllotBackBill
allotBackBill1
=
allotBackBillDao
.
save
(
allotBackBill
);
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
allotBackBill1
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
allotBackBill1
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
allotBackBill1
.
setRecordId
(
recordId
);
return
allotBackBillDao
.
save
(
allotBackBill1
);
...
...
@@ -36,7 +36,7 @@ public class AllotBackBillServiceImpl implements AllotBackBillService {
@Override
public
AllotBackBill
update
(
AllotBackBill
allotBackBill
)
{
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
allotBackBill
),
allotBackBill
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
allotBackBill
),
allotBackBill
.
getRecordId
());
return
allotBackBillDao
.
save
(
allotBackBill
);
}
...
...
dev-allot/src/main/java/com/tykj/dev/device/allot/service/impl/AllotBillServiceImpl.java
浏览文件 @
548d1b8d
...
...
@@ -2,7 +2,7 @@ package com.tykj.dev.device.allot.service.impl;
import
com.github.wenhao.jpa.PredicateBuilder
;
import
com.github.wenhao.jpa.Specifications
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.device.allot.repository.AllotBillDao
;
import
com.tykj.dev.device.allot.service.AllotBillService
;
...
...
@@ -39,7 +39,7 @@ public class AllotBillServiceImpl implements AllotBillService {
@Override
public
AllotBill
addEntity
(
AllotBill
allotBillEntity
)
{
AllotBill
allotBill
=
allotBillDao
.
save
(
allotBillEntity
);
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
allotBill
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
allotBill
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
allotBill
.
setRecordId
(
recordId
);
return
update
(
allotBill
);
...
...
@@ -47,7 +47,7 @@ public class AllotBillServiceImpl implements AllotBillService {
@Override
public
AllotBill
update
(
AllotBill
allotBillEntity
)
{
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
allotBillEntity
),
allotBillEntity
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
allotBillEntity
),
allotBillEntity
.
getRecordId
());
return
allotBillDao
.
save
(
allotBillEntity
);
}
...
...
dev-apply/src/main/java/com/tykj/dev/device/apply/service/impl/DeviceApplyBillServiceImpl.java
浏览文件 @
548d1b8d
package
com
.
tykj
.
dev
.
device
.
apply
.
service
.
impl
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.device.apply.repository.DeviceApplyBillDao
;
import
com.tykj.dev.device.apply.service.DeviceApplyBillService
;
...
...
@@ -26,7 +26,7 @@ public class DeviceApplyBillServiceImpl implements DeviceApplyBillService {
@Override
public
DeviceApplyBill
addEntity
(
DeviceApplyBill
deviceApplyBillEntity
)
{
DeviceApplyBill
deviceApplyBill
=
deviceApplyBillDao
.
save
(
deviceApplyBillEntity
);
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
deviceApplyBill
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
deviceApplyBill
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
deviceApplyBill
.
setRecordId
(
recordId
);
return
update
(
deviceApplyBill
);
...
...
@@ -34,7 +34,7 @@ public class DeviceApplyBillServiceImpl implements DeviceApplyBillService {
@Override
public
DeviceApplyBill
update
(
DeviceApplyBill
deviceApplyBillEntity
)
{
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
deviceApplyBillEntity
),
deviceApplyBillEntity
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
deviceApplyBillEntity
),
deviceApplyBillEntity
.
getRecordId
());
return
deviceApplyBillDao
.
save
(
deviceApplyBillEntity
);
}
...
...
dev-destroy/src/main/java/com/tykj/dev/device/destroy/service/Impl/DeviceDestroyBillServiceImpl.java
浏览文件 @
548d1b8d
...
...
@@ -2,7 +2,7 @@ package com.tykj.dev.device.destroy.service.Impl;
import
com.github.wenhao.jpa.PredicateBuilder
;
import
com.github.wenhao.jpa.Specifications
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.device.destroy.entity.domain.DeviceDestroyBill
;
import
com.tykj.dev.device.destroy.entity.vo.DeviceDestroyBillSelectVo
;
...
...
@@ -48,7 +48,7 @@ public class DeviceDestroyBillServiceImpl implements DeviceDestroyBillService {
@Override
public
DeviceDestroyBill
addEntity
(
DeviceDestroyBill
deviceDestroyBillEntity
)
{
DeviceDestroyBill
deviceDestroyBill
=
deviceDestroyBillDao
.
save
(
deviceDestroyBillEntity
);
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
deviceDestroyBill
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
deviceDestroyBill
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
deviceDestroyBill
.
setRecordId
(
recordId
);
return
updateEntity
(
deviceDestroyBill
);
...
...
@@ -85,7 +85,7 @@ public class DeviceDestroyBillServiceImpl implements DeviceDestroyBillService {
@Override
public
DeviceDestroyBill
updateEntity
(
DeviceDestroyBill
deviceDestoryBillEntity
)
{
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
deviceDestoryBillEntity
),
deviceDestoryBillEntity
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
deviceDestoryBillEntity
),
deviceDestoryBillEntity
.
getRecordId
());
return
deviceDestroyBillDao
.
save
(
deviceDestoryBillEntity
);
}
...
...
dev-library/src/main/java/com/tykj/dev/device/library/service/impl/DeviceChangeServiceImpl.java
浏览文件 @
548d1b8d
package
com
.
tykj
.
dev
.
device
.
library
.
service
.
impl
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.device.library.repository.DeviceChangeDao
;
import
com.tykj.dev.device.library.service.DeviceChangeService
;
...
...
@@ -30,10 +30,10 @@ public class DeviceChangeServiceImpl implements DeviceChangeService {
@Override
public
DeviceChange
add
(
DeviceChange
deviceChange
)
{
DeviceChange
deviceChange1
=
deviceChangeDao
.
save
(
deviceChange
);
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
deviceChange1
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
deviceChange1
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
deviceChange1
.
setRecordId
(
recordId
);
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
deviceChange1
),
deviceChange1
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
deviceChange1
),
deviceChange1
.
getRecordId
());
return
deviceChangeDao
.
save
(
deviceChange1
);
}
...
...
dev-library/src/main/java/com/tykj/dev/device/library/service/impl/DeviceLibraryServiceImpl.java
浏览文件 @
548d1b8d
...
...
@@ -2,7 +2,7 @@ package com.tykj.dev.device.library.service.impl;
import
com.github.wenhao.jpa.PredicateBuilder
;
import
com.github.wenhao.jpa.Specifications
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.device.library.repository.DeviceLibraryDao
;
import
com.tykj.dev.device.library.service.DeviceLibraryService
;
...
...
@@ -48,7 +48,7 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
@Override
public
DeviceLibrary
addEntity
(
DeviceLibrary
deviceLibraryEntity
)
{
DeviceLibrary
deviceLibrary
=
deviceLibraryDao
.
save
(
deviceLibraryEntity
);
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
deviceLibrary
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
deviceLibrary
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
deviceLibrary
.
setRecordId
(
recordId
);
return
update
(
deviceLibrary
);
...
...
@@ -384,7 +384,7 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
@Override
public
DeviceLibrary
update
(
DeviceLibrary
deviceLibraryEntity
)
{
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
deviceLibraryEntity
),
deviceLibraryEntity
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
deviceLibraryEntity
),
deviceLibraryEntity
.
getRecordId
());
return
deviceLibraryDao
.
save
(
deviceLibraryEntity
);
}
...
...
dev-library/src/main/java/com/tykj/dev/device/library/service/impl/DeviceLogServiceImpl.java
浏览文件 @
548d1b8d
package
com
.
tykj
.
dev
.
device
.
library
.
service
.
impl
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.device.library.repository.DeviceLogDao
;
import
com.tykj.dev.device.library.service.DeviceLogService
;
...
...
@@ -30,10 +30,10 @@ public class DeviceLogServiceImpl implements DeviceLogService {
@Override
public
DeviceLogDto
addLog
(
DeviceLogDto
deviceLogDto
)
{
DeviceLog
deviceLogEntity
=
deviceLogDao
.
save
(
deviceLogDto
.
toDo
());
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
deviceLogEntity
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
deviceLogEntity
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
deviceLogEntity
.
setRecordId
(
recordId
);
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
deviceLogEntity
),
deviceLogEntity
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
deviceLogEntity
),
deviceLogEntity
.
getRecordId
());
return
deviceLogDao
.
save
(
deviceLogEntity
).
parse2Dto
();
}
...
...
dev-matching/src/main/java/com/tykj/dev/device/matching/service/impl/MatchingDeviceBillServiceImpl.java
浏览文件 @
548d1b8d
package
com
.
tykj
.
dev
.
device
.
matching
.
service
.
impl
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.device.matching.repository.MatchingDeviceBillDao
;
import
com.tykj.dev.device.matching.service.MatchingDeviceBillService
;
...
...
@@ -26,7 +26,7 @@ public class MatchingDeviceBillServiceImpl implements MatchingDeviceBillService
@Override
public
MatchingDeviceBill
addEntity
(
MatchingDeviceBill
matchingDeviceBillEntity
)
{
MatchingDeviceBill
matchingDeviceBill
=
matchingDeviceBillDao
.
save
(
matchingDeviceBillEntity
);
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
matchingDeviceBill
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
matchingDeviceBill
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
matchingDeviceBill
.
setRecordId
(
recordId
);
return
update
(
matchingDeviceBill
);
...
...
@@ -40,7 +40,7 @@ public class MatchingDeviceBillServiceImpl implements MatchingDeviceBillService
@Override
public
MatchingDeviceBill
update
(
MatchingDeviceBill
matchingDeviceBillEntity
)
{
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
matchingDeviceBillEntity
),
matchingDeviceBillEntity
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
matchingDeviceBillEntity
),
matchingDeviceBillEntity
.
getRecordId
());
return
matchingDeviceBillDao
.
save
(
matchingDeviceBillEntity
);
}
}
dev-matching/src/main/java/com/tykj/dev/device/matching/service/impl/MatchingDeviceLibraryServiceImpl.java
浏览文件 @
548d1b8d
...
...
@@ -2,7 +2,7 @@ package com.tykj.dev.device.matching.service.impl;
import
com.github.wenhao.jpa.PredicateBuilder
;
import
com.github.wenhao.jpa.Specifications
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.device.matching.repository.MatchingDeviceLibraryDao
;
import
com.tykj.dev.device.matching.service.MatchingDeviceLibraryService
;
...
...
@@ -45,7 +45,7 @@ public class MatchingDeviceLibraryServiceImpl implements MatchingDeviceLibrarySe
@Override
public
MatchingDeviceLibrary
addEntity
(
MatchingDeviceLibrary
matchingDeviceLibraryEntity
)
{
MatchingDeviceLibrary
matchingDeviceLibrary
=
matchingDeviceLibraryDao
.
save
(
matchingDeviceLibraryEntity
);
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
matchingDeviceLibrary
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
matchingDeviceLibrary
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
matchingDeviceLibrary
.
setRecordId
(
recordId
);
return
update
(
matchingDeviceLibrary
);
...
...
@@ -59,7 +59,7 @@ public class MatchingDeviceLibraryServiceImpl implements MatchingDeviceLibrarySe
@Override
public
MatchingDeviceLibrary
update
(
MatchingDeviceLibrary
matchingDeviceLibraryEntity
)
{
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
matchingDeviceLibraryEntity
),
matchingDeviceLibraryEntity
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
matchingDeviceLibraryEntity
),
matchingDeviceLibraryEntity
.
getRecordId
());
return
matchingDeviceLibraryDao
.
save
(
matchingDeviceLibraryEntity
);
}
...
...
dev-packing/src/main/java/com/tykj/dev/device/packing/service/impl/PackingLibraryServiceImpl.java
浏览文件 @
548d1b8d
...
...
@@ -2,7 +2,7 @@ package com.tykj.dev.device.packing.service.impl;
import
com.github.wenhao.jpa.PredicateBuilder
;
import
com.github.wenhao.jpa.Specifications
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.config.GlobalMap
;
import
com.tykj.dev.device.packing.repository.PackingLibraryDao
;
...
...
@@ -44,7 +44,7 @@ public class PackingLibraryServiceImpl implements PackingLibraryService {
@Override
public
PackingLibrary
addEntity
(
PackingLibrary
packingLibraryEntity
)
{
PackingLibrary
packingLibrary
=
packingLibraryDao
.
save
(
packingLibraryEntity
);
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
packingLibrary
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
packingLibrary
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
packingLibrary
.
setRecordId
(
recordId
);
return
update
(
packingLibrary
);
...
...
@@ -104,7 +104,7 @@ public class PackingLibraryServiceImpl implements PackingLibraryService {
@Override
public
PackingLibrary
update
(
PackingLibrary
packingLibraryEntity
)
{
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
packingLibraryEntity
),
packingLibraryEntity
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
packingLibraryEntity
),
packingLibraryEntity
.
getRecordId
());
return
packingLibraryDao
.
save
(
packingLibraryEntity
);
}
...
...
dev-repair/src/main/java/com/tykj/dev/device/repair/service/impl/RepairBackBillServiceImpl.java
浏览文件 @
548d1b8d
package
com
.
tykj
.
dev
.
device
.
repair
.
service
.
impl
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.device.repair.repository.RepairBackBillDao
;
import
com.tykj.dev.device.repair.service.RepairBackBillService
;
...
...
@@ -32,7 +32,7 @@ public class RepairBackBillServiceImpl implements RepairBackBillService {
@Override
public
RepairBackBill
save
(
RepairBackBill
deviceRepairBackBillEntity
)
{
RepairBackBill
repairBackBill
=
deviceRepairBackBillDao
.
save
(
deviceRepairBackBillEntity
);
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
repairBackBill
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
repairBackBill
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
repairBackBill
.
setRecordId
(
recordId
);
return
update
(
repairBackBill
);
...
...
@@ -50,7 +50,7 @@ public class RepairBackBillServiceImpl implements RepairBackBillService {
@Override
public
RepairBackBill
update
(
RepairBackBill
deviceRepairBackBillEntity
)
{
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
deviceRepairBackBillEntity
),
deviceRepairBackBillEntity
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
deviceRepairBackBillEntity
),
deviceRepairBackBillEntity
.
getRecordId
());
return
deviceRepairBackBillDao
.
save
(
deviceRepairBackBillEntity
);
}
...
...
dev-repair/src/main/java/com/tykj/dev/device/repair/service/impl/RepairBillServiceImpl.java
浏览文件 @
548d1b8d
...
...
@@ -2,7 +2,7 @@ package com.tykj.dev.device.repair.service.impl;
import
com.github.wenhao.jpa.PredicateBuilder
;
import
com.github.wenhao.jpa.Specifications
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.device.repair.repository.RepairBillDao
;
import
com.tykj.dev.device.repair.service.RepairBillService
;
...
...
@@ -38,7 +38,7 @@ public class RepairBillServiceImpl implements RepairBillService {
@Override
public
RepairBill
addEntity
(
RepairBill
deviceRepairBillEntity
)
{
RepairBill
repairBill
=
deviceRepairBillDao
.
save
(
deviceRepairBillEntity
);
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
repairBill
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
repairBill
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
repairBill
.
setRecordId
(
recordId
);
return
update
(
repairBill
);
...
...
@@ -57,7 +57,7 @@ public class RepairBillServiceImpl implements RepairBillService {
@Override
public
RepairBill
update
(
RepairBill
deviceRepairBillEntity
)
{
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
deviceRepairBillEntity
),
deviceRepairBillEntity
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
deviceRepairBillEntity
),
deviceRepairBillEntity
.
getRecordId
());
return
deviceRepairBillDao
.
save
(
deviceRepairBillEntity
);
}
...
...
dev-repair/src/main/java/com/tykj/dev/device/repair/service/impl/RepairDetailServiceImpl.java
浏览文件 @
548d1b8d
package
com
.
tykj
.
dev
.
device
.
repair
.
service
.
impl
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.device.repair.repository.RepairDetailDao
;
import
com.tykj.dev.device.repair.service.RepairDetailService
;
...
...
@@ -32,7 +32,7 @@ public class RepairDetailServiceImpl implements RepairDetailService {
@Override
public
RepairDetail
save
(
RepairDetail
deviceRepairDetailEntity
)
{
RepairDetail
repairDetail
=
deviceRepairDetailDao
.
save
(
deviceRepairDetailEntity
);
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
repairDetail
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
repairDetail
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
repairDetail
.
setRecordId
(
recordId
);
return
update
(
repairDetail
);
...
...
@@ -50,7 +50,7 @@ public class RepairDetailServiceImpl implements RepairDetailService {
@Override
public
RepairDetail
update
(
RepairDetail
deviceRepairDetailEntity
)
{
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
deviceRepairDetailEntity
),
deviceRepairDetailEntity
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
deviceRepairDetailEntity
),
deviceRepairDetailEntity
.
getRecordId
());
return
deviceRepairDetailDao
.
save
(
deviceRepairDetailEntity
);
}
...
...
dev-repair/src/main/java/com/tykj/dev/device/repair/service/impl/RepairSendBillServiceImpl.java
浏览文件 @
548d1b8d
...
...
@@ -2,7 +2,7 @@ package com.tykj.dev.device.repair.service.impl;
import
com.github.wenhao.jpa.PredicateBuilder
;
import
com.github.wenhao.jpa.Specifications
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.device.repair.repository.RepairSendBillDao
;
import
com.tykj.dev.device.repair.service.RepairSendBillService
;
...
...
@@ -38,7 +38,7 @@ public class RepairSendBillServiceImpl implements RepairSendBillService {
@Override
public
RepairSendBill
addEntity
(
RepairSendBill
deviceRepairSendBillEntity
)
{
RepairSendBill
repairSendBill
=
deviceRepairSendBillDao
.
save
(
deviceRepairSendBillEntity
);
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
repairSendBill
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
repairSendBill
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
repairSendBill
.
setRecordId
(
recordId
);
return
update
(
repairSendBill
);
...
...
@@ -64,7 +64,7 @@ public class RepairSendBillServiceImpl implements RepairSendBillService {
@Override
public
RepairSendBill
update
(
RepairSendBill
deviceRepairSendBillEntity
)
{
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
deviceRepairSendBillEntity
),
deviceRepairSendBillEntity
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
deviceRepairSendBillEntity
),
deviceRepairSendBillEntity
.
getRecordId
());
return
deviceRepairSendBillDao
.
save
(
deviceRepairSendBillEntity
);
}
...
...
dev-retired/src/main/java/com/tykj/dev/device/retired/service/Impl/DeviceRetiredBillServiceImpl.java
浏览文件 @
548d1b8d
...
...
@@ -2,7 +2,7 @@ package com.tykj.dev.device.retired.service.Impl;
import
com.github.wenhao.jpa.PredicateBuilder
;
import
com.github.wenhao.jpa.Specifications
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.device.library.repository.DeviceLibraryDao
;
import
com.tykj.dev.device.library.subject.domin.DeviceLibrary
;
...
...
@@ -36,7 +36,7 @@ public class DeviceRetiredBillServiceImpl implements DeviceRetiredBillService {
@Override
public
DeviceRetiredBill
addEntity
(
DeviceRetiredBill
deviceRetiredBillEntity
)
{
DeviceRetiredBill
deviceRetiredBill
=
deviceRetiredBillDao
.
save
(
deviceRetiredBillEntity
);
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
deviceRetiredBill
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
deviceRetiredBill
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
deviceRetiredBill
.
setRecordId
(
recordId
);
return
update
(
deviceRetiredBill
);
...
...
@@ -51,7 +51,7 @@ public class DeviceRetiredBillServiceImpl implements DeviceRetiredBillService {
@Override
public
DeviceRetiredBill
update
(
DeviceRetiredBill
deviceRetiredBillEntity
)
{
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
deviceRetiredBillEntity
),
deviceRetiredBillEntity
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
deviceRetiredBillEntity
),
deviceRetiredBillEntity
.
getRecordId
());
return
deviceRetiredBillDao
.
save
(
deviceRetiredBillEntity
);
}
...
...
dev-rfid/src/main/java/com/tykj/dev/rfid/service/impl/AccessControlNameServiceImpl.java
浏览文件 @
548d1b8d
package
com
.
tykj
.
dev
.
rfid
.
service
.
impl
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.misc.utils.JacksonUtil
;
import
com.tykj.dev.rfid.entity.domin.AccessControlName
;
...
...
@@ -25,10 +25,10 @@ public class AccessControlNameServiceImpl implements AccessControlNameService {
@Override
public
AccessControlName
add
(
AccessControlName
accessControlName
)
{
AccessControlName
accessControlName1
=
accessControlNameDao
.
save
(
accessControlName
);
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
accessControlName1
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
accessControlName1
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
accessControlName1
.
setRecordId
(
recordId
);
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
accessControlName1
),
accessControlName1
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
accessControlName1
),
accessControlName1
.
getRecordId
());
return
accessControlNameDao
.
save
(
accessControlName1
);
}
...
...
dev-rfid/src/main/java/com/tykj/dev/rfid/service/impl/InputOutputDeviceServiceImpl.java
浏览文件 @
548d1b8d
package
com
.
tykj
.
dev
.
rfid
.
service
.
impl
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.device.library.service.DeviceLibraryService
;
import
com.tykj.dev.device.library.subject.domin.DeviceLibrary
;
...
...
@@ -35,10 +35,10 @@ public class InputOutputDeviceServiceImpl implements InputOutputDeviceService {
@Override
public
InputOutputDevice
addEntity
(
InputOutputDevice
inputOutputDevice
)
{
InputOutputDevice
inputOutputDevice1
=
inputOutputDeviceDao
.
save
(
inputOutputDevice
);
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
inputOutputDevice1
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
inputOutputDevice1
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
inputOutputDevice1
.
setRecordId
(
recordId
);
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
inputOutputDevice1
),
inputOutputDevice1
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
inputOutputDevice1
),
inputOutputDevice1
.
getRecordId
());
return
inputOutputDeviceDao
.
save
(
inputOutputDevice1
);
}
...
...
dev-rfid/src/main/java/com/tykj/dev/rfid/service/impl/LibraryWarningLogDetailServiceImp.java
浏览文件 @
548d1b8d
package
com
.
tykj
.
dev
.
rfid
.
service
.
impl
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.misc.utils.JacksonUtil
;
import
com.tykj.dev.rfid.entity.domin.LibraryWarningLogDetail
;
...
...
@@ -27,10 +27,10 @@ public class LibraryWarningLogDetailServiceImp implements LibraryWarningLogDetai
@Override
public
LibraryWarningLogDetail
addEntity
(
LibraryWarningLogDetail
libraryWarningLogDetail
)
{
LibraryWarningLogDetail
libraryWarningLogDetail1
=
libraryWarningLogDetailDao
.
save
(
libraryWarningLogDetail
);
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
libraryWarningLogDetail1
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
libraryWarningLogDetail1
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
libraryWarningLogDetail1
.
setRecordId
(
recordId
);
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
libraryWarningLogDetail1
),
libraryWarningLogDetail1
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
libraryWarningLogDetail1
),
libraryWarningLogDetail1
.
getRecordId
());
return
libraryWarningLogDetailDao
.
save
(
libraryWarningLogDetail1
);
}
}
dev-rfid/src/main/java/com/tykj/dev/rfid/service/impl/LibraryWarningLogServiceImpl.java
浏览文件 @
548d1b8d
...
...
@@ -2,7 +2,7 @@ package com.tykj.dev.rfid.service.impl;
import
com.github.wenhao.jpa.PredicateBuilder
;
import
com.github.wenhao.jpa.Specifications
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.device.library.service.DeviceLibraryService
;
import
com.tykj.dev.device.library.subject.domin.DeviceLibrary
;
...
...
@@ -52,7 +52,7 @@ public class LibraryWarningLogServiceImpl implements LibraryWarningLogService {
@Override
public
LibraryWarningLog
addEntity
(
LibraryWarningLog
libraryWarningLog
)
{
LibraryWarningLog
libraryWarningLog1
=
libraryWarningLogDao
.
save
(
libraryWarningLog
);
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
libraryWarningLog1
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
libraryWarningLog1
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
libraryWarningLog1
.
setRecordId
(
recordId
);
return
update
(
libraryWarningLog1
);
...
...
@@ -129,7 +129,7 @@ public class LibraryWarningLogServiceImpl implements LibraryWarningLogService {
@Override
public
LibraryWarningLog
update
(
LibraryWarningLog
libraryWarningLog
)
{
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
libraryWarningLog
),
libraryWarningLog
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
libraryWarningLog
),
libraryWarningLog
.
getRecordId
());
return
libraryWarningLogDao
.
save
(
libraryWarningLog
);
}
...
...
dev-rfid/src/main/java/com/tykj/dev/rfid/service/impl/RfidChangeBillServiceImpl.java
浏览文件 @
548d1b8d
package
com
.
tykj
.
dev
.
rfid
.
service
.
impl
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.misc.utils.JacksonUtil
;
import
com.tykj.dev.rfid.entity.domin.RfidChangeBill
;
...
...
@@ -31,7 +31,7 @@ public class RfidChangeBillServiceImpl implements RfidChangeBillService {
@Override
public
RfidChangeBill
addEntity
(
RfidChangeBill
libraryWarningLogEntity
)
{
RfidChangeBill
rfidChangeBill
=
rfidChangeBillDao
.
save
(
libraryWarningLogEntity
);
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
rfidChangeBill
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
rfidChangeBill
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
rfidChangeBill
.
setRecordId
(
recordId
);
return
updateEntity
(
rfidChangeBill
);
...
...
@@ -39,7 +39,7 @@ public class RfidChangeBillServiceImpl implements RfidChangeBillService {
@Override
public
RfidChangeBill
updateEntity
(
RfidChangeBill
libraryWarningLogEntity
)
{
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
libraryWarningLogEntity
),
libraryWarningLogEntity
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
libraryWarningLogEntity
),
libraryWarningLogEntity
.
getRecordId
());
return
rfidChangeBillDao
.
save
(
libraryWarningLogEntity
);
}
...
...
dev-rfid/src/main/java/com/tykj/dev/rfid/service/impl/RfidChangeLogServiceImpl.java
浏览文件 @
548d1b8d
...
...
@@ -2,7 +2,7 @@ package com.tykj.dev.rfid.service.impl;
import
com.github.wenhao.jpa.PredicateBuilder
;
import
com.github.wenhao.jpa.Specifications
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.misc.utils.JacksonUtil
;
import
com.tykj.dev.rfid.entity.domin.RfidChangeLog
;
...
...
@@ -44,7 +44,7 @@ public class RfidChangeLogServiceImpl implements RfidChangeLogService {
@Override
public
RfidChangeLog
addEntity
(
RfidChangeLog
rfidChangeLog
)
{
RfidChangeLog
rfidChangeLog1
=
rfidChangeLogDao
.
save
(
rfidChangeLog
);
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
rfidChangeLog1
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
rfidChangeLog1
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
rfidChangeLog1
.
setRecordId
(
recordId
);
return
updateEntity
(
rfidChangeLog1
);
...
...
@@ -52,7 +52,7 @@ public class RfidChangeLogServiceImpl implements RfidChangeLogService {
@Override
public
RfidChangeLog
updateEntity
(
RfidChangeLog
rfidChangeLog
)
{
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
rfidChangeLog
),
rfidChangeLog
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
rfidChangeLog
),
rfidChangeLog
.
getRecordId
());
return
rfidChangeLogDao
.
save
(
rfidChangeLog
);
}
...
...
dev-scrap/src/main/java/com/tykj/dev/device/scrap/service/impl/ScrapBillServiceImpl.java
浏览文件 @
548d1b8d
...
...
@@ -2,7 +2,7 @@ package com.tykj.dev.device.scrap.service.impl;
import
com.github.wenhao.jpa.PredicateBuilder
;
import
com.github.wenhao.jpa.Specifications
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.device.scrap.repository.ScrapBillDao
;
import
com.tykj.dev.device.scrap.service.ScrapBillService
;
...
...
@@ -34,7 +34,7 @@ public class ScrapBillServiceImpl implements ScrapBillService {
@Override
public
ScrapBill
add
(
ScrapBill
scrapBill
)
{
ScrapBill
scrapBill1
=
scrapBillDao
.
save
(
scrapBill
);
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
scrapBill1
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
scrapBill1
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
scrapBill1
.
setRecordId
(
recordId
);
return
update
(
scrapBill1
);
...
...
@@ -52,7 +52,7 @@ public class ScrapBillServiceImpl implements ScrapBillService {
@Override
public
ScrapBill
update
(
ScrapBill
scrapBill
)
{
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
scrapBill
),
scrapBill
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
scrapBill
),
scrapBill
.
getRecordId
());
return
scrapBillDao
.
save
(
scrapBill
);
}
...
...
dev-selfcheck/src/main/java/com/tykj/dev/device/selfcheck/service/impl/SelfCheckBillServiceImpl.java
浏览文件 @
548d1b8d
...
...
@@ -2,7 +2,7 @@ package com.tykj.dev.device.selfcheck.service.impl;
import
com.github.wenhao.jpa.PredicateBuilder
;
import
com.github.wenhao.jpa.Specifications
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.device.selfcheck.repository.SelfCheckBillDao
;
import
com.tykj.dev.device.selfcheck.service.SelfCheckBillService
;
...
...
@@ -40,7 +40,7 @@ public class SelfCheckBillServiceImpl implements SelfCheckBillService {
@Override
public
SelfCheckBill
addEntity
(
SelfCheckBill
selfExaminationBillEntity
)
{
SelfCheckBill
selfCheckBill
=
selfExaminationBillDao
.
save
(
selfExaminationBillEntity
);
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
selfCheckBill
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
selfCheckBill
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
selfCheckBill
.
setRecordId
(
recordId
);
return
update
(
selfCheckBill
);
...
...
@@ -48,7 +48,7 @@ public class SelfCheckBillServiceImpl implements SelfCheckBillService {
@Override
public
SelfCheckBill
update
(
SelfCheckBill
selfExaminationBillEntity
)
{
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
selfExaminationBillEntity
),
selfExaminationBillEntity
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
selfExaminationBillEntity
),
selfExaminationBillEntity
.
getRecordId
());
return
selfExaminationBillDao
.
save
(
selfExaminationBillEntity
);
}
...
...
dev-storage/src/main/java/com/tykj/dev/device/storage/service/impl/StorageBillServiceImpl.java
浏览文件 @
548d1b8d
package
com
.
tykj
.
dev
.
device
.
storage
.
service
.
impl
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.device.storage.repository.StorageBillDao
;
import
com.tykj.dev.device.storage.service.StorageBillService
;
...
...
@@ -29,7 +29,7 @@ public class StorageBillServiceImpl implements StorageBillService {
@Override
public
StorageBill
addEntity
(
StorageBill
storageBillEntity
)
{
StorageBill
storageBill
=
storageBillDao
.
save
(
storageBillEntity
);
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
storageBill
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
storageBill
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
storageBill
.
setRecordId
(
recordId
);
return
update
(
storageBill
);
...
...
@@ -47,7 +47,7 @@ public class StorageBillServiceImpl implements StorageBillService {
@Override
public
StorageBill
update
(
StorageBill
storageBillEntity
)
{
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
storageBillEntity
),
storageBillEntity
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
storageBillEntity
),
storageBillEntity
.
getRecordId
());
return
storageBillDao
.
save
(
storageBillEntity
);
}
...
...
dev-task/src/main/java/com/tykj/dev/device/task/service/impl/TaskLogServiceImpl.java
浏览文件 @
548d1b8d
package
com
.
tykj
.
dev
.
device
.
task
.
service
.
impl
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.device.task.repository.TaskLogDao
;
import
com.tykj.dev.device.task.service.TaskLogService
;
...
...
@@ -39,10 +39,10 @@ public class TaskLogServiceImpl implements TaskLogService {
@Override
public
TaskLogBto
addLog
(
TaskLogBto
taskLogBto
)
{
TaskLog
taskLog
=
taskLogDao
.
save
(
taskLogBto
.
toDo
());
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
taskLog
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
taskLog
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
taskLog
.
setRecordId
(
recordId
);
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
taskLog
),
taskLog
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
taskLog
),
taskLog
.
getRecordId
());
return
taskLogDao
.
save
(
taskLog
).
parse2bto
();
}
...
...
dev-task/src/main/java/com/tykj/dev/device/task/service/impl/TaskServiceImpl.java
浏览文件 @
548d1b8d
...
...
@@ -2,7 +2,7 @@ package com.tykj.dev.device.task.service.impl;
import
com.github.wenhao.jpa.PredicateBuilder
;
import
com.github.wenhao.jpa.Specifications
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Text
;
import
com.tykj.dev.blockcha.subject.entity.Bc
Hash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.config.GlobalMap
;
import
com.tykj.dev.config.Log
;
...
...
@@ -272,7 +272,7 @@ public class TaskServiceImpl implements TaskService {
@Log
public
TaskBto
start
(
TaskBto
taskBto
)
{
Task
task
=
taskDao
.
save
(
taskBto
.
toDo
());
Bc
Text
bcText
=
blockChainUtil
.
sendText
(
1000
,
JacksonUtil
.
toJSon
(
task
));
Bc
Hash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
task
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
task
.
setRecordId
(
recordId
);
update
(
task
.
parse2Bto
());
...
...
@@ -284,7 +284,7 @@ public class TaskServiceImpl implements TaskService {
*/
@Override
public
Task
update
(
TaskBto
taskBto
)
{
blockChainUtil
.
append
Text
(
JacksonUtil
.
toJSon
(
taskBto
.
toDo
()),
taskBto
.
getRecordId
());
blockChainUtil
.
append
Hash
(
JacksonUtil
.
toJSon
(
taskBto
.
toDo
()),
taskBto
.
getRecordId
());
return
taskDao
.
save
(
taskBto
.
toDo
());
}
...
...
dev-usereport/src/main/java/com/tykj/dev/device/usereport/service/impl/DeviceUseReportServiceImpl.java
浏览文件 @
548d1b8d
...
...
@@ -2,6 +2,8 @@ package com.tykj.dev.device.usereport.service.impl;
import
com.github.wenhao.jpa.PredicateBuilder
;
import
com.github.wenhao.jpa.Specifications
;
import
com.tykj.dev.blockcha.subject.entity.BcHash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.device.allot.repository.AllotBillDao
;
import
com.tykj.dev.device.allot.subject.domin.AllotBill
;
import
com.tykj.dev.device.destroy.entity.domain.DeviceDestroyBill
;
...
...
@@ -29,6 +31,7 @@ import com.tykj.dev.device.usereport.subject.domin.DeviceUseReport;
import
com.tykj.dev.device.usereport.subject.vo.DeviceStatistics
;
import
com.tykj.dev.device.usereport.subject.vo.DeviceUseReportCreateVo
;
import
com.tykj.dev.device.usereport.subject.vo.DeviceUseReportSelectVo
;
import
com.tykj.dev.misc.utils.JacksonUtil
;
import
com.tykj.dev.misc.utils.StringSplitUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.domain.Page
;
...
...
@@ -80,9 +83,16 @@ public class DeviceUseReportServiceImpl implements DeviceUseReportService {
@Autowired
private
RepairDetailDao
repairDetailDao
;
@Autowired
private
BlockChainUtil
blockChainUtil
;
@Override
public
DeviceUseReport
addEntity
(
DeviceUseReport
deviceUseReportEntity
)
{
return
deviceUseReportDao
.
save
(
deviceUseReportEntity
);
DeviceUseReport
deviceUseReport
=
deviceUseReportDao
.
save
(
deviceUseReportEntity
);
BcHash
bcText
=
blockChainUtil
.
sendHash
(
1000
,
JacksonUtil
.
toJSon
(
deviceUseReport
));
String
recordId
=
bcText
.
getData
().
getRecordID
();
deviceUseReport
.
setRecordId
(
recordId
);
return
update
(
deviceUseReport
);
}
@Override
...
...
@@ -98,6 +108,7 @@ public class DeviceUseReportServiceImpl implements DeviceUseReportService {
@Override
public
DeviceUseReport
update
(
DeviceUseReport
deviceUseReportEntity
)
{
blockChainUtil
.
appendHash
(
JacksonUtil
.
toJSon
(
deviceUseReportEntity
),
deviceUseReportEntity
.
getRecordId
());
return
deviceUseReportDao
.
save
(
deviceUseReportEntity
);
}
...
...
dev-usereport/src/main/java/com/tykj/dev/device/usereport/subject/domin/DeviceUseReport.java
浏览文件 @
548d1b8d
...
...
@@ -78,4 +78,6 @@ public class DeviceUseReport {
@ApiModelProperty
(
value
=
"删除标记(0:未删除,1:已删除)"
)
private
Integer
deleteTag
=
0
;
@ApiModelProperty
(
value
=
"区块链记录id"
)
private
String
recordId
;
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论