|
|
|
@ -65,6 +65,7 @@ import org.springblade.common.constant.reservation.ReservationPackageStatusConst
|
|
|
|
|
import org.springblade.common.constant.reservation.ReservationSigningStatusConstant; |
|
|
|
|
import org.springblade.common.constant.stockup.StockupStatusConstant; |
|
|
|
|
import org.springblade.common.constant.stockup.StockupTypeStatusConstant; |
|
|
|
|
import org.springblade.common.exception.CustomerException; |
|
|
|
|
import org.springblade.common.utils.CommonUtil; |
|
|
|
|
import org.springblade.core.boot.ctrl.BladeController; |
|
|
|
|
import org.springblade.core.log.exception.ServiceException; |
|
|
|
@ -1505,6 +1506,8 @@ public class DistributionStockupAppController extends BladeController {
|
|
|
|
|
*/ |
|
|
|
|
@NotNull |
|
|
|
|
private R stockupScanByCustom(StockupDTO stockupDTO) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//包件扫描
|
|
|
|
|
String orderCode = stockupDTO.getOrderCode();//订单自编号
|
|
|
|
|
String packetBarCode = stockupDTO.getPacketBarCode();//包件码
|
|
|
|
@ -1589,9 +1592,16 @@ public class DistributionStockupAppController extends BladeController {
|
|
|
|
|
map.put("logId", entity.getId()); |
|
|
|
|
map.put("messageData", entity); |
|
|
|
|
map.put("createTime", new Date().getTime()); |
|
|
|
|
|
|
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = basicdataWarehouseClient.getMyCurrentWarehouse(); |
|
|
|
|
log.info(">>>> find bug myCurrentWarehouse {}",myCurrentWarehouse); |
|
|
|
|
if (Objects.isNull(myCurrentWarehouse)) { |
|
|
|
|
throw new CustomerException(403, "仓库信息不能为空"); |
|
|
|
|
} |
|
|
|
|
//将消息携带绑定键值
|
|
|
|
|
rabbitTemplate.convertAndSend(RabbitConstant.STOCKUP_SCAN_EXCHANGE, RabbitConstant.STOCKUP_SCAN_ROUTING, map); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//查询是否货位数据是否该下架
|
|
|
|
|
Map<String, Object> mapState = new HashMap<>(); |
|
|
|
|
mapState.put("messageId", CommonUtil.getUUID()); |
|
|
|
@ -1601,6 +1611,7 @@ public class DistributionStockupAppController extends BladeController {
|
|
|
|
|
mapState.put("reservationId", stockupDTO.getReservationId()); |
|
|
|
|
mapState.put("logId", entity.getId()); |
|
|
|
|
mapState.put("messageData", entity); |
|
|
|
|
mapState.put("warehouseId",myCurrentWarehouse.getId()); |
|
|
|
|
mapState.put("createTime", new Date().getTime()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|