| | |
| | | package com.ruoyi.alarm.stealAlarm.controller; |
| | | |
| | | import com.ruoyi.alarm.stealAlarm.service.IStealElecAlarmService; |
| | | import com.ruoyi.common.annotation.Anonymous; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @ClassName ardAlarmStealElec |
| | |
| | | @Anonymous |
| | | public class ardAlarmStealElecController { |
| | | |
| | | @Resource |
| | | IStealElecAlarmService IStealElecAlarmService; |
| | | |
| | | @GetMapping("/updateViewState") |
| | | String updateViewState() { |
| | | String describe = "注采901班X2-10-3E7"; |
| | | String currentTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()); |
| | | int i = IStealElecAlarmService.updateViewTimeByDescribe(describe, currentTime); |
| | | return "更新成功" + i; |
| | | } |
| | | } |