| | |
| | | |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.R; |
| | | import com.zy.client.domain.PlcErrorTable; |
| | | import com.zy.client.domain.SiteTableVo; |
| | | import com.zy.client.domain.vo.PlcErrorTableVo; |
| | | import com.zy.client.domain.vo.SiteTableVo; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | @PostMapping("/table/plc/errors") |
| | | @ManagerAuth(memo = "输送设备plc异常信息表") |
| | | public R plcErrorTable(){ |
| | | List<PlcErrorTable> list = new ArrayList<>(); |
| | | List<PlcErrorTableVo> list = new ArrayList<>(); |
| | | for (int i = 0; i<new Random().nextInt(13); i++){ |
| | | PlcErrorTable table = new PlcErrorTable(); |
| | | PlcErrorTableVo table = new PlcErrorTableVo(); |
| | | table.setNo(String.valueOf(i)); |
| | | table.setError("异常信息"); |
| | | table.setPlcDesc("plc异常描述"); |