Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
6187d9cd
提交
6187d9cd
authored
2月 03, 2021
作者:
133
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[清退] 添加了缺少单据保存 以及加了一个状态
上级
82d991ab
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
44 行增加
和
24 行删除
+44
-24
LogType.java
dev-config/src/main/java/com/tykj/dev/config/LogType.java
+8
-3
StatusEnum.java
...misc/src/main/java/com/tykj/dev/misc/base/StatusEnum.java
+2
-3
StorageDeviceRepel.java
...ykj/dev/device/sendback/entity/vo/StorageDeviceRepel.java
+9
-2
RepelBusinessService.java
...ykj/dev/device/sendback/service/RepelBusinessService.java
+1
-1
RepelBusinessServiceImpl.java
...evice/sendback/service/impl/RepelBusinessServiceImpl.java
+24
-15
没有找到文件。
dev-config/src/main/java/com/tykj/dev/config/LogType.java
浏览文件 @
6187d9cd
...
@@ -192,17 +192,22 @@ public enum LogType {
...
@@ -192,17 +192,22 @@ public enum LogType {
SEND_BACK_26
(
100016
,
SEND_BACK
.
id
,
SEND_BACK_1214
.
id
,
END
.
id
,
"清退装备任务,上传了回执单据"
),
SEND_BACK_26
(
100016
,
SEND_BACK
.
id
,
SEND_BACK_1214
.
id
,
END
.
id
,
"清退装备任务,上传了回执单据"
),
SEND_BACK_27
(
100017
,
SEND_BACK
.
id
,
SEND_BACK_1202
.
id
,
SEND_BACK_1213
.
id
,
"省直属单位清退装备选择完成,等待签字单据上传"
),
SEND_BACK_27
(
100017
,
SEND_BACK
.
id
,
SEND_BACK_1202
.
id
,
SEND_BACK_1213
.
id
,
"省直属单位清退装备选择完成,等待签字单据上传"
),
SEND_BACK_28
(
100018
,
SEND_BACK
.
id
,
SEND_BACK_1213
.
id
,
END
.
id
,
"上传了直属单位清退签字单据"
),
SEND_BACK_28
(
100018
,
SEND_BACK
.
id
,
SEND_BACK_1213
.
id
,
END
.
id
,
"上传了直属单位清退签字单据"
),
SEND_BACK_29
(
100019
,
SEND_BACK
.
id
,
SEND_BACK_1209
.
id
,
SEND_BACK_1215
.
id
,
"单据未上传,继续等待单据上传"
),
SEND_BACK_30
(
100020
,
SEND_BACK
.
id
,
SEND_BACK_1215
.
id
,
END
.
id
,
"接收单据已上传,清退装备配送完成"
),
LOSS_1
(
9000
,
LOSS
.
id
,
ORIGIN_STATUS
.
id
,
LOSS1300
.
id
,
"发起装备丢失上报"
),
LOSS_1
(
9000
,
LOSS
.
id
,
ORIGIN_STATUS
.
id
,
LOSS1300
.
id
,
"发起装备丢失上报"
),
LOSS_2
(
9001
,
LOSS
.
id
,
LOSS1300
.
id
,
LOSS130
0
.
id
,
"确认了装备丢失"
),
LOSS_2
(
9001
,
LOSS
.
id
,
LOSS1300
.
id
,
LOSS130
1
.
id
,
"确认了装备丢失"
),
LOSS_3
(
9002
,
LOSS
.
id
,
LOSS1300
.
id
,
END
.
id
,
"确认了装备丢失报告,报告任务结束"
),
LOSS_3
(
9002
,
LOSS
.
id
,
LOSS1300
.
id
,
END
.
id
,
"确认了装备丢失报告,报告任务结束"
),
LOSS_4
(
9003
,
LOSS
.
id
,
ORIGIN_STATUS
.
id
,
END
.
id
,
"省装备丢失报告发起记录"
),
LOSS_4
(
9003
,
LOSS
.
id
,
ORIGIN_STATUS
.
id
,
END
.
id
,
"省装备丢失报告发起记录"
),
LOSS_5
(
9004
,
LOSS
.
id
,
ORIGIN_STATUS
.
id
,
LOSS1301
.
id
,
"发起丢失装备上报"
),
RETRIEVE_1
(
9010
,
RETRIEVE
.
id
,
ORIGIN_STATUS
.
id
,
RETRIEVE1400
.
id
,
"发起装备找回上报"
),
RETRIEVE_1
(
9010
,
RETRIEVE
.
id
,
ORIGIN_STATUS
.
id
,
RETRIEVE1400
.
id
,
"发起装备找回上报"
),
RETRIEVE_2
(
9011
,
RETRIEVE
.
id
,
RETRIEVE1400
.
id
,
RETRIEVE140
0
.
id
,
"确认了装备找回上报"
),
RETRIEVE_2
(
9011
,
RETRIEVE
.
id
,
RETRIEVE1400
.
id
,
RETRIEVE140
1
.
id
,
"确认了装备找回上报"
),
RETRIEVE_3
(
9012
,
RETRIEVE
.
id
,
RETRIEVE1400
.
id
,
END
.
id
,
"确认了装备找回上报,找回任务结束"
),
RETRIEVE_3
(
9012
,
RETRIEVE
.
id
,
RETRIEVE1400
.
id
,
END
.
id
,
"确认了装备找回上报,找回任务结束"
),
RETRIEVE_4
(
9013
,
LOSS
.
id
,
ORIGIN_STATUS
.
id
,
END
.
id
,
"省装备找回报告发起记录"
),
RETRIEVE_4
(
9013
,
RETRIEVE
.
id
,
ORIGIN_STATUS
.
id
,
END
.
id
,
"省装备找回报告发起记录"
),
RETRIEVE_5
(
9014
,
RETRIEVE
.
id
,
ORIGIN_STATUS
.
id
,
RETRIEVE1401
.
id
,
"发起丢失装备上报"
),
WORK_H1
(
79
,
WORK_HANDOVER
.
id
,
ORIGIN_STATUS
.
id
,
WORKHANDOVER1011
.
id
,
"工作交接任务生成完成,等待上传交接单"
),
WORK_H1
(
79
,
WORK_HANDOVER
.
id
,
ORIGIN_STATUS
.
id
,
WORKHANDOVER1011
.
id
,
"工作交接任务生成完成,等待上传交接单"
),
...
...
dev-misc/src/main/java/com/tykj/dev/misc/base/StatusEnum.java
浏览文件 @
6187d9cd
...
@@ -85,8 +85,7 @@ public enum StatusEnum {
...
@@ -85,8 +85,7 @@ public enum StatusEnum {
SEND_BACK_1212
(
1212
,
"清退统计任务待办结"
),
SEND_BACK_1212
(
1212
,
"清退统计任务待办结"
),
SEND_BACK_1213
(
1213
,
"省直属清退任务待上传单据"
),
SEND_BACK_1213
(
1213
,
"省直属清退任务待上传单据"
),
SEND_BACK_1214
(
1214
,
"清退出库等待上传回执单"
),
SEND_BACK_1214
(
1214
,
"清退出库等待上传回执单"
),
SEND_BACK_1215
(
1215
,
"清退出库接收方单据待补充"
),
...
@@ -125,7 +124,7 @@ public enum StatusEnum {
...
@@ -125,7 +124,7 @@ public enum StatusEnum {
TRAIN1008
(
1008
,
"成绩录入"
),
TRAIN1008
(
1008
,
"成绩录入"
),
TRAIN1009
(
1009
,
"成绩确认"
),
TRAIN1009
(
1009
,
"成绩确认"
),
//
TRAIN1010
(
1010
,
"待培训"
),
TRAIN1010
(
1010
,
"待培训"
),
WORKHANDOVER1011
(
1011
,
"待上传签字单"
),
WORKHANDOVER1011
(
1011
,
"待上传签字单"
),
...
...
dev-sendback/src/main/java/com/tykj/dev/device/sendback/entity/vo/StorageDeviceRepel.java
浏览文件 @
6187d9cd
...
@@ -20,12 +20,19 @@ import java.util.List;
...
@@ -20,12 +20,19 @@ import java.util.List;
@NoArgsConstructor
@NoArgsConstructor
@ApiModel
(
"入库参数对象以及省本级、直属单位清退提交对象"
)
@ApiModel
(
"入库参数对象以及省本级、直属单位清退提交对象"
)
public
class
StorageDeviceRepel
{
public
class
StorageDeviceRepel
{
/**
* 接收方单据
*/
private
List
<
FileRet
>
fileRets
;
private
List
<
FileRet
>
fileRets
;
private
List
<
FileRet
>
inFiles
;
/**
* 装备id集合
*/
private
List
<
Integer
>
deviceIds
;
private
List
<
Integer
>
deviceIds
;
/**
* 回执单据
*/
private
List
<
FileRet
>
outFiles
;
private
List
<
FileRet
>
outFiles
;
private
Integer
userId
;
private
Integer
userId
;
...
...
dev-sendback/src/main/java/com/tykj/dev/device/sendback/service/RepelBusinessService.java
浏览文件 @
6187d9cd
...
@@ -66,7 +66,6 @@ public interface RepelBusinessService {
...
@@ -66,7 +66,6 @@ public interface RepelBusinessService {
*/
*/
DeviceRepelDetail
sendBackOutCheck
(
Integer
taskId
,
Integer
userId
,
OrderOutData
orderOutData
);
DeviceRepelDetail
sendBackOutCheck
(
Integer
taskId
,
Integer
userId
,
OrderOutData
orderOutData
);
/**
/**
* 上级清退装备入库
* 上级清退装备入库
* todo
* todo
...
@@ -74,6 +73,7 @@ public interface RepelBusinessService {
...
@@ -74,6 +73,7 @@ public interface RepelBusinessService {
void
storageDeviceRepel
(
Integer
taskId
,
StorageDeviceRepel
storageDeviceRepel
);
void
storageDeviceRepel
(
Integer
taskId
,
StorageDeviceRepel
storageDeviceRepel
);
/**
/**
* 本级装备待清退提交
* 本级装备待清退提交
*/
*/
...
...
dev-sendback/src/main/java/com/tykj/dev/device/sendback/service/impl/RepelBusinessServiceImpl.java
浏览文件 @
6187d9cd
...
@@ -472,25 +472,36 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
...
@@ -472,25 +472,36 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
@Override
@Override
public
void
storageDeviceRepel
(
Integer
taskId
,
StorageDeviceRepel
storageDeviceRepel
)
{
public
void
storageDeviceRepel
(
Integer
taskId
,
StorageDeviceRepel
storageDeviceRepel
)
{
//判断是否上传单据
//是 直接入库 任务完结
//否 状态改为入库待补充文件
//修改统计表中的数据信息 状态
List
<
RepelDeviceUnit
>
list
=
new
ArrayList
<>();
List
<
RepelDeviceUnit
>
list
=
new
ArrayList
<>();
TaskBto
taskBto
=
taskService
.
get
(
taskId
);
TaskBto
taskBto
=
taskService
.
get
(
taskId
);
List
<
StatusEnum
>
enumList
=
new
ArrayList
<>();
DeviceRepelDetail
deviceRepelDetail
=
deviceRepelDetailService
.
findDeviceRepelDetail
(
taskBto
.
getBillId
());
enumList
.
add
(
StatusEnum
.
SEND_BACK_1209
);
//判断是否为入库单据待补充 还是直接入库。
enumList
.
add
(
StatusEnum
.
SEND_BACK_1213
);
if
(
storageDeviceRepel
.
getFileRets
()!=
null
&&
storageDeviceRepel
.
getFileRets
().
size
()!=
0
)
{
TaskDisposeUtil
.
isNotSubmit
(
taskBto
.
getBillStatus
(),
StatusEnum
.
SEND_BACK_1209
);
List
<
StatusEnum
>
enumList
=
new
ArrayList
<>();
enumList
.
add
(
StatusEnum
.
SEND_BACK_1209
);
DeviceRepelDetail
deviceRepelDetail
=
deviceRepelDetailService
.
findDeviceRepelDetail
(
taskBto
.
getBillId
());
enumList
.
add
(
StatusEnum
.
SEND_BACK_1213
);
deviceRepelDetail
.
setBillFile
(
FilesUtil
.
stringFileToList
(
storageDeviceRepel
.
getFileRets
()));
enumList
.
add
(
StatusEnum
.
SEND_BACK_1215
);
deviceRepelDetail
.
setInFile
(
FilesUtil
.
stringFileToList
(
storageDeviceRepel
.
getInFiles
()));
TaskDisposeUtil
.
isNotSubmit
(
taskBto
.
getBillStatus
(),
enumList
);
taskService
.
moveToEnd
(
taskBto
);
deviceRepelDetail
.
setBillFile
(
FilesUtil
.
stringFileToList
(
storageDeviceRepel
.
getFileRets
()));
deviceRepelDetail
.
setRepelStatus
(
2
);
taskService
.
moveToEnd
(
taskBto
);
}
else
{
//判断当前状态是否为SEND_BACK_1209 清退装备等待入库
TaskDisposeUtil
.
isNotSubmit
(
taskBto
.
getBillStatus
(),
StatusEnum
.
SEND_BACK_1209
);
taskService
.
moveToSpecial
(
taskBto
,
StatusEnum
.
SEND_BACK_1215
,
0
);
}
deviceRepelDetail
.
setRepelStatus
(
2
);
//判断是否为 市提交 是则为在库
//判断是否为 市提交 是则为在库
//否则为待清退
//否则为待清退
Integer
inStock
;
// if (unitsService.findById(deviceRepelDetail.getReceiveUnitId()).getLevel()==2){
// if (unitsService.findById(deviceRepelDetail.getReceiveUnitId()).getLevel()==2){
// inStock=DeviceLifeStatus.IN_LIBRARY.id;
// inStock=DeviceLifeStatus.IN_LIBRARY.id;
// }else {
// }else {
inStock
=
DeviceLifeStatus
.
REPEL
.
id
;
Integer
inStock
=
DeviceLifeStatus
.
REPEL
.
id
;
// }
// }
List
<
DeviceLibrary
>
libraries
=
findInvoleDevice
(
deviceRepelDetail
.
getDeviceIds
());
List
<
DeviceLibrary
>
libraries
=
findInvoleDevice
(
deviceRepelDetail
.
getDeviceIds
());
libraries
.
forEach
(
libraries
.
forEach
(
...
@@ -514,9 +525,7 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
...
@@ -514,9 +525,7 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
deviceRepelDetailService
.
saveDeviceRepelDetail
(
deviceRepelDetail
);
deviceRepelDetailService
.
saveDeviceRepelDetail
(
deviceRepelDetail
);
isEnd
(
taskBto
,
deviceRepelDetail
.
getRepelId
());
isEnd
(
taskBto
,
deviceRepelDetail
.
getRepelId
());
devLogAdd
(
findInvoleDevice
(
deviceRepelDetail
.
getDeviceIds
()),
deviceRepelDetail
.
getReceiveUnit
()+
"接收"
+
deviceRepelDetail
.
getSendUnit
()+
"装备清退装备,任务完成"
,
storageDeviceRepel
.
getUserId
());
devLogAdd
(
findInvoleDevice
(
deviceRepelDetail
.
getDeviceIds
()),
deviceRepelDetail
.
getReceiveUnit
()+
"接收"
+
deviceRepelDetail
.
getSendUnit
()+
"装备清退装备,任务完成"
,
storageDeviceRepel
.
getUserId
());
//完结当前任务
//把任务状态修改为 清退提交装备已完成
//修改统计表中的数据信息 状态
}
}
@Override
@Override
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论