...
This commit is contained in:
parent
d245197684
commit
ba520a439a
|
@ -3,8 +3,6 @@ package io.renren.modules.enke.service;
|
||||||
import io.renren.common.service.CrudService;
|
import io.renren.common.service.CrudService;
|
||||||
import io.renren.modules.enke.dto.HostInfoDTO;
|
import io.renren.modules.enke.dto.HostInfoDTO;
|
||||||
import io.renren.modules.enke.entity.HostInfoEntity;
|
import io.renren.modules.enke.entity.HostInfoEntity;
|
||||||
import io.renren.modules.fuse.dto.TbFuseDTO;
|
|
||||||
import io.renren.modules.fuse.entity.TbFuseEntity;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Auther:lizhicheng2@hisense.com
|
* @Auther:lizhicheng2@hisense.com
|
||||||
|
|
|
@ -8,7 +8,6 @@ import io.renren.modules.enke.dao.HostInfoDao;
|
||||||
import io.renren.modules.enke.dto.HostInfoDTO;
|
import io.renren.modules.enke.dto.HostInfoDTO;
|
||||||
import io.renren.modules.enke.entity.HostInfoEntity;
|
import io.renren.modules.enke.entity.HostInfoEntity;
|
||||||
import io.renren.modules.enke.service.EnkeService;
|
import io.renren.modules.enke.service.EnkeService;
|
||||||
import io.renren.modules.fuse.dto.TbFuseDTO;
|
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
|
@ -8,7 +8,6 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||||
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
import io.renren.common.constant.Constant;
|
|
||||||
import io.renren.common.utils.ExcelUtils;
|
import io.renren.common.utils.ExcelUtils;
|
||||||
import io.renren.common.utils.JhlDAPTool;
|
import io.renren.common.utils.JhlDAPTool;
|
||||||
import io.renren.modules.gateway.dao.ApiCountHistoryDao;
|
import io.renren.modules.gateway.dao.ApiCountHistoryDao;
|
||||||
|
@ -33,7 +32,6 @@ import io.swagger.annotations.ApiOperation;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.extern.log4j.Log4j2;
|
import lombok.extern.log4j.Log4j2;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.bytedeco.opencv.presets.opencv_core;
|
|
||||||
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.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
|
@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
|
|
@ -139,7 +139,6 @@ public class SysNoticeServiceImpl extends CrudServiceImpl<SysNoticeDao, SysNotic
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//更新发送者信息
|
//更新发送者信息
|
||||||
if (dto.getStatus() == NoticeStatusEnum.SEND.value() && StringUtils.isEmpty(dto.getSenderName())) {
|
if (dto.getStatus() == NoticeStatusEnum.SEND.value() && StringUtils.isEmpty(dto.getSenderName())) {
|
||||||
entity.setSenderName(SecurityUser.getUser().getRealName());
|
entity.setSenderName(SecurityUser.getUser().getRealName());
|
||||||
|
|
|
@ -81,6 +81,7 @@ public class NoticeUntil {
|
||||||
/**
|
/**
|
||||||
* 先根据type取通知类型,前台根据tab区分不同param,后台根据待办已办状态区分不同路由
|
* 先根据type取通知类型,前台根据tab区分不同param,后台根据待办已办状态区分不同路由
|
||||||
* 这个逻辑好费劲哈哈
|
* 这个逻辑好费劲哈哈
|
||||||
|
*
|
||||||
* @param type
|
* @param type
|
||||||
* @param applyState
|
* @param applyState
|
||||||
* @return
|
* @return
|
||||||
|
|
|
@ -2154,7 +2154,8 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
||||||
return index;
|
return index;
|
||||||
}).collect(Collectors.toList());
|
}).collect(Collectors.toList());
|
||||||
Map<String, List<Map<String, Object>>> typeCountListMap1 = // 区级部门
|
Map<String, List<Map<String, Object>>> typeCountListMap1 = // 区级部门
|
||||||
typeCountListByApplyDept.stream().filter(index -> index.get("deptType").toString().equals("3")).collect(Collectors.groupingBy(m -> m.get("district").toString()));
|
typeCountListByApplyDept.stream().filter(index -> index.get("deptType").toString().equals("3"))
|
||||||
|
.collect(Collectors.groupingBy(m -> m.get("district").toString()));
|
||||||
resultList = resultList.stream().map(index -> {
|
resultList = resultList.stream().map(index -> {
|
||||||
if (typeCountListMap1.keySet().contains(index.get("dept_id").toString())) { // 该部门存在上架信息
|
if (typeCountListMap1.keySet().contains(index.get("dept_id").toString())) { // 该部门存在上架信息
|
||||||
index.put("count", typeCountListMap1.get(index.get("dept_id").toString()).stream().mapToInt(it -> Integer.parseInt(it.get("count").toString())).sum());
|
index.put("count", typeCountListMap1.get(index.get("dept_id").toString()).stream().mapToInt(it -> Integer.parseInt(it.get("count").toString())).sum());
|
||||||
|
@ -2171,7 +2172,8 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
||||||
}).collect(Collectors.toList());
|
}).collect(Collectors.toList());
|
||||||
|
|
||||||
Map<String, List<Map<String, Object>>> typeCountListMap2 = // 企业部门
|
Map<String, List<Map<String, Object>>> typeCountListMap2 = // 企业部门
|
||||||
typeCountListByApplyDept.stream().filter(index -> index.get("deptType").toString().equals("4")).collect(Collectors.groupingBy(m -> m.get("district").toString()));
|
typeCountListByApplyDept.stream().filter(index -> index.get("deptType").toString().equals("4"))
|
||||||
|
.collect(Collectors.groupingBy(m -> m.get("dept_id").toString()));
|
||||||
resultList = resultList.stream().map(index -> {
|
resultList = resultList.stream().map(index -> {
|
||||||
if (typeCountListMap2.keySet().contains(index.get("dept_id").toString())) { // 该部门存在上架信息
|
if (typeCountListMap2.keySet().contains(index.get("dept_id").toString())) { // 该部门存在上架信息
|
||||||
index.put("count", typeCountListMap2.get(index.get("dept_id").toString()).stream().mapToInt(it -> Integer.parseInt(it.get("count").toString())).sum());
|
index.put("count", typeCountListMap2.get(index.get("dept_id").toString()).stream().mapToInt(it -> Integer.parseInt(it.get("count").toString())).sum());
|
||||||
|
@ -2327,7 +2329,8 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
||||||
return index;
|
return index;
|
||||||
}).collect(Collectors.toList());
|
}).collect(Collectors.toList());
|
||||||
Map<String, List<Map<String, Object>>> typeCountListMap1 = // 区级部门
|
Map<String, List<Map<String, Object>>> typeCountListMap1 = // 区级部门
|
||||||
typeCountListByDept.stream().filter(index -> index.get("deptType").toString().equals("3")).collect(Collectors.groupingBy(m -> m.get("district").toString()));
|
typeCountListByDept.stream().filter(index -> index.get("deptType").toString().equals("3"))
|
||||||
|
.collect(Collectors.groupingBy(m -> m.get("district").toString()));
|
||||||
resultList = resultList.stream().map(index -> {
|
resultList = resultList.stream().map(index -> {
|
||||||
if (typeCountListMap1.keySet().contains(index.get("dept_id").toString())) { // 该部门存在上架信息
|
if (typeCountListMap1.keySet().contains(index.get("dept_id").toString())) { // 该部门存在上架信息
|
||||||
index.put("count", typeCountListMap1.get(index.get("dept_id").toString()).stream().mapToInt(it -> Integer.parseInt(it.get("count").toString())).sum());
|
index.put("count", typeCountListMap1.get(index.get("dept_id").toString()).stream().mapToInt(it -> Integer.parseInt(it.get("count").toString())).sum());
|
||||||
|
@ -2343,7 +2346,8 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
||||||
return index;
|
return index;
|
||||||
}).collect(Collectors.toList());
|
}).collect(Collectors.toList());
|
||||||
Map<String, List<Map<String, Object>>> typeCountListMap2 = // 企业部门
|
Map<String, List<Map<String, Object>>> typeCountListMap2 = // 企业部门
|
||||||
typeCountListByDept.stream().filter(index -> index.get("deptType").toString().equals("4")).collect(Collectors.groupingBy(m -> m.get("district").toString()));
|
typeCountListByDept.stream().filter(index -> index.get("deptType").toString().equals("4"))
|
||||||
|
.collect(Collectors.groupingBy(m -> m.get("dept_id").toString()));
|
||||||
resultList = resultList.stream().map(index -> {
|
resultList = resultList.stream().map(index -> {
|
||||||
if (typeCountListMap2.keySet().contains(index.get("dept_id").toString())) { // 该部门存在上架信息
|
if (typeCountListMap2.keySet().contains(index.get("dept_id").toString())) { // 该部门存在上架信息
|
||||||
index.put("count", typeCountListMap2.get(index.get("dept_id").toString()).stream().mapToInt(it -> Integer.parseInt(it.get("count").toString())).sum());
|
index.put("count", typeCountListMap2.get(index.get("dept_id").toString()).stream().mapToInt(it -> Integer.parseInt(it.get("count").toString())).sum());
|
||||||
|
|
Loading…
Reference in New Issue