Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
eb45b94b
提交
eb45b94b
authored
9月 15, 2020
作者:
邓砥奕
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改bug
上级
fa41e69e
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
49 行增加
和
44 行删除
+49
-44
AllotBillSelectController.java
...ev/device/allot/controller/AllotBillSelectController.java
+4
-15
DeviceApplyController.java
...kj/dev/device/apply/controller/DeviceApplyController.java
+11
-9
DeviceDestroyController.java
...ev/device/destroy/controller/DeviceDestroyController.java
+1
-1
RepairController.java
...m/tykj/dev/device/repair/controller/RepairController.java
+0
-1
DeviceRetiredController.java
...ev/device/retired/controller/DeviceRetiredController.java
+1
-1
SelfCheckController.java
.../dev/device/selfcheck/controller/SelfCheckController.java
+6
-6
TaskSelectController.java
...ev/device/taskselect/controller/TaskSelectController.java
+19
-11
DeviceUseReportController.java
...evice/usereport/controller/DeviceUseReportController.java
+7
-0
没有找到文件。
dev-device/device-allot/src/main/java/com/tykj/dev/device/allot/controller/AllotBillSelectController.java
浏览文件 @
eb45b94b
...
...
@@ -42,12 +42,6 @@ public class AllotBillSelectController {
@Autowired
private
DeviceLibraryService
deviceLibraryService
;
@Autowired
private
TaskLogService
taskLogService
;
@Autowired
private
TaskService
taskService
;
@ApiOperation
(
value
=
"查询配发单"
,
notes
=
"可以通过这个接口查询配发单"
)
@PostMapping
(
value
=
"/archives/allot/summary"
)
public
ResponseEntity
selectAllotBill
(
@RequestBody
AllotBillSelectVo
allotBillSelectVo
)
{
...
...
@@ -58,9 +52,7 @@ public class AllotBillSelectController {
@ApiOperation
(
value
=
"查询配发单详情页"
,
notes
=
"可以通过这个接口查询配发单"
)
@GetMapping
(
value
=
"/archives/allot/detail/{id}"
)
public
ResponseEntity
selectAllotBillDetail
(
@PathVariable
(
"id"
)
int
id
)
{
AllotBillDetailVo
allotBillDetailVo
=
new
AllotBillDetailVo
();
//获取taskBto
TaskBto
taskBto
=
taskService
.
get
(
id
,
BusinessEnum
.
ALLOT
.
id
);
List
<
Object
>
list
=
new
ArrayList
<>();
//set账单用户名称并添加
AllotBill
allotBillEntity
=
allotBillService
.
getOne
(
id
);
allotBillEntity
.
setSenderUserA
(
userService
.
getOne
(
allotBillEntity
.
getSendUseraId
()).
getName
());
...
...
@@ -71,7 +63,7 @@ public class AllotBillSelectController {
if
(
allotBillEntity
.
getReceiveUserbId
()!=
null
)
{
allotBillEntity
.
setReceiveUserB
(
userService
.
getOne
(
allotBillEntity
.
getReceiveUserbId
()).
getName
());
}
allotBillDetailVo
.
setAllotBill
(
allotBillEntity
);
list
.
add
(
allotBillEntity
);
List
<
DeviceLibrary
>
libraryEntities
=
new
ArrayList
<>();
//如果接收装备详情不为空,分隔装备id并添加
if
(
allotBillEntity
.
getAllotCheckDetail
()!=
null
){
...
...
@@ -79,10 +71,7 @@ public class AllotBillSelectController {
libraryEntities
.
add
(
deviceLibraryService
.
getOne
(
deviceId
));
}
}
allotBillDetailVo
.
setDeviceLibraries
(
libraryEntities
);
//获取业务日志
List
<
TaskLogUserVo
>
taskLogUserVos
=
taskLogService
.
getByTaskId
(
taskBto
.
getId
());
allotBillDetailVo
.
setTaskLogUserVos
(
taskLogUserVos
);
return
ResponseEntity
.
ok
(
allotBillDetailVo
);
list
.
add
(
libraryEntities
);
return
ResponseEntity
.
ok
(
list
);
}
}
dev-device/device-apply/src/main/java/com/tykj/dev/device/apply/controller/DeviceApplyController.java
浏览文件 @
eb45b94b
...
...
@@ -39,10 +39,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.ArrayList
;
import
java.util.Comparator
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
...
...
@@ -143,12 +140,10 @@ public class DeviceApplyController {
taskService
.
update
(
taskService
.
moveToEnd
(
taskBto
));
TaskLogBto
taskLogBto
=
new
TaskLogBto
(
taskBto
.
getId
(),
"装备申请批复通过"
,
null
);
taskLogService
.
addLog
(
taskLogBto
);
//添加空的配发账单
AllotBill
allotBill
=
allotBillService
.
addEntity
(
new
AllotBill
());
//生成配发子任务
List
<
Integer
>
userIds
=
new
ArrayList
<>();
userIds
.
add
(
userId
);
TaskBto
taskBto1
=
new
TaskBto
(
StatusEnum
.
WAIT_ALLOT
.
id
,
"配发业务"
,
taskBto
.
getId
(),
"."
+
taskBto
.
getId
()+
"."
,
allotBill
.
getId
()
,
3
,
userUtils
.
getCurrentUnitId
(),
0
,
null
,
userIds
);
TaskBto
taskBto1
=
new
TaskBto
(
StatusEnum
.
WAIT_ALLOT
.
id
,
"配发业务"
,
taskBto
.
getId
(),
"."
+
taskBto
.
getId
()+
"."
,
0
,
3
,
userUtils
.
getCurrentUnitId
(),
0
,
null
,
userIds
);
Task
task
=
taskService
.
start
(
taskBto1
);
deviceApplyBillService
.
update
(
applyBillEntity
);
myWebSocket
.
sendMessage1
();
...
...
@@ -170,7 +165,7 @@ public class DeviceApplyController {
//获取申请账单
DeviceApplyBill
deviceApplyBillEntity
=
deviceApplyBillService
.
getOne
(
applyTask
.
getBillId
());
//添加配发单
AllotBill
allotBillEntity
=
allotBillService
.
getOne
(
taskBto
.
getBillId
()
);
AllotBill
allotBillEntity
=
new
AllotBill
(
);
BeanUtils
.
copyProperties
(
deviceApplyAllotSaveVo
,
allotBillEntity
);
allotBillEntity
.
setTitle
(
"申请后配发"
);
allotBillEntity
.
setSendUseraId
(
userId
);
...
...
@@ -182,7 +177,14 @@ public class DeviceApplyController {
allotBillEntity
.
setSendTime
(
new
Date
());
allotBillEntity
.
setAllotType
(
2
);
allotBillEntity
.
setAllotStatus
(
0
);
allotBillService
.
update
(
allotBillEntity
);
AllotBill
allotBill
=
allotBillService
.
addEntity
(
allotBillEntity
);
Calendar
calendar
=
Calendar
.
getInstance
();
calendar
.
setTime
(
allotBillEntity
.
getCreateTime
());
int
year
=
calendar
.
get
(
Calendar
.
YEAR
);
String
num
=
"NO:第"
+
year
+
"PF"
+
allotBill
.
getId
()
+
"号"
;
allotBill
.
setNum
(
num
);
allotBillService
.
update
(
allotBill
);
taskBto
.
setBillId
(
allotBill
.
getId
());
//配发业务移动到下一阶段
taskService
.
update
(
taskService
.
moveToNext
(
taskBto
,
deviceApplyAllotSaveVo
.
getSendUserbId
()));
//添加业务日志
...
...
dev-device/device-destroy/src/main/java/com/tykj/dev/device/destroy/controller/DeviceDestroyController.java
浏览文件 @
eb45b94b
...
...
@@ -240,7 +240,7 @@ public class DeviceDestroyController {
//生成Task
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
DESTROY_BUSINESS_NEED_CONFIRM
.
id
,
"
标签修改
业务"
,
"
销毁
业务"
,
0
,
"."
,
destroyBill
.
getId
(),
...
...
dev-device/device-repair/src/main/java/com/tykj/dev/device/repair/controller/RepairController.java
浏览文件 @
eb45b94b
...
...
@@ -474,7 +474,6 @@ public class RepairController {
// RepairBill repairbill= new RepairBill();
// RepairSendBill repairSendBill = new RepairSendBill();
// Integer userId = userUtils.getCurrentUserId();
//
// BeanUtils.copyProperties(repairBillSaveVo,repairbill);
// BeanUtils.copyProperties(repairBillSaveVo,repairSendBill);
// repairbill.setRepairStatus(0);
...
...
dev-device/device-retired/src/main/java/com/tykj/dev/device/retired/controller/DeviceRetiredController.java
浏览文件 @
eb45b94b
...
...
@@ -215,7 +215,7 @@ public class DeviceRetiredController {
//生成Task
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
RETIRED_BUSINESS_NEED_CONFIRM
.
id
,
"
标签修改
业务"
,
"
退装
业务"
,
0
,
"."
,
retiredBill
.
getId
(),
...
...
dev-device/device-selfcheck/src/main/java/com/tykj/dev/device/selfcheck/controller/SelfCheckController.java
浏览文件 @
eb45b94b
...
...
@@ -250,7 +250,7 @@ public class SelfCheckController {
@ApiOperation
(
value
=
"查询自查任务详情"
,
notes
=
"可以通过这个接口查询自查任务详情"
)
@GetMapping
(
value
=
"/detail/{billId}"
)
public
ResponseEntity
selectDetail
(
@PathVariable
(
"billId"
)
int
billId
)
{
SelfCheckDetailVo
selfCheckDetailVo
=
new
SelfCheckDetailVo
();
List
<
Object
>
list
=
new
ArrayList
<>
();
//获取业务
TaskBto
taskBto
=
taskService
.
get
(
billId
,
BusinessEnum
.
SELF_CHECK
.
id
);
//获取账单
...
...
@@ -261,7 +261,7 @@ public class SelfCheckController {
if
(
selfExaminationBillEntity
.
getUserbId
()
!=
0
)
{
selfExaminationBillEntity
.
setConfirmUser
(
userPublicService
.
getOne
(
selfExaminationBillEntity
.
getUserbId
()).
getName
());
}
selfCheckDetailVo
.
setSelfCheckBill
(
selfExaminationBillEntity
);
list
.
add
(
selfExaminationBillEntity
);
//获取自查详情
String
str3
=
selfExaminationBillEntity
.
getCheckDetail
();
String
str4
=
selfExaminationBillEntity
.
getNewDeviceDetail
();
...
...
@@ -284,7 +284,7 @@ public class SelfCheckController {
newDeviceList
.
add
(
d
);
}
}
selfCheckDetailVo
.
setNewDeviceList
(
newDeviceList
);
list
.
add
(
newDeviceList
);
}
List
<
DeviceLibrary
>
libraryEntities1
=
new
ArrayList
<>();
//添加自查装备
...
...
@@ -297,10 +297,10 @@ public class SelfCheckController {
libraryEntities1
.
add
(
deviceLibraryEntity
);
}
}
selfCheckDetailVo
.
setCheckDeviceList
(
libraryEntities1
);
list
.
add
(
libraryEntities1
);
//添加业务日志
selfCheckDetailVo
.
setTaskLogUserVos
(
taskLogService
.
getByTaskId
(
taskBto
.
getId
()));
return
ResultUtil
.
success
(
selfCheckDetailVo
);
list
.
add
(
taskLogService
.
getByTaskId
(
taskBto
.
getId
()));
return
ResultUtil
.
success
(
list
);
}
}
dev-device/device-taskselect/src/main/java/com/tykj/dev/device/taskselect/controller/TaskSelectController.java
浏览文件 @
eb45b94b
...
...
@@ -140,23 +140,31 @@ public class TaskSelectController {
return
ResponseEntity
.
ok
(
new
ResultObj
(
list
,
"查询成功"
));
}
AllotBill
allotBillEntity
=
allotBillService
.
getOne
(
billId
);
allotBillEntity
.
setSenderUserA
(
userPublicService
.
getOne
(
allotBillEntity
.
getSendUseraId
()).
getName
());
allotBillEntity
.
setSenderUserB
(
userPublicService
.
getOne
(
allotBillEntity
.
getSendUserbId
()).
getName
());
allotBillEntity
.
setReceiveUserA
(
userPublicService
.
getOne
(
allotBillEntity
.
getReceiveUseraId
()).
getName
());
if
(
allotBillEntity
.
getSendUseraId
()!=
null
)
{
allotBillEntity
.
setSenderUserA
(
userPublicService
.
getOne
(
allotBillEntity
.
getSendUseraId
()).
getName
());
}
if
(
allotBillEntity
.
getSendUserbId
()!=
null
)
{
allotBillEntity
.
setSenderUserB
(
userPublicService
.
getOne
(
allotBillEntity
.
getSendUserbId
()).
getName
());
}
if
(
allotBillEntity
.
getReceiveUseraId
()!=
null
)
{
allotBillEntity
.
setReceiveUserA
(
userPublicService
.
getOne
(
allotBillEntity
.
getReceiveUseraId
()).
getName
());
}
if
(
allotBillEntity
.
getReceiveUserbId
()!=
null
){
allotBillEntity
.
setReceiveUserB
(
userPublicService
.
getOne
(
allotBillEntity
.
getReceiveUserbId
()).
getName
());
}
list
.
add
(
allotBillEntity
);
String
str2
=
allotBillEntity
.
getAllotCheckDetail
();
String
[]
strings1
=
str2
.
split
(
"x"
);
List
<
DeviceLibrary
>
deviceLibraryEntities
=
new
ArrayList
<>();
for
(
String
s:
strings1
)
{
if
(
s
.
length
()>=
2
&&
"1"
.
equals
(
s
.
substring
(
s
.
length
()-
1
)))
{
Integer
id
=
Integer
.
parseInt
(
s
.
substring
(
0
,
s
.
length
()
-
1
));
Integer
checkResult
=
Integer
.
parseInt
(
s
.
substring
(
s
.
length
()-
1
));
DeviceLibrary
deviceLibraryEntity
=
deviceLibraryService
.
getOne
(
id
);
deviceLibraryEntity
.
setCheckResult
(
checkResult
);
deviceLibraryEntities
.
add
(
deviceLibraryEntity
);
if
(
str2
!=
null
)
{
String
[]
strings1
=
str2
.
split
(
"x"
);
for
(
String
s
:
strings1
)
{
if
(
s
.
length
()
>=
2
&&
"1"
.
equals
(
s
.
substring
(
s
.
length
()
-
1
)))
{
Integer
id
=
Integer
.
parseInt
(
s
.
substring
(
0
,
s
.
length
()
-
1
));
Integer
checkResult
=
Integer
.
parseInt
(
s
.
substring
(
s
.
length
()
-
1
));
DeviceLibrary
deviceLibraryEntity
=
deviceLibraryService
.
getOne
(
id
);
deviceLibraryEntity
.
setCheckResult
(
checkResult
);
deviceLibraryEntities
.
add
(
deviceLibraryEntity
);
}
}
}
list
.
add
(
deviceLibraryEntities
);
...
...
dev-device/device-usereport/src/main/java/com/tykj/dev/device/usereport/controller/DeviceUseReportController.java
浏览文件 @
eb45b94b
...
...
@@ -63,4 +63,11 @@ public class DeviceUseReportController {
}
return
ResultUtil
.
success
(
deviceUseReportDetailVo
);
}
@ApiOperation
(
value
=
"装备使用报告下载"
,
notes
=
"装备使用报告下载"
)
@GetMapping
(
"/download/{id}"
)
public
ResponseEntity
getDownloadUrl
(
@PathVariable
(
"id"
)
int
id
){
DeviceUseReport
d
=
deviceUseReportService
.
getOne
(
id
);
return
null
;
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论