接口封装提交

main
Comair 7 months ago
parent d92318d763
commit bafd12fc27
  1. 12
      shkj-wms/src/main/java/com/shkj/wcs/controller/busin/WcsTaskController.java
  2. 6
      shkj-wms/src/main/java/com/shkj/wcs/third/rcs/RCSUtil.java
  3. 21
      shkj-wms/src/main/java/com/shkj/wcs/third/workbinWcs/dto/WcsIncomingTrayCheckDto.java

@ -168,7 +168,7 @@ public class WcsTaskController {
} }
@Log(title = "扫码处入库申请", businessType = BusinessType.UPDATE) @Log(title = "扫码处入库申请测试接口", businessType = BusinessType.UPDATE)
@PostMapping("/toWzWcs/wcsIncomingTaskRequest") @PostMapping("/toWzWcs/wcsIncomingTaskRequest")
@RepeatSubmit @RepeatSubmit
public WcsResponseVo wcsIncomingTaskRequest(WcsIncomingTaskRequestDto dto) { public WcsResponseVo wcsIncomingTaskRequest(WcsIncomingTaskRequestDto dto) {
@ -177,6 +177,16 @@ public class WcsTaskController {
return vo; return vo;
} }
@Log(title = "生产区入库校验测试接口", businessType = BusinessType.UPDATE)
@PostMapping("/toWzWcs/wcsIncomingTrayCheck")
@RepeatSubmit
public WcsResponseVo wcsIncomingTrayCheck(WcsIncomingTrayCheckBody dto) {
WcsResponseVo vo = wcsUtil.wcsIncomingTrayCheck(dto);
return vo;
}
} }

@ -186,19 +186,15 @@ public class RCSUtil {
*/ */
public Result<Boolean> moveByAGV(AGVMoveBo bo) { public Result<Boolean> moveByAGV(AGVMoveBo bo) {
RcsCreateTaskDto dto = new RcsCreateTaskDto(); RcsCreateTaskDto dto = new RcsCreateTaskDto();
dto.setMapId(1); dto.setTaskType(String.valueOf(bo.getTaskType()));
dto.setTaskType(bo.getTaskType());
dto.setTaskId(bo.getTaskId().toString());
//库位编号 //库位编号
List<RcsIdList> idList = new ArrayList<>(); List<RcsIdList> idList = new ArrayList<>();
List<String> points = bo.getPoints(); List<String> points = bo.getPoints();
for (String point : points) { for (String point : points) {
RcsIdList rcsIdList = new RcsIdList(); RcsIdList rcsIdList = new RcsIdList();
rcsIdList.setId(point);
log.error(point); log.error(point);
idList.add(rcsIdList); idList.add(rcsIdList);
} }
dto.setTargets(idList);
return rcsCreateTask(dto); return rcsCreateTask(dto);
// return Result.ok(); // return Result.ok();
} }

@ -0,0 +1,21 @@
package com.shkj.wcs.third.workbinWcs.dto;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.List;
/**
*生产区入库校验实体
*/
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class WcsIncomingTrayCheckDto implements Serializable {
private WcsCreateTaskHeader header;
private List<WcsIncomingTrayCheckBody> body;
}
Loading…
Cancel
Save