| | |
| | | |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.R; |
| | | import com.zy.client.domain.CrnMsgTableVo; |
| | | import com.zy.client.domain.CrnStateTableVo; |
| | | 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 java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.UUID; |
| | | import java.util.concurrent.atomic.AtomicInteger; |
| | | |
| | | /** |
| | |
| | | @RequestMapping("/crn") |
| | | public class CrnController { |
| | | |
| | | |
| | | private AtomicInteger integer = new AtomicInteger(); |
| | | |
| | | @ManagerAuth(memo = "进行中的命令") |
| | | @PostMapping("/command/ongoing") |
| | | public R ongoingCommand(){ |
| | | List<CommandLogVo> list = new ArrayList<>(); |
| | | for (int i=1;i<=4;i++){ |
| | | CommandLogVo vo = new CommandLogVo(); |
| | | vo.setCrnNo(String.valueOf(i)); |
| | | vo.setStatus(1); |
| | | vo.setCommand(UUID.randomUUID().toString()); |
| | | list.add(vo); |
| | | } |
| | | return R.ok().add(list); |
| | | } |
| | | |
| | | @PostMapping("/table/crn/state") |
| | | @ManagerAuth(memo = "堆垛机信息表") |
| | | public R crnStateTable(){ |