| | |
| | | import com.zy.core.model.protocol.CrnProtocol; |
| | | import com.zy.core.properties.SlaveProperties; |
| | | import com.zy.core.properties.SystemProperties; |
| | | import com.zy.core.thread.RgvThread; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | vo.setForkOffset(crnProtocol.getForkPosType().desc); // 货叉位置 |
| | | vo.setLiftPos(crnProtocol.getLiftPosType().desc); |
| | | vo.setWalkPos(crnProtocol.getWalkPos()==1?"不在定位":"在定位"); |
| | | if(crnProtocol.getAlarm() == 10){ |
| | | crnProtocol.setAlarm((short) 0); |
| | | } |
| | | vo.setWarnCode(String.valueOf(crnProtocol.getAlarm())); |
| | | if (crnProtocol.getAlarm() > 0) { |
| | | BasCrnError crnError = basCrnErrorMapper.selectById(crnProtocol.getAlarm()); |
| | |
| | | return crnControl(command)?R.ok():R.error(); |
| | | } |
| | | |
| | | |
| | | |
| | | // @ManagerAuth(memo = "暂停") |
| | | // @PostMapping("/operator/pause") |
| | | // public R crnPause(CrnOperatorParam param){ |
| | |
| | | } |
| | | |
| | | private boolean isLocSts(String row,String bay,String lev){ |
| | | String loc = String.format("%2d",row)+String.format("%3d",bay)+String.format("%2d",lev); |
| | | int rowInt = Integer.parseInt(row); |
| | | int bayInt = Integer.parseInt(bay); |
| | | int levInt = Integer.parseInt(lev); |
| | | String loc = String.format("%2d",rowInt)+String.format("%3d",bayInt)+String.format("%2d",levInt); |
| | | LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", loc)); |
| | | if (Cools.isEmpty(locMast)){ |
| | | return false; |