| | |
| | | package com.zy.asrs.controller; |
| | | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.BaseRes; |
| | | import com.core.common.Cools; |
| | |
| | | @ManagerAuth(memo = "穿梭车信息表") |
| | | public R steStateTable(){ |
| | | List<SteStateTableVo> list = new ArrayList<>(); |
| | | List<BasSte> stes = basSteService.selectList(new EntityWrapper<BasSte>().orderBy("ste_no")); |
| | | List<BasSte> stes = basSteService.list(new QueryWrapper<BasSte>().orderByAsc("ste_no")); |
| | | for (BasSte basSte : stes) { |
| | | // 表格行 |
| | | SteStateTableVo vo = new SteStateTableVo(); |
| | |
| | | for (SteSlave ste : slaveProperties.getSte()) { |
| | | if (steNo.equals(ste.getId())) { |
| | | vo.setSteNo(ste.getId()); |
| | | BasSte basSte = basSteService.selectById(ste.getId()); |
| | | BasSte basSte = basSteService.getById(ste.getId()); |
| | | if (!Cools.isEmpty(basSte)) { |
| | | vo.setRow(basSte.getRow()); |
| | | vo.setBay(basSte.getBay()); |
| | |
| | | @PostMapping("/detl/update") |
| | | @ManagerAuth |
| | | public R steUpdate(SteDataVo vo){ |
| | | BasSte basSte = basSteService.selectById(vo.getSteNo()); |
| | | BasSte basSte = basSteService.getById(vo.getSteNo()); |
| | | if (basSte == null) { |
| | | return R.error(); |
| | | } |