|
@@ -12,7 +12,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.persagy.dmp.common.constant.ValidEnum;
|
|
|
import com.persagy.dmp.common.exception.BusinessException;
|
|
|
import com.persagy.dmp.common.model.entity.BaseEntity;
|
|
|
-import com.persagy.dmp.define.entity.ObjectInfoDefine;
|
|
|
import com.persagy.dmp.define.entity.ObjectTypeDefine;
|
|
|
import com.persagy.dmp.mybatis.utils.ConditionUtil;
|
|
|
import com.persagy.dmp.rwd.basic.constant.DigitalMessageConstant;
|
|
@@ -22,7 +21,6 @@ import com.persagy.dmp.rwd.define.service.IObjectTypeService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.cache.annotation.CacheConfig;
|
|
|
import org.springframework.cache.annotation.CacheEvict;
|
|
|
-import org.springframework.cache.annotation.Cacheable;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
@@ -45,7 +43,7 @@ public class ObjectTypeServiceImpl implements IObjectTypeService {
|
|
|
private DigitalMessageHelper messageSender;
|
|
|
|
|
|
@Override
|
|
|
- @Cacheable(key = "targetClass + methodName + #p0 + #p1")
|
|
|
+// @Cacheable(key = "targetClass + methodName + #p0 + #p1")
|
|
|
public List<ObjectTypeDefine> queryByProjectAndApp(String projectId, String appId) {
|
|
|
// TODO 指定条件查询使用Redis
|
|
|
QueryWrapper<ObjectTypeDefine> wrapper = new QueryWrapper<>();
|
|
@@ -58,7 +56,7 @@ public class ObjectTypeServiceImpl implements IObjectTypeService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- @Cacheable(key = "targetClass + methodName")
|
|
|
+// @Cacheable(key = "targetClass + methodName")
|
|
|
public Map<String, String> queryCodeNameMap() {
|
|
|
LambdaQueryWrapper<ObjectTypeDefine> wrapper = new LambdaQueryWrapper<>();
|
|
|
wrapper.select(ObjectTypeDefine::getId, ObjectTypeDefine::getCode, ObjectTypeDefine::getName);
|
|
@@ -68,7 +66,7 @@ public class ObjectTypeServiceImpl implements IObjectTypeService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- @Cacheable(key = "targetClass + methodName")
|
|
|
+// @Cacheable(key = "targetClass + methodName")
|
|
|
public Map<String, String> queryObjTypeMap() {
|
|
|
LambdaQueryWrapper<ObjectTypeDefine> wrapper = new LambdaQueryWrapper<>();
|
|
|
wrapper.select(ObjectTypeDefine::getId, ObjectTypeDefine::getCode, ObjectTypeDefine::getObjType);
|