Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
4bc7780c
提交
4bc7780c
authored
8月 30, 2021
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(自查模块): 新增根据任务id查看单据图片
新增根据任务id查看单据图片
上级
dd798345
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
44 行增加
和
7 行删除
+44
-7
FileName.java
...nfig/src/main/java/com/tykj/dev/config/base/FileName.java
+6
-1
SelfCheckController.java
.../dev/device/selfcheck/controller/SelfCheckController.java
+11
-3
SelfCheckBillService.java
...kj/dev/device/selfcheck/service/SelfCheckBillService.java
+9
-0
SelfCheckBillServiceImpl.java
...vice/selfcheck/service/impl/SelfCheckBillServiceImpl.java
+18
-3
没有找到文件。
dev-config/src/main/java/com/tykj/dev/config/base/FileName.java
浏览文件 @
4bc7780c
...
@@ -34,7 +34,12 @@ public enum FileName {
...
@@ -34,7 +34,12 @@ public enum FileName {
/**
/**
* 丢失单
* 丢失单
*/
*/
LOSS
(
7
,
"丢失单"
);
LOSS
(
7
,
"丢失单"
),
/**
* 丢失单
*/
SelfCheck
(
8
,
"自查单"
);
public
Integer
id
;
public
Integer
id
;
...
...
dev-selfcheck/src/main/java/com/tykj/dev/device/selfcheck/controller/SelfCheckController.java
浏览文件 @
4bc7780c
...
@@ -136,7 +136,6 @@ public class SelfCheckController {
...
@@ -136,7 +136,6 @@ public class SelfCheckController {
public
ResponseEntity
setCycle
(
@PathVariable
(
"type"
)
int
type
){
public
ResponseEntity
setCycle
(
@PathVariable
(
"type"
)
int
type
){
if
(
selfCheckSchedulerTask
!=
null
)
{
if
(
selfCheckSchedulerTask
!=
null
)
{
String
corn
=
"0 0 0 1 1/"
+
type
+
" ? "
;
String
corn
=
"0 0 0 1 1/"
+
type
+
" ? "
;
// String corn = "10-20 * * * * ?";
ScheduledFuture
scheduledFuture
=
selfCheckSchedulerTask
.
getScheduledFuture
();
ScheduledFuture
scheduledFuture
=
selfCheckSchedulerTask
.
getScheduledFuture
();
scheduledFuture
.
cancel
(
true
);
scheduledFuture
.
cancel
(
true
);
selfCheckSchedulerTask
.
setCron
(
corn
);
selfCheckSchedulerTask
.
setCron
(
corn
);
...
@@ -519,7 +518,9 @@ public class SelfCheckController {
...
@@ -519,7 +518,9 @@ public class SelfCheckController {
String
user3
=
userPublicService
.
getOne
(
s
.
getCreateUserId
()).
getName
();
String
user3
=
userPublicService
.
getOne
(
s
.
getCreateUserId
()).
getName
();
s
.
setCreateUser
(
user3
);
s
.
setCreateUser
(
user3
);
}
}
s
.
setTaskId
(
taskService
.
get
(
s
.
getId
(),
4
).
getId
());
if
(
s
.
getId
()!=
null
){
s
.
setTaskId
(
taskService
.
get
(
s
.
getId
(),
4
).
getId
());
}
}
}
return
ResultUtil
.
success
(
page
);
return
ResultUtil
.
success
(
page
);
}
}
...
@@ -733,6 +734,13 @@ public class SelfCheckController {
...
@@ -733,6 +734,13 @@ public class SelfCheckController {
}
}
/**
* 查看维修退回单据
*/
@GetMapping
(
"getSelfCheckFileList"
)
@ApiOperation
(
"通过任务id查询自查中文件"
)
public
ResponseEntity
getBackFileList
(
Integer
taskId
){
return
ResponseEntity
.
ok
(
selfCheckBillService
.
getFileList
(
taskId
));
}
}
}
dev-selfcheck/src/main/java/com/tykj/dev/device/selfcheck/service/SelfCheckBillService.java
浏览文件 @
4bc7780c
package
com
.
tykj
.
dev
.
device
.
selfcheck
.
service
;
package
com
.
tykj
.
dev
.
device
.
selfcheck
.
service
;
import
com.tykj.dev.device.file.entity.FileRet
;
import
com.tykj.dev.device.selfcheck.subject.domin.SelfCheckBill
;
import
com.tykj.dev.device.selfcheck.subject.domin.SelfCheckBill
;
import
com.tykj.dev.device.selfcheck.subject.vo.SelfCheckSelectVo
;
import
com.tykj.dev.device.selfcheck.subject.vo.SelfCheckSelectVo
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
...
@@ -8,6 +9,7 @@ import org.springframework.data.domain.Pageable;
...
@@ -8,6 +9,7 @@ import org.springframework.data.domain.Pageable;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* @author dengdiyi
* @author dengdiyi
...
@@ -35,4 +37,11 @@ public interface SelfCheckBillService {
...
@@ -35,4 +37,11 @@ public interface SelfCheckBillService {
List
<
SelfCheckBill
>
findByDate
(
Date
date
,
String
unitName
);
List
<
SelfCheckBill
>
findByDate
(
Date
date
,
String
unitName
);
List
<
SelfCheckBill
>
findBySystem
(
String
unitName
);
List
<
SelfCheckBill
>
findBySystem
(
String
unitName
);
/**
* 根据taskId查询单据
* @param taskId
* @return
*/
Map
<
String
,
List
<
FileRet
>>
getFileList
(
Integer
taskId
);
}
}
dev-selfcheck/src/main/java/com/tykj/dev/device/selfcheck/service/impl/SelfCheckBillServiceImpl.java
浏览文件 @
4bc7780c
...
@@ -5,10 +5,14 @@ import com.github.wenhao.jpa.Specifications;
...
@@ -5,10 +5,14 @@ import com.github.wenhao.jpa.Specifications;
import
com.tykj.dev.blockcha.subject.entity.BcHash
;
import
com.tykj.dev.blockcha.subject.entity.BcHash
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
com.tykj.dev.config.TaskBeanConfig
;
import
com.tykj.dev.config.TaskBeanConfig
;
import
com.tykj.dev.config.base.FileName
;
import
com.tykj.dev.device.file.entity.FileRet
;
import
com.tykj.dev.device.file.service.FilesUtil
;
import
com.tykj.dev.device.selfcheck.repository.SelfCheckBillDao
;
import
com.tykj.dev.device.selfcheck.repository.SelfCheckBillDao
;
import
com.tykj.dev.device.selfcheck.service.SelfCheckBillService
;
import
com.tykj.dev.device.selfcheck.service.SelfCheckBillService
;
import
com.tykj.dev.device.selfcheck.subject.domin.SelfCheckBill
;
import
com.tykj.dev.device.selfcheck.subject.domin.SelfCheckBill
;
import
com.tykj.dev.device.selfcheck.subject.vo.SelfCheckSelectVo
;
import
com.tykj.dev.device.selfcheck.subject.vo.SelfCheckSelectVo
;
import
com.tykj.dev.device.task.service.TaskService
;
import
com.tykj.dev.device.user.util.UserUtils
;
import
com.tykj.dev.device.user.util.UserUtils
;
import
com.tykj.dev.misc.exception.ApiException
;
import
com.tykj.dev.misc.exception.ApiException
;
import
com.tykj.dev.misc.utils.JacksonUtil
;
import
com.tykj.dev.misc.utils.JacksonUtil
;
...
@@ -22,9 +26,7 @@ import org.springframework.stereotype.Service;
...
@@ -22,9 +26,7 @@ import org.springframework.stereotype.Service;
import
javax.persistence.Transient
;
import
javax.persistence.Transient
;
import
java.lang.reflect.Field
;
import
java.lang.reflect.Field
;
import
java.util.Date
;
import
java.util.*
;
import
java.util.List
;
import
java.util.Optional
;
import
java.util.concurrent.CompletableFuture
;
import
java.util.concurrent.CompletableFuture
;
/**
/**
...
@@ -42,6 +44,9 @@ public class SelfCheckBillServiceImpl implements SelfCheckBillService {
...
@@ -42,6 +44,9 @@ public class SelfCheckBillServiceImpl implements SelfCheckBillService {
@Autowired
@Autowired
private
BlockChainUtil
blockChainUtil
;
private
BlockChainUtil
blockChainUtil
;
@Autowired
private
TaskService
taskService
;
@Override
@Override
public
SelfCheckBill
addEntity
(
SelfCheckBill
selfExaminationBillEntity
)
{
public
SelfCheckBill
addEntity
(
SelfCheckBill
selfExaminationBillEntity
)
{
SelfCheckBill
selfCheckBill
=
selfExaminationBillDao
.
save
(
selfExaminationBillEntity
);
SelfCheckBill
selfCheckBill
=
selfExaminationBillDao
.
save
(
selfExaminationBillEntity
);
...
@@ -158,4 +163,14 @@ public class SelfCheckBillServiceImpl implements SelfCheckBillService {
...
@@ -158,4 +163,14 @@ public class SelfCheckBillServiceImpl implements SelfCheckBillService {
}
}
return
predicateBuilder
.
build
();
return
predicateBuilder
.
build
();
}
}
@Override
public
Map
<
String
,
List
<
FileRet
>>
getFileList
(
Integer
taskId
)
{
Map
<
String
,
List
<
FileRet
>>
map
=
new
HashMap
<>();
Integer
billId
=
taskService
.
get
(
taskId
).
getBillId
();
SelfCheckBill
selfCheckBill
=
getOne
(
billId
);
//自查单集合
map
.
put
(
FileName
.
SelfCheck
.
name
,
FilesUtil
.
stringFileToList
(
selfCheckBill
.
getCheckFiles
()));
return
map
;
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论