| | |
| | | // double[] doubles = Utils.RingThroughXY2(perimeter, NumUtils.GetRandomIntInRange(183)); |
| | | // double[] doubles = Utils.RingThroughXYRgv(perimeter, perimeter-rgvProtocol.RgvPos.doubleValue()); |
| | | double[] doubles = Utils.getRgvPosNew(perimeter, rgvProtocol.RgvPos.doubleValue()); |
| | | // double[] doubles = Utils.RingThroughXY2(183.0, 100*i ); |
| | | |
| | | ringThroughParam.setValueX(doubles[0]); |
| | | ringThroughParam.setValueY(doubles[1]); |
| | | ringThroughParam.setModeColor(rgvProtocol.modeType.color); |
| | | ringThroughParam.setStatusColor(rgvProtocol.statusType.color); |
| | | if (rgvProtocol.getModeType() == RgvModeType.AUTO){ |
| | | ringThroughParam.setAnimation(2); |
| | | } |
| | | result.add(ringThroughParam); |
| | | } |
| | | return R.ok().add(result); |
| | |
| | | List<RingThroughParam> result = new ArrayList<>(); |
| | | List<BasDevpPosition> basDevpPositions = basDevpPositionService.selectList(new EntityWrapper<>()); |
| | | for (BasDevpPosition basDevpPosition : basDevpPositions){ |
| | | if (basDevpPosition.getDevRegion() == 0){ |
| | | continue; |
| | | } |
| | | RingThroughParam ringThroughParam = new RingThroughParam(); |
| | | |
| | | ringThroughParam.setModeColor("#FFFFFF"); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @PostMapping("/disable/task/delete1") |
| | | // @ManagerAuth(memo = "初始化任务") |
| | | public R taskDisabledelete1(@RequestParam Long wrkNo){ |
| | | Date now = new Date(); |
| | | log.info("/disable/task/delete1===》初始化任务!!!wrkNo:{},data:{}",wrkNo,new Date()); |
| | | WrkMast wrkMast = wrkMastService.selectOne(new EntityWrapper<WrkMast>().eq("wrk_no", wrkNo)); |
| | | if (Cools.isEmpty(wrkMast)){ |
| | | return R.error().add("未找到此任务,异常!!!"); |
| | | } |
| | | wrkMast.setWrkSts(1L); |
| | | wrkMast.setRgvNo(0); |
| | | wrkMast.setAppeTime(now); |
| | | wrkMast.setLogErrTime(now); |
| | | if (wrkMastService.updateById(wrkMast)){ |
| | | return R.ok(); |
| | | } |
| | | return R.error("初始化失败!!!"); |
| | | } |
| | | |
| | | } |