Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
1c28e42a
提交
1c28e42a
authored
9月 14, 2020
作者:
Matrix
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of 192.168.100.249:zjm3/jy-equip-refactoring
合并记录
上级
dd3d651a
a138818e
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
51 行增加
和
3 行删除
+51
-3
AllotBillSelectController.java
...ev/device/allot/controller/AllotBillSelectController.java
+2
-2
RepairController.java
...m/tykj/dev/device/repair/controller/RepairController.java
+17
-0
RepairBillDetailVo.java
...tykj/dev/device/repair/subject/vo/RepairBillDetailVo.java
+31
-0
TaskServiceImpl.java
...om/tykj/dev/device/task/service/impl/TaskServiceImpl.java
+1
-1
没有找到文件。
dev-device/device-allot/src/main/java/com/tykj/dev/device/allot/controller/AllotBillSelectController.java
浏览文件 @
1c28e42a
...
@@ -75,8 +75,8 @@ public class AllotBillSelectController {
...
@@ -75,8 +75,8 @@ public class AllotBillSelectController {
allotBillDetailVo
.
setAllotBill
(
allotBillEntity
);
allotBillDetailVo
.
setAllotBill
(
allotBillEntity
);
List
<
DeviceLibrary
>
libraryEntities
=
new
ArrayList
<>();
List
<
DeviceLibrary
>
libraryEntities
=
new
ArrayList
<>();
//如果接收装备详情不为空,分隔装备id并添加
//如果接收装备详情不为空,分隔装备id并添加
if
(
allotBillEntity
.
get
Receive
CheckDetail
()!=
null
){
if
(
allotBillEntity
.
get
Allot
CheckDetail
()!=
null
){
for
(
Integer
deviceId:
StringSplitUtil
.
split
(
allotBillEntity
.
get
Receive
CheckDetail
()))
{
for
(
Integer
deviceId:
StringSplitUtil
.
split
(
allotBillEntity
.
get
Allot
CheckDetail
()))
{
libraryEntities
.
add
(
deviceLibraryService
.
getOne
(
deviceId
));
libraryEntities
.
add
(
deviceLibraryService
.
getOne
(
deviceId
));
}
}
}
}
...
...
dev-device/device-repair/src/main/java/com/tykj/dev/device/repair/controller/RepairController.java
浏览文件 @
1c28e42a
...
@@ -900,4 +900,21 @@ public class RepairController {
...
@@ -900,4 +900,21 @@ public class RepairController {
}
}
return
ResultUtil
.
success
(
"换新成功"
);
return
ResultUtil
.
success
(
"换新成功"
);
}
}
//
// @ApiOperation(value = "查询维修详情",notes = "可以通过这个接口查询维修详情")
// @PostMapping(value = "/detail/{id}")
// public ResponseEntity<RepairBillDetailVo> getDetail(@PathVariable("billId") int id){
// //获取task
// TaskBto taskBto = taskService.get(id);
// //判断维修业务类型
// switch (taskBto.getBusinessType()){
// case BusinessEnum.REPAIR_SEND.id:
// default:break;
// }
// return null;
// }
// @ApiOperation(value = "查询维修装备状态",notes = "可以通过这个接口查询维修装备状态")
// @PostMapping(value = "/select/status/")
// public ResponseEntity<List<RepairDetail>> getRepairDeatail()
}
}
dev-device/device-repair/src/main/java/com/tykj/dev/device/repair/subject/vo/RepairBillDetailVo.java
0 → 100644
浏览文件 @
1c28e42a
package
com
.
tykj
.
dev
.
device
.
repair
.
subject
.
vo
;
import
com.tykj.dev.device.library.subject.domin.DeviceLibrary
;
import
com.tykj.dev.device.repair.subject.domin.RepairBill
;
import
com.tykj.dev.device.repair.subject.domin.RepairDetail
;
import
com.tykj.dev.device.task.subject.vo.TaskLogUserVo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.List
;
/**
* @author dengdiyi
*/
@Data
@ApiModel
(
"维修单详情返回类"
)
public
class
RepairBillDetailVo
{
@ApiModelProperty
(
name
=
"维修单"
)
private
RepairBill
repairBill
;
@ApiModelProperty
(
name
=
"装备信息"
)
private
List
<
DeviceLibrary
>
deviceLibraries
;
@ApiModelProperty
(
name
=
"装备维修状态列表"
)
private
List
<
RepairDetail
>
repairDetails
;
@ApiModelProperty
(
name
=
"业务日志"
)
private
List
<
TaskLogUserVo
>
taskLogUserVos
;
}
dev-device/device-task/src/main/java/com/tykj/dev/device/task/service/impl/TaskServiceImpl.java
浏览文件 @
1c28e42a
...
@@ -436,7 +436,7 @@ public class TaskServiceImpl implements TaskService {
...
@@ -436,7 +436,7 @@ public class TaskServiceImpl implements TaskService {
if
(
taskSelectVo
.
getSelectNum
()
==
2
)
{
if
(
taskSelectVo
.
getSelectNum
()
==
2
)
{
//当前指针对应userId是当前用户或者为0且所属单位为当前单位
//当前指针对应userId是当前用户或者为0且所属单位为当前单位
List
<
TaskBto
>
taskBtoList
=
taskBtos
.
stream
()
List
<
TaskBto
>
taskBtoList
=
taskBtos
.
stream
()
.
filter
(
taskBto
->
userId
.
equals
(
taskBto
.
getInvolveUserIdList
().
get
(
taskBto
.
getCurrentPoint
()))
||
(
taskBto
.
getInvolveUserIdList
().
get
(
taskBto
.
getCurrentPoint
())
==
0
&&
taskBto
.
getOwnUnit
().
equals
(
userUtils
.
getCurrentUnitId
(
))))
.
filter
(
taskBto
->
taskBto
.
getInvolveUserIdList
().
size
()>
0
&&(
userId
.
equals
(
taskBto
.
getInvolveUserIdList
().
get
(
taskBto
.
getCurrentPoint
()))
||
(
taskBto
.
getInvolveUserIdList
().
get
(
taskBto
.
getCurrentPoint
())
==
0
&&
taskBto
.
getOwnUnit
().
equals
(
userUtils
.
getCurrentUnitId
()
))))
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
//查询所有的业务
//查询所有的业务
if
(
bussinessType
==
null
)
{
if
(
bussinessType
==
null
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论