| | |
| | | package com.zy.asrs.wms.asrs.controller;
|
| | |
|
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
| | | import com.baomidou.mybatisplus.core.metadata.IPage;
|
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
| | | import com.zy.asrs.common.domain.CodeRes;
|
| | | import com.zy.asrs.common.domain.enums.LoginSystemType;
|
| | | import com.zy.asrs.framework.annotations.ManagerAuth;
|
| | |
| | | import com.zy.asrs.framework.common.R;
|
| | | import com.zy.asrs.framework.exception.CoolException;
|
| | | import com.zy.asrs.wms.asrs.entity.CacheSite;
|
| | | import com.zy.asrs.wms.asrs.entity.Loc;
|
| | | import com.zy.asrs.wms.asrs.entity.Order;
|
| | | import com.zy.asrs.wms.asrs.entity.WaitPakin;
|
| | | import com.zy.asrs.wms.asrs.entity.dto.OrderInfoDto;
|
| | | import com.zy.asrs.wms.asrs.entity.dto.PickSheetDetlDto;
|
| | | import com.zy.asrs.wms.asrs.entity.dto.ShippingOrderDetlDto;
|
| | | import com.zy.asrs.wms.asrs.entity.param.BatchMergeOrdersParam;
|
| | | import com.zy.asrs.wms.asrs.entity.param.PageRequest;
|
| | | import com.zy.asrs.wms.asrs.entity.param.PakinOnShelvesParams;
|
| | | import com.zy.asrs.wms.asrs.service.MobileService;
|
| | | import com.zy.asrs.wms.asrs.service.OrderService;
|
| | | import com.zy.asrs.wms.asrs.service.WaitPakinService;
|
| | | import com.zy.asrs.wms.common.domain.BaseParam;
|
| | | import com.zy.asrs.wms.system.controller.BaseController;
|
| | | import com.zy.asrs.wms.system.entity.Host;
|
| | | import com.zy.asrs.wms.system.entity.User;
|
| | | import com.zy.asrs.wms.system.entity.UserLogin;
|
| | | import com.zy.asrs.wms.system.service.HostService;
|
| | | import com.zy.asrs.wms.system.service.UserLoginService;
|
| | | import com.zy.asrs.wms.system.service.UserService;
|
| | | import io.jsonwebtoken.lang.Collections;
|
| | |
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.beans.factory.annotation.Value;
|
| | | import org.springframework.web.bind.annotation.*;
|
| | | import sun.nio.ch.IOStatus;
|
| | |
|
| | | import java.util.*;
|
| | |
|
| | |
| | | if (StringUtil.isNullOrEmpty(code)) {
|
| | | return R.error("托盘码不能为空!!");
|
| | | }
|
| | |
|
| | | String str = code.trim();
|
| | | // 确保字符串长度至少为8
|
| | | if (str.length() >= 8) {
|
| | | code = str.substring(str.length() - 8);
|
| | | } else {
|
| | | return R.error("字符串长度小于8,无法获取后8位");
|
| | | }
|
| | |
|
| | | List<WaitPakin> waitPakins = waitPakinService.list(new LambdaQueryWrapper<WaitPakin>().eq(WaitPakin::getBarcode, code));
|
| | |
|
| | | return R.ok(waitPakins);
|
| | |
| | | return R.error("订单明细不能为空!!");
|
| | | }
|
| | |
|
| | | String str = ordersParam.getMergeNo().trim();
|
| | | // 确保字符串长度至少为8
|
| | | if (str.length() >= 8) {
|
| | | ordersParam.setMergeNo(str.substring(str.length() - 8));
|
| | | } else {
|
| | | return R.error("字符串长度小于8,无法获取后8位");
|
| | | }
|
| | |
|
| | | boolean result = mobileService.batchMergeOrders(ordersParam);
|
| | | if (result) {
|
| | | return R.ok("组托成功!!");
|