Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
36dcd5e6
提交
36dcd5e6
authored
11月 05, 2020
作者:
邓砥奕
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[签章]提前生成并保存电子签章id
上级
7fcff66f
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
24 行增加
和
31 行删除
+24
-31
AllotBackBillController.java
.../dev/device/allot/controller/AllotBackBillController.java
+3
-4
AllotBillController.java
...tykj/dev/device/allot/controller/AllotBillController.java
+7
-8
RepairController.java
...m/tykj/dev/device/repair/controller/RepairController.java
+14
-19
没有找到文件。
dev-allot/src/main/java/com/tykj/dev/device/allot/controller/AllotBackBillController.java
浏览文件 @
36dcd5e6
...
@@ -100,11 +100,13 @@ public class AllotBackBillController {
...
@@ -100,11 +100,13 @@ public class AllotBackBillController {
});
});
//生成发件单位电子签章id
//生成发件单位电子签章id
Long
signId
=
snowflake
.
creatNextId
();
Long
signId
=
snowflake
.
creatNextId
();
Long
signId2
=
snowflake
.
creatNextId
();
//存储退回单
//存储退回单
AllotBackBill
allotBackBill
=
allotBackBillSaveVo
.
toDo
();
AllotBackBill
allotBackBill
=
allotBackBillSaveVo
.
toDo
();
allotBackBill
.
setAllotBillId
(
taskBto
.
getBillId
());
allotBackBill
.
setAllotBillId
(
taskBto
.
getBillId
());
allotBackBill
.
setSendUseraId
(
userUtils
.
getCurrentUserId
());
allotBackBill
.
setSendUseraId
(
userUtils
.
getCurrentUserId
());
allotBackBill
.
setLeftSignatureId
(
signId
.
toString
());
allotBackBill
.
setLeftSignatureId
(
signId
.
toString
());
allotBackBill
.
setRightSignatureId
(
signId2
.
toString
());
AllotBackBill
allotBackBill1
=
allotBackBillService
.
addEntity
(
allotBackBill
);
AllotBackBill
allotBackBill1
=
allotBackBillService
.
addEntity
(
allotBackBill
);
Calendar
calendar
=
Calendar
.
getInstance
();
Calendar
calendar
=
Calendar
.
getInstance
();
calendar
.
setTime
(
allotBackBill1
.
getCreateTime
());
calendar
.
setTime
(
allotBackBill1
.
getCreateTime
());
...
@@ -204,11 +206,8 @@ public class AllotBackBillController {
...
@@ -204,11 +206,8 @@ public class AllotBackBillController {
if
(
allotReceiveConfirmVo
.
getStatus
()
==
0
)
{
if
(
allotReceiveConfirmVo
.
getStatus
()
==
0
)
{
//业务完结
//业务完结
taskService
.
update
(
taskService
.
moveToEnd
(
taskBto
));
taskService
.
update
(
taskService
.
moveToEnd
(
taskBto
));
//生成接收单位电子签章id
Long
signId
=
snowflake
.
creatNextId
();
//更新账单
//更新账单
allotBackBill
.
setBackStatus
(
3
);
allotBackBill
.
setBackStatus
(
3
);
allotBackBill
.
setRightSignatureId
(
signId
.
toString
());
allotBackBillService
.
update
(
allotBackBill
);
allotBackBillService
.
update
(
allotBackBill
);
for
(
String
s
:
strings
)
{
for
(
String
s
:
strings
)
{
//改变接收无误的装备的状态
//改变接收无误的装备的状态
...
@@ -225,7 +224,7 @@ public class AllotBackBillController {
...
@@ -225,7 +224,7 @@ public class AllotBackBillController {
}
}
log
.
info
(
"[配发模块]:配发退回审核成功并入库"
);
log
.
info
(
"[配发模块]:配发退回审核成功并入库"
);
myWebSocket
.
sendMessage1
();
myWebSocket
.
sendMessage1
();
return
ResponseEntity
.
ok
(
signId
.
toString
()
);
return
ResponseEntity
.
ok
(
"审核成功"
);
}
}
//审核失败
//审核失败
if
(
allotReceiveConfirmVo
.
getStatus
()
==
1
)
{
if
(
allotReceiveConfirmVo
.
getStatus
()
==
1
)
{
...
...
dev-allot/src/main/java/com/tykj/dev/device/allot/controller/AllotBillController.java
浏览文件 @
36dcd5e6
...
@@ -90,6 +90,11 @@ public class AllotBillController {
...
@@ -90,6 +90,11 @@ public class AllotBillController {
int
year
=
calendar
.
get
(
Calendar
.
YEAR
);
int
year
=
calendar
.
get
(
Calendar
.
YEAR
);
String
num
=
"NO:第"
+
year
+
"PF"
+
allotBillEntity
.
getId
()
+
"号"
;
String
num
=
"NO:第"
+
year
+
"PF"
+
allotBillEntity
.
getId
()
+
"号"
;
allotBillEntity
.
setNum
(
num
);
allotBillEntity
.
setNum
(
num
);
//生成电子签章id
Long
signId
=
snowflake
.
creatNextId
();
Long
signId2
=
snowflake
.
creatNextId
();
allotBillEntity
.
setLeftSignatureId
(
signId
.
toString
());
allotBillEntity
.
setRightSignatureId
(
signId2
.
toString
());
allotBillService
.
update
(
allotBillEntity
);
allotBillService
.
update
(
allotBillEntity
);
Integer
billId
=
allotBillEntity
.
getId
();
Integer
billId
=
allotBillEntity
.
getId
();
Integer
userId
=
userUtils
.
getCurrentUserId
();
Integer
userId
=
userUtils
.
getCurrentUserId
();
...
@@ -127,9 +132,6 @@ public class AllotBillController {
...
@@ -127,9 +132,6 @@ public class AllotBillController {
AllotBill
allotBillEntity
=
allotBillService
.
getOne
(
taskBto
.
getBillId
());
AllotBill
allotBillEntity
=
allotBillService
.
getOne
(
taskBto
.
getBillId
());
allotBillEntity
.
setAllotStatus
(
2
);
allotBillEntity
.
setAllotStatus
(
2
);
allotBillEntity
.
setSendTime
(
TimestampUtil
.
getCurrentTimestamp
());
allotBillEntity
.
setSendTime
(
TimestampUtil
.
getCurrentTimestamp
());
//生成发起单位电子签章id
Long
signId
=
snowflake
.
creatNextId
();
allotBillEntity
.
setLeftSignatureId
(
signId
.
toString
());
allotBillService
.
update
(
allotBillEntity
);
allotBillService
.
update
(
allotBillEntity
);
//task推至下一阶段
//task推至下一阶段
TaskBto
taskBto1
=
taskService
.
moveToNext
(
taskBto
,
allotBillEntity
.
getReceiveUseraId
());
TaskBto
taskBto1
=
taskService
.
moveToNext
(
taskBto
,
allotBillEntity
.
getReceiveUseraId
());
...
@@ -153,7 +155,7 @@ public class AllotBillController {
...
@@ -153,7 +155,7 @@ public class AllotBillController {
}
}
log
.
info
(
"[配发模块]:配发审核成功并出库"
);
log
.
info
(
"[配发模块]:配发审核成功并出库"
);
myWebSocket
.
sendMessage1
();
myWebSocket
.
sendMessage1
();
return
ResponseEntity
.
ok
(
signId
.
toString
()
);
return
ResponseEntity
.
ok
(
"审核成功"
);
}
}
//2.审核失败
//2.审核失败
if
(
allotBillConfirmVo
.
getStatus
()
==
1
)
{
if
(
allotBillConfirmVo
.
getStatus
()
==
1
)
{
...
@@ -246,11 +248,8 @@ public class AllotBillController {
...
@@ -246,11 +248,8 @@ public class AllotBillController {
if
(
allotReceiveConfirmVo
.
getStatus
()
==
0
)
{
if
(
allotReceiveConfirmVo
.
getStatus
()
==
0
)
{
//业务完结
//业务完结
taskService
.
update
(
taskService
.
moveToEnd
(
taskBto
));
taskService
.
update
(
taskService
.
moveToEnd
(
taskBto
));
//生成接收单位电子签章id
Long
signId
=
snowflake
.
creatNextId
();
//更新账单
//更新账单
allotBillEntity
.
setAllotStatus
(
5
);
allotBillEntity
.
setAllotStatus
(
5
);
allotBillEntity
.
setRightSignatureId
(
signId
.
toString
());
allotBillService
.
update
(
allotBillEntity
);
allotBillService
.
update
(
allotBillEntity
);
for
(
String
s
:
strings
)
{
for
(
String
s
:
strings
)
{
//改变接收无误的装备的状态
//改变接收无误的装备的状态
...
@@ -267,7 +266,7 @@ public class AllotBillController {
...
@@ -267,7 +266,7 @@ public class AllotBillController {
}
}
log
.
info
(
"[配发模块]:审核成功并入库"
);
log
.
info
(
"[配发模块]:审核成功并入库"
);
myWebSocket
.
sendMessage1
();
myWebSocket
.
sendMessage1
();
return
ResponseEntity
.
ok
(
signId
.
toString
()
);
return
ResponseEntity
.
ok
(
"审核成功"
);
}
}
//审核失败
//审核失败
if
(
allotReceiveConfirmVo
.
getStatus
()
==
1
)
{
if
(
allotReceiveConfirmVo
.
getStatus
()
==
1
)
{
...
...
dev-repair/src/main/java/com/tykj/dev/device/repair/controller/RepairController.java
浏览文件 @
36dcd5e6
...
@@ -120,6 +120,11 @@ public class RepairController {
...
@@ -120,6 +120,11 @@ public class RepairController {
}
}
repairBill
.
setStartUserA
(
userPublicService
.
getOne
(
repairBillSaveVo
.
getStartUseraId
()).
getName
());
repairBill
.
setStartUserA
(
userPublicService
.
getOne
(
repairBillSaveVo
.
getStartUseraId
()).
getName
());
repairBill
.
setStartUserB
(
userPublicService
.
getOne
(
repairBillSaveVo
.
getStartUserbId
()).
getName
());
repairBill
.
setStartUserB
(
userPublicService
.
getOne
(
repairBillSaveVo
.
getStartUserbId
()).
getName
());
//生成单位电子签章id
Long
signId
=
snowflake
.
creatNextId
();
Long
signId2
=
snowflake
.
creatNextId
();
repairBill
.
setLeftSignatureId
(
signId
.
toString
());
repairBill
.
setRightSignatureId
(
signId2
.
toString
());
RepairBill
repairBill1
=
deviceRepairBillService
.
addEntity
(
repairBill
);
RepairBill
repairBill1
=
deviceRepairBillService
.
addEntity
(
repairBill
);
Calendar
calendar
=
Calendar
.
getInstance
();
Calendar
calendar
=
Calendar
.
getInstance
();
String
s1
=
"NO:第"
+
calendar
.
get
(
Calendar
.
YEAR
)
+
"WX"
+
repairBill1
.
getId
()
+
"号"
;
String
s1
=
"NO:第"
+
calendar
.
get
(
Calendar
.
YEAR
)
+
"WX"
+
repairBill1
.
getId
()
+
"号"
;
...
@@ -250,9 +255,6 @@ public class RepairController {
...
@@ -250,9 +255,6 @@ public class RepairController {
repairBill
.
setRepairStatus
(
2
);
repairBill
.
setRepairStatus
(
2
);
repairSendBill
.
setRepairStatus
(
2
);
repairSendBill
.
setRepairStatus
(
2
);
}
}
//生成发件单位电子签章id
Long
signId
=
snowflake
.
creatNextId
();
repairBill
.
setLeftSignatureId
(
signId
.
toString
());
deviceRepairBillService
.
update
(
repairBill
);
deviceRepairBillService
.
update
(
repairBill
);
deviceRepairSendBillService
.
update
(
repairSendBill
);
deviceRepairSendBillService
.
update
(
repairSendBill
);
//修改装备状态,存装备日志
//修改装备状态,存装备日志
...
@@ -272,7 +274,7 @@ public class RepairController {
...
@@ -272,7 +274,7 @@ public class RepairController {
}
}
}
}
myWebSocket
.
sendMessage1
();
myWebSocket
.
sendMessage1
();
return
ResultUtil
.
success
(
signId
.
toString
()
);
return
ResultUtil
.
success
(
"审核成功"
);
}
}
//审核失败
//审核失败
if
(
deviceRepairConfirmVo
.
getStatus
()
==
1
)
{
if
(
deviceRepairConfirmVo
.
getStatus
()
==
1
)
{
...
@@ -410,9 +412,6 @@ public class RepairController {
...
@@ -410,9 +412,6 @@ public class RepairController {
//修改维修单,送修单状态
//修改维修单,送修单状态
repairBill
.
setRepairStatus
(
4
);
repairBill
.
setRepairStatus
(
4
);
repairSendBill
.
setRepairStatus
(
5
);
repairSendBill
.
setRepairStatus
(
5
);
//生成收件单位签章id
Long
signId
=
snowflake
.
creatNextId
();
repairBill
.
setRightSignatureId
(
signId
.
toString
());
deviceRepairBillService
.
update
(
repairBill
);
deviceRepairBillService
.
update
(
repairBill
);
deviceRepairSendBillService
.
update
(
repairSendBill
);
deviceRepairSendBillService
.
update
(
repairSendBill
);
for
(
String
s
:
strings
)
{
for
(
String
s
:
strings
)
{
...
@@ -434,7 +433,7 @@ public class RepairController {
...
@@ -434,7 +433,7 @@ public class RepairController {
deviceRepairDetailService
.
update
(
deviceRepairDetailEntity
);
deviceRepairDetailService
.
update
(
deviceRepairDetailEntity
);
});
});
myWebSocket
.
sendMessage1
();
myWebSocket
.
sendMessage1
();
return
ResultUtil
.
success
(
signId
.
toString
()
);
return
ResultUtil
.
success
(
"审核成功"
);
}
}
//审核失败
//审核失败
if
(
repairConfirmVo
.
getStatus
()
==
1
)
{
if
(
repairConfirmVo
.
getStatus
()
==
1
)
{
...
@@ -529,6 +528,11 @@ public class RepairController {
...
@@ -529,6 +528,11 @@ public class RepairController {
Calendar
calendar
=
Calendar
.
getInstance
();
Calendar
calendar
=
Calendar
.
getInstance
();
String
s1
=
"NO:第"
+
calendar
.
get
(
Calendar
.
YEAR
)
+
"HZ"
+
repairBackBill
.
getId
()
+
"号"
;
String
s1
=
"NO:第"
+
calendar
.
get
(
Calendar
.
YEAR
)
+
"HZ"
+
repairBackBill
.
getId
()
+
"号"
;
repairBackBill
.
setDocNum
(
s1
);
repairBackBill
.
setDocNum
(
s1
);
//生成单位签章id
Long
signId
=
snowflake
.
creatNextId
();
Long
signId2
=
snowflake
.
creatNextId
();
repairBackBill
.
setLeftSignatureId
(
signId
.
toString
());
repairBackBill
.
setRightSignatureId
(
signId2
.
toString
());
RepairBackBill
deviceRepairBackBillEntity1
=
deviceRepairBackBillService
.
save
(
repairBackBill
);
RepairBackBill
deviceRepairBackBillEntity1
=
deviceRepairBackBillService
.
save
(
repairBackBill
);
//发起维修退回子业务
//发起维修退回子业务
List
<
Integer
>
userIds
=
new
ArrayList
<>();
List
<
Integer
>
userIds
=
new
ArrayList
<>();
...
@@ -583,9 +587,6 @@ public class RepairController {
...
@@ -583,9 +587,6 @@ public class RepairController {
if
(
repairConfirmVo
.
getStatus
()
==
0
)
{
if
(
repairConfirmVo
.
getStatus
()
==
0
)
{
//改变账单状态
//改变账单状态
repairBackBill
.
setBackStatus
(
2
);
repairBackBill
.
setBackStatus
(
2
);
//生成发件单位签章id
Long
signId
=
snowflake
.
creatNextId
();
repairBackBill
.
setLeftSignatureId
(
signId
.
toString
());
deviceRepairBackBillService
.
update
(
repairBackBill
);
deviceRepairBackBillService
.
update
(
repairBackBill
);
if
(
idList
.
size
()
>
0
)
{
if
(
idList
.
size
()
>
0
)
{
for
(
Integer
id
:
idList
)
{
for
(
Integer
id
:
idList
)
{
...
@@ -612,7 +613,7 @@ public class RepairController {
...
@@ -612,7 +613,7 @@ public class RepairController {
// TaskLogBto taskLogBto = new TaskLogBto(taskBto.getId(),"维修退回审核成功并出库",null);
// TaskLogBto taskLogBto = new TaskLogBto(taskBto.getId(),"维修退回审核成功并出库",null);
// taskLogService.addLog(taskLogBto);
// taskLogService.addLog(taskLogBto);
myWebSocket
.
sendMessage1
();
myWebSocket
.
sendMessage1
();
return
ResultUtil
.
success
(
signId
.
toString
()
);
return
ResultUtil
.
success
(
"审核成功"
);
}
}
//审核失败
//审核失败
if
(
repairConfirmVo
.
getStatus
()
==
1
)
{
if
(
repairConfirmVo
.
getStatus
()
==
1
)
{
...
@@ -760,14 +761,8 @@ public class RepairController {
...
@@ -760,14 +761,8 @@ public class RepairController {
if
(
repairConfirmVo
.
getStatus
()
==
0
)
{
if
(
repairConfirmVo
.
getStatus
()
==
0
)
{
//业务完结
//业务完结
taskService
.
update
(
taskService
.
moveToEnd
(
taskBto
));
taskService
.
update
(
taskService
.
moveToEnd
(
taskBto
));
//存业务日志
// TaskLogBto taskLogBto = new TaskLogBto(taskBto.getId(),"维修退回装备入库审核成功",null);
// taskLogService.addLog(taskLogBto);
//更新退回单状态
//更新退回单状态
repairBackBill
.
setBackStatus
(
5
);
repairBackBill
.
setBackStatus
(
5
);
//生成接收单位签章id
Long
signId
=
snowflake
.
creatNextId
();
repairBackBill
.
setRightSignatureId
(
signId
.
toString
());
deviceRepairBackBillService
.
update
(
repairBackBill
);
deviceRepairBackBillService
.
update
(
repairBackBill
);
List
<
Integer
>
integerList
=
new
ArrayList
<>();
List
<
Integer
>
integerList
=
new
ArrayList
<>();
for
(
String
s
:
strings
)
{
for
(
String
s
:
strings
)
{
...
@@ -795,7 +790,7 @@ public class RepairController {
...
@@ -795,7 +790,7 @@ public class RepairController {
repairDetails
.
forEach
(
repairDetail
->
repairDetail
.
setRepairStatus
(
5
));
repairDetails
.
forEach
(
repairDetail
->
repairDetail
.
setRepairStatus
(
5
));
});
});
myWebSocket
.
sendMessage1
();
myWebSocket
.
sendMessage1
();
return
ResultUtil
.
success
(
signId
.
toString
()
);
return
ResultUtil
.
success
(
"审核成功"
);
}
}
//审核失败
//审核失败
if
(
repairConfirmVo
.
getStatus
()
==
1
)
{
if
(
repairConfirmVo
.
getStatus
()
==
1
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论