Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
f93d7bd7
提交
f93d7bd7
authored
12月 03, 2020
作者:
邓砥奕
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改配套
上级
18c4d60d
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
11 行增加
和
7 行删除
+11
-7
MatchingDeviceController.java
.../device/matching/controller/MatchingDeviceController.java
+7
-3
MatchingDeviceBillSaveVo.java
.../device/matching/subject/vo/MatchingDeviceBillSaveVo.java
+3
-3
MatchingDeviceSaveVo.java
.../dev/device/matching/subject/vo/MatchingDeviceSaveVo.java
+1
-1
没有找到文件。
dev-matching/src/main/java/com/tykj/dev/device/matching/controller/MatchingDeviceController.java
浏览文件 @
f93d7bd7
...
...
@@ -20,6 +20,7 @@ import com.tykj.dev.device.matching.subject.vo.*;
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.util.UserUtils
;
import
com.tykj.dev.misc.base.BusinessEnum
;
import
com.tykj.dev.misc.base.StatusEnum
;
...
...
@@ -94,12 +95,15 @@ public class MatchingDeviceController {
//发起任务
List
<
Integer
>
userIds
=
new
ArrayList
<>();
userIds
.
add
(
userId
);
userIds
.
add
(
matchingDeviceBillSaveVo
.
getUserbId
());
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
ADD_MATCHING_DEVICE_CONFIRM
.
id
,
"新增配套"
,
null
,
"."
,
m
.
getId
(),
19
,
userUtils
.
getCurrentUnitId
(),
1
,
null
,
userIds
);
taskService
.
start
(
taskBto
);
//
userIds.add(matchingDeviceBillSaveVo.getUserbId());
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
END
.
id
,
"新增配套"
,
null
,
"."
,
m
.
getId
(),
19
,
userUtils
.
getCurrentUnitId
(),
0
,
null
,
userIds
);
TaskBto
taskBto1
=
taskService
.
start
(
taskBto
);
//日志文件
List
<
FileVo
>
fileVoList
=
new
ArrayList
<>();
fileVoList
.
add
(
new
FileVo
(
"新增确认单"
,
matchingDeviceBillEntity
.
getFileName
(),
matchingDeviceBillEntity
.
getFileUrl
()));
//添加业务日志
TaskLogBto
taskLogBto2
=
new
TaskLogBto
(
taskBto1
.
getId
(),
"发起新增配套"
,
fileVoList
);
taskLogService
.
addLog
(
taskLogBto2
);
for
(
MatchingDeviceSaveVo
matchingDeviceSaveVo
:
matchingDeviceBillSaveVo
.
getMatchingDeviceSaveVoList
())
{
MatchingDeviceLibrary
matchingDeviceLibraryEntity
=
matchingDeviceSaveVo
.
toDo
();
MatchingDeviceLibrary
saveEntity
=
matchingDeviceLibraryService
.
addEntity
(
matchingDeviceLibraryEntity
);
...
...
dev-matching/src/main/java/com/tykj/dev/device/matching/subject/vo/MatchingDeviceBillSaveVo.java
浏览文件 @
f93d7bd7
...
...
@@ -32,8 +32,8 @@ public class MatchingDeviceBillSaveVo {
@ApiModelProperty
(
value
=
"发起人id"
)
private
Integer
useraId
;
@NotNull
(
message
=
"userbId不能为空"
)
@Min
(
value
=
1
,
message
=
"userbId不能小于1"
)
//
@NotNull(message = "userbId不能为空")
//
@Min(value = 1,message = "userbId不能小于1")
@ApiModelProperty
(
value
=
"审核人id"
)
private
Integer
userbId
;
...
...
@@ -45,7 +45,7 @@ public class MatchingDeviceBillSaveVo {
public
MatchingDeviceBill
toDo
()
{
MatchingDeviceBill
matchingDeviceBillEntity
=
new
MatchingDeviceBill
();
BeanUtils
.
copyProperties
(
this
,
matchingDeviceBillEntity
);
matchingDeviceBillEntity
.
setBillStatus
(
0
);
matchingDeviceBillEntity
.
setBillStatus
(
2
);
matchingDeviceBillEntity
.
setDeviceDetail
(
"x"
);
return
matchingDeviceBillEntity
;
}
...
...
dev-matching/src/main/java/com/tykj/dev/device/matching/subject/vo/MatchingDeviceSaveVo.java
浏览文件 @
f93d7bd7
...
...
@@ -46,7 +46,7 @@ public class MatchingDeviceSaveVo {
public
MatchingDeviceLibrary
toDo
()
{
MatchingDeviceLibrary
matchingDeviceLibraryEntity
=
new
MatchingDeviceLibrary
();
BeanUtils
.
copyProperties
(
this
,
matchingDeviceLibraryEntity
);
matchingDeviceLibraryEntity
.
setLifeStatus
(
0
);
matchingDeviceLibraryEntity
.
setLifeStatus
(
2
);
matchingDeviceLibraryEntity
.
setDeviceId
(
0
);
return
matchingDeviceLibraryEntity
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论