package com.zy.asrs.controller;
|
|
import com.core.common.R;
|
import com.zy.asrs.entity.param.CombParam;
|
import com.zy.asrs.service.AgvMobileService;
|
import com.zy.common.web.BaseController;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.*;
|
|
import java.util.Map;
|
|
/**
|
* 移动端接口控制器
|
* Created by vincent on 2020/6/10
|
*/
|
@RestController
|
@RequestMapping("agvMobile")
|
public class AgvMobileController extends BaseController {
|
|
@Autowired
|
private AgvMobileService agvMobileService;
|
|
@PostMapping("/comb/auth")
|
public R comb(@RequestBody CombParam combParam){
|
agvMobileService.comb(combParam, 1l);
|
return R.ok("组托成功");
|
}
|
|
@PostMapping("/combBinging/auth")
|
public R combBinding(@RequestBody Map<String,Object> map){
|
String barcode = map.get("barcode").toString();
|
String stationCode = map.get("stationCode").toString();
|
agvMobileService.combBinding(barcode,stationCode);
|
return R.ok("托盘绑定站点成功");
|
}
|
|
|
|
|
|
|
}
|