自动化立体仓库 - WMS系统
zhou zhou
2 天以前 b06233aa71b70f7a30ff382ae1ba19c29b134d7c
src/main/java/com/zy/asrs/controller/CheckOrderController.java
@@ -11,8 +11,10 @@
import com.core.exception.CoolException;
import com.zy.asrs.entity.*;
import com.zy.asrs.entity.param.CheckTaskListParam;
import com.zy.asrs.entity.param.OpenAdjustmentOrderParam;
import com.zy.asrs.entity.param.OrderDomainParam;
import com.zy.asrs.entity.result.CheckOrderExportDTO;
import com.zy.asrs.enums.CheckStatusEnum;
import com.zy.asrs.enums.OrderTypeEnum;
import com.zy.asrs.service.*;
import com.core.annotations.ManagerAuth;
@@ -41,6 +43,8 @@
    private SnowflakeIdWorker snowflakeIdWorker;
    @Autowired
    private DocTypeService docTypeService;
    @Autowired
    private OpenService openService;
    @PostMapping(value = "/checkOrder/pdaComplete/auth")
    @ManagerAuth(memo = "pda:完成盘点")
@@ -342,4 +346,29 @@
        return R.ok();
    }
    @PostMapping(value = "/adjustOrder/create/test")
    @ManagerAuth(memo = "内部测试:生成调整单")
    public R adjustOrderCreateTest(@RequestParam("orderId") Long orderId) {
        CheckOrder checkOrder = checkOrderService.selectById(orderId);
        List<CheckOrderDetl> checkOrderDetls = checkOrderDetlService.selectList(new EntityWrapper<CheckOrderDetl>().eq("order_id", orderId));
        checkOrderDetls.forEach(checkOrderDetl -> { checkOrderDetl.setStatus(1);});
        OpenAdjustmentOrderParam openAdjustmentOrderParam = new OpenAdjustmentOrderParam();
        openAdjustmentOrderParam.setOrderTime(DateUtils.convert(new Date()));
        openAdjustmentOrderParam.setOrderDetails(checkOrderDetls);
        openService.adjustmentOrderCreate(openAdjustmentOrderParam);
        return R.ok();
    }
    @PostMapping(value = "/adjustOrder/complete/auth")
    @ManagerAuth(memo = "完成调整单")
    public R adjustOrderComplete(@RequestParam("orderId") Long orderId) {
        checkOrderService.adjustOrderComplete(orderId,getUserId());
        return R.ok();
    }
}