#
Junjie
17 小时以前 7a5b73d01e30562716bbef8074be01bb141c7891
#
1个文件已删除
2个文件已添加
2个文件已修改
57 ■■■■■ 已修改文件
src/main/java/com/zy/asrs/controller/OpenController.java 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/domain/param/UpdateTaskPriorityAndBatchSeqParam.java 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/common/service/CommonService.java 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/docs/WCS外部HTTP API接口V1.8.docx 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/docs/WCS外部HTTP API接口V1.9.docx 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/controller/OpenController.java
@@ -175,6 +175,19 @@
        return R.ok().add(result);
    }
    @PostMapping("/updateTaskPriorityAndBatchSeq")
    @OpenApiLog(memo = "修改任务优先级和批次序号")
    public R updateTaskPriorityAndBatchSeq(@RequestBody UpdateTaskPriorityAndBatchSeqParam param) {
        if (param == null) {
            return R.error("参数不能为空");
        }
        boolean result = commonService.updateTaskPriorityAndBatchSeq(param);
        if (result) {
            return R.ok();
        }
        return R.error("修改任务优先级和批次序号失败");
    }
    @PostMapping("/deviceStatus")
    // @OpenApiLog(memo = "获取设备状态")
    public R getDeviceStatus() {
src/main/java/com/zy/asrs/domain/param/UpdateTaskPriorityAndBatchSeqParam.java
New file
@@ -0,0 +1,17 @@
package com.zy.asrs.domain.param;
import lombok.Data;
@Data
public class UpdateTaskPriorityAndBatchSeqParam {
    // wms任务号
    private String taskNo;
    // ä»»åŠ¡ä¼˜å…ˆçº§
    private Integer taskPri;
    // æ‰¹æ¬¡åºå·
    private Integer batchSeq;
}
src/main/java/com/zy/common/service/CommonService.java
@@ -152,6 +152,33 @@
        return true;
    }
    public boolean updateTaskPriorityAndBatchSeq(UpdateTaskPriorityAndBatchSeqParam param) {
        if (param == null) {
            throw new CoolException("参数不能为空");
        }
        if (Cools.isEmpty(param.getTaskNo())) {
            throw new CoolException("WMS任务号不能为空");
        }
        if (param.getTaskPri() == null && param.getBatchSeq() == null) {
            throw new CoolException("任务优先级和批次序号不能同时为空");
        }
        WrkMast wrkMast = wrkMastService.getOne(new QueryWrapper<WrkMast>().eq("wms_wrk_no", param.getTaskNo()));
        if (wrkMast == null) {
            throw new CoolException("任务不存在");
        }
        if (param.getTaskPri() != null) {
            wrkMast.setIoPri(param.getTaskPri().doubleValue());
        }
        if (param.getBatchSeq() != null) {
            wrkMast.setBatchSeq(param.getBatchSeq());
        }
        wrkMast.setModiTime(new Date());
        wrkMastService.updateById(wrkMast);
        return true;
    }
    public CancelTaskBatchResult cancelTaskBatch(CancelTaskBatchParam param) {
        if (param == null) {
            throw new CoolException("参数不能为空");
src/main/resources/docs/WCSÍⲿHTTP API½Ó¿ÚV1.8.docx
Binary files differ
src/main/resources/docs/WCSÍⲿHTTP API½Ó¿ÚV1.9.docx
Binary files differ