rk
2026-06-09 c467370d8741bc05ca7c22d4253c58ac0a979ef5
server/visits/admin_timer/src/main/java/com/doumee/api/HkImageTimerController.java
@@ -5,8 +5,9 @@
import com.doumee.service.business.impl.hksync.HkSyncImgServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -15,6 +16,7 @@
 * @date 2023/11/30 15:33
 */
@Api(tags = "海康事件图片下载定时器接口")
@Slf4j
@RestController
@RequestMapping("/timer/image")
public class HkImageTimerController extends BaseController {
@@ -27,8 +29,9 @@
    @Autowired
    private HkSyncImgServiceImpl hkSyncImgService;
    @ApiOperation("开启定时下载海康系统图片数据")
    @GetMapping("/downHKImgs")
    @PostMapping("/downHKImgs")
    public ApiResponse downHKImgs() {
        log.info("定时任务执行开始:downHKImgs-下载海康图片");
        if(dataSyncConfig.getNeedDealImg()!=null && dataSyncConfig.getNeedDealImg()){
            hkSyncImgService.downHKImgs(0);
        }