Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
1eedee84
提交
1eedee84
authored
9月 28, 2020
作者:
邓砥奕
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[退装模块]修改分隔退装详情Bug
上级
5beb80d5
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
64 行增加
和
12 行删除
+64
-12
DeviceRetiredController.java
...ev/device/retired/controller/DeviceRetiredController.java
+7
-9
SelfCheckSchedulerTask.java
...ykj/dev/device/selfcheck/base/SelfCheckSchedulerTask.java
+52
-0
TaskBto.java
...in/java/com/tykj/dev/device/task/subject/bto/TaskBto.java
+1
-1
LogAspect.java
dev-union/src/main/java/com/tykj/dev/union/LogAspect.java
+2
-2
UnionApplication.java
...on/src/main/java/com/tykj/dev/union/UnionApplication.java
+2
-0
没有找到文件。
dev-retired/src/main/java/com/tykj/dev/device/retired/controller/DeviceRetiredController.java
浏览文件 @
1eedee84
...
@@ -24,6 +24,7 @@ import com.tykj.dev.misc.base.BusinessEnum;
...
@@ -24,6 +24,7 @@ import com.tykj.dev.misc.base.BusinessEnum;
import
com.tykj.dev.misc.base.StatusEnum
;
import
com.tykj.dev.misc.base.StatusEnum
;
import
com.tykj.dev.misc.utils.ListUtil
;
import
com.tykj.dev.misc.utils.ListUtil
;
import
com.tykj.dev.misc.utils.ResultUtil
;
import
com.tykj.dev.misc.utils.ResultUtil
;
import
com.tykj.dev.misc.utils.StringSplitUtil
;
import
com.tykj.dev.socket.MyWebSocket
;
import
com.tykj.dev.socket.MyWebSocket
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
...
@@ -116,9 +117,8 @@ public class DeviceRetiredController {
...
@@ -116,9 +117,8 @@ public class DeviceRetiredController {
DeviceRetiredDetailResultVo
deviceRetiredDetailResultVo
=
new
DeviceRetiredDetailResultVo
();
DeviceRetiredDetailResultVo
deviceRetiredDetailResultVo
=
new
DeviceRetiredDetailResultVo
();
DeviceRetiredBill
deviceRetiredBillEntity
=
deviceRetiredBillService
.
getOne
(
retiredId
);
DeviceRetiredBill
deviceRetiredBillEntity
=
deviceRetiredBillService
.
getOne
(
retiredId
);
//获取销毁详情里的装备
//获取销毁详情里的装备
String
[]
deviceDetails
=
getRetiredDeviceList
(
deviceRetiredBillEntity
.
getRetiredDetail
());
List
<
Integer
>
deviceDetails
=
getRetiredDeviceList
(
deviceRetiredBillEntity
.
getRetiredDetail
());
for
(
String
deviceDetail
:
deviceDetails
)
{
for
(
Integer
deviceId
:
deviceDetails
)
{
Integer
deviceId
=
Integer
.
valueOf
(
deviceDetail
.
substring
(
0
,
deviceDetail
.
length
()
-
1
));
deviceRetiredDetailResultVo
.
getPackingLibrarys
().
add
(
packingLibraryService
.
getOne
(
deviceId
));
deviceRetiredDetailResultVo
.
getPackingLibrarys
().
add
(
packingLibraryService
.
getOne
(
deviceId
));
}
}
deviceRetiredDetailResultVo
.
setRetiredStatus
(
deviceRetiredBillEntity
.
getRetiredStatus
());
deviceRetiredDetailResultVo
.
setRetiredStatus
(
deviceRetiredBillEntity
.
getRetiredStatus
());
...
@@ -148,9 +148,8 @@ public class DeviceRetiredController {
...
@@ -148,9 +148,8 @@ public class DeviceRetiredController {
taskService
.
moveToEnd
(
task
);
taskService
.
moveToEnd
(
task
);
taskService
.
update
(
task
);
taskService
.
update
(
task
);
//更改对应列装库的状态为退装
//更改对应列装库的状态为退装
String
[]
deviceRetiredArrays
=
getRetiredDeviceList
(
deviceRetiredBillEntity
.
getRetiredDetail
());
List
<
Integer
>
deviceRetiredArrays
=
getRetiredDeviceList
(
deviceRetiredBillEntity
.
getRetiredDetail
());
for
(
String
deviceDetail
:
deviceRetiredArrays
)
{
for
(
Integer
deviceId
:
deviceRetiredArrays
)
{
Integer
deviceId
=
Integer
.
valueOf
(
deviceDetail
.
substring
(
0
,
deviceDetail
.
length
()
-
1
));
PackingLibrary
packingLibraryServiceOne
=
packingLibraryService
.
getOne
(
deviceId
);
PackingLibrary
packingLibraryServiceOne
=
packingLibraryService
.
getOne
(
deviceId
);
packingLibraryServiceOne
.
setPackingStatus
(
3
);
packingLibraryServiceOne
.
setPackingStatus
(
3
);
packingLibraryServiceOne
.
setExitTime
(
Timestamp
.
from
(
new
Date
().
toInstant
()));
packingLibraryServiceOne
.
setExitTime
(
Timestamp
.
from
(
new
Date
().
toInstant
()));
...
@@ -166,9 +165,8 @@ public class DeviceRetiredController {
...
@@ -166,9 +165,8 @@ public class DeviceRetiredController {
}
}
private
String
[]
getRetiredDeviceList
(
String
destoryDeviceDetail
)
{
private
List
<
Integer
>
getRetiredDeviceList
(
String
destoryDeviceDetail
)
{
destoryDeviceDetail
=
destoryDeviceDetail
.
substring
(
1
);
return
StringSplitUtil
.
split
(
destoryDeviceDetail
);
return
destoryDeviceDetail
.
split
(
"x"
);
}
}
private
DeviceRetiredResultVo
calcDeviceRetiredResultVo
(
PackingLibrary
packingLibraryEntity
)
{
private
DeviceRetiredResultVo
calcDeviceRetiredResultVo
(
PackingLibrary
packingLibraryEntity
)
{
...
...
dev-selfcheck/src/main/java/com/tykj/dev/device/selfcheck/base/SelfCheckSchedulerTask.java
0 → 100644
浏览文件 @
1eedee84
package
com
.
tykj
.
dev
.
device
.
selfcheck
.
base
;
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.UnitsDao
;
import
com.tykj.dev.device.user.subject.entity.Units
;
import
com.tykj.dev.misc.base.BeanHelper
;
import
com.tykj.dev.misc.base.StatusEnum
;
import
com.tykj.dev.misc.utils.SpringUtils
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler
;
import
org.springframework.stereotype.Component
;
import
java.util.ArrayList
;
import
java.util.List
;
@Component
public
class
SelfCheckSchedulerTask
{
/**
* 月度
*/
private
String
cron1
=
"0 0 0 1 1/1 ? "
;
/**
* 季度
*/
private
String
cron2
=
"0 0 0 1 3,6,9,12 ? "
;
/**
* 年度
*/
private
String
cron3
=
"0 0 0 1 1 ? *"
;
private
ThreadPoolTaskScheduler
threadPoolTaskScheduler
;
// @Async
// @Scheduled(cron = "0 0/1 * * * ? ")
// public void createSelfCheckTask() throws InterruptedException{
// UnitsDao unitsDao = SpringUtils.getBean("unitsDao");
// TaskService taskService = SpringUtils.getBean("taskServiceImpl");
// if (unitsDao != null && taskService!=null) {
// List<Units> unitsList = unitsDao.findAll();
// unitsList.forEach(units -> {
// //发起待自查任务
// List<Integer> userIds = new ArrayList<>();
// userIds.add(0);
// TaskBto taskBto = new TaskBto(StatusEnum.WAIT_SELF_CHECK.id,"自查业务",null,".",0,4,units.getUnitId(),0,null,userIds);
// taskService.start(taskBto);
// });
// }
// }
}
dev-task/src/main/java/com/tykj/dev/device/task/subject/bto/TaskBto.java
浏览文件 @
1eedee84
...
@@ -125,7 +125,7 @@ public class TaskBto {
...
@@ -125,7 +125,7 @@ public class TaskBto {
ModelMapper
modelMapper
=
BeanHelper
.
getUserMapper
();
ModelMapper
modelMapper
=
BeanHelper
.
getUserMapper
();
TaskUserVo
taskUserVo
=
modelMapper
.
map
(
this
,
TaskUserVo
.
class
);
TaskUserVo
taskUserVo
=
modelMapper
.
map
(
this
,
TaskUserVo
.
class
);
//set vo字段
//set vo字段
if
(
userPublicService
!=
null
)
{
if
(
userPublicService
!=
null
&&
this
.
createUserId
!=
null
)
{
taskUserVo
.
setStartUnit
(
userPublicService
.
findUnitsNameByUserId
(
this
.
createUserId
));
taskUserVo
.
setStartUnit
(
userPublicService
.
findUnitsNameByUserId
(
this
.
createUserId
));
}
}
taskUserVo
.
setStatus
(
GlobalMap
.
getStatusEnumMap
().
get
(
this
.
billStatus
).
name
);
taskUserVo
.
setStatus
(
GlobalMap
.
getStatusEnumMap
().
get
(
this
.
billStatus
).
name
);
...
...
dev-union/src/main/java/com/tykj/dev/union/LogAspect.java
浏览文件 @
1eedee84
...
@@ -285,7 +285,7 @@ public class LogAspect {
...
@@ -285,7 +285,7 @@ public class LogAspect {
break
;
break
;
case
22
:
case
22
:
AllotBackBillService
allotBackBillService
=
SpringUtils
.
getBean
(
"allotBackBillServiceImpl"
);
AllotBackBillService
allotBackBillService
=
SpringUtils
.
getBean
(
"allotBackBillServiceImpl"
);
if
(
allotBackBillService
!=
null
)
{
if
(
allotBackBillService
!=
null
&&
outPutTask
.
getBillId
()>
0
)
{
AllotBackBill
allotBackBill
=
allotBackBillService
.
getOne
(
outPutTask
.
getBillId
());
AllotBackBill
allotBackBill
=
allotBackBillService
.
getOne
(
outPutTask
.
getBillId
());
getFieldsParam
(
allotBackBill
);
getFieldsParam
(
allotBackBill
);
if
((
this
.
oldStatus
.
equals
(
StatusEnum
.
ORIGIN_STATUS
.
id
)&&
this
.
newStatus
.
equals
(
StatusEnum
.
ALLOT_BACKING
.
id
))){
if
((
this
.
oldStatus
.
equals
(
StatusEnum
.
ORIGIN_STATUS
.
id
)&&
this
.
newStatus
.
equals
(
StatusEnum
.
ALLOT_BACKING
.
id
))){
...
@@ -299,7 +299,7 @@ public class LogAspect {
...
@@ -299,7 +299,7 @@ public class LogAspect {
break
;
break
;
case
4
:
case
4
:
SelfCheckBillService
selfCheckBillService
=
SpringUtils
.
getBean
(
"selfCheckBillServiceImpl"
);
SelfCheckBillService
selfCheckBillService
=
SpringUtils
.
getBean
(
"selfCheckBillServiceImpl"
);
if
(
selfCheckBillService
!=
null
)
{
if
(
selfCheckBillService
!=
null
&&
outPutTask
.
getBillId
()>
0
)
{
getFieldsParam
(
selfCheckBillService
.
getOne
(
outPutTask
.
getBillId
()));
getFieldsParam
(
selfCheckBillService
.
getOne
(
outPutTask
.
getBillId
()));
}
}
break
;
break
;
...
...
dev-union/src/main/java/com/tykj/dev/union/UnionApplication.java
浏览文件 @
1eedee84
...
@@ -6,6 +6,7 @@ import org.springframework.boot.builder.SpringApplicationBuilder;
...
@@ -6,6 +6,7 @@ import org.springframework.boot.builder.SpringApplicationBuilder;
import
org.springframework.boot.web.servlet.ServletComponentScan
;
import
org.springframework.boot.web.servlet.ServletComponentScan
;
import
org.springframework.boot.web.servlet.support.SpringBootServletInitializer
;
import
org.springframework.boot.web.servlet.support.SpringBootServletInitializer
;
import
org.springframework.data.jpa.repository.config.EnableJpaAuditing
;
import
org.springframework.data.jpa.repository.config.EnableJpaAuditing
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
...
@@ -15,6 +16,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
...
@@ -15,6 +16,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
@ServletComponentScan
@ServletComponentScan
@EnableJpaAuditing
@EnableJpaAuditing
@EnableTransactionManagement
@EnableTransactionManagement
@EnableScheduling
public
class
UnionApplication
extends
SpringBootServletInitializer
{
public
class
UnionApplication
extends
SpringBootServletInitializer
{
@Override
@Override
protected
SpringApplicationBuilder
configure
(
SpringApplicationBuilder
applicationBuilder
)
{
protected
SpringApplicationBuilder
configure
(
SpringApplicationBuilder
applicationBuilder
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论