|
|
|
|
@ -1,34 +1,28 @@
|
|
|
|
|
package org.dromara.wms.service.impl;
|
|
|
|
|
|
|
|
|
|
import org.dromara.common.core.utils.MapstructUtils;
|
|
|
|
|
import org.dromara.common.core.utils.StringUtils;
|
|
|
|
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
|
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
|
import com.github.yulichang.toolkit.JoinWrappers;
|
|
|
|
|
import com.github.yulichang.wrapper.MPJLambdaWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
import org.dromara.common.core.exception.ServiceException;
|
|
|
|
|
import org.dromara.common.core.utils.MapstructUtils;
|
|
|
|
|
import org.dromara.common.core.utils.StringUtils;
|
|
|
|
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
|
|
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
|
|
import org.dromara.wms.domain.WmsAllocateTask;
|
|
|
|
|
import org.dromara.wms.domain.bo.WmsAllocateTaskBo;
|
|
|
|
|
import org.dromara.wms.domain.vo.WmsAllocateTaskVo;
|
|
|
|
|
import org.dromara.wms.domain.WmsAllocateTask;
|
|
|
|
|
import org.dromara.wms.domain.WmsAllocateOrderDetail;
|
|
|
|
|
import org.dromara.wms.domain.BaseMaterialInfo;
|
|
|
|
|
import org.dromara.wms.mapper.WmsAllocateTaskMapper;
|
|
|
|
|
import org.dromara.wms.service.IWmsAllocateTaskService;
|
|
|
|
|
import org.dromara.wms.service.IWmsAllocateOrderDetailService;
|
|
|
|
|
import org.dromara.wms.service.IBaseMaterialInfoService;
|
|
|
|
|
import org.dromara.common.satoken.utils.LoginHelper;
|
|
|
|
|
import org.dromara.common.core.exception.ServiceException;
|
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
|
import org.dromara.wms.service.IWmsAllocateOrderDetailService;
|
|
|
|
|
import org.dromara.wms.service.IWmsAllocateTaskService;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import java.util.Collection;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.Collection;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import java.util.concurrent.atomic.AtomicInteger;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@ -457,4 +451,15 @@ public class WmsAllocateTaskServiceImpl implements IWmsAllocateTaskService {
|
|
|
|
|
private String generateBatchCode(String allocateCode, String materialCode, String order) {
|
|
|
|
|
return allocateCode + materialCode + order;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<WmsAllocateTaskVo> allocateSelectCode(String code) {
|
|
|
|
|
MPJLambdaWrapper<WmsAllocateTask> lqw = JoinWrappers.lambda(WmsAllocateTask.class);
|
|
|
|
|
lqw.selectAll(WmsAllocateTask.class);
|
|
|
|
|
lqw.eq(WmsAllocateTask::getBatchCode, code)
|
|
|
|
|
.eq(WmsAllocateTask::getInboundStatus, "0")
|
|
|
|
|
.orderByDesc(WmsAllocateTask::getCreateTime);
|
|
|
|
|
|
|
|
|
|
return baseMapper.selectVoList(lqw);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|