|
|
|
@ -5,9 +5,7 @@ import cn.hutool.core.collection.CollUtil;
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
|
import com.glxp.api.admin.annotation.AuthRuleAnnotation;
|
|
|
|
|
import com.glxp.api.admin.constant.Constant;
|
|
|
|
|
import com.glxp.api.admin.constant.ConstantStatus;
|
|
|
|
|
import com.glxp.api.admin.controller.inventory.InvPrintController;
|
|
|
|
|
import com.glxp.api.admin.entity.auth.AuthAdmin;
|
|
|
|
|
import com.glxp.api.admin.entity.basic.BasicUnitMaintainEntity;
|
|
|
|
|
import com.glxp.api.admin.entity.basic.BussinessLocalTypeEntity;
|
|
|
|
@ -15,7 +13,6 @@ import com.glxp.api.admin.entity.basic.BussinessTypeEntity;
|
|
|
|
|
import com.glxp.api.admin.entity.business.StockOrderDetailEntity;
|
|
|
|
|
import com.glxp.api.admin.entity.business.StockOrderEntity;
|
|
|
|
|
import com.glxp.api.admin.entity.business.StockQRCodeTextEntity;
|
|
|
|
|
import com.glxp.api.admin.entity.info.CompanyEntity;
|
|
|
|
|
import com.glxp.api.admin.entity.info.SystemParamConfigEntity;
|
|
|
|
|
import com.glxp.api.admin.entity.inout.OrderEntity;
|
|
|
|
|
import com.glxp.api.admin.entity.inout.WarehouseEntity;
|
|
|
|
@ -50,7 +47,6 @@ import com.glxp.api.admin.service.inout.CodesService;
|
|
|
|
|
import com.glxp.api.admin.service.inout.CodesTempService;
|
|
|
|
|
import com.glxp.api.admin.service.inout.OrderService;
|
|
|
|
|
import com.glxp.api.admin.service.inout.WarehouseUserService;
|
|
|
|
|
import com.glxp.api.admin.service.inventory.InCodeLogService;
|
|
|
|
|
import com.glxp.api.admin.service.inventory.InvStockPrintService;
|
|
|
|
|
import com.glxp.api.admin.service.inventory.InvWarehouseService;
|
|
|
|
|
import com.glxp.api.admin.util.*;
|
|
|
|
@ -59,7 +55,6 @@ import com.glxp.api.common.res.BaseResponse;
|
|
|
|
|
import com.glxp.api.common.util.ResultVOUtils;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.validation.BindingResult;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
import org.springframework.web.context.request.RequestContextHolder;
|
|
|
|
@ -278,9 +273,6 @@ public class StockOrderController {
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
|
|
|
|
|
}
|
|
|
|
|
List<StockOrderEntity> stockOrderEntityList;
|
|
|
|
|
// if (stockOrderFilterRequest.getStatus() == null) {
|
|
|
|
|
// stockOrderFilterRequest.setStatus(0 + "");
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(stockOrderFilterRequest.getCorpId())) {
|
|
|
|
|
Integer userId = customerService.getUserId();
|
|
|
|
@ -308,6 +300,7 @@ public class StockOrderController {
|
|
|
|
|
|
|
|
|
|
//判断订单是否可以补单
|
|
|
|
|
List<StockOrderResponse> resultList = orderService.checkSupplementOrder(stockOrderEntityList);
|
|
|
|
|
resultList = orderService.checkSubmitOrder(resultList);
|
|
|
|
|
PageSimpleResponse<StockOrderResponse> pageSimpleResponse = new PageSimpleResponse<>();
|
|
|
|
|
pageSimpleResponse.setTotal(pageInfo.getTotal());
|
|
|
|
|
pageSimpleResponse.setList(resultList);
|
|
|
|
|