| | |
| | | return R.error("WMS任务号[reqCode]不能为空"); |
| | | } |
| | | String taskCode = param.getTaskCode(); |
| | | String[] split = taskCode.split("-"); |
| | | param.setTaskNo(Integer.parseInt(split[0])); |
| | | if (taskCode == null || !taskCode.matches("^\\d+-.*$")) { |
| | | throw new CoolException("taskCode 格式错误,需为 数字-xxx,例如 123-ABC"); |
| | | } |
| | | |
| | | param.setTaskNo(Integer.parseInt(taskCode.substring(0, taskCode.indexOf("-")))); |
| | | |
| | | // if (Cools.isEmpty(param.getTimestamp())) { |
| | | // return R.error("RGV任务号[timestamp]不能为空"); |
| | | // } |
| | |
| | | HttpServletRequest request) { |
| | | auth(appkey, param, request); |
| | | |
| | | if (Cools.isEmpty(param)) { |
| | | return R.parse(BaseRes.PARAM); |
| | | } |
| | | |
| | | List<AgvLocListDetlParam> list = openService.getAgvLocList(param); |
| | | if (!list.isEmpty()) { |
| | | return R.ok(list); |