| | |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Random; |
| | | |
| | | /** |
| | | * 输送设备接口 |
| | |
| | | @RequestMapping("/site") |
| | | public class SiteController { |
| | | |
| | | @PostMapping("/table/site") |
| | | @ManagerAuth(memo = "站点信息表") |
| | | public R siteTable(){ |
| | | |
| | | |
| | | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @PostMapping("/table/plc/errors") |
| | | @ManagerAuth(memo = "输送设备plc异常信息表") |
| | | public R crnLatestData(){ |
| | | public R plcErrorTable(){ |
| | | List<PlcErrorTable> list = new ArrayList<>(); |
| | | for (int i=0;i<10;i++){ |
| | | for (int i = 0; i<new Random().nextInt(13); i++){ |
| | | PlcErrorTable table = new PlcErrorTable(); |
| | | table.setNo(String.valueOf(i)); |
| | | table.setError("异常信息"); |