Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
97e4bd9f
提交
97e4bd9f
authored
9月 28, 2020
作者:
邓砥奕
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[清退模块]添加了装备日志
上级
10f8a61b
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
36 行增加
和
2 行删除
+36
-2
BeanConfig.java
dev-config/src/main/java/com/tykj/dev/config/BeanConfig.java
+18
-0
SendBackServiceImpl.java
...dev/device/sendback/service/impl/SendBackServiceImpl.java
+12
-1
LogAspect.java
dev-union/src/main/java/com/tykj/dev/union/LogAspect.java
+6
-1
没有找到文件。
dev-config/src/main/java/com/tykj/dev/config/BeanConfig.java
0 → 100644
浏览文件 @
97e4bd9f
package
com
.
tykj
.
dev
.
config
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.scheduling.TaskScheduler
;
import
org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler
;
import
org.springframework.stereotype.Component
;
@Component
public
class
BeanConfig
{
@Bean
public
TaskScheduler
taskScheduler
()
{
ThreadPoolTaskScheduler
taskScheduler
=
new
ThreadPoolTaskScheduler
();
taskScheduler
.
setPoolSize
(
10
);
return
taskScheduler
;
}
}
dev-sendback/src/main/java/com/tykj/dev/device/sendback/service/impl/SendBackServiceImpl.java
浏览文件 @
97e4bd9f
...
...
@@ -6,6 +6,8 @@ import com.alibaba.fastjson.TypeReference;
import
com.github.wenhao.jpa.Specifications
;
import
com.tykj.dev.device.library.repository.DeviceLibraryDao
;
import
com.tykj.dev.device.library.service.DeviceLibraryService
;
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.sendback.entity.domain.SendBackBill
;
import
com.tykj.dev.device.sendback.entity.domain.SendBackBillDetail
;
...
...
@@ -67,6 +69,9 @@ public class SendBackServiceImpl implements SendBackService {
@Autowired
DeviceLibraryService
deviceLibraryService
;
@Autowired
DeviceLogService
deviceLogService
;
@Autowired
public
SendBackServiceImpl
(
TaskService
taskService
,
DeviceLibraryDao
deviceLibraryDao
,
SendBackBillDao
sendBackBillEntityDao
,
TaskDao
taskDao
,
UnitsDao
unitsDao
,
AreaDao
areaDao
,
UserDao
userDao
,
UserDao
userDao1
,
SendBackBillDetailDao
sendBackBillDetailEntityDao
)
{
this
.
taskService
=
taskService
;
...
...
@@ -371,7 +376,12 @@ public class SendBackServiceImpl implements SendBackService {
根据idList查询装备列表
*/
List
<
DeviceLibrary
>
deviceList
=
deviceLibraryDao
.
getDeviceLibraryEntitiesByIdIn
(
idList
);
deviceList
.
forEach
(
devices
->
devices
.
setOwnUnit
(
units
.
getName
()));
deviceList
.
forEach
(
devices
->
{
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
devices
.
getId
(),
"清退异常将装备的所属单位从"
+
devices
.
getOwnUnit
()+
"改为"
+
units
.
getName
(),
null
);
deviceLogService
.
addLog
(
deviceLogDto
);
devices
.
setOwnUnit
(
units
.
getName
());
deviceLibraryService
.
update
(
devices
);
});
/*
在parentTask的账单中移除id
...
...
@@ -499,6 +509,7 @@ public class SendBackServiceImpl implements SendBackService {
SendBackBillDetail
backBillDetailEntity
=
sendBackBillDetailEntityDao
.
save
(
sendBackBillDetailEntity
);
bill
.
setFormId
(
backBillDetailEntity
.
getId
());
sendBackBillEntityDao
.
save
(
bill
);
return
ResponseEntity
.
ok
(
"装备出库发起成功等待审核"
);
}
...
...
dev-union/src/main/java/com/tykj/dev/union/LogAspect.java
浏览文件 @
97e4bd9f
...
...
@@ -25,6 +25,7 @@ import com.tykj.dev.device.repair.subject.domin.RepairBill;
import
com.tykj.dev.device.repair.subject.domin.RepairSendBill
;
import
com.tykj.dev.device.retired.service.DeviceRetiredBillService
;
import
com.tykj.dev.device.selfcheck.service.SelfCheckBillService
;
import
com.tykj.dev.device.sendback.entity.domain.SendBackBill
;
import
com.tykj.dev.device.sendback.repository.SendBackBillDao
;
import
com.tykj.dev.device.storage.service.StorageBillService
;
import
com.tykj.dev.device.storage.subject.domin.StorageBill
;
...
...
@@ -382,7 +383,11 @@ public class LogAspect {
case
16
:
SendBackBillDao
sendBackBillDao
=
SpringUtils
.
getBean
(
"sendBackBillDao"
);
if
(
sendBackBillDao
!=
null
)
{
getFieldsParam
(
sendBackBillDao
.
getOne
(
outPutTask
.
getBillId
()));
SendBackBill
sendBackBill
=
sendBackBillDao
.
getOne
(
outPutTask
.
getBillId
());
getFieldsParam
(
sendBackBill
);
// if (){
//
// }
}
break
;
case
19
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论