Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
d0826a99
提交
d0826a99
authored
1月 10, 2022
作者:
zjm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(丢失找回): 添加了对同一件设备进行找回,发起多次任务,通过时提示是否需要终止任务,且添加了终止任务接口
添加了对同一件设备进行找回,发起多次任务,通过时提示是否需要终止任务,且添加了终止任务接口
上级
da3dbf68
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
38 行增加
和
1 行删除
+38
-1
DeviceLibraryService.java
...tykj/dev/device/library/service/DeviceLibraryService.java
+6
-0
DeviceLibraryServiceImpl.java
...device/library/service/impl/DeviceLibraryServiceImpl.java
+10
-0
DeviceLossController.java
...tykj/dev/device/loss/controller/DeviceLossController.java
+7
-0
LossBillService.java
...ava/com/tykj/dev/device/loss/service/LossBillService.java
+6
-1
LossBillServiceImpl.java
...ykj/dev/device/loss/service/impl/LossBillServiceImpl.java
+9
-0
没有找到文件。
dev-library/src/main/java/com/tykj/dev/device/library/service/DeviceLibraryService.java
浏览文件 @
d0826a99
...
@@ -154,6 +154,12 @@ public interface DeviceLibraryService {
...
@@ -154,6 +154,12 @@ public interface DeviceLibraryService {
*/
*/
void
isNotLoss
(
List
<
Integer
>
ids
);
void
isNotLoss
(
List
<
Integer
>
ids
);
/**
* 判断装备状态是否丢失(若不是抛出304异常)
* @param ids
*/
void
isNotLoss304
(
List
<
Integer
>
ids
);
/**
/**
* 判断装备状态是否在库或维修中(若不是抛出303异常)
* 判断装备状态是否在库或维修中(若不是抛出303异常)
*/
*/
...
...
dev-library/src/main/java/com/tykj/dev/device/library/service/impl/DeviceLibraryServiceImpl.java
浏览文件 @
d0826a99
...
@@ -759,6 +759,16 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
...
@@ -759,6 +759,16 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
});
});
}
}
@Override
public
void
isNotLoss304
(
List
<
Integer
>
ids
)
{
ids
.
forEach
(
integer
->
{
DeviceLibrary
deviceLibrary
=
getOne
(
integer
);
if
(
deviceLibrary
.
getLifeStatus
()!=
11
){
throw
new
ApiException
(
ResponseEntity
.
status
(
304
).
body
(
"序列号"
+
deviceLibrary
.
getSeqNumber
()+
"的装备已被其他专管员操作"
));
}
});
}
@Override
@Override
public
List
<
DeviceLibrary
>
getAllList
(
DeviceLibrarySelectVo
deviceLibrarySelectVo
)
{
public
List
<
DeviceLibrary
>
getAllList
(
DeviceLibrarySelectVo
deviceLibrarySelectVo
)
{
// List<DeviceLibrary> allDeviceLibraryList = cacheLibraryService.getAllDeviceLibraryList();
// List<DeviceLibrary> allDeviceLibraryList = cacheLibraryService.getAllDeviceLibraryList();
...
...
dev-loss/src/main/java/com/tykj/dev/device/loss/controller/DeviceLossController.java
浏览文件 @
d0826a99
...
@@ -5,6 +5,7 @@ import com.tykj.dev.device.loss.entity.domain.DeviceLoss;
...
@@ -5,6 +5,7 @@ import com.tykj.dev.device.loss.entity.domain.DeviceLoss;
import
com.tykj.dev.device.loss.entity.vo.LossAuditvo
;
import
com.tykj.dev.device.loss.entity.vo.LossAuditvo
;
import
com.tykj.dev.device.loss.entity.vo.RetrieveAuditvo
;
import
com.tykj.dev.device.loss.entity.vo.RetrieveAuditvo
;
import
com.tykj.dev.device.loss.service.LossBillService
;
import
com.tykj.dev.device.loss.service.LossBillService
;
import
com.tykj.dev.device.task.subject.bto.TaskBto
;
import
com.tykj.dev.device.user.subject.entity.SecurityUser
;
import
com.tykj.dev.device.user.subject.entity.SecurityUser
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
...
@@ -62,4 +63,10 @@ public class DeviceLossController {
...
@@ -62,4 +63,10 @@ public class DeviceLossController {
public
ResponseEntity
repelFileMap
(
@PathVariable
Integer
taskId
){
public
ResponseEntity
repelFileMap
(
@PathVariable
Integer
taskId
){
return
ResponseEntity
.
ok
(
lossBillService
.
findTaskIdToFileMap
(
taskId
));
return
ResponseEntity
.
ok
(
lossBillService
.
findTaskIdToFileMap
(
taskId
));
}
}
@GetMapping
(
value
=
"/endRetrieve/{taskId}"
)
@ApiOperation
(
value
=
"终止找回任务"
,
notes
=
"终止找回任务"
)
public
ResponseEntity
<
TaskBto
>
endRetrieve
(
@PathVariable
Integer
taskId
){
return
ResponseEntity
.
ok
(
lossBillService
.
endRetrieve
(
taskId
));
}
}
}
dev-loss/src/main/java/com/tykj/dev/device/loss/service/LossBillService.java
浏览文件 @
d0826a99
...
@@ -4,6 +4,7 @@ import com.tykj.dev.device.file.entity.FileRet;
...
@@ -4,6 +4,7 @@ import com.tykj.dev.device.file.entity.FileRet;
import
com.tykj.dev.device.loss.entity.domain.DeviceLoss
;
import
com.tykj.dev.device.loss.entity.domain.DeviceLoss
;
import
com.tykj.dev.device.loss.entity.vo.LossAuditvo
;
import
com.tykj.dev.device.loss.entity.vo.LossAuditvo
;
import
com.tykj.dev.device.loss.entity.vo.RetrieveAuditvo
;
import
com.tykj.dev.device.loss.entity.vo.RetrieveAuditvo
;
import
com.tykj.dev.device.task.subject.bto.TaskBto
;
import
com.tykj.dev.device.user.subject.entity.SecurityUser
;
import
com.tykj.dev.device.user.subject.entity.SecurityUser
;
import
java.util.List
;
import
java.util.List
;
...
@@ -27,7 +28,6 @@ public interface LossBillService {
...
@@ -27,7 +28,6 @@ public interface LossBillService {
*/
*/
void
superiorAuditLoss
(
LossAuditvo
lossAuditvo
);
void
superiorAuditLoss
(
LossAuditvo
lossAuditvo
);
/**
/**
* 找回装备
* 找回装备
*/
*/
...
@@ -38,5 +38,10 @@ public interface LossBillService {
...
@@ -38,5 +38,10 @@ public interface LossBillService {
*/
*/
void
superiorAuditRetrieve
(
RetrieveAuditvo
retrieveAuditvo
);
void
superiorAuditRetrieve
(
RetrieveAuditvo
retrieveAuditvo
);
/**
* 终止找回任务
*/
TaskBto
endRetrieve
(
Integer
taskId
);
Map
<
String
,
List
<
FileRet
>>
findTaskIdToFileMap
(
Integer
taskId
);
Map
<
String
,
List
<
FileRet
>>
findTaskIdToFileMap
(
Integer
taskId
);
}
}
dev-loss/src/main/java/com/tykj/dev/device/loss/service/impl/LossBillServiceImpl.java
浏览文件 @
d0826a99
...
@@ -180,6 +180,8 @@ public class LossBillServiceImpl implements LossBillService {
...
@@ -180,6 +180,8 @@ public class LossBillServiceImpl implements LossBillService {
Area
area
=
areaService
.
findByid
(
units
.
getAreaId
());
Area
area
=
areaService
.
findByid
(
units
.
getAreaId
());
TaskBto
taskBto
=
taskService
.
get
(
retrieveAuditvo
.
getTaskId
());
TaskBto
taskBto
=
taskService
.
get
(
retrieveAuditvo
.
getTaskId
());
DeviceLoss
deviceLoss
=
deviceLossService
.
findByDeviceLoss
(
taskBto
.
getBillId
());
DeviceLoss
deviceLoss
=
deviceLossService
.
findByDeviceLoss
(
taskBto
.
getBillId
());
List
<
Integer
>
ids
=
StringUtils
.
stringToList
(
deviceLoss
.
getDevIds
());
deviceLibraryService
.
isNotLoss304
(
ids
);
if
(
units
.
getLevel
()==
1
){
if
(
units
.
getLevel
()==
1
){
TaskDisposeUtil
.
isNotSubmit
(
taskBto
.
getBillStatus
(),
StatusEnum
.
RETRIEVE1401
);
TaskDisposeUtil
.
isNotSubmit
(
taskBto
.
getBillStatus
(),
StatusEnum
.
RETRIEVE1401
);
deviceLoss
.
setProvinceUnitName
(
units
.
getName
());
deviceLoss
.
setProvinceUnitName
(
units
.
getName
());
...
@@ -215,6 +217,13 @@ public class LossBillServiceImpl implements LossBillService {
...
@@ -215,6 +217,13 @@ public class LossBillServiceImpl implements LossBillService {
deviceLossService
.
save
(
deviceLoss
);
deviceLossService
.
save
(
deviceLoss
);
}
}
@Override
public
TaskBto
endRetrieve
(
Integer
taskId
)
{
TaskBto
taskBto
=
taskService
.
get
(
taskId
);
taskBto
=
taskService
.
moveToArchive
(
taskBto
);
return
taskBto
;
}
@Override
@Override
public
Map
<
String
,
List
<
FileRet
>>
findTaskIdToFileMap
(
Integer
taskId
)
{
public
Map
<
String
,
List
<
FileRet
>>
findTaskIdToFileMap
(
Integer
taskId
)
{
Map
<
String
,
List
<
FileRet
>>
map
=
new
HashMap
<>();
Map
<
String
,
List
<
FileRet
>>
map
=
new
HashMap
<>();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论