package com.xhpc.activity.controller;

import com.xhpc.activity.service.IXhpcDeviceMessageService;
import com.xhpc.common.core.domain.R;
import com.xhpc.common.core.web.controller.BaseController;
import com.xhpc.system.api.model.LoginUser;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;

/**
 * 储存占位费设备运行日志
 *
 * @author yuyang
 * @Date 2025-09-17 14:37
 */
@RestController
@RequestMapping("/device")
public class XhpcDeviceMessageController  extends BaseController {

    @Resource
    IXhpcDeviceMessageService xhpcDeviceMessageService;


    //每3分钟储存一条有费用的占位费订单
    @GetMapping("/getNameList")
    @Scheduled(cron = "0 0/1 * * * ? ")
    public void getNameList(){
        xhpcDeviceMessageService.addXhpcDeviceMessage();
    }



}
