| | |
| | | import com.zy.common.model.WrkDto; |
| | | import com.zy.common.web.BaseController; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("mobile") |
| | | @Slf4j |
| | | public class MobileController extends BaseController { |
| | | |
| | | @Autowired |
| | |
| | | @Resource |
| | | private StaDescService staDescService; |
| | | |
| | | // 入库启动调用wcs给输送线下命令 type 1.满箱入库(默认),2.空箱入库 |
| | | @GetMapping("/inboundStart/auth") |
| | | @ManagerAuth(memo = "入库启动") |
| | | public R inboundStart(@RequestParam int type){ |
| | | log.info("pda入库启动:{}",type); |
| | | return mobileService.inboundStart(type); |
| | | } |
| | | |
| | | // 退空托盘返回产线 pda上操作空托返回产线(刀架返回) |
| | | @GetMapping("/djReturn/auth") |
| | | @ManagerAuth(memo = "刀架返回") |
| | | public R tkt(@RequestParam String djNo){ |
| | | log.info("刀架返回:{}",djNo); |
| | | return mobileService.djReturn(djNo); |
| | | } |
| | | |
| | | // 空箱出库 |
| | | @GetMapping("/emptyBoxOutbound/auth") |
| | | @ManagerAuth(memo = "空箱出库") |
| | | public R emptyBoxOutbound(@RequestParam int count){ |
| | | log.info("空箱出库:{}",count); |
| | | if (count <= 0) { |
| | | return R.parse("数量有误:" + count); |
| | | } |
| | | return mobileService.emptyBoxOutbound(count,getUserId()); |
| | | } |
| | | |
| | | @RequestMapping("/comb/auth") |
| | |
| | | mobileService.comb(combParam, getUserId()); |
| | | return R.ok("组托成功"); |
| | | } |
| | | |
| | | // 输送线流动 |
| | | |
| | | @RequestMapping("/pda/WarehouseOut/v1") |
| | | @ManagerAuth(memo = "并板途中拣料-参考念初") |