| | |
| | | |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.R; |
| | | import com.zy.client.domain.enums.CrnStatusType; |
| | | import com.zy.client.domain.param.CrnOperatorParam; |
| | | import com.zy.client.domain.vo.CommandLogVo; |
| | | import com.zy.client.domain.vo.CrnMsgTableVo; |
| | | import com.zy.client.domain.vo.CrnStateTableVo; |
| | | import com.zy.client.domain.enums.CrnStatusType; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | @RequestMapping("/crn") |
| | | public class CrnController { |
| | | |
| | | private AtomicInteger integer = new AtomicInteger(); |
| | | public static AtomicInteger integer = new AtomicInteger(); |
| | | |
| | | @ManagerAuth(memo = "进行中的命令") |
| | | @PostMapping("/command/ongoing") |
| | |
| | | return R.ok().add(str); |
| | | } |
| | | |
| | | /****************************************************************/ |
| | | /************************** 手动操作 ******************************/ |
| | | /****************************************************************/ |
| | | |
| | | @ManagerAuth(memo = "入库") |
| | | @PostMapping("/operator/put") |
| | | public R crnPut(CrnOperatorParam param){ |
| | | return R.ok("入库成功"); |
| | | } |
| | | |
| | | @ManagerAuth(memo = "出库") |
| | | @PostMapping("/operator/take") |
| | | public R crnTake(CrnOperatorParam param){ |
| | | return R.ok("出库成功"); |
| | | } |
| | | |
| | | @ManagerAuth(memo = "库位转移") |
| | | @PostMapping("/operator/stockMove") |
| | | public R crnStockMove(CrnOperatorParam param){ |
| | | return R.ok("库位转移成功"); |
| | | } |
| | | |
| | | @ManagerAuth(memo = "站到站") |
| | | @PostMapping("/operator/siteMove") |
| | | public R crnSiteMove(CrnOperatorParam param){ |
| | | return R.ok("站到站成功"); |
| | | } |
| | | |
| | | @ManagerAuth(memo = "坐标移动") |
| | | @PostMapping("/operator/coorMove") |
| | | public R crnCoorMove(CrnOperatorParam param){ |
| | | return R.ok("坐标移动成功"); |
| | | } |
| | | |
| | | @ManagerAuth(memo = "回原点") |
| | | @PostMapping("/operator/bacOrigin") |
| | | public R crnBacOrigin(CrnOperatorParam param){ |
| | | return R.ok("回原点成功"); |
| | | } |
| | | |
| | | @ManagerAuth(memo = "任务完成") |
| | | @PostMapping("/operator/taskComplete") |
| | | public R crnTaskComplete(CrnOperatorParam param){ |
| | | return R.ok("任务完成"); |
| | | } |
| | | |
| | | @ManagerAuth(memo = "暂停") |
| | | @PostMapping("/operator/pause") |
| | | public R crnPause(CrnOperatorParam param){ |
| | | return R.ok("暂停成功"); |
| | | } |
| | | |
| | | @ManagerAuth(memo = "启动") |
| | | @PostMapping("/operator/boot") |
| | | public R crnBoot(CrnOperatorParam param){ |
| | | return R.ok("启动成功"); |
| | | } |
| | | |
| | | @ManagerAuth(memo = "清除命令") |
| | | @PostMapping("/operator/clearCommand") |
| | | public R crnClearCommand(CrnOperatorParam param){ |
| | | return R.ok("清除命令成功"); |
| | | } |
| | | |
| | | } |