|  |  |  | 
|---|
|  |  |  | import com.alibaba.fastjson.JSON; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.mapper.EntityWrapper; | 
|---|
|  |  |  | import com.core.common.R; | 
|---|
|  |  |  | import com.zy.asrs.domain.NotifyDto; | 
|---|
|  |  |  | import com.zy.asrs.domain.ShuttleGatherResult; | 
|---|
|  |  |  | import com.zy.asrs.domain.enums.NotifyMsgType; | 
|---|
|  |  |  | import com.zy.asrs.domain.param.*; | 
|---|
|  |  |  | import com.zy.asrs.entity.ApiLog; | 
|---|
|  |  |  | 
|---|
|  |  |  | if (param == null) { | 
|---|
|  |  |  | return R.error("参数不能为空"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | boolean dispatchShuttle = shuttleDispatchUtils.dispatchShuttle(null, param.getLocNo(), param.getShuttleNo()); | 
|---|
|  |  |  | boolean dispatchShuttle = shuttleDispatchUtils.dispatchShuttle(null, param.getSourceLocNo(), param.getLocNo(), param.getShuttleNo(), param.getFlag()); | 
|---|
|  |  |  | apiLogService.insert(new ApiLog( | 
|---|
|  |  |  | null | 
|---|
|  |  |  | , "小车移动任务" | 
|---|
|  |  |  | 
|---|
|  |  |  | return R.ok().add(list); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @PostMapping("/shuttleGather") | 
|---|
|  |  |  | @OpenApiLog(memo = "小车集合") | 
|---|
|  |  |  | public R shuttleGather(@RequestBody ShuttleGatherParam param) { | 
|---|
|  |  |  | List<ShuttleGatherResult> shuttleGather = shuttleDispatchUtils.shuttleGather(param); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | apiLogService.insert(new ApiLog( | 
|---|
|  |  |  | null | 
|---|
|  |  |  | , "获取指定库位信息" | 
|---|
|  |  |  | , "/getLocInformation" | 
|---|
|  |  |  | , null | 
|---|
|  |  |  | , null | 
|---|
|  |  |  | , null | 
|---|
|  |  |  | , null | 
|---|
|  |  |  | , JSON.toJSONString(shuttleGather) | 
|---|
|  |  |  | , null | 
|---|
|  |  |  | , null | 
|---|
|  |  |  | , 1 | 
|---|
|  |  |  | , new Date() | 
|---|
|  |  |  | , null | 
|---|
|  |  |  | , null | 
|---|
|  |  |  | )); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return R.ok().add(shuttleGather); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @GetMapping("/test") | 
|---|
|  |  |  | public R test() { | 
|---|
|  |  |  | notifyUtils.notify("task", 1, "9999", "W9999", NotifyMsgType.SHUTTLE_MOVING, "data"); | 
|---|