| | |
| | | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.Cools; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.AgvBasDevp; |
| | | import com.zy.asrs.entity.AgvLocDetl; |
| | | import com.zy.asrs.entity.AgvLocMast; |
| | | import com.zy.asrs.entity.LocMast; |
| | | import com.zy.asrs.entity.param.AgvMobileStartPakin; |
| | | import com.zy.asrs.entity.param.AgvMobileStartParam; |
| | | import com.zy.asrs.entity.param.CombParam; |
| | | import com.zy.asrs.entity.param.PickParam; |
| | | import com.zy.asrs.entity.param.*; |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.common.web.BaseController; |
| | | import io.swagger.models.auth.In; |
| | | import lombok.Synchronized; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | 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.HashMap; |
| | |
| | | |
| | | // 再次拣料 |
| | | @RequestMapping("/pick/again/auth") |
| | | // @ManagerAuth(memo = "组托") |
| | | @ManagerAuth(memo = "再次拣料") |
| | | public R pickAgain(@RequestBody PickParam pickParams){ |
| | | agvMobileService.pickAgain(pickParams, 1l); |
| | | return R.ok("组托成功"); |
| | | return R.ok("拣料成功"); |
| | | } |
| | | |
| | | /* |
| | |
| | | |
| | | @PostMapping("/agv/v1/locMove") |
| | | @Transactional |
| | | @ManagerAuth(memo = "调拨单任务下发") |
| | | public R agvLocMove(@RequestBody HashMap<String,Object> params){ |
| | | String fl = String.valueOf(params.get("floor")); |
| | | short floor =(short)Integer.parseInt(fl.substring(0, 1)); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @PostMapping("/hand/control/locMove") |
| | | @Transactional |
| | | @ManagerAuth(memo = "手动库位转移") |
| | | public R handControlLocMove(@RequestBody LocMoveParam param){ |
| | | agvMobileService.handControlLocMove(param, getUserId()); |
| | | return R.ok(); |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | List<AgvLocDetl> agvLocDetls1 = new ArrayList<>(); |
| | | List<AgvLocDetl> agvLocDetls2 = new ArrayList<>(); |