Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
6357ce6d
提交
6357ce6d
authored
1月 15, 2021
作者:
133
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
t
上级
ea9ff455
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
34 行增加
和
5 行删除
+34
-5
DeviceLogService.java
...com/tykj/dev/device/library/service/DeviceLogService.java
+5
-0
DeviceLogServiceImpl.java
...dev/device/library/service/impl/DeviceLogServiceImpl.java
+6
-0
RepelBusinessServiceImpl.java
...evice/sendback/service/impl/RepelBusinessServiceImpl.java
+21
-0
SendBackServiceImpl.java
...dev/device/sendback/service/impl/SendBackServiceImpl.java
+1
-1
pom.xml
pom.xml
+1
-4
没有找到文件。
dev-library/src/main/java/com/tykj/dev/device/library/service/DeviceLogService.java
浏览文件 @
6357ce6d
...
...
@@ -2,6 +2,9 @@ package com.tykj.dev.device.library.service;
import
com.tykj.dev.device.library.subject.Dto.DeviceLogDto
;
import
com.tykj.dev.device.library.subject.domin.DeviceLog
;
import
java.util.List
;
/**
* @author dengdiyi
...
...
@@ -15,4 +18,6 @@ public interface DeviceLogService {
DeviceLogDto
getOne
(
Integer
id
);
void
saveAllLog
(
List
<
DeviceLog
>
deviceLogList
);
}
dev-library/src/main/java/com/tykj/dev/device/library/service/impl/DeviceLogServiceImpl.java
浏览文件 @
6357ce6d
...
...
@@ -12,6 +12,7 @@ import com.tykj.dev.misc.utils.ResultUtil;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
import
java.util.Optional
;
...
...
@@ -47,4 +48,9 @@ public class DeviceLogServiceImpl implements DeviceLogService {
}
}
@Override
public
void
saveAllLog
(
List
<
DeviceLog
>
deviceLoList
)
{
deviceLogDao
.
saveAll
(
deviceLoList
);
}
}
dev-sendback/src/main/java/com/tykj/dev/device/sendback/service/impl/RepelBusinessServiceImpl.java
浏览文件 @
6357ce6d
...
...
@@ -4,8 +4,12 @@ import com.fasterxml.jackson.core.type.TypeReference;
import
com.tykj.dev.config.GlobalMap
;
import
com.tykj.dev.device.file.service.FilesUtil
;
import
com.tykj.dev.device.library.repository.DeviceLibraryDao
;
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.domin.DeviceLog
;
import
com.tykj.dev.device.packing.repository.PackingLibraryDao
;
import
com.tykj.dev.device.packing.subject.vo.AddModel
;
import
com.tykj.dev.device.sendback.entity.domain.DeviceRepel
;
import
com.tykj.dev.device.sendback.entity.domain.DeviceRepelDetail
;
import
com.tykj.dev.device.sendback.entity.domain.RepelDeviceUnit
;
...
...
@@ -48,6 +52,8 @@ import java.util.stream.Collectors;
public
class
RepelBusinessServiceImpl
implements
RepelBusinessService
{
@Autowired
TaskService
taskService
;
@Autowired
DeviceLogService
deviceLogService
;
@Autowired
DeviceRepelService
deviceRepelService
;
...
...
@@ -376,6 +382,7 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
deviceRepelDetailService
.
saveDeviceRepelDetail
(
orderOutDataRepelDetail
);
taskBto
.
setOwnUnit
(
orderOutData
.
getReceiveUnitId
());
taskService
.
moveToSpecial
(
taskBto
,
StatusEnum
.
SEND_BACK_1209
,
0
);
devLogAdd
(
findInvoleDevice
(
deviceRepelDetail
.
getDeviceIds
()),
deviceRepelDetail
.
getSendUnit
()+
"装备清退出库"
+
",等待"
+
deviceRepelDetail
.
getReceiveUnit
()+
"接收"
);
//把一些字段填写到对象中,保存入库
//把任务状态修改为 清退提交装备待接收
}
...
...
@@ -412,6 +419,7 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
repelTaskStatisticalService
.
saveRepelTaskStatistical
(
repelTaskStatistical
);
deviceRepelDetailService
.
saveDeviceRepelDetail
(
deviceRepelDetail
);
isEnd
(
taskBto
,
deviceRepelDetail
.
getRepelId
());
devLogAdd
(
findInvoleDevice
(
deviceRepelDetail
.
getDeviceIds
()),
deviceRepelDetail
.
getReceiveUnit
()+
"接收"
+
deviceRepelDetail
.
getSendUnit
()+
"装备清退装备,任务完成"
);
//完结当前任务
//把任务状态修改为 清退提交装备已完成
//修改统计表中的数据信息 状态
...
...
@@ -444,6 +452,7 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
repelDeviceUnitService
.
saveAllRepelDeviceUnit
(
list
);
deviceRepelDetailService
.
saveDeviceRepelDetail
(
deviceRepelDetail
);
isEnd
(
taskBto
,
deviceRepelDetail
.
getRepelId
());
devLogAdd
(
libraries
,
"省本级清退,把装备转变为待清退"
);
//完结当前任务
//修改统计表中的数据信息 状态
//把装备的状态都修改为待清退。
...
...
@@ -646,4 +655,16 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
}
}
public
void
devLogAdd
(
List
<
DeviceLibrary
>
deviceLibraries
,
String
remark
){
List
<
DeviceLog
>
logDtos
=
new
ArrayList
<>();
deviceLibraries
.
forEach
(
deviceLibrary
->
{
logDtos
.
add
(
new
DeviceLogDto
(
deviceLibrary
.
getId
(),
remark
,
null
).
toDo
());
}
);
deviceLogService
.
saveAllLog
(
logDtos
);
}
}
dev-sendback/src/main/java/com/tykj/dev/device/sendback/service/impl/SendBackServiceImpl.java
浏览文件 @
6357ce6d
...
...
@@ -527,7 +527,7 @@ public class SendBackServiceImpl implements SendBackService {
sendBackBillDetailEntity
.
setFileName
(
sendBackOut
.
getFileName
());
sendBackBillDetailEntity
.
setFileUrl
(
sendBackOut
.
getUrl
());
sendBackBillDetailEntity
.
setDeleteTag
(
0
);
List
<
Integer
>
ids
=
sendBackOut
.
getDeviceLibraryEntities
().
stream
().
map
(
DeviceLibrary:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
Integer
>
ids
=
sendBackOut
.
getDeviceLibraryEntities
().
stream
().
map
(
DeviceLibrary:
:
getId
).
collect
(
Collectors
.
toList
());
sendBackBillDetailEntity
.
setDeviceIds
(
JacksonUtil
.
toJSon
(
ids
));
sendBackBillDetailEntity
.
setApplyNumber
(
""
);
sendBackBillDetailEntity
.
setReplayNumber
(
""
);
...
...
pom.xml
浏览文件 @
6357ce6d
...
...
@@ -260,10 +260,7 @@
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-actuator
</artifactId>
</dependency>
</dependencies>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论