Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
5861057a
提交
5861057a
authored
12月 29, 2021
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(维修模块,配发模块,退回模块): 新增装备日志,判断是签章还是签字
新增装备日志,判断是签章还是签字
上级
3e1d3f50
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
60 行增加
和
11 行删除
+60
-11
AllotBillController.java
...tykj/dev/device/allot/controller/AllotBillController.java
+17
-4
BackController.java
.../com/tykj/dev/device/allot/controller/BackController.java
+16
-3
RepairController.java
...m/tykj/dev/device/repair/controller/RepairController.java
+27
-4
没有找到文件。
dev-allot/src/main/java/com/tykj/dev/device/allot/controller/AllotBillController.java
浏览文件 @
5861057a
...
@@ -354,9 +354,15 @@ public class AllotBillController {
...
@@ -354,9 +354,15 @@ public class AllotBillController {
//改变装备管理状态为不在本单位
//改变装备管理状态为不在本单位
deviceLibraryEntity
.
setManageStatus
(
0
);
deviceLibraryEntity
.
setManageStatus
(
0
);
deviceLibraryService
.
update
(
deviceLibraryEntity
);
deviceLibraryService
.
update
(
deviceLibraryEntity
);
//存装备日志
//存装备日志
判断是签字还是签章
// DeviceLogDto deviceLogDto = new DeviceLogDto(id, "对" + allotBillEntity.getReceiveUnit() + "发起配发", fileVoList, saveEntity.getId(), null);
// DeviceLogDto deviceLogDto = new DeviceLogDto(id, "对" + allotBillEntity.getReceiveUnit() + "发起配发", fileVoList, saveEntity.getId(), null);
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
id
,
"对"
+
allotBillEntity
.
getReceiveUnit
()
+
"发起配发"
,
fileVoList
,
saveEntity
.
getId
(),
saveEntity
.
getId
());
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
();
if
(
allotBillSaveVo
.
getIsSigned
()
==
0
){
//签字配发
deviceLogDto
=
new
DeviceLogDto
(
id
,
"对"
+
allotBillEntity
.
getReceiveUnit
()
+
"发起配发(签字出库)"
,
fileVoList
,
saveEntity
.
getId
(),
saveEntity
.
getId
());
}
else
{
deviceLogDto
=
new
DeviceLogDto
(
id
,
"对"
+
allotBillEntity
.
getReceiveUnit
()
+
"发起配发(签章出库)"
,
fileVoList
,
saveEntity
.
getId
(),
saveEntity
.
getId
());
}
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLogService
.
addLog
(
deviceLogDto
);
}
}
}
}
...
@@ -498,9 +504,16 @@ public class AllotBillController {
...
@@ -498,9 +504,16 @@ public class AllotBillController {
if
(
allotReceiveVo
.
getMap
().
get
(
id
)
!=
null
)
{
if
(
allotReceiveVo
.
getMap
().
get
(
id
)
!=
null
)
{
deviceLibraryEntity
.
setProdNumber
(
allotReceiveVo
.
getMap
().
get
(
id
));
deviceLibraryEntity
.
setProdNumber
(
allotReceiveVo
.
getMap
().
get
(
id
));
}
}
//存装备日志
//判断是签字入库还是签章入库
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
();
if
(
allotReceiveVo
.
getRightSignatureId
()
!=
null
&&
!
""
.
equals
(
allotReceiveVo
.
getRightSignatureId
())){
//签章
deviceLogDto
=
new
DeviceLogDto
(
id
,
"接收并发起入库(签章入库)"
,
fileVoList
,
taskBto
.
getId
(),
taskBto
.
getId
());
}
else
{
//存装备日志
// DeviceLogDto deviceLogDto = new DeviceLogDto(id, "接收并发起入库", fileVoList, taskBto.getId(), null);
// DeviceLogDto deviceLogDto = new DeviceLogDto(id, "接收并发起入库", fileVoList, taskBto.getId(), null);
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
id
,
"接收并发起入库"
,
fileVoList
,
taskBto
.
getId
(),
taskBto
.
getId
());
deviceLogDto
=
new
DeviceLogDto
(
id
,
"接收并发起入库(签字入库)"
,
fileVoList
,
taskBto
.
getId
(),
taskBto
.
getId
());
}
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLibraryService
.
update
(
deviceLibraryEntity
);
deviceLibraryService
.
update
(
deviceLibraryEntity
);
}
}
...
...
dev-allot/src/main/java/com/tykj/dev/device/allot/controller/BackController.java
浏览文件 @
5861057a
...
@@ -207,9 +207,15 @@ public class BackController {
...
@@ -207,9 +207,15 @@ public class BackController {
// deviceLibraryEntity.setLifeStatus(6);
// deviceLibraryEntity.setLifeStatus(6);
deviceLibraryEntity
.
setManageStatus
(
0
);
deviceLibraryEntity
.
setManageStatus
(
0
);
deviceLibraryService
.
update
(
deviceLibraryEntity
);
deviceLibraryService
.
update
(
deviceLibraryEntity
);
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
();
if
(
allotBillSaveVo
.
getIsSigned
()
==
0
){
//签字退回
deviceLogDto
=
new
DeviceLogDto
(
id
,
"对"
+
allotBackBill
.
getReceiveUnit
()
+
"发起退回(签字出库)"
,
fileVoList
,
saveEntity
.
getId
(),
saveEntity
.
getId
());
}
else
{
deviceLogDto
=
new
DeviceLogDto
(
id
,
"对"
+
allotBackBill
.
getReceiveUnit
()
+
"发起退回(签章出库)"
,
fileVoList
,
saveEntity
.
getId
(),
saveEntity
.
getId
());
}
//存装备日志
//存装备日志
// DeviceLogDto deviceLogDto = new DeviceLogDto(id, "对" + allotBackBill.getReceiveUnit() + "发起退回", fileVoList,saveEntity.getId(),null);
// DeviceLogDto deviceLogDto = new DeviceLogDto(id, "对" + allotBackBill.getReceiveUnit() + "发起退回", fileVoList,saveEntity.getId(),null);
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
id
,
"对"
+
allotBackBill
.
getReceiveUnit
()
+
"发起退回"
,
fileVoList
,
saveEntity
.
getId
(),
saveEntity
.
getId
());
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLogService
.
addLog
(
deviceLogDto
);
}
}
}
}
...
@@ -314,9 +320,16 @@ public class BackController {
...
@@ -314,9 +320,16 @@ public class BackController {
deviceLibraryEntity
.
setLifeStatus
(
2
);
deviceLibraryEntity
.
setLifeStatus
(
2
);
deviceLibraryEntity
.
setOwnUnit
(
userUtils
.
getCurrentUserUnitName
());
deviceLibraryEntity
.
setOwnUnit
(
userUtils
.
getCurrentUserUnitName
());
deviceLibraryEntity
.
setManageStatus
(
1
);
deviceLibraryEntity
.
setManageStatus
(
1
);
//存装备日志
//判断是签字入库还是签章入库
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
();
if
(
allotBackReceiveVo
.
getRightSignatureId
()!=
null
&&!
""
.
equals
(
allotBackReceiveVo
.
getRightSignatureId
()))
{
deviceLogDto
=
new
DeviceLogDto
(
id
,
"接收并发起入库(签章入库)"
,
fileVoList
,
taskBto
.
getId
(),
taskBto
.
getId
());
}
else
{
//存装备日志
// DeviceLogDto deviceLogDto = new DeviceLogDto(id, "接收并发起入库", fileVoList,taskBto.getId(),null);
// DeviceLogDto deviceLogDto = new DeviceLogDto(id, "接收并发起入库", fileVoList,taskBto.getId(),null);
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
id
,
"接收并发起入库"
,
fileVoList
,
taskBto
.
getId
(),
taskBto
.
getId
());
deviceLogDto
=
new
DeviceLogDto
(
id
,
"接收并发起入库(签字入库)"
,
fileVoList
,
taskBto
.
getId
(),
taskBto
.
getId
());
}
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLibraryService
.
update
(
deviceLibraryEntity
);
deviceLibraryService
.
update
(
deviceLibraryEntity
);
}
}
...
...
dev-repair/src/main/java/com/tykj/dev/device/repair/controller/RepairController.java
浏览文件 @
5861057a
...
@@ -601,7 +601,13 @@ public class RepairController {
...
@@ -601,7 +601,13 @@ public class RepairController {
//存装备日志
//存装备日志
// DeviceLogDto deviceLogDto = new DeviceLogDto(d.getDeviceId(), "向" + repairBillSaveVo.getReceiveUnit() + "发起装备维修", null, null);
// DeviceLogDto deviceLogDto = new DeviceLogDto(d.getDeviceId(), "向" + repairBillSaveVo.getReceiveUnit() + "发起装备维修", null, null);
// DeviceLogDto deviceLogDto = new DeviceLogDto(d.getDeviceId(), "向" + repairBillSaveVo.getReceiveUnit() + "发起装备维修", null, null);
// DeviceLogDto deviceLogDto = new DeviceLogDto(d.getDeviceId(), "向" + repairBillSaveVo.getReceiveUnit() + "发起装备维修", null, null);
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
d
.
getDeviceId
(),
"向"
+
repairBillSaveVo
.
getReceiveUnit
()
+
"发起装备维修"
,
null
,
null
,
saveEntity
.
getId
());
DeviceLogDto
deviceLogDto
;
if
(
repairBillSaveVo
.
getLeftSignatureId
()
!=
null
&&
""
.
equals
(
repairBillSaveVo
.
getLeftSignatureId
())){
//说明是签章出库
deviceLogDto
=
new
DeviceLogDto
(
d
.
getDeviceId
(),
"向"
+
repairBillSaveVo
.
getReceiveUnit
()
+
"发起装备维修(签章出库)"
,
null
,
null
,
saveEntity
.
getId
());
}
else
{
deviceLogDto
=
new
DeviceLogDto
(
d
.
getDeviceId
(),
"向"
+
repairBillSaveVo
.
getReceiveUnit
()
+
"发起装备维修(签字出库)"
,
null
,
null
,
saveEntity
.
getId
());
}
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLogService
.
addLog
(
deviceLogDto
);
}
}
// //gg
// //gg
...
@@ -772,7 +778,11 @@ public class RepairController {
...
@@ -772,7 +778,11 @@ public class RepairController {
deviceLibraryEntity
.
setManageStatus
(
1
);
deviceLibraryEntity
.
setManageStatus
(
1
);
//存装备日志
//存装备日志
// DeviceLogDto deviceLogDto = new DeviceLogDto(id, "接收并发起入库", fileVoList, taskBto.getId());
// DeviceLogDto deviceLogDto = new DeviceLogDto(id, "接收并发起入库", fileVoList, taskBto.getId());
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
id
,
"接收并发起入库"
,
fileVoList
,
taskBto
.
getId
(),
taskBto
.
getId
());
DeviceLogDto
deviceLogDto
;
if
(
repairReceiveVo
.
getRightSignatureId
()
!=
null
&&
""
.
equals
(
repairReceiveVo
.
getRightSignatureId
())){
deviceLogDto
=
new
DeviceLogDto
(
id
,
"接收并发起入库(签章入库)"
,
fileVoList
,
taskBto
.
getId
(),
taskBto
.
getId
());
}
deviceLogDto
=
new
DeviceLogDto
(
id
,
"接收并发起入库(签字入库)"
,
fileVoList
,
taskBto
.
getId
(),
taskBto
.
getId
());
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLibraryService
.
update
(
deviceLibraryEntity
);
deviceLibraryService
.
update
(
deviceLibraryEntity
);
}
}
...
@@ -1125,7 +1135,15 @@ public class RepairController {
...
@@ -1125,7 +1135,15 @@ public class RepairController {
deviceLibraryEntity
.
setLifeStatus
(
4
);
deviceLibraryEntity
.
setLifeStatus
(
4
);
deviceLibraryEntity
.
setManageStatus
(
0
);
deviceLibraryEntity
.
setManageStatus
(
0
);
// DeviceLogDto deviceLogDto = new DeviceLogDto(d.getDeviceId(), "向" + repairBackBillSaveVo.getReceiveUnit() + "退还维修装备", fileVoList, taskBto2.getId());
// DeviceLogDto deviceLogDto = new DeviceLogDto(d.getDeviceId(), "向" + repairBackBillSaveVo.getReceiveUnit() + "退还维修装备", fileVoList, taskBto2.getId());
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
d
.
getDeviceId
(),
"向"
+
repairBackBillSaveVo
.
getReceiveUnit
()
+
"退还维修装备"
,
fileVoList
,
taskBto2
.
getId
(),
taskBto2
.
getId
());
//判断是签字还是签章
DeviceLogDto
deviceLogDto
;
if
(
repairBackBillSaveVo
.
getLeftSignatureId
()!=
null
&&
""
.
equals
(
repairBackBillSaveVo
.
getLeftSignatureId
())){
deviceLogDto
=
new
DeviceLogDto
(
d
.
getDeviceId
(),
"向"
+
repairBackBillSaveVo
.
getReceiveUnit
()
+
"退还维修装备(签章)"
,
fileVoList
,
taskBto2
.
getId
(),
taskBto2
.
getId
());
}
else
{
deviceLogDto
=
new
DeviceLogDto
(
d
.
getDeviceId
(),
"向"
+
repairBackBillSaveVo
.
getReceiveUnit
()
+
"退还维修装备(签字)"
,
fileVoList
,
taskBto2
.
getId
(),
taskBto2
.
getId
());
}
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLogService
.
addLog
(
deviceLogDto
);
}
}
String
deviceIdDetail
=
repairBackBill
.
getBackCheckDetail
();
String
deviceIdDetail
=
repairBackBill
.
getBackCheckDetail
();
...
@@ -1351,7 +1369,12 @@ public class RepairController {
...
@@ -1351,7 +1369,12 @@ public class RepairController {
deviceLibraries
.
add
(
deviceLibraryEntity
);
deviceLibraries
.
add
(
deviceLibraryEntity
);
//添加装备日志
//添加装备日志
// DeviceLogDto deviceLogDto = new DeviceLogDto(id, "维修退回装备接收并发起入库", fileVoList, taskBto2.getId());
// DeviceLogDto deviceLogDto = new DeviceLogDto(id, "维修退回装备接收并发起入库", fileVoList, taskBto2.getId());
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
id
,
"维修退回装备接收并发起入库"
,
fileVoList
,
taskBto2
.
getId
(),
taskBto2
.
getId
());
DeviceLogDto
deviceLogDto
;
if
(
repairReceiveVo
.
getRightSignatureId
()
!=
null
&&
""
.
equals
(
repairReceiveVo
.
getRightSignatureId
())){
deviceLogDto
=
new
DeviceLogDto
(
id
,
"维修退回装备接收并发起入库(签章入库)"
,
fileVoList
,
taskBto2
.
getId
(),
taskBto2
.
getId
());
}
else
{
deviceLogDto
=
new
DeviceLogDto
(
id
,
"维修退回装备接收并发起入库(签字入库)"
,
fileVoList
,
taskBto2
.
getId
(),
taskBto2
.
getId
());
}
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLibraryService
.
update
(
deviceLibraryEntity
);
deviceLibraryService
.
update
(
deviceLibraryEntity
);
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论