Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
5b27b959
提交
5b27b959
authored
11月 29, 2021
作者:
zjm
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' of git.yfzx.zjtys.com.cn:matrix/device-back into feature-check
上级
1d0702e4
d85a21e9
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
22 行增加
和
6 行删除
+22
-6
RepelBusinessServiceImpl.java
...evice/sendback/service/impl/RepelBusinessServiceImpl.java
+6
-5
StatisticalController.java
...ykj/dev/statistical/controller/StatisticalController.java
+8
-1
AreaExhibitionCache.java
...a/com/tykj/dev/device/user/cache/AreaExhibitionCache.java
+8
-0
没有找到文件。
dev-sendback/src/main/java/com/tykj/dev/device/sendback/service/impl/RepelBusinessServiceImpl.java
浏览文件 @
5b27b959
...
...
@@ -369,6 +369,7 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
}
}
);
mapUnitList
.
forEach
((
k
,
v
)
->{
AtomicReference
<
Integer
>
count
=
new
AtomicReference
<>(
0
);
v
.
forEach
(
units1
->
{
...
...
@@ -1556,11 +1557,11 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
* 判读是否留在代办
*/
private
void
isCommission
(
TaskBto
taskBto
,
Integer
repelId
)
{
boolean
flag
=
repelTaskStatisticalService
.
findAllRepelTaskStatistical
(
taskBto
.
getParentTaskId
(),
repelId
).
stream
().
allMatch
(
e
->
e
.
getTaskStatus
()
!=
3
);
if
(
flag
)
{
TaskBto
parentTask
=
taskService
.
get
(
taskBto
.
getParentTaskId
());
taskService
.
moveToSpecial
(
parentTask
,
GlobalMap
.
getStatusEnumMap
().
get
(
parentTask
.
getBillStatus
()),
-
1
);
}
//
boolean flag = repelTaskStatisticalService.findAllRepelTaskStatistical(taskBto.getParentTaskId(), repelId).stream().allMatch(e -> e.getTaskStatus() != 3);
//
if (flag) {
//
TaskBto parentTask = taskService.get(taskBto.getParentTaskId());
//
taskService.moveToSpecial(parentTask, GlobalMap.getStatusEnumMap().get(parentTask.getBillStatus()), -1);
//
}
}
/**
...
...
dev-statistical/src/main/java/com/tykj/dev/statistical/controller/StatisticalController.java
浏览文件 @
5b27b959
...
...
@@ -42,6 +42,7 @@ import java.util.function.Function;
import
java.util.stream.Collectors
;
import
static
java
.
util
.
stream
.
Collectors
.
groupingBy
;
import
static
java
.
util
.
stream
.
Collectors
.
toMap
;
@RestController
@Api
(
tags
=
"统计业务模块"
,
description
=
"统计相关接口"
)
...
...
@@ -312,7 +313,13 @@ public class StatisticalController {
List
<
ScrappedDestroyedRetiredVo
>
destroyedRetiredVoList
=
new
ArrayList
<>();
if
(
lifeStatus
.
containsAll
(
deviceLibrarySelectVo
.
getLifeStatus
())){
//进行组合
Map
<
String
,
List
<
DeviceLibrary
>>
map
=
libraryList
.
stream
().
collect
(
groupingBy
(
deviceLibrary
->
deviceLibrary
.
getModel
()
+
"Ǵ"
+
deviceLibrary
.
getName
()
+
"Ǵ"
+
deviceLibrary
.
getMatchingRangeName
()+
"Ǵ"
+
deviceLibrary
.
getIsPart
()));
// Map<String, List<DeviceLibrary>> map = libraryList.stream()
// .collect(groupingBy(deviceLibrary -> deviceLibrary.getModel() + "Ǵ" + deviceLibrary.getName() + "Ǵ" +
// deviceLibrary.getMatchingRangeName()+"Ǵ"+deviceLibrary.getIsPart()));
LinkedHashMap
<
String
,
List
<
DeviceLibrary
>>
map
=
libraryList
.
stream
().
collect
(
groupingBy
(
deviceLibrary
->
deviceLibrary
.
getModel
()
+
"Ǵ"
+
deviceLibrary
.
getName
()
+
"Ǵ"
+
deviceLibrary
.
getMatchingRangeName
()
+
"Ǵ"
+
deviceLibrary
.
getIsPart
(),
LinkedHashMap:
:
new
,
Collectors
.
toList
()));
if
(
map
.
size
()>
0
){
for
(
String
s
:
map
.
keySet
())
{
String
[]
strings
=
s
.
split
(
"Ǵ"
);
...
...
dev-user/src/main/java/com/tykj/dev/device/user/cache/AreaExhibitionCache.java
浏览文件 @
5b27b959
...
...
@@ -5,6 +5,7 @@ import com.tykj.dev.device.user.subject.entity.Units;
import
lombok.Data
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.function.Function
;
...
...
@@ -68,4 +69,11 @@ public class AreaExhibitionCache {
this
.
areaExhibitions
=
areaExhibitionList
;
return
this
;
}
public
Map
<
Integer
,
String
>
checkSpecial
(){
Map
<
Integer
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
1
,
idMap
.
get
(
3
).
getAreaName
());
map
.
put
(
2
,
idMap
.
get
(
4
).
getAreaName
());
return
map
;
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论