Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
823beac9
提交
823beac9
authored
11月 23, 2022
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(自查模块): 自查自查两周后未完成的自查任务
自查自查两周后未完成的自查任务
上级
5fe3ecc1
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
45 行增加
和
0 行删除
+45
-0
SelfCheckBillService.java
...kj/dev/device/selfcheck/service/SelfCheckBillService.java
+6
-0
SelfCheckBillServiceImpl.java
...vice/selfcheck/service/impl/SelfCheckBillServiceImpl.java
+39
-0
没有找到文件。
dev-selfcheck/src/main/java/com/tykj/dev/device/selfcheck/service/SelfCheckBillService.java
浏览文件 @
823beac9
package
com
.
tykj
.
dev
.
device
.
selfcheck
.
service
;
package
com
.
tykj
.
dev
.
device
.
selfcheck
.
service
;
import
com.tykj.dev.config.domin.CheckUnitInfo
;
import
com.tykj.dev.device.file.entity.FileRet
;
import
com.tykj.dev.device.file.entity.FileRet
;
import
com.tykj.dev.device.library.subject.domin.DeviceLibrary
;
import
com.tykj.dev.device.library.subject.domin.DeviceLibrary
;
import
com.tykj.dev.device.selfcheck.subject.domin.SelfCheckBill
;
import
com.tykj.dev.device.selfcheck.subject.domin.SelfCheckBill
;
...
@@ -62,4 +63,9 @@ public interface SelfCheckBillService {
...
@@ -62,4 +63,9 @@ public interface SelfCheckBillService {
List
<
DeviceLibrary
>
parseQrCode
(
List
<
String
>
strings
);
List
<
DeviceLibrary
>
parseQrCode
(
List
<
String
>
strings
);
// Map<String,Object> selectDetail(Integer billId);
// Map<String,Object> selectDetail(Integer billId);
/**
* 只要2周后未完成
*/
List
<
CheckUnitInfo
>
selectNoFinSh2Weeks
();
}
}
dev-selfcheck/src/main/java/com/tykj/dev/device/selfcheck/service/impl/SelfCheckBillServiceImpl.java
浏览文件 @
823beac9
package
com
.
tykj
.
dev
.
device
.
selfcheck
.
service
.
impl
;
package
com
.
tykj
.
dev
.
device
.
selfcheck
.
service
.
impl
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.core.type.TypeReference
;
import
com.fasterxml.jackson.core.type.TypeReference
;
import
com.github.wenhao.jpa.PredicateBuilder
;
import
com.github.wenhao.jpa.PredicateBuilder
;
import
com.github.wenhao.jpa.Specifications
;
import
com.github.wenhao.jpa.Specifications
;
...
@@ -7,6 +8,7 @@ import com.tykj.dev.blockcha.subject.entity.BcHash;
...
@@ -7,6 +8,7 @@ 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.config.base.FileName
;
import
com.tykj.dev.config.domin.CheckUnitInfo
;
import
com.tykj.dev.device.file.entity.FileRet
;
import
com.tykj.dev.device.file.entity.FileRet
;
import
com.tykj.dev.device.file.service.FilesUtil
;
import
com.tykj.dev.device.file.service.FilesUtil
;
import
com.tykj.dev.device.library.service.DeviceLibraryCacheService
;
import
com.tykj.dev.device.library.service.DeviceLibraryCacheService
;
...
@@ -27,20 +29,25 @@ import com.tykj.dev.misc.exception.ApiException;
...
@@ -27,20 +29,25 @@ import com.tykj.dev.misc.exception.ApiException;
import
com.tykj.dev.misc.qrcode.*
;
import
com.tykj.dev.misc.qrcode.*
;
import
com.tykj.dev.misc.qrcode.vo.DeviceCodeVO
;
import
com.tykj.dev.misc.qrcode.vo.DeviceCodeVO
;
import
com.tykj.dev.misc.qrcode.vo.TaskData
;
import
com.tykj.dev.misc.qrcode.vo.TaskData
;
import
com.tykj.dev.misc.utils.DateUtil
;
import
com.tykj.dev.misc.utils.JacksonUtil
;
import
com.tykj.dev.misc.utils.JacksonUtil
;
import
com.tykj.dev.misc.utils.ResultUtil
;
import
com.tykj.dev.misc.utils.ResultUtil
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.jpa.domain.Specification
;
import
org.springframework.data.jpa.domain.Specification
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
javax.persistence.Transient
;
import
javax.persistence.Transient
;
import
java.lang.reflect.Field
;
import
java.lang.reflect.Field
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
java.util.*
;
import
java.util.*
;
import
java.util.concurrent.CompletableFuture
;
import
java.util.concurrent.CompletableFuture
;
import
java.util.function.Function
;
import
java.util.function.Function
;
...
@@ -260,6 +267,38 @@ public class SelfCheckBillServiceImpl implements SelfCheckBillService {
...
@@ -260,6 +267,38 @@ public class SelfCheckBillServiceImpl implements SelfCheckBillService {
return
deviceLibraries
;
return
deviceLibraries
;
}
}
@Override
public
List
<
CheckUnitInfo
>
selectNoFinSh2Weeks
()
{
List
<
Integer
>
statusList
=
new
ArrayList
<>(
Arrays
.
asList
(
0
,
3
));
List
<
SelfCheckBill
>
checkBillList
=
selfExaminationBillDao
.
findAll
().
stream
()
.
filter
(
selfCheckBill
->
statusList
.
contains
(
selfCheckBill
.
getCheckStatus
()))
.
filter
(
selfCheckBill
->
LocalDateTime
.
now
().
isEqual
(
DateUtil
.
getLocalDateTime
(
selfCheckBill
.
getCheckTime
()).
plusWeeks
(
2
)))
.
collect
(
Collectors
.
toList
());
List
<
CheckUnitInfo
>
checkUnitInfoList
=
new
ArrayList
<>();
if
(
checkBillList
.
size
()
>
0
){
checkBillList
.
forEach
(
selfCheckBill
->
{
CheckUnitInfo
checkUnitInfo
=
new
CheckUnitInfo
();
checkUnitInfo
.
setStartTime
(
DateUtil
.
getLocalDateTime
(
selfCheckBill
.
getCheckTime
()));
checkUnitInfo
.
setUnitId
(
selfCheckBill
.
getCheckUnitId
());
checkUnitInfo
.
setType
(
3
);
checkUnitInfo
.
setBillId
(
selfCheckBill
.
getId
());
if
(
selfCheckBill
.
getCheckStatus
()
==
0
){
checkUnitInfo
.
setCheckOneInfo
(
0
);
checkUnitInfo
.
setCheckTwoInfo
(
0
);
checkUnitInfo
.
setCheckThreeInfo
(-
1
);
}
if
(
selfCheckBill
.
getCheckStatus
()
==
3
){
checkUnitInfo
.
setCheckOneInfo
(
1
);
checkUnitInfo
.
setCheckTwoInfo
(
0
);
checkUnitInfo
.
setCheckThreeInfo
(-
1
);
}
checkUnitInfoList
.
add
(
checkUnitInfo
);
});
}
return
checkUnitInfoList
;
}
// @Override
// @Override
// public Map<String, Object> selectDetail(Integer billId) {
// public Map<String, Object> selectDetail(Integer billId) {
// Map<Integer, DeviceLibrary> deviceLibraryMap =
// Map<Integer, DeviceLibrary> deviceLibraryMap =
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论