| | |
| | | import com.zy.asrs.domain.param.SteOperatorParam; |
| | | import com.zy.asrs.domain.vo.SteMsgTableVo; |
| | | import com.zy.asrs.domain.vo.SteStateTableVo; |
| | | import com.zy.asrs.domain.vo.SteDataVo; |
| | | import com.zy.asrs.entity.BasSte; |
| | | import com.zy.asrs.entity.WrkMast; |
| | | import com.zy.asrs.service.BasSteService; |
| | |
| | | import com.zy.core.thread.SteThread; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | |
| | | return R.ok().add(str.toString()); |
| | | } |
| | | |
| | | @GetMapping("/detl/{steNo}") |
| | | public R steDetl(@PathVariable("steNo") Integer steNo){ |
| | | SteDataVo vo = new SteDataVo(); |
| | | for (SteSlave ste : slaveProperties.getSte()) { |
| | | if (steNo.equals(ste.getId())) { |
| | | vo.setSteNo(ste.getId()); |
| | | BasSte basSte = basSteService.selectById(ste.getId()); |
| | | if (!Cools.isEmpty(basSte)) { |
| | | vo.setRow(basSte.getRow()); |
| | | vo.setBay(basSte.getBay()); |
| | | vo.setLev(basSte.getLev()); |
| | | vo.setCrnNo(basSte.getCrnNo()); |
| | | vo.setWorkNo(basSte.getWrkNo()); |
| | | } |
| | | break; |
| | | } |
| | | } |
| | | return R.ok().add(vo); |
| | | } |
| | | |
| | | @PostMapping("/detl/update") |
| | | @ManagerAuth |
| | | public R steUpdate(SteDataVo vo){ |
| | | |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | /****************************************************************/ |
| | | /************************** 手动操作 ******************************/ |