|
@@ -8,6 +8,7 @@ import com.smcic.api.epg.entity.Program;
|
|
|
import com.smcic.api.epg.entity.EpgDisableConfig;
|
|
|
import com.smcic.api.epg.mapper.ProgramMapper;
|
|
|
import com.smcic.api.epg.service.IProgramService;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -21,6 +22,7 @@ import java.util.concurrent.TimeUnit;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
@Service
|
|
|
+@Slf4j
|
|
|
public class ProgramService extends ServiceImpl<ProgramMapper, Program> implements IProgramService {
|
|
|
|
|
|
@Resource
|
|
@@ -70,7 +72,7 @@ public class ProgramService extends ServiceImpl<ProgramMapper, Program> implemen
|
|
|
}
|
|
|
|
|
|
public void setCache(Integer channelId){
|
|
|
- System.out.println("更新缓存" + channelId);
|
|
|
+ log.info("更新缓存 {}", channelId);
|
|
|
cache.put(channelId, getDisableProgramList(channelId));
|
|
|
}
|
|
|
|