Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
09a3b44c
提交
09a3b44c
authored
5月 11, 2021
作者:
Matrix
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[核查模块] 修复BUG
上级
ab2d5952
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
39 行增加
和
11 行删除
+39
-11
CheckType.java
...va/com/tykj/dev/device/confirmcheck/common/CheckType.java
+2
-2
DeviceCheckController.java
...device/confirmcheck/controller/DeviceCheckController.java
+0
-0
DeviceCheckStat.java
...ev/device/confirmcheck/entity/domain/DeviceCheckStat.java
+3
-4
CheckAreaStatVo.java
...kj/dev/device/confirmcheck/entity/vo/CheckAreaStatVo.java
+5
-2
CheckDeviceStatVo.java
.../dev/device/confirmcheck/entity/vo/CheckDeviceStatVo.java
+1
-1
CheckExamDetailVo.java
.../dev/device/confirmcheck/entity/vo/CheckExamDetailVo.java
+8
-0
CheckStatTableVo.java
...j/dev/device/confirmcheck/entity/vo/CheckStatTableVo.java
+3
-0
ConfirmCheckServiceImpl.java
...ce/confirmcheck/service/impl/ConfirmCheckServiceImpl.java
+14
-2
ObjTransUtil.java
.../com/tykj/dev/device/confirmcheck/utils/ObjTransUtil.java
+1
-0
UnitsDao.java
...n/java/com/tykj/dev/device/user/subject/dao/UnitsDao.java
+2
-0
没有找到文件。
dev-confirmcheck/src/main/java/com/tykj/dev/device/confirmcheck/common/CheckType.java
浏览文件 @
09a3b44c
...
@@ -16,11 +16,11 @@ public enum CheckType {
...
@@ -16,11 +16,11 @@ public enum CheckType {
/**
/**
* 自动核查
* 自动核查
*/
*/
AUTO_CHECK
(
1
,
"自动
核查"
),
CT_CHECK
(
1
,
"
核查"
),
/**
/**
* 手动核查
* 手动核查
*/
*/
MANUAL_CHECK
(
2
,
"手动核
查"
);
CT_EXAM
(
2
,
"检
查"
);
private
final
Integer
id
;
private
final
Integer
id
;
private
final
String
name
;
private
final
String
name
;
...
...
dev-confirmcheck/src/main/java/com/tykj/dev/device/confirmcheck/controller/DeviceCheckController.java
浏览文件 @
09a3b44c
差异被折叠。
点击展开。
dev-confirmcheck/src/main/java/com/tykj/dev/device/confirmcheck/entity/domain/DeviceCheckStat.java
浏览文件 @
09a3b44c
...
@@ -9,9 +9,7 @@ import lombok.EqualsAndHashCode;
...
@@ -9,9 +9,7 @@ import lombok.EqualsAndHashCode;
import
lombok.NoArgsConstructor
;
import
lombok.NoArgsConstructor
;
import
org.hibernate.annotations.SQLDelete
;
import
org.hibernate.annotations.SQLDelete
;
import
javax.persistence.Column
;
import
javax.persistence.*
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
/**
/**
...
@@ -57,10 +55,11 @@ public class DeviceCheckStat extends BaseEntity {
...
@@ -57,10 +55,11 @@ public class DeviceCheckStat extends BaseEntity {
private
String
statInfo
;
private
String
statInfo
;
/**
/**
* 检查类型,数据库里的数据结构是int类型,其中1为
自动,2为手动
* 检查类型,数据库里的数据结构是int类型,其中1为
核查,2为检查
*
*
* @see com.tykj.dev.device.confirmcheck.common.CheckTypeConvert
* @see com.tykj.dev.device.confirmcheck.common.CheckTypeConvert
*/
*/
@Enumerated
(
EnumType
.
ORDINAL
)
private
CheckType
checkType
;
private
CheckType
checkType
;
/**
/**
...
...
dev-confirmcheck/src/main/java/com/tykj/dev/device/confirmcheck/entity/vo/CheckAreaStatVo.java
浏览文件 @
09a3b44c
...
@@ -70,7 +70,9 @@ public class CheckAreaStatVo implements Cloneable {
...
@@ -70,7 +70,9 @@ public class CheckAreaStatVo implements Cloneable {
}
}
public
void
start
()
{
public
void
start
()
{
if
(
this
.
comProgress
!=
2
){
this
.
comProgress
=
1
;
this
.
comProgress
=
1
;
}
}
}
public
void
end
()
{
public
void
end
()
{
...
@@ -120,12 +122,13 @@ public class CheckAreaStatVo implements Cloneable {
...
@@ -120,12 +122,13 @@ public class CheckAreaStatVo implements Cloneable {
if
(!
this
.
areaName
.
equals
(
other
.
areaName
)
||
this
.
areaStatId
!=
other
.
areaStatId
)
{
if
(!
this
.
areaName
.
equals
(
other
.
areaName
)
||
this
.
areaStatId
!=
other
.
areaStatId
)
{
//初始化账单的话则不用抛出异常,将other的detailId赋予即可
//初始化账单的话则不用抛出异常,将other的detailId赋予即可
if
(
this
.
areaDetailId
==
0
)
{
if
(
this
.
areaDetailId
==
0
)
{
this
.
areaDetailId
=
other
.
areaStatId
;
this
.
areaDetailId
=
other
.
areaDetailId
;
// this.areaStatId = other.areaStatId;
}
else
{
}
else
{
throw
new
IllegalArgumentException
(
String
.
format
(
throw
new
IllegalArgumentException
(
String
.
format
(
"要合并的两个地区统计数据的areaName与areaDetailId必须保持一致,"
+
"要合并的两个地区统计数据的areaName与areaDetailId必须保持一致,"
+
"你提供的分别是areaName = %s 与 %s , areaDetailId = %d 与 %d %n"
,
"你提供的分别是areaName = %s 与 %s , areaDetailId = %d 与 %d %n"
,
this
.
areaName
,
other
.
areaName
,
this
.
area
StatId
,
other
.
areaStat
Id
));
this
.
areaName
,
other
.
areaName
,
this
.
area
DetailId
,
other
.
areaDetail
Id
));
}
}
}
}
...
...
dev-confirmcheck/src/main/java/com/tykj/dev/device/confirmcheck/entity/vo/CheckDeviceStatVo.java
浏览文件 @
09a3b44c
...
@@ -134,7 +134,7 @@ public class CheckDeviceStatVo implements Cloneable {
...
@@ -134,7 +134,7 @@ public class CheckDeviceStatVo implements Cloneable {
* @return 合并后的装备统计信息对相关,基于深拷贝
* @return 合并后的装备统计信息对相关,基于深拷贝
* @throws IllegalArgumentException 累加的统计信息对象必须是相同型号与名字的装备
* @throws IllegalArgumentException 累加的统计信息对象必须是相同型号与名字的装备
*/
*/
public
CheckDeviceStatVo
cleanReduce
(
CheckDeviceStatVo
other
)
{
public
CheckDeviceStatVo
cleanReduce
(
CheckDeviceStatVo
other
)
{
boolean
flag
=
deviceModel
.
equals
(
other
.
getDeviceModel
())
&&
deviceName
.
equals
(
other
.
getDeviceName
());
boolean
flag
=
deviceModel
.
equals
(
other
.
getDeviceModel
())
&&
deviceName
.
equals
(
other
.
getDeviceName
());
if
(!
flag
)
{
if
(!
flag
)
{
throw
new
IllegalArgumentException
(
"累加的统计信息对象必须是相同型号且名称相同的装备"
);
throw
new
IllegalArgumentException
(
"累加的统计信息对象必须是相同型号且名称相同的装备"
);
...
...
dev-confirmcheck/src/main/java/com/tykj/dev/device/confirmcheck/entity/vo/CheckExamDetailVo.java
浏览文件 @
09a3b44c
...
@@ -2,7 +2,9 @@ package com.tykj.dev.device.confirmcheck.entity.vo;
...
@@ -2,7 +2,9 @@ package com.tykj.dev.device.confirmcheck.entity.vo;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.List
;
import
java.util.List
;
...
@@ -14,6 +16,8 @@ import java.util.List;
...
@@ -14,6 +16,8 @@ import java.util.List;
*/
*/
@Data
@Data
@ApiModel
(
"核查发起细节"
)
@ApiModel
(
"核查发起细节"
)
@AllArgsConstructor
@NoArgsConstructor
public
class
CheckExamDetailVo
{
public
class
CheckExamDetailVo
{
@ApiModelProperty
(
name
=
"核查组名称"
)
@ApiModelProperty
(
name
=
"核查组名称"
)
...
@@ -27,4 +31,8 @@ public class CheckExamDetailVo {
...
@@ -27,4 +31,8 @@ public class CheckExamDetailVo {
@ApiModelProperty
(
name
=
"备注"
)
@ApiModelProperty
(
name
=
"备注"
)
private
String
remark
;
private
String
remark
;
public
CheckExamDetailVo
copy
(
Integer
areaId
,
String
remark
)
{
return
new
CheckExamDetailVo
(
this
.
groupName
,
this
.
userNames
,
areaId
,
remark
);
}
}
}
dev-confirmcheck/src/main/java/com/tykj/dev/device/confirmcheck/entity/vo/CheckStatTableVo.java
浏览文件 @
09a3b44c
...
@@ -42,5 +42,8 @@ public class CheckStatTableVo {
...
@@ -42,5 +42,8 @@ public class CheckStatTableVo {
@ApiModelProperty
(
"完成情况"
)
@ApiModelProperty
(
"完成情况"
)
private
String
completion
;
private
String
completion
;
@ApiModelProperty
(
"检查类型,0-核查,1-检查"
)
private
Integer
checkType
;
private
String
queryField
;
private
String
queryField
;
}
}
dev-confirmcheck/src/main/java/com/tykj/dev/device/confirmcheck/service/impl/ConfirmCheckServiceImpl.java
浏览文件 @
09a3b44c
...
@@ -20,6 +20,7 @@ import com.tykj.dev.device.confirmcheck.service.ConfirmCheckService;
...
@@ -20,6 +20,7 @@ import com.tykj.dev.device.confirmcheck.service.ConfirmCheckService;
import
com.tykj.dev.device.confirmcheck.utils.ObjTransUtil
;
import
com.tykj.dev.device.confirmcheck.utils.ObjTransUtil
;
import
com.tykj.dev.device.library.repository.DeviceLibraryDao
;
import
com.tykj.dev.device.library.repository.DeviceLibraryDao
;
import
com.tykj.dev.device.library.subject.domin.DeviceLibrary
;
import
com.tykj.dev.device.library.subject.domin.DeviceLibrary
;
import
com.tykj.dev.device.task.repository.TaskDao
;
import
com.tykj.dev.device.task.service.TaskService
;
import
com.tykj.dev.device.task.service.TaskService
;
import
com.tykj.dev.device.task.subject.bto.TaskBto
;
import
com.tykj.dev.device.task.subject.bto.TaskBto
;
import
com.tykj.dev.device.task.subject.domin.Task
;
import
com.tykj.dev.device.task.subject.domin.Task
;
...
@@ -135,7 +136,7 @@ public class ConfirmCheckServiceImpl implements ConfirmCheckService, CommandLine
...
@@ -135,7 +136,7 @@ public class ConfirmCheckServiceImpl implements ConfirmCheckService, CommandLine
// 构建省的统计账单
// 构建省的统计账单
DeviceCheckStat
provStatDo
=
new
DeviceCheckStat
(
DeviceCheckStat
provStatDo
=
new
DeviceCheckStat
(
CheckType
.
AUTO
_CHECK
,
CheckType
.
CT
_CHECK
,
baseTitle
+
provUnit
.
getName
()
+
"核查统计单"
,
baseTitle
+
provUnit
.
getName
()
+
"核查统计单"
,
"核查统计单"
,
"核查统计单"
,
"系统发起的统计|"
+
provUnit
.
getName
()
+
"|"
+
provUnit
.
getAreaId
());
"系统发起的统计|"
+
provUnit
.
getName
()
+
"|"
+
provUnit
.
getAreaId
());
...
@@ -169,7 +170,7 @@ public class ConfirmCheckServiceImpl implements ConfirmCheckService, CommandLine
...
@@ -169,7 +170,7 @@ public class ConfirmCheckServiceImpl implements ConfirmCheckService, CommandLine
// 构建市统账单
// 构建市统账单
DeviceCheckStat
cityStatDo
=
new
DeviceCheckStat
(
DeviceCheckStat
cityStatDo
=
new
DeviceCheckStat
(
CheckType
.
AUTO
_CHECK
,
CheckType
.
CT
_CHECK
,
baseTitle
+
cityUnit
.
getName
()
+
"核查统计单"
,
baseTitle
+
cityUnit
.
getName
()
+
"核查统计单"
,
"核查统计单"
,
"核查统计单"
,
"系统发起的统计|"
+
cityUnit
.
getName
()
+
"|"
+
cityUnit
.
getAreaId
()
"系统发起的统计|"
+
cityUnit
.
getName
()
+
"|"
+
cityUnit
.
getAreaId
()
...
@@ -304,10 +305,21 @@ public class ConfirmCheckServiceImpl implements ConfirmCheckService, CommandLine
...
@@ -304,10 +305,21 @@ public class ConfirmCheckServiceImpl implements ConfirmCheckService, CommandLine
*/
*/
@Override
@Override
public
Page
<
CheckStatTableVo
>
findAllStatTable
(
CheckBillSelectVo
checkBillSelectVo
)
{
public
Page
<
CheckStatTableVo
>
findAllStatTable
(
CheckBillSelectVo
checkBillSelectVo
)
{
//过滤出顶级节点
List
<
TaskBto
>
topStatList
=
taskService
.
findBillType
(
7
);
List
<
TaskBto
>
topDetailList
=
taskService
.
findBillType
(
8
);
topStatList
.
addAll
(
topDetailList
);
List
<
Integer
>
topIdList
=
topStatList
.
stream
()
.
filter
(
taskBto
->
taskBto
.
getParentTaskId
().
equals
(
0
)
||
taskBto
.
getParentTaskId
()
==
null
)
.
map
(
TaskBto:
:
getBillId
)
.
collect
(
toList
());
List
<
CheckStatTableVo
>
tableVos
=
statDao
.
findAll
(
checkBillSelectVo
.
getPageable
().
getSort
()).
stream
()
List
<
CheckStatTableVo
>
tableVos
=
statDao
.
findAll
(
checkBillSelectVo
.
getPageable
().
getSort
()).
stream
()
.
filter
(
deviceCheckStat
->
!
"[]"
.
equals
(
deviceCheckStat
.
getStatInfo
()))
.
filter
(
deviceCheckStat
->
!
"[]"
.
equals
(
deviceCheckStat
.
getStatInfo
()))
.
map
(
objTransUtil:
:
stat2TableVo
)
.
map
(
objTransUtil:
:
stat2TableVo
)
.
filter
(
vo
->
keywordFilter
(
vo
,
checkBillSelectVo
.
getKeyword
()))
.
filter
(
vo
->
keywordFilter
(
vo
,
checkBillSelectVo
.
getKeyword
()))
.
filter
(
v
->
topIdList
.
contains
(
v
.
getId
()))
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
return
PageUtil
.
getPerPage
(
checkBillSelectVo
.
getPage
(),
checkBillSelectVo
.
getSize
(),
tableVos
,
checkBillSelectVo
.
getPageable
());
return
PageUtil
.
getPerPage
(
checkBillSelectVo
.
getPage
(),
checkBillSelectVo
.
getSize
(),
tableVos
,
checkBillSelectVo
.
getPageable
());
...
...
dev-confirmcheck/src/main/java/com/tykj/dev/device/confirmcheck/utils/ObjTransUtil.java
浏览文件 @
09a3b44c
...
@@ -155,6 +155,7 @@ public class ObjTransUtil {
...
@@ -155,6 +155,7 @@ public class ObjTransUtil {
checkUserNames
,
checkUserNames
,
stat
.
getCreateTime
(),
stat
.
getCreateTime
(),
completion
,
completion
,
stat
.
getCheckType
().
CT_CHECK
.
getId
(),
joiner
.
toString
()
joiner
.
toString
()
);
);
...
...
dev-user/src/main/java/com/tykj/dev/device/user/subject/dao/UnitsDao.java
浏览文件 @
09a3b44c
...
@@ -18,6 +18,8 @@ public interface UnitsDao extends JpaRepository<Units, Integer>, JpaSpecificatio
...
@@ -18,6 +18,8 @@ public interface UnitsDao extends JpaRepository<Units, Integer>, JpaSpecificatio
List
<
Units
>
findAllByLevelGreaterThanEqual
(
Integer
level
);
List
<
Units
>
findAllByLevelGreaterThanEqual
(
Integer
level
);
List
<
Units
>
findAllByTypeNotIn
(
List
<
Integer
>
ids
);
List
<
Units
>
findByAreaIdIn
(
List
<
Integer
>
areaIds
);
List
<
Units
>
findByAreaIdIn
(
List
<
Integer
>
areaIds
);
List
<
Units
>
findAllByAreaIdIn
(
List
<
Integer
>
ids
);
List
<
Units
>
findAllByAreaIdIn
(
List
<
Integer
>
ids
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论