Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
bcbbe47c
提交
bcbbe47c
authored
6月 08, 2021
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改了title
上级
82dfeaf7
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
25 行增加
和
21 行删除
+25
-21
AllotBillController.java
...tykj/dev/device/allot/controller/AllotBillController.java
+4
-3
BackController.java
.../com/tykj/dev/device/allot/controller/BackController.java
+2
-2
AllotBill.java
...va/com/tykj/dev/device/allot/subject/domin/AllotBill.java
+1
-1
DeviceDestroyBusinessServiceImpl.java
...estroy/service/Impl/DeviceDestroyBusinessServiceImpl.java
+1
-1
RepairController.java
...m/tykj/dev/device/repair/controller/RepairController.java
+9
-9
DeviceRetiredController.java
...ev/device/retired/controller/DeviceRetiredController.java
+4
-1
SelfCheckController.java
.../dev/device/selfcheck/controller/SelfCheckController.java
+2
-2
StorageBillController.java
.../dev/device/storage/controller/StorageBillController.java
+2
-2
没有找到文件。
dev-allot/src/main/java/com/tykj/dev/device/allot/controller/AllotBillController.java
浏览文件 @
bcbbe47c
...
@@ -207,12 +207,13 @@ public class AllotBillController {
...
@@ -207,12 +207,13 @@ public class AllotBillController {
if
(
allotBillSaveVo
.
getAllotType
()==
1
)
{
if
(
allotBillSaveVo
.
getAllotType
()==
1
)
{
//直接发起
//直接发起
if
(
allotBillSaveVo
.
getTaskId
()
==
null
)
{
if
(
allotBillSaveVo
.
getTaskId
()
==
null
)
{
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
ALLOTING
.
id
,
"配发业务
"
,
null
,
"."
,
billId
,
3
,
userPublicService
.
findUnitIdByName
(
allotBillSaveVo
.
getReceiveUnit
()),
1
,
null
,
userIds
);
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
ALLOTING
.
id
,
allotBillSaveVo
.
getSendUnit
()+
"给"
+
allotBillSaveVo
.
getReceiveUnit
()+
"发起了配发
"
,
null
,
"."
,
billId
,
3
,
userPublicService
.
findUnitIdByName
(
allotBillSaveVo
.
getReceiveUnit
()),
1
,
null
,
userIds
);
saveEntity
=
taskService
.
start
(
taskBto
);
saveEntity
=
taskService
.
start
(
taskBto
);
}
}
//从草稿发起
//从草稿发起
else
{
else
{
TaskBto
taskBto
=
taskService
.
get
(
allotBillSaveVo
.
getTaskId
());
TaskBto
taskBto
=
taskService
.
get
(
allotBillSaveVo
.
getTaskId
());
taskBto
.
setTitle
(
allotBillSaveVo
.
getSendUnit
()+
"给"
+
allotBillSaveVo
.
getReceiveUnit
()+
"发起了配发"
);
//添加当前操作人为涉及人员
//添加当前操作人为涉及人员
TaskBto
taskBto1
=
taskService
.
addInvolveUser
(
taskBto
,
userId
);
TaskBto
taskBto1
=
taskService
.
addInvolveUser
(
taskBto
,
userId
);
//任务所属单位改为收件单位
//任务所属单位改为收件单位
...
@@ -221,12 +222,12 @@ public class AllotBillController {
...
@@ -221,12 +222,12 @@ public class AllotBillController {
saveEntity
=
taskService
.
moveToSpecial
(
taskBto1
,
StatusEnum
.
ALLOTING
,
0
);
saveEntity
=
taskService
.
moveToSpecial
(
taskBto1
,
StatusEnum
.
ALLOTING
,
0
);
}
}
//生成发件方上传配发单的子任务
//生成发件方上传配发单的子任务
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_ALLOT_FILE
.
id
,
"配发业务
"
,
saveEntity
.
getId
(),
saveEntity
.
getNodeIdDetail
()
+
saveEntity
.
getId
()
+
"."
,
saveEntity
.
getBillId
(),
3
,
userPublicService
.
findUnitIdByName
(
allotBillEntity
.
getSendUnit
()),
0
,
null
,
Collections
.
singletonList
(
0
));
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_ALLOT_FILE
.
id
,
allotBillSaveVo
.
getSendUnit
()+
"给"
+
allotBillSaveVo
.
getReceiveUnit
()+
"发起了配发
"
,
saveEntity
.
getId
(),
saveEntity
.
getNodeIdDetail
()
+
saveEntity
.
getId
()
+
"."
,
saveEntity
.
getBillId
(),
3
,
userPublicService
.
findUnitIdByName
(
allotBillEntity
.
getSendUnit
()),
0
,
null
,
Collections
.
singletonList
(
0
));
taskService
.
start
(
taskBto2
);
taskService
.
start
(
taskBto2
);
}
}
//横向配发
//横向配发
else
{
else
{
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_CROSS_FILE
.
id
,
"配发业务
"
,
null
,
"."
,
billId
,
3
,
userPublicService
.
findUnitIdByName
(
allotBillEntity
.
getSendUnit
()),
1
,
"country"
,
userIds
);
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_CROSS_FILE
.
id
,
allotBillSaveVo
.
getSendUnit
()+
"给"
+
allotBillSaveVo
.
getReceiveUnit
()+
"发起了配发
"
,
null
,
"."
,
billId
,
3
,
userPublicService
.
findUnitIdByName
(
allotBillEntity
.
getSendUnit
()),
1
,
"country"
,
userIds
);
saveEntity
=
taskService
.
start
(
taskBto2
);
saveEntity
=
taskService
.
start
(
taskBto2
);
}
}
List
<
FileVo
>
fileVoList
=
new
ArrayList
<>();
List
<
FileVo
>
fileVoList
=
new
ArrayList
<>();
...
...
dev-allot/src/main/java/com/tykj/dev/device/allot/controller/BackController.java
浏览文件 @
bcbbe47c
...
@@ -141,7 +141,7 @@ public class BackController {
...
@@ -141,7 +141,7 @@ public class BackController {
TaskBto
saveEntity
;
TaskBto
saveEntity
;
//直接发起
//直接发起
if
(
allotBillSaveVo
.
getTaskId
()==
null
)
{
if
(
allotBillSaveVo
.
getTaskId
()==
null
)
{
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
ALLOT_BACKING
.
id
,
"退回业务"
,
null
,
"."
,
billId
,
22
,
userPublicService
.
findUnitIdByName
(
allotBillSaveVo
.
getReceiveUnit
()),
1
,
null
,
userIds
);
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
ALLOT_BACKING
.
id
,
allotBillSaveVo
.
getSendUnit
()+
"发给了"
+
allotBillSaveVo
.
getReceiveUnit
()+
"退回业务"
,
null
,
"."
,
billId
,
22
,
userPublicService
.
findUnitIdByName
(
allotBillSaveVo
.
getReceiveUnit
()),
1
,
null
,
userIds
);
saveEntity
=
taskService
.
start
(
taskBto
);
saveEntity
=
taskService
.
start
(
taskBto
);
}
}
//从草稿发起
//从草稿发起
...
@@ -155,7 +155,7 @@ public class BackController {
...
@@ -155,7 +155,7 @@ public class BackController {
saveEntity
=
taskService
.
moveToSpecial
(
taskBto1
,
StatusEnum
.
ALLOT_BACKING
,
0
);
saveEntity
=
taskService
.
moveToSpecial
(
taskBto1
,
StatusEnum
.
ALLOT_BACKING
,
0
);
}
}
//生成发件方上传退回单的子任务
//生成发件方上传退回单的子任务
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_BACK_FILE_2
.
id
,
"退回业务"
,
saveEntity
.
getId
(),
saveEntity
.
getNodeIdDetail
()
+
saveEntity
.
getId
()
+
"."
,
saveEntity
.
getBillId
(),
22
,
userPublicService
.
findUnitIdByName
(
allotBackBill1
.
getSendUnit
()),
0
,
null
,
Collections
.
singletonList
(
0
));
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_BACK_FILE_2
.
id
,
"
发给了"
+
allotBillSaveVo
.
getReceiveUnit
()+
"
退回业务"
,
saveEntity
.
getId
(),
saveEntity
.
getNodeIdDetail
()
+
saveEntity
.
getId
()
+
"."
,
saveEntity
.
getBillId
(),
22
,
userPublicService
.
findUnitIdByName
(
allotBackBill1
.
getSendUnit
()),
0
,
null
,
Collections
.
singletonList
(
0
));
taskService
.
start
(
taskBto2
);
taskService
.
start
(
taskBto2
);
List
<
FileVo
>
fileVoList
=
new
ArrayList
<>();
List
<
FileVo
>
fileVoList
=
new
ArrayList
<>();
//存装备日志
//存装备日志
...
...
dev-allot/src/main/java/com/tykj/dev/device/allot/subject/domin/AllotBill.java
浏览文件 @
bcbbe47c
...
@@ -185,7 +185,7 @@ public class AllotBill {
...
@@ -185,7 +185,7 @@ public class AllotBill {
* 配发出库检查详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配
* 配发出库检查详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配
*/
*/
@Column
(
name
=
"allot_check_detail"
,
columnDefinition
=
"TEXT"
)
@Column
(
name
=
"allot_check_detail"
,
columnDefinition
=
"TEXT"
)
@ApiModelProperty
(
value
=
"配发出库检查详情(装备主键id+核对结果(0缺失1无误
3
不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配"
)
@ApiModelProperty
(
value
=
"配发出库检查详情(装备主键id+核对结果(0缺失1无误
2
不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配"
)
private
String
allotCheckDetail
;
private
String
allotCheckDetail
;
/**
/**
* 配发出库检查结果
* 配发出库检查结果
...
...
dev-destroy/src/main/java/com/tykj/dev/device/destroy/service/Impl/DeviceDestroyBusinessServiceImpl.java
浏览文件 @
bcbbe47c
...
@@ -203,7 +203,7 @@ public class DeviceDestroyBusinessServiceImpl implements DeviceDestroyBusinessSe
...
@@ -203,7 +203,7 @@ public class DeviceDestroyBusinessServiceImpl implements DeviceDestroyBusinessSe
List
<
Integer
>
userIds
=
new
ArrayList
<>();
List
<
Integer
>
userIds
=
new
ArrayList
<>();
userIds
.
add
(
userId
);
userIds
.
add
(
userId
);
userIds
.
add
(
0
);
userIds
.
add
(
0
);
return
taskService
.
start
(
new
TaskBto
(
StatusEnum
.
DESTROY_2
.
id
,
"
销毁设备任务"
,
null
,
"."
,
repelDetailId
,
BusinessEnum
.
DESTROY
.
id
,
unitId
,
1
,
""
,
userIds
));
return
taskService
.
start
(
new
TaskBto
(
StatusEnum
.
DESTROY_2
.
id
,
unitId
+
"要进行
销毁设备任务"
,
null
,
"."
,
repelDetailId
,
BusinessEnum
.
DESTROY
.
id
,
unitId
,
1
,
""
,
userIds
));
}
}
private
List
<
String
>
scriptListToStringList
(
DeviceDestroyBillVo
deviceDestroyBillVo
){
private
List
<
String
>
scriptListToStringList
(
DeviceDestroyBillVo
deviceDestroyBillVo
){
...
...
dev-repair/src/main/java/com/tykj/dev/device/repair/controller/RepairController.java
浏览文件 @
bcbbe47c
...
@@ -402,7 +402,7 @@ public class RepairController {
...
@@ -402,7 +402,7 @@ public class RepairController {
deviceRepairSendBillEntity
.
setRepairDeviceDetail
(
stringBuffer
.
toString
());
deviceRepairSendBillEntity
.
setRepairDeviceDetail
(
stringBuffer
.
toString
());
deviceRepairSendBillEntity
.
setDeviceRepairBillId
(
repairBill1
.
getId
());
deviceRepairSendBillEntity
.
setDeviceRepairBillId
(
repairBill1
.
getId
());
deviceRepairSendBillEntity
.
setAgent
(
repairBillSaveVo
.
getAgent
());
deviceRepairSendBillEntity
.
setAgent
(
repairBillSaveVo
.
getAgent
());
deviceRepairSendBillEntity
.
setTitle
(
"
维修业务"
);
deviceRepairSendBillEntity
.
setTitle
(
repairBillSaveVo
.
getSendUnit
()+
"向"
+
repairBillSaveVo
.
getReceiveUnit
()+
"发起了
维修业务"
);
if
(
repairBillSaveVo
.
getSendFileList
()!=
null
&&
repairBillSaveVo
.
getSendFileList
().
size
()>
0
)
{
if
(
repairBillSaveVo
.
getSendFileList
()!=
null
&&
repairBillSaveVo
.
getSendFileList
().
size
()>
0
)
{
deviceRepairSendBillEntity
.
setSendFiles
(
FilesUtil
.
stringFileToList
(
repairBillSaveVo
.
getSendFileList
()));
deviceRepairSendBillEntity
.
setSendFiles
(
FilesUtil
.
stringFileToList
(
repairBillSaveVo
.
getSendFileList
()));
}
}
...
@@ -418,7 +418,7 @@ public class RepairController {
...
@@ -418,7 +418,7 @@ public class RepairController {
ownUnit
=
userUtils
.
getCurrentUnitId
();
ownUnit
=
userUtils
.
getCurrentUnitId
();
//直接发起的
//直接发起的
if
(
repairBillSaveVo
.
getTaskId
()==
null
)
{
if
(
repairBillSaveVo
.
getTaskId
()==
null
)
{
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_FILE
.
id
,
"
维修业务"
,
null
,
"."
,
repairBill1
.
getId
(),
5
,
ownUnit
,
1
,
"country"
,
userIds
);
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_FILE
.
id
,
repairBillSaveVo
.
getSendUnit
()+
"向"
+
repairBillSaveVo
.
getReceiveUnit
()+
"发起了
维修业务"
,
null
,
"."
,
repairBill1
.
getId
(),
5
,
ownUnit
,
1
,
"country"
,
userIds
);
saveEntity
=
taskService
.
start
(
taskBto
);
saveEntity
=
taskService
.
start
(
taskBto
);
}
}
//从草稿发起的
//从草稿发起的
...
@@ -431,7 +431,7 @@ public class RepairController {
...
@@ -431,7 +431,7 @@ public class RepairController {
ownUnit
=
userPublicService
.
findUnitIdByName
(
repairBill
.
getReceiveUnit
());
ownUnit
=
userPublicService
.
findUnitIdByName
(
repairBill
.
getReceiveUnit
());
//直接发起的
//直接发起的
if
(
repairBillSaveVo
.
getTaskId
()==
null
)
{
if
(
repairBillSaveVo
.
getTaskId
()==
null
)
{
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
WAIT_RECEIVE
.
id
,
"
维修业务"
,
null
,
"."
,
repairBill1
.
getId
(),
5
,
ownUnit
,
1
,
null
,
userIds
);
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
WAIT_RECEIVE
.
id
,
repairBillSaveVo
.
getSendUnit
()+
"向"
+
repairBillSaveVo
.
getReceiveUnit
()+
"发起了
维修业务"
,
null
,
"."
,
repairBill1
.
getId
(),
5
,
ownUnit
,
1
,
null
,
userIds
);
saveEntity
=
taskService
.
start
(
taskBto
);
saveEntity
=
taskService
.
start
(
taskBto
);
}
}
//从草稿发起的
//从草稿发起的
...
@@ -445,7 +445,7 @@ public class RepairController {
...
@@ -445,7 +445,7 @@ public class RepairController {
.
map
(
User:
:
getUserId
)
.
map
(
User:
:
getUserId
)
.
collect
(
Collectors
.
toList
()));
.
collect
(
Collectors
.
toList
()));
//生成子任务(发件方上传回执单)
//生成子任务(发件方上传回执单)
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_SEND_FILE
.
id
,
"
维修业务"
,
saveEntity
.
getId
(),
saveEntity
.
getNodeIdDetail
()
+
saveEntity
.
getId
()
+
"."
,
saveEntity
.
getBillId
(),
5
,
userPublicService
.
findUnitIdByName
(
repairSendBill
.
getSendUnit
()),
0
,
null
,
Collections
.
singletonList
(
0
));
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_SEND_FILE
.
id
,
repairBillSaveVo
.
getSendUnit
()+
"向"
+
repairBillSaveVo
.
getReceiveUnit
()+
"发起了
维修业务"
,
saveEntity
.
getId
(),
saveEntity
.
getNodeIdDetail
()
+
saveEntity
.
getId
()
+
"."
,
saveEntity
.
getBillId
(),
5
,
userPublicService
.
findUnitIdByName
(
repairSendBill
.
getSendUnit
()),
0
,
null
,
Collections
.
singletonList
(
0
));
taskService
.
start
(
taskBto2
);
taskService
.
start
(
taskBto2
);
}
}
//获取装备id集合
//获取装备id集合
...
@@ -788,7 +788,7 @@ public class RepairController {
...
@@ -788,7 +788,7 @@ public class RepairController {
repairBackBill1
.
setDocNum
(
s1
);
repairBackBill1
.
setDocNum
(
s1
);
deviceRepairBackBillService
.
update
(
repairBackBill1
);
deviceRepairBackBillService
.
update
(
repairBackBill1
);
//发起任务
//发起任务
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
REPAIR_BACK_DRAFT
.
id
,
"维修退回"
,
null
,
"."
,
repairBackBill1
.
getId
(),
BusinessEnum
.
REPAIR_BACK
.
id
,
userUtils
.
getCurrentUnitId
(),
0
,
null
,
userIds
);
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
REPAIR_BACK_DRAFT
.
id
,
repairBackBillSaveVo
.
getSendUnit
()+
"向"
+
repairBackBillSaveVo
.
getReceiveUnit
()+
"维修退回"
,
null
,
"."
,
repairBackBill1
.
getId
(),
BusinessEnum
.
REPAIR_BACK
.
id
,
userUtils
.
getCurrentUnitId
(),
0
,
null
,
userIds
);
TaskBto
taskBto1
=
taskService
.
start
(
taskBto
);
TaskBto
taskBto1
=
taskService
.
start
(
taskBto
);
Integer
id
=
taskBto1
.
getId
();
Integer
id
=
taskBto1
.
getId
();
myWebSocket
.
sendMessage1
();
myWebSocket
.
sendMessage1
();
...
@@ -840,7 +840,7 @@ public class RepairController {
...
@@ -840,7 +840,7 @@ public class RepairController {
}
}
repairBackBill
.
setBackStatus
(
2
);
repairBackBill
.
setBackStatus
(
2
);
repairBackBill
.
setSendTime
(
new
Date
());
repairBackBill
.
setSendTime
(
new
Date
());
repairBackBill
.
setTitle
(
"维修退回业务
"
);
repairBackBill
.
setTitle
(
repairBackBillSaveVo
.
getSendUnit
()+
"向"
+
repairBackBillSaveVo
.
getReceiveUnit
()+
"维修退回
"
);
repairBackBill
.
setAgent
(
repairBackBillSaveVo
.
getAgent
());
repairBackBill
.
setAgent
(
repairBackBillSaveVo
.
getAgent
());
//生成单位签章id
//生成单位签章id
Long
signId2
=
snowflake
.
creatNextId
();
Long
signId2
=
snowflake
.
creatNextId
();
...
@@ -871,7 +871,7 @@ public class RepairController {
...
@@ -871,7 +871,7 @@ public class RepairController {
taskBto1
.
setOwnUnit
(
userPublicService
.
findUnitIdByName
(
repairBackBill
.
getReceiveUnit
()));
taskBto1
.
setOwnUnit
(
userPublicService
.
findUnitIdByName
(
repairBackBill
.
getReceiveUnit
()));
task
=
taskService
.
moveToSpecial
(
taskBto1
,
StatusEnum
.
WAIT_BACK_RECEIVE
);
task
=
taskService
.
moveToSpecial
(
taskBto1
,
StatusEnum
.
WAIT_BACK_RECEIVE
);
}
}
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_BACK_SEND_FILE
.
id
,
"维修退回"
,
task
.
getId
(),
task
.
getNodeIdDetail
()
+
task
.
getId
()
+
"."
,
task
.
getBillId
(),
BusinessEnum
.
REPAIR_BACK
.
id
,
userPublicService
.
findUnitIdByName
(
repairBackBill
.
getSendUnit
()),
0
,
null
,
Collections
.
singletonList
(
0
));
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_BACK_SEND_FILE
.
id
,
repairBackBillSaveVo
.
getSendUnit
()+
"向"
+
repairBackBillSaveVo
.
getReceiveUnit
()+
"维修退回"
,
task
.
getId
(),
task
.
getNodeIdDetail
()
+
task
.
getId
()
+
"."
,
task
.
getBillId
(),
BusinessEnum
.
REPAIR_BACK
.
id
,
userPublicService
.
findUnitIdByName
(
repairBackBill
.
getSendUnit
()),
0
,
null
,
Collections
.
singletonList
(
0
));
taskService
.
start
(
taskBto2
);
taskService
.
start
(
taskBto2
);
//添加业务日志
//添加业务日志
List
<
FileVo
>
fileVoList
=
new
ArrayList
<>();
List
<
FileVo
>
fileVoList
=
new
ArrayList
<>();
...
@@ -987,12 +987,12 @@ public class RepairController {
...
@@ -987,12 +987,12 @@ public class RepairController {
//不缺少单据直接办结
//不缺少单据直接办结
if
(
repairReceiveVo
.
getStatus
()==
0
)
{
if
(
repairReceiveVo
.
getStatus
()==
0
)
{
userIds
.
add
(
userId
);
userIds
.
add
(
userId
);
TaskBto
taskBto1
=
new
TaskBto
(
StatusEnum
.
END
.
id
,
"维修退回"
,
null
,
"."
,
repairBackBill1
.
getId
(),
BusinessEnum
.
REPAIR_BACK
.
id
,
userUtils
.
getCurrentUnitId
(),
0
,
"country"
,
userIds
);
TaskBto
taskBto1
=
new
TaskBto
(
StatusEnum
.
END
.
id
,
"
对"
+
repairReceiveVo
.
getReceiveUserbId
()+
"
维修退回"
,
null
,
"."
,
repairBackBill1
.
getId
(),
BusinessEnum
.
REPAIR_BACK
.
id
,
userUtils
.
getCurrentUnitId
(),
0
,
"country"
,
userIds
);
taskBto2
=
taskService
.
start
(
taskBto1
);
taskBto2
=
taskService
.
start
(
taskBto1
);
}
}
else
{
else
{
userIds
.
add
(
0
);
userIds
.
add
(
0
);
TaskBto
taskBto1
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_BACK_FILE
.
id
,
"维修退回"
,
null
,
"."
,
repairBackBill1
.
getId
(),
BusinessEnum
.
REPAIR_BACK
.
id
,
userUtils
.
getCurrentUnitId
(),
0
,
"country"
,
userIds
);
TaskBto
taskBto1
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_BACK_FILE
.
id
,
"
对"
+
repairReceiveVo
.
getReceiveUserbId
()+
"
维修退回"
,
null
,
"."
,
repairBackBill1
.
getId
(),
BusinessEnum
.
REPAIR_BACK
.
id
,
userUtils
.
getCurrentUnitId
(),
0
,
"country"
,
userIds
);
taskBto2
=
taskService
.
start
(
taskBto1
);
taskBto2
=
taskService
.
start
(
taskBto1
);
}
}
//遍历改变维修详情
//遍历改变维修详情
...
...
dev-retired/src/main/java/com/tykj/dev/device/retired/controller/DeviceRetiredController.java
浏览文件 @
bcbbe47c
...
@@ -23,6 +23,7 @@ import com.tykj.dev.device.user.read.service.MessageService;
...
@@ -23,6 +23,7 @@ import com.tykj.dev.device.user.read.service.MessageService;
import
com.tykj.dev.device.user.read.subject.bto.MessageBto
;
import
com.tykj.dev.device.user.read.subject.bto.MessageBto
;
import
com.tykj.dev.device.user.subject.entity.User
;
import
com.tykj.dev.device.user.subject.entity.User
;
import
com.tykj.dev.device.user.subject.service.UserPublicService
;
import
com.tykj.dev.device.user.subject.service.UserPublicService
;
import
com.tykj.dev.device.user.subject.service.UserService
;
import
com.tykj.dev.device.user.util.AuthenticationUtils
;
import
com.tykj.dev.device.user.util.AuthenticationUtils
;
import
com.tykj.dev.device.user.util.UserUtils
;
import
com.tykj.dev.device.user.util.UserUtils
;
import
com.tykj.dev.misc.base.BusinessEnum
;
import
com.tykj.dev.misc.base.BusinessEnum
;
...
@@ -66,6 +67,8 @@ public class DeviceRetiredController {
...
@@ -66,6 +67,8 @@ public class DeviceRetiredController {
private
final
TaskLogService
taskLogService
;
private
final
TaskLogService
taskLogService
;
@Autowired
@Autowired
MyWebSocket
myWebSocket
;
MyWebSocket
myWebSocket
;
@Autowired
@Autowired
private
AuthenticationUtils
AuthenticationUtils
;
private
AuthenticationUtils
AuthenticationUtils
;
...
@@ -285,7 +288,7 @@ public class DeviceRetiredController {
...
@@ -285,7 +288,7 @@ public class DeviceRetiredController {
//生成Task
//生成Task
return
new
TaskBto
(
return
new
TaskBto
(
StatusEnum
.
END
.
id
,
StatusEnum
.
END
.
id
,
"
退装业务"
,
userPublicService
.
getOne
(
retiredBill
.
getCreateUserId
()).
getName
()+
"发起了
退装业务"
,
0
,
0
,
"."
,
"."
,
retiredBill
.
getId
(),
retiredBill
.
getId
(),
...
...
dev-selfcheck/src/main/java/com/tykj/dev/device/selfcheck/controller/SelfCheckController.java
浏览文件 @
bcbbe47c
...
@@ -276,7 +276,7 @@ public class SelfCheckController {
...
@@ -276,7 +276,7 @@ public class SelfCheckController {
//发起待自查任务
//发起待自查任务
List
<
Integer
>
userIds
=
new
ArrayList
<>();
List
<
Integer
>
userIds
=
new
ArrayList
<>();
userIds
.
add
(
userUtils
.
getCurrentUserId
());
userIds
.
add
(
userUtils
.
getCurrentUserId
());
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
WAIT_SELF_CHECK
.
id
,
"自查业务"
,
null
,
"."
,
selfCheckBill1
.
getId
(),
4
,
userUtils
.
getCurrentUnitId
(),
0
,
message
,
userIds
);
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
WAIT_SELF_CHECK
.
id
,
selfCheckBill1
.
getTitle
()
,
null
,
"."
,
selfCheckBill1
.
getId
(),
4
,
userUtils
.
getCurrentUnitId
(),
0
,
message
,
userIds
);
TaskBto
taskBto1
=
taskService
.
start
(
taskBto
);
TaskBto
taskBto1
=
taskService
.
start
(
taskBto
);
return
ResponseEntity
.
ok
(
taskBto1
.
getId
());
return
ResponseEntity
.
ok
(
taskBto1
.
getId
());
}
}
...
@@ -372,7 +372,7 @@ public class SelfCheckController {
...
@@ -372,7 +372,7 @@ public class SelfCheckController {
// if (selfExaminationBillEntity1.getUserbId()!=null){
// if (selfExaminationBillEntity1.getUserbId()!=null){
// userIds.add(selfExaminationBillEntity1.getUserbId());
// userIds.add(selfExaminationBillEntity1.getUserbId());
// }
// }
taskBto
=
new
TaskBto
(
StatusEnum
.
SELF_CHECK_CONFIRM
.
id
,
"自查业
务"
,
null
,
"."
,
selfExaminationBillEntity1
.
getId
(),
4
,
userUtils
.
getCurrentUnitId
(),
0
,
null
,
userIds
);
taskBto
=
new
TaskBto
(
StatusEnum
.
SELF_CHECK_CONFIRM
.
id
,
userUtils
.
getCurrentUserUnitName
()
+
"发起的自查任
务"
,
null
,
"."
,
selfExaminationBillEntity1
.
getId
(),
4
,
userUtils
.
getCurrentUnitId
(),
0
,
null
,
userIds
);
if
(
selfCheckSaveVo
.
getType
()==
0
){
if
(
selfCheckSaveVo
.
getType
()==
0
){
taskBto
.
setCustomInfo
(
"手动"
);
taskBto
.
setCustomInfo
(
"手动"
);
taskService
.
start
(
taskBto
);
taskService
.
start
(
taskBto
);
...
...
dev-storage/src/main/java/com/tykj/dev/device/storage/controller/StorageBillController.java
浏览文件 @
bcbbe47c
...
@@ -382,7 +382,7 @@ public class StorageBillController {
...
@@ -382,7 +382,7 @@ public class StorageBillController {
if
(
storageBillSaveVo
.
getTaskId
()==
null
)
{
if
(
storageBillSaveVo
.
getTaskId
()==
null
)
{
storageBillEntity
=
storageBillService
.
addEntity
(
storageBillSaveVo
.
toDo
());
storageBillEntity
=
storageBillService
.
addEntity
(
storageBillSaveVo
.
toDo
());
//2.发起入库任务
//2.发起入库任务
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
END
.
id
,
"
入库业务"
,
null
,
"."
,
storageBillEntity
.
getId
(),
2
,
userUtils
.
getCurrentUnitId
(),
0
,
null
,
userIds
);
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
END
.
id
,
storageBillSaveVo
.
getSendUnit
()+
"发起了
入库业务"
,
null
,
"."
,
storageBillEntity
.
getId
(),
2
,
userUtils
.
getCurrentUnitId
(),
0
,
null
,
userIds
);
taskEntity1
=
taskService
.
start
(
taskBto
);
taskEntity1
=
taskService
.
start
(
taskBto
);
}
}
else
{
else
{
...
@@ -674,7 +674,7 @@ public class StorageBillController {
...
@@ -674,7 +674,7 @@ public class StorageBillController {
storageBill1
.
setStorageStatus
(
0
);
storageBill1
.
setStorageStatus
(
0
);
StorageBill
storageBill
=
storageBillService
.
addEntity
(
storageBill1
);
StorageBill
storageBill
=
storageBillService
.
addEntity
(
storageBill1
);
//发起任务
//发起任务
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
WAIT_STORAGE
.
id
,
"
入库业务"
,
null
,
"."
,
storageBill
.
getId
(),
2
,
userUtils
.
getCurrentUnitId
(),
0
,
null
,
userIds
);
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
WAIT_STORAGE
.
id
,
storageBillSaveVo
.
getSendUnit
()+
"发起了
入库业务"
,
null
,
"."
,
storageBill
.
getId
(),
2
,
userUtils
.
getCurrentUnitId
(),
0
,
null
,
userIds
);
TaskBto
taskBto1
=
taskService
.
start
(
taskBto
);
TaskBto
taskBto1
=
taskService
.
start
(
taskBto
);
myWebSocket
.
sendMessage1
();
myWebSocket
.
sendMessage1
();
return
ResponseEntity
.
ok
(
"保存成功"
+
taskBto1
.
getId
());
return
ResponseEntity
.
ok
(
"保存成功"
+
taskBto1
.
getId
());
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论