|
|
@@ -8,7 +8,10 @@ import java.util.Date;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.Map;
|
|
|
|
|
|
+import com.kede.common.utils.LoggerUtils;
|
|
|
+import org.slf4j.Logger;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.cache.annotation.CacheEvict;
|
|
|
import org.springframework.cache.annotation.Cacheable;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -28,6 +31,7 @@ import com.kede.news.bo.InputNews;
|
|
|
@Service
|
|
|
public class ActivityServiceImpl extends BaseMybatisDao<ActivityMapper> implements ActivityService {
|
|
|
|
|
|
+
|
|
|
@Autowired
|
|
|
private ActivityMapper activityMapper;
|
|
|
|
|
|
@@ -64,6 +68,13 @@ public class ActivityServiceImpl extends BaseMybatisDao<ActivityMapper> implemen
|
|
|
return activityMapper.updateByPrimaryKeySelective(in);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @CacheEvict(value = "listActivityDetails", allEntries = true)
|
|
|
+ public int cleanListActivityDetails() {
|
|
|
+ LoggerUtils.debug(getClass(),"清除活动缓存");
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public int delete(InputActivity in) {
|
|
|
return activityMapper.deleteByPrimaryKey(in.getId());
|