| | |
| | | @PostMapping("/callEmptyBinOutBound") |
| | | @ManagerAuth(memo = "pda呼叫空料框出库") |
| | | public synchronized R callEmptyBinOutBound(@RequestBody JSONObject param) { |
| | | if(!param.containsKey("staNo") || !param.containsKey("locType")){ // 1.窄,2.宽 |
| | | if(!param.containsKey("staNo") || !param.containsKey("locType") || !param.containsKey("count")){ // 1.窄,2.宽 |
| | | return R.parse(BaseRes.PARAM); |
| | | } |
| | | return mobileService.callEmptyBinOutBound(null,param.getString("staNo"),param.getString("locType"),getUserId()); |
| | | int count = param.getInteger("count"); |
| | | if (count <= 0 || count > 10) { |
| | | return R.parse("数量有误,count:" + count); |
| | | } |
| | | return mobileService.callEmptyBinOutBound(null,param.getString("staNo"),param.getString("locType"),count,getUserId()); |
| | | } |
| | | |
| | | @PostMapping("/callEmptyBinInBound") |
| | | @ManagerAuth(memo = "pda呼叫料框回库") |
| | | public synchronized R callEmptyBinInBound(@RequestBody JSONObject param) { |
| | | if(!param.containsKey("site")){ // 搬运起点 |
| | | if (!param.containsKey("site") || !param.containsKey("barcode") || !param.containsKey("emptyFlag")) { |
| | | return R.parse(BaseRes.PARAM); |
| | | } |
| | | return mobileService.callEmptyBinInBound(param.getString("site"),getUserId()); |
| | | String site = param.getString("site"); // 起始站点 |
| | | String barcode = param.getString("barcode"); // 托盘条码 |
| | | String emptyFlag = param.getString("emptyFlag"); // 1.有货(默认),2.空托 |
| | | |
| | | return mobileService.callEmptyBinInBound(site, barcode, emptyFlag, getUserId()); |
| | | } |
| | | |
| | | } |