Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
5e141d45
提交
5e141d45
authored
12月 02, 2020
作者:
邓砥奕
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
提交维修更改
上级
88bba9df
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
46 行增加
和
17 行删除
+46
-17
AllotBackBillController.java
.../dev/device/allot/controller/AllotBackBillController.java
+29
-6
AllotBillController.java
...tykj/dev/device/allot/controller/AllotBillController.java
+0
-0
DeviceApplyController.java
...kj/dev/device/apply/controller/DeviceApplyController.java
+2
-0
LogType.java
dev-config/src/main/java/com/tykj/dev/config/LogType.java
+3
-3
RepairController.java
...m/tykj/dev/device/repair/controller/RepairController.java
+0
-0
RepairBackBillSaveVo.java
...kj/dev/device/repair/subject/vo/RepairBackBillSaveVo.java
+2
-2
RepairBillSaveVo.java
...m/tykj/dev/device/repair/subject/vo/RepairBillSaveVo.java
+2
-2
RepairReceiveVo.java
...om/tykj/dev/device/repair/subject/vo/RepairReceiveVo.java
+2
-2
StorageBillController.java
.../dev/device/storage/controller/StorageBillController.java
+6
-2
没有找到文件。
dev-allot/src/main/java/com/tykj/dev/device/allot/controller/AllotBackBillController.java
浏览文件 @
5e141d45
...
...
@@ -13,8 +13,12 @@ import com.tykj.dev.device.library.service.DeviceLogService;
import
com.tykj.dev.device.library.subject.Dto.DeviceLogDto
;
import
com.tykj.dev.device.library.subject.domin.DeviceLibrary
;
import
com.tykj.dev.device.library.subject.vo.FileVo
;
import
com.tykj.dev.device.read.service.MessageService
;
import
com.tykj.dev.device.read.subject.bto.MessageBto
;
import
com.tykj.dev.device.task.service.TaskService
;
import
com.tykj.dev.device.task.subject.bto.TaskBto
;
import
com.tykj.dev.device.user.subject.dao.UserDao
;
import
com.tykj.dev.device.user.subject.entity.User
;
import
com.tykj.dev.device.user.subject.service.UserPublicService
;
import
com.tykj.dev.device.user.util.UserUtils
;
import
com.tykj.dev.misc.base.ResultObj
;
...
...
@@ -38,6 +42,7 @@ import org.springframework.web.bind.annotation.RestController;
import
java.util.ArrayList
;
import
java.util.Calendar
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
* @author dengdiyi
...
...
@@ -79,6 +84,12 @@ public class AllotBackBillController {
@Autowired
private
InputOutputDeviceService
inputOutputDeviceService
;
@Autowired
private
UserDao
userDao
;
@Autowired
private
MessageService
messageService
;
@ApiOperation
(
value
=
"发起配发退回业务"
,
notes
=
"可以通过这个接口发起配发退回任务"
)
@PostMapping
(
value
=
"/back"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
...
...
@@ -155,12 +166,15 @@ public class AllotBackBillController {
public
ResponseEntity
allotBackReceive
(
@RequestBody
@Validated
AllotBackReceiveVo
allotBackReceiveVo
)
{
//获取当前任务和账单
TaskBto
taskBto
=
taskService
.
get
(
allotBackReceiveVo
.
getTaskId
());
taskService
.
addInvolveUser
(
taskBto
,
userUtils
.
getCurrentUserId
());
AllotBackBill
allotBackBill
=
allotBackBillService
.
getOne
(
taskBto
.
getBillId
());
//更改账单状态
allotBackBill
.
setBackStatus
(
1
);
allotBackBill
.
setBackStatus
(
3
);
allotBackBill
.
setReceiveUseraId
(
userUtils
.
getCurrentUserId
());
BeanUtils
.
copyProperties
(
allotBackReceiveVo
,
allotBackBill
);
//任务推至下一阶段
taskService
.
moveToNext
(
taskBto
,
allotBackReceiveVo
.
getReceiveUserbId
());
//任务推至完结
taskService
.
moveToEnd
(
taskBto
);
// taskService.moveToNext(taskBto, allotBackReceiveVo.getReceiveUserbId());
//分隔装备id信息
List
<
FileVo
>
fileVoList
=
new
ArrayList
<>();
fileVoList
.
add
(
new
FileVo
(
"退回单"
,
allotBackReceiveVo
.
getBillFileName
(),
allotBackReceiveVo
.
getBillFileUrl
()));
...
...
@@ -175,10 +189,12 @@ public class AllotBackBillController {
Integer
id
=
Integer
.
parseInt
(
s
.
substring
(
0
,
s
.
length
()
-
1
));
//改变装备状态
DeviceLibrary
deviceLibraryEntity
=
deviceLibraryService
.
getOne
(
id
);
deviceLibraryEntity
.
setLifeStatus
(
0
);
deviceLibraryEntity
.
setLifeStatus
(
2
);
deviceLibraryEntity
.
setOwnUnit
(
userUtils
.
getCurrentUserUnitName
());
deviceLibraryEntity
.
setManageStatus
(
1
);
deviceLibraryEntity
.
setLocationUnit
(
userUtils
.
getCurrentUserUnitName
());
//存装备日志
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
id
,
"接收
并发起入库
"
,
fileVoList
);
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
id
,
"接收
配发退回装备
"
,
fileVoList
);
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLibraryService
.
update
(
deviceLibraryEntity
);
}
...
...
@@ -189,13 +205,20 @@ public class AllotBackBillController {
DeviceLibrary
deviceLibraryEntity
=
deviceLibraryService
.
getOne
(
id
);
deviceLibraryEntity
.
setLifeStatus
(
11
);
//存装备日志
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
id
,
"接收
入库
丢失"
,
fileVoList
);
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
id
,
"接收
配发退回装备
丢失"
,
fileVoList
);
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLibraryService
.
update
(
deviceLibraryEntity
);
}
}
}
}
//发送阅知信息
List
<
Integer
>
ids
=
userPublicService
.
findOtherUser
(
userUtils
.
getCurrentUserId
());
ids
.
addAll
(
userDao
.
findAllByUnitsId
(
userPublicService
.
findUnitIdByName
(
allotBackBill
.
getSendUnit
())).
stream
()
.
map
(
User:
:
getUserId
)
.
collect
(
Collectors
.
toList
()));
MessageBto
messageBto
=
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
userUtils
.
getCurrentUserUnitName
()+
"接收配发退回装备"
,
ids
);
messageService
.
add
(
messageBto
);
log
.
info
(
"[配发模块]:配发退回接收入库"
);
myWebSocket
.
sendMessage1
();
return
ResponseEntity
.
ok
(
"配发退回接收入库"
);
...
...
dev-allot/src/main/java/com/tykj/dev/device/allot/controller/AllotBillController.java
浏览文件 @
5e141d45
差异被折叠。
点击展开。
dev-apply/src/main/java/com/tykj/dev/device/apply/controller/DeviceApplyController.java
浏览文件 @
5e141d45
...
...
@@ -148,7 +148,9 @@ public class DeviceApplyController {
public
ResponseEntity
addDeviceApplyBillReplay
(
@RequestBody
@Validated
DeviceApplyConfirmVo
deviceApplyConfirmVo
)
{
TaskBto
taskBto
=
taskService
.
get
(
deviceApplyConfirmVo
.
getTaskId
());
Integer
userId
=
userUtils
.
getCurrentUserId
();
taskService
.
addInvolveUser
(
taskBto
,
userId
);
DeviceApplyBill
applyBillEntity
=
deviceApplyBillService
.
getOne
(
taskBto
.
getBillId
());
applyBillEntity
.
setReplyUseraId
(
userId
);
//阅知用户Id
List
<
Integer
>
ids
=
userPublicService
.
findOtherUser
(
userId
);
ids
.
addAll
(
userDao
.
findAllByUnitsId
(
userPublicService
.
findUnitIdByName
(
applyBillEntity
.
getApplyUnit
())).
stream
()
...
...
dev-config/src/main/java/com/tykj/dev/config/LogType.java
浏览文件 @
5e141d45
...
...
@@ -81,7 +81,7 @@ public enum LogType {
REPAIR_SEND_3
(
32
,
REPAIR_SEND_CONFIRM
.
id
,
ARCHIVE
.
id
,
"维修出库审核失败"
),
REPAIR_SEND_4
(
33
,
WAIT_RECEIVE
.
id
,
END
.
id
,
"接收维修装备并发起入库"
),
REPAIR_SEND_4
(
33
,
WAIT_RECEIVE
.
id
,
REPAIRING
.
id
,
"接收维修装备并发起入库"
),
DESTROY_4
(
100
,
WAIT_UPLOAD_BILL_FILE
.
id
,
END
.
id
,
"上传销毁单"
),
...
...
@@ -91,7 +91,7 @@ public enum LogType {
REPAIR_SEND_7
(
36
,
REPAIR_SEND_CONFIRM
.
id
,
COUNTRY_REPAIRING
.
id
,
"审核成功并出库"
),
REPAIR_BACK_1
(
37
,
ORIGIN_STATUS
.
id
,
REPAIR_BACK_CONFIRM
.
id
,
"向(%receiveUnit)退还维修装备"
),
REPAIR_BACK_1
(
37
,
ORIGIN_STATUS
.
id
,
WAIT_BACK_RECEIVE
.
id
,
"向(%receiveUnit)退还维修装备"
),
REPAIR_BACK_2
(
38
,
REPAIR_BACK_CONFIRM
.
id
,
WAIT_BACK_RECEIVE
.
id
,
"维修退回审核成功并出库"
),
...
...
@@ -166,12 +166,12 @@ public enum LogType {
WORK_H1
(
79
,
ORIGIN_STATUS
.
id
,
WORKHANDOVER1011
.
id
,
"工作交接任务生成完成,等待上传交接单"
),
WORK_H2
(
80
,
WORKHANDOVER1011
.
id
,
END
.
id
,
"工作交接完成"
),
STORAGE_4
(
81
,
ORIGIN_STATUS
.
id
,
END
.
id
,
"进行装备入库"
),
ALLOT_8
(
82
,
ORIGIN_STATUS
.
id
,
ALLOTING
.
id
,
"对(%receiveUnit)发起配发"
),
ALLOT_9
(
83
,
ALLOTING
.
id
,
END
.
id
,
"接收配发装备"
),
ALLOT_10
(
84
,
WAIT_ALLOT
.
id
,
ALLOTING
.
id
,
"对(%receiveUnit)发起配发"
),
ALLOT_11
(
85
,
ALLOTING
.
id
,
ARCHIVE
.
id
,
"拒绝接收配发装备"
),
ALLOT_BACK_5
(
86
,
ALLOT_BACKING
.
id
,
END
.
id
,
"接收配发退回装备"
),
REPAIR_SEND_10
(
87
,
ORIGIN_STATUS
.
id
,
COUNTRY_REPAIRING
.
id
,
"向(%receiveUnit)发起装备维修"
),
;
public
Integer
id
;
...
...
dev-repair/src/main/java/com/tykj/dev/device/repair/controller/RepairController.java
浏览文件 @
5e141d45
差异被折叠。
点击展开。
dev-repair/src/main/java/com/tykj/dev/device/repair/subject/vo/RepairBackBillSaveVo.java
浏览文件 @
5e141d45
...
...
@@ -27,8 +27,8 @@ public class RepairBackBillSaveVo {
@ApiModelProperty
(
value
=
"退回发起人"
,
example
=
"1"
)
private
Integer
startUseraId
;
@NotNull
(
message
=
"startUserbId不能为空"
)
@Min
(
value
=
1
,
message
=
"startUserbId不能小于1"
)
//
@NotNull(message = "startUserbId不能为空")
//
@Min(value = 1,message = "startUserbId不能小于1")
@ApiModelProperty
(
value
=
"退回确认人"
,
example
=
"1"
)
private
Integer
startUserbId
;
...
...
dev-repair/src/main/java/com/tykj/dev/device/repair/subject/vo/RepairBillSaveVo.java
浏览文件 @
5e141d45
...
...
@@ -22,8 +22,8 @@ public class RepairBillSaveVo {
@ApiModelProperty
(
value
=
"发起申请人"
,
example
=
"1"
)
private
Integer
startUseraId
;
@NotNull
(
message
=
"startUserbId不能为空"
)
@Min
(
value
=
1
,
message
=
"startUserbId不能小于1"
)
//
@NotNull(message = "startUserbId不能为空")
//
@Min(value = 1,message = "startUserbId不能小于1")
@ApiModelProperty
(
value
=
"发起确认人"
,
example
=
"1"
)
private
Integer
startUserbId
;
...
...
dev-repair/src/main/java/com/tykj/dev/device/repair/subject/vo/RepairReceiveVo.java
浏览文件 @
5e141d45
...
...
@@ -14,8 +14,8 @@ import javax.validation.constraints.NotNull;
@ApiModel
(
"配发接收类"
)
public
class
RepairReceiveVo
{
@NotNull
(
message
=
"receiveUserbId不能为空"
)
@Min
(
value
=
1
,
message
=
"receiveUserbId不能小于1"
)
//
@NotNull(message = "receiveUserbId不能为空")
//
@Min(value = 1,message = "receiveUserbId不能小于1")
@ApiModelProperty
(
value
=
"接收单位B岗"
)
private
Integer
receiveUserbId
;
...
...
dev-storage/src/main/java/com/tykj/dev/device/storage/controller/StorageBillController.java
浏览文件 @
5e141d45
...
...
@@ -9,6 +9,8 @@ import com.tykj.dev.device.library.subject.vo.DeviceLibrarySaveVo;
import
com.tykj.dev.device.library.subject.vo.FileVo
;
import
com.tykj.dev.device.packing.service.PackingLibraryService
;
import
com.tykj.dev.device.packing.subject.domin.PackingLibrary
;
import
com.tykj.dev.device.read.service.MessageService
;
import
com.tykj.dev.device.read.subject.bto.MessageBto
;
import
com.tykj.dev.device.storage.service.StorageBillService
;
import
com.tykj.dev.device.storage.subject.domin.StorageBill
;
import
com.tykj.dev.device.storage.subject.vo.StorageBillConfirmVo
;
...
...
@@ -18,6 +20,7 @@ import com.tykj.dev.device.storage.subject.vo.StorageDetailVo;
import
com.tykj.dev.device.task.service.TaskLogService
;
import
com.tykj.dev.device.task.service.TaskService
;
import
com.tykj.dev.device.task.subject.bto.TaskBto
;
import
com.tykj.dev.device.task.subject.bto.TaskLogBto
;
import
com.tykj.dev.device.user.subject.service.UserPublicService
;
import
com.tykj.dev.device.user.util.UserUtils
;
import
com.tykj.dev.misc.base.BusinessEnum
;
...
...
@@ -34,8 +37,6 @@ import org.springframework.http.ResponseEntity;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
com.tykj.dev.device.read.service.MessageService
;
import
com.tykj.dev.device.read.subject.bto.MessageBto
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
...
...
@@ -143,6 +144,9 @@ public class StorageBillController {
List
<
FileVo
>
fileVoList
=
new
ArrayList
<>();
fileVoList
.
add
(
new
FileVo
(
"配发单"
,
storageBillEntity
.
getFileName
(),
storageBillEntity
.
getFileUrl
()));
fileVoList
.
add
(
new
FileVo
(
"入库确认单"
,
storageBillEntity
.
getReceiveFileName
(),
storageBillEntity
.
getReceiveFileUrl
()));
//添加业务日志
TaskLogBto
taskLogBto2
=
new
TaskLogBto
(
taskEntity1
.
getId
(),
"发起装备入库"
,
fileVoList
);
taskLogService
.
addLog
(
taskLogBto2
);
//3.存装备
Integer
parentId
=
null
;
for
(
DeviceLibrarySaveVo
d
:
storageBillSaveVo
.
getDeviceLibrarySaveVoList
())
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论