浏览代码

高并发性能优化

gaodm 5 年之前
父节点
当前提交
cba4442420
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      aipt-service/src/main/java/com/diagbot/facade/PushCacheFacade.java

+ 3 - 3
aipt-service/src/main/java/com/diagbot/facade/PushCacheFacade.java

@@ -71,16 +71,16 @@ public class PushCacheFacade {
     }
 
     @Cacheable(value = "aipt-service", key = "'GetConceptDTO:name_' + #name + '_libType_' + #libType", unless = "#result == null")
-    public ConceptPushDTO getConceptDTO(String name, Integer libType){
+    public ConceptPushDTO getConceptDTO(String name, Integer libType) {
         ConceptPushDTO conceptPushDTO = null;
-        if (StringUtil.isNotBlank(name) && !IntegerUtil.isNull(libType)){
+        if (StringUtil.isNotBlank(name) && !IntegerUtil.isNull(libType)) {
             QueryWrapper<Concept> conceptQueryWrapper = new QueryWrapper<>();
             conceptQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey())
                     .eq("lib_name", name)
                     .eq("lib_type", libType);
             Concept concept = conceptFacade.getOne(conceptQueryWrapper, false);
 
-            conceptPushDTO= new ConceptPushDTO();
+            conceptPushDTO = new ConceptPushDTO();
             conceptPushDTO.setName(name);
             conceptPushDTO.setLibType(libType);
             conceptPushDTO.setType(ParamConvertUtil.libConvert2Concept(libType));