|
|
@ -31,7 +31,6 @@ public class ModevTypePointServiceImpl implements ModevTypePointService {
|
|
|
|
WarnRuleRepository ruleRepository;
|
|
|
|
WarnRuleRepository ruleRepository;
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@Cacheable(value = "typePoint", key = "#modevtypeId")
|
|
|
|
|
|
|
|
public List<ModevTypePoint> listAll(Integer modevtypeId) {
|
|
|
|
public List<ModevTypePoint> listAll(Integer modevtypeId) {
|
|
|
|
List<ModevTypePoint> list = repository.findByModevtypeId(modevtypeId);
|
|
|
|
List<ModevTypePoint> list = repository.findByModevtypeId(modevtypeId);
|
|
|
|
for (ModevTypePoint point : list) {
|
|
|
|
for (ModevTypePoint point : list) {
|
|
|
@ -42,6 +41,13 @@ public class ModevTypePointServiceImpl implements ModevTypePointService {
|
|
|
|
return list;
|
|
|
|
return list;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
@Cacheable(value = "typePoint", key = "#modevtypeId")
|
|
|
|
|
|
|
|
public List<ModevTypePoint> listAllCache(Integer modevtypeId) {
|
|
|
|
|
|
|
|
List<ModevTypePoint> list = this.listAll(modevtypeId);
|
|
|
|
|
|
|
|
return list;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@CacheEvict(cacheNames = {"typePoint"}, allEntries = true)
|
|
|
|
@CacheEvict(cacheNames = {"typePoint"}, allEntries = true)
|
|
|
|
public ModevTypePoint add(ModevTypePoint item) throws Exception {
|
|
|
|
public ModevTypePoint add(ModevTypePoint item) throws Exception {
|
|
|
|