Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
cd59e8db
提交
cd59e8db
authored
6月 11, 2021
作者:
邓砥奕
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
150674a6
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
9 行增加
和
10 行删除
+9
-10
RepairStatusEnum.java
...rc/main/java/com/tykj/dev/misc/base/RepairStatusEnum.java
+1
-1
RepairController.java
...m/tykj/dev/device/repair/controller/RepairController.java
+6
-5
RepairBackBill.java
.../tykj/dev/device/repair/subject/domin/RepairBackBill.java
+1
-1
TaskController.java
...a/com/tykj/dev/device/task/controller/TaskController.java
+1
-3
没有找到文件。
dev-misc/src/main/java/com/tykj/dev/misc/base/RepairStatusEnum.java
浏览文件 @
cd59e8db
...
@@ -24,7 +24,7 @@ public enum RepairStatusEnum {
...
@@ -24,7 +24,7 @@ public enum RepairStatusEnum {
/**
/**
* 库存换新
* 库存换新
*/
*/
CHANGE_NEW
(
3
,
"库存换新"
),
CHANGE_NEW
(
3
,
"库存换新"
),
//不用了
/**
/**
* 已报废
* 已报废
*/
*/
...
...
dev-repair/src/main/java/com/tykj/dev/device/repair/controller/RepairController.java
浏览文件 @
cd59e8db
...
@@ -242,6 +242,7 @@ public class RepairController {
...
@@ -242,6 +242,7 @@ public class RepairController {
repairDetail
.
setModel
(
deviceLibraryEntity
.
getModel
());
repairDetail
.
setModel
(
deviceLibraryEntity
.
getModel
());
repairDetail
.
setName
(
deviceLibraryEntity
.
getName
());
repairDetail
.
setName
(
deviceLibraryEntity
.
getName
());
repairDetail
.
setOwnUnit
(
deviceLibraryEntity
.
getOwnUnit
());
repairDetail
.
setOwnUnit
(
deviceLibraryEntity
.
getOwnUnit
());
//设置状态为等待送修
repairDetail
.
setRepairStatus
(
9
);
repairDetail
.
setRepairStatus
(
9
);
repairDetail
.
setRfidSurfaceId
(
deviceLibraryEntity
.
getRfidSurfaceId
());
repairDetail
.
setRfidSurfaceId
(
deviceLibraryEntity
.
getRfidSurfaceId
());
repairDetail
.
setSeqNumber
(
deviceLibraryEntity
.
getSeqNumber
());
repairDetail
.
setSeqNumber
(
deviceLibraryEntity
.
getSeqNumber
());
...
@@ -455,7 +456,7 @@ public class RepairController {
...
@@ -455,7 +456,7 @@ public class RepairController {
List
<
Integer
>
idList
=
StringSplitUtil
.
split
(
deviceIdDetail
);
List
<
Integer
>
idList
=
StringSplitUtil
.
split
(
deviceIdDetail
);
//如果当前为省,改变装备的所在为中办
//如果当前为省,改变装备的所在为中办
if
(
level
==
1
)
{
if
(
level
==
1
)
{
//获取当前业务维修详情
//获取当前业务维修详情
记录
List
<
RepairDetail
>
repairDetailEntities
=
deviceRepairDetailService
.
findByBillId
(
repairBill
.
getId
());
List
<
RepairDetail
>
repairDetailEntities
=
deviceRepairDetailService
.
findByBillId
(
repairBill
.
getId
());
//改变维修详情装备所在单位为中办,状态为维修中
//改变维修详情装备所在单位为中办,状态为维修中
repairDetailEntities
.
forEach
(
repairDetail
->
{
repairDetailEntities
.
forEach
(
repairDetail
->
{
...
@@ -807,7 +808,7 @@ public class RepairController {
...
@@ -807,7 +808,7 @@ public class RepairController {
}
}
@ApiOperation
(
value
=
"修好装备出库"
,
notes
=
"可以通过这个接口修好装备出库"
)
@ApiOperation
(
value
=
"修好装备出库"
,
notes
=
"可以通过这个接口修好装备出库"
)
@PostMapping
(
value
=
"/back"
)
@PostMapping
(
value
=
"/back"
)
//开始维修退回
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ResponseEntity
repairBack
(
@RequestBody
@Validated
RepairBackBillSaveVo
repairBackBillSaveVo
)
{
public
ResponseEntity
repairBack
(
@RequestBody
@Validated
RepairBackBillSaveVo
repairBackBillSaveVo
)
{
//存放详情id
//存放详情id
...
@@ -994,7 +995,7 @@ public class RepairController {
...
@@ -994,7 +995,7 @@ public class RepairController {
}
}
else
{
else
{
userIds
.
add
(
0
);
userIds
.
add
(
0
);
TaskBto
taskBto1
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_BACK_FILE
.
id
,
repairBackBill
.
getSendUnit
()+
"维修退回型号
:
"
+
StringSplitUtil
.
stringListToString
(
repairReceiveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))+
"共有"
+
repairBackBill
.
getReceiveCount
()+
"件至"
+
repairBackBill
.
getReceiveUnit
(),
null
,
"."
,
repairBackBill1
.
getId
(),
BusinessEnum
.
REPAIR_BACK
.
id
,
userUtils
.
getCurrentUnitId
(),
0
,
"country"
,
userIds
);
TaskBto
taskBto1
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_BACK_FILE
.
id
,
repairBackBill
.
getSendUnit
()+
"维修退回型号"
+
StringSplitUtil
.
stringListToString
(
repairReceiveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))+
"共有"
+
repairBackBill
.
getReceiveCount
()+
"件至"
+
repairBackBill
.
getReceiveUnit
(),
null
,
"."
,
repairBackBill1
.
getId
(),
BusinessEnum
.
REPAIR_BACK
.
id
,
userUtils
.
getCurrentUnitId
(),
0
,
"country"
,
userIds
);
taskBto2
=
taskService
.
start
(
taskBto1
);
taskBto2
=
taskService
.
start
(
taskBto1
);
}
}
//遍历改变维修详情
//遍历改变维修详情
...
@@ -1968,7 +1969,7 @@ public class RepairController {
...
@@ -1968,7 +1969,7 @@ public class RepairController {
}
}
@ApiOperation
(
value
=
"上传送修发送方签发人"
,
notes
=
"上传发送方签发人"
)
@ApiOperation
(
value
=
"上传送修发送方签发人"
,
notes
=
"上传发送方签发人"
)
@PostMapping
(
value
=
"/updateSendAgent"
)
@PostMapping
(
value
=
"/updateSendAgent"
)
//不用
public
ResponseEntity
updateSendAgent
(
@RequestBody
AgentBackVo
agentBackVo
){
public
ResponseEntity
updateSendAgent
(
@RequestBody
AgentBackVo
agentBackVo
){
TaskBto
taskBto
=
taskService
.
get
(
agentBackVo
.
getId
());
TaskBto
taskBto
=
taskService
.
get
(
agentBackVo
.
getId
());
List
<
Integer
>
idList
=
new
ArrayList
<>();
List
<
Integer
>
idList
=
new
ArrayList
<>();
...
@@ -1985,7 +1986,7 @@ public class RepairController {
...
@@ -1985,7 +1986,7 @@ public class RepairController {
}
}
@ApiOperation
(
value
=
"上传领取发送方签发人"
,
notes
=
"上传发送方签发人"
)
@ApiOperation
(
value
=
"上传领取发送方签发人"
,
notes
=
"上传发送方签发人"
)
@PostMapping
(
value
=
"/updateBackAgent"
)
@PostMapping
(
value
=
"/updateBackAgent"
)
//不用
public
ResponseEntity
updateBackAgent
(
@RequestBody
AgentBackVo
agentBackVo
){
public
ResponseEntity
updateBackAgent
(
@RequestBody
AgentBackVo
agentBackVo
){
TaskBto
taskBto
=
taskService
.
get
(
agentBackVo
.
getId
());
TaskBto
taskBto
=
taskService
.
get
(
agentBackVo
.
getId
());
List
<
Integer
>
idList
=
new
ArrayList
<>();
List
<
Integer
>
idList
=
new
ArrayList
<>();
...
...
dev-repair/src/main/java/com/tykj/dev/device/repair/subject/domin/RepairBackBill.java
浏览文件 @
cd59e8db
...
@@ -149,7 +149,7 @@ public class RepairBackBill {
...
@@ -149,7 +149,7 @@ public class RepairBackBill {
/**
/**
* 退回状态(1:维修成功出库待审核,2:维修成功出库审核失败,3:重新配发出库待审核,4:重新配发出库审核失败,5:退回中,5:送修方接收待审核,6:送修方接收审核失败,7:维修退回完成)
* 退回状态(1:维修成功出库待审核,2:维修成功出库审核失败,3:重新配发出库待审核,4:重新配发出库审核失败,5:退回中,5:送修方接收待审核,6:送修方接收审核失败,7:维修退回完成)
*/
*/
@ApiModelProperty
(
value
=
"退回状态(0:草稿,2:
维修成功出库审核失败,3:重新配发出库待审核,4:重新配发出库审核失败,5:退回中,5:送修方接收待审核,6:送修方接收审核失败,7
:维修退回完成)"
)
@ApiModelProperty
(
value
=
"退回状态(0:草稿,2:
退回中,5
:维修退回完成)"
)
private
Integer
backStatus
;
private
Integer
backStatus
;
/**
/**
* 维修完成出库详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配
* 维修完成出库详情(装备主键id+核对结果(0缺失1无误3不匹配,字符x作为分隔符)),例如10x21x32,意为主键id为1的装备缺失,为2的无误,为3的不匹配
...
...
dev-task/src/main/java/com/tykj/dev/device/task/controller/TaskController.java
浏览文件 @
cd59e8db
package
com
.
tykj
.
dev
.
device
.
task
.
controller
;
package
com
.
tykj
.
dev
.
device
.
task
.
controller
;
import
com.alibaba.fastjson.JSONObject
;
import
com.tykj.dev.config.GlobalMap
;
import
com.tykj.dev.config.GlobalMap
;
import
com.tykj.dev.config.swagger.AutoDocument
;
import
com.tykj.dev.config.swagger.AutoDocument
;
import
com.tykj.dev.device.task.repository.TaskDao
;
import
com.tykj.dev.device.task.repository.TaskDao
;
...
@@ -21,7 +20,6 @@ import com.tykj.dev.misc.utils.StringSplitUtil;
...
@@ -21,7 +20,6 @@ import com.tykj.dev.misc.utils.StringSplitUtil;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.core.OrderComparator
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
...
@@ -222,7 +220,7 @@ public class TaskController {
...
@@ -222,7 +220,7 @@ public class TaskController {
}
}
@ApiOperation
(
value
=
"查询业务日志"
,
notes
=
"可以通过这个接口查询查询业务日志"
)
@ApiOperation
(
value
=
"查询业务日志"
,
notes
=
"可以通过这个接口查询查询业务日志"
)
@GetMapping
(
"/manage/detail/log/{id}"
)
@GetMapping
(
"/manage/detail/log/{id}"
)
//业务履历
public
ResponseEntity
selectLog
(
@PathVariable
(
"id"
)
int
taskId
)
{
public
ResponseEntity
selectLog
(
@PathVariable
(
"id"
)
int
taskId
)
{
//添加当前业务日志
//添加当前业务日志
List
<
TaskLogUserVo
>
taskLogUserVos
=
taskLogService
.
getByTaskId
(
taskId
);
List
<
TaskLogUserVo
>
taskLogUserVos
=
taskLogService
.
getByTaskId
(
taskId
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论