This commit is contained in:
dinggang 2022-12-14 15:15:17 +08:00
commit 38bd349887
4 changed files with 34 additions and 21 deletions

View File

@ -201,7 +201,7 @@ public class ActTaskController {
.map(index_ -> index_.getMember())
.filter(Objects::nonNull)
.flatMap(index_ -> index_.stream())
.map(index_ -> (String) index_.get("id"))
.map(index_ -> index_.get("id").toString())
.filter(index_ -> !userId.equals(index_)) // 过滤非本人
.distinct()
.collect(Collectors.toList());

View File

@ -153,7 +153,7 @@ public class ActTaskService extends BaseServiceImpl {
.filter(Objects::nonNull)
.filter(index -> !index.isEmpty())
.flatMap(index -> index.stream())
.map(index -> (String) index.get("id"))
.map(index -> index.get("id").toString())
.filter(index -> !userId.equals(index)) // 过滤非本人
.distinct()
.collect(Collectors.toList());

View File

@ -129,6 +129,8 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
private static final String selectCensusApplyTableKey = "selectCensusApplyTable";
private static final String resourceSelectTotalKey = "resourceSelectTotal";
@Value("${system.startDay}")
private String systemDay;
@ -666,6 +668,7 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
}
@Override
@Cacheable(value = resourceSelectTotalKey, key = "'totle'")
public Object selectTotal() {
HashMap<String, Object> resultMap = new HashMap<>();
List<Map> re = resourceDao.selectTypeCount(null);
@ -2313,7 +2316,8 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
x.put("deptType", ucsDept.get("type"));
x.put("district", ucsDept.get("district"));
x.replace("deptName", ucsDept.get("ucs_name"));
} {
}
{
logger.error("未在ucs系统中找到浪潮{}单位对应部门", x.get("deptName").toString());
x.put("dept_id", "");
x.put("deptType", 2);

View File

@ -110,4 +110,13 @@
diskPersistent="true"
memoryStoreEvictionPolicy="LRU"/>
<!-- selectTotal缓存 -->
<cache name="resourceSelectTotal"
maxElementsInMemory="1000"
eternal="false"
timeToIdleSeconds="15"
timeToLiveSeconds="60"
overflowToDisk="true"
diskPersistent="true"
memoryStoreEvictionPolicy="LRU"/>
</ehcache>