This commit is contained in:
杨旭 2025-04-20 12:44:12 +08:00
parent f0a269825f
commit c0d929e390
4 changed files with 10 additions and 5 deletions

View File

@ -142,6 +142,10 @@ public class CueOrderVO extends BaseVO implements Serializable {
* 寄出单号
*/
private String sendNumber;
/**
* 寄出时候选定的仓库id
*/
private Long warehouseId;
/**
* 用户退款地址id

View File

@ -73,7 +73,7 @@ public class WarehouseServiceImpl implements WarehouseService {
if (ObjectUtil.isNull(orderVO)) {
throw new LuckException("暂无订单信息");
}
if (ObjectUtil.isNull(orderVO.getMallOrderId())) {
if (ObjectUtil.isNull(orderVO.getWarehouseId())) {
WarehouseVO nearbyWarehouse = warehouseMapper.getNearbyWarehouse(lat, lng);
if (ObjectUtil.isNull(nearbyWarehouse)) {
throw new LuckException("暂无仓库信息");
@ -81,11 +81,11 @@ public class WarehouseServiceImpl implements WarehouseService {
// 将仓库id与订单绑定
CueOrder cueOrder = new CueOrder();
cueOrder.setOrderId(orderId);
cueOrder.setMallOrderId(nearbyWarehouse.getWarehouseId());
cueOrder.setWarehouseId(nearbyWarehouse.getWarehouseId());
cueOrderMapper.update(cueOrder);
return nearbyWarehouse;
} else {
return warehouseMapper.getById(orderVO.getMallOrderId());
return warehouseMapper.getById(orderVO.getWarehouseId());
}
}

View File

@ -31,12 +31,13 @@
<result property="mallOrderId" column="mall_order_id"/>
<result property="sendNumber" column="send_number"/>
<result property="productImages" column="product_images"/>
<result property="warehouseId" column="warehouse_id"/>
</resultMap>
<sql id="Vo_Column_List">
order_id,product_id,product_name,product_images,product_price,user_id,user_name,user_phone,cue_order_type,
order_status,flaw_img_url,evidence_of_payment,order_remark,estimated_amount,actual_amount,voucher_amount,deleted,
create_time,update_time,is_payed,pay_type,pay_time,delivery_time,finally_time,mall_order_id,send_number,order_addr_id
create_time,update_time,is_payed,pay_type,pay_time,delivery_time,finally_time,mall_order_id,send_number,order_addr_id,warehouse_id
</sql>
<select id="list" resultMap="cueOrderVOMap">

View File

@ -140,7 +140,7 @@ public class CouponFeignController implements CouponFeignClient {
couponDTO.setReduceAmount(reduceAmount);
couponDTO.setPutonStatus(PutOnStatus.PUT_ON.value());
couponDTO.setGetWay(1);
couponDTO.setValidTimeType(1);
couponDTO.setValidTimeType(2);
couponDTO.setAfterReceiveDays(0);
couponDTO.setValidDays(3652);
couponDTO.setTotalStock(1);