|
@@ -1,17 +1,13 @@
|
|
package com.rf.psychological.scale.service.impl;
|
|
package com.rf.psychological.scale.service.impl;
|
|
|
|
|
|
|
|
|
|
-import com.rf.psychological.dao.repository.CategoryRepository;
|
|
|
|
-import com.rf.psychological.scale.dao.model.CategoryEntity;
|
|
|
|
import com.rf.psychological.scale.dao.model.ScaleDetailsEntity;
|
|
import com.rf.psychological.scale.dao.model.ScaleDetailsEntity;
|
|
import com.rf.psychological.scale.dao.repository.ScaleDetailsRepository;
|
|
import com.rf.psychological.scale.dao.repository.ScaleDetailsRepository;
|
|
-import com.rf.psychological.scale.service.CategoryService;
|
|
|
|
import com.rf.psychological.scale.service.ScaleDetailsService;
|
|
import com.rf.psychological.scale.service.ScaleDetailsService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.cache.annotation.Cacheable;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
-import java.util.List;
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* @author zsy
|
|
* @author zsy
|
|
* @description:量表类别信息管理
|
|
* @description:量表类别信息管理
|
|
@@ -24,6 +20,7 @@ public class ScaleDetailsServiceImpl implements ScaleDetailsService {
|
|
private ScaleDetailsRepository scaleDetailsRepository;
|
|
private ScaleDetailsRepository scaleDetailsRepository;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
|
+ @Cacheable(value = "detail", key = "#flag",unless = "#result == null ")
|
|
public ScaleDetailsEntity getSubjectDetailsByFlag(String flag) {
|
|
public ScaleDetailsEntity getSubjectDetailsByFlag(String flag) {
|
|
return this.scaleDetailsRepository.getSubjectDetailsByFlag(flag);
|
|
return this.scaleDetailsRepository.getSubjectDetailsByFlag(flag);
|
|
}
|
|
}
|