汇总下单只取上架商品

This commit is contained in:
zhangji committed 2025-11-19 09:50:33 +08:00
1 parent 66dacd1f8b
commit b3c8c4b8a0
2 files changed
+24

No files matched your search

@@ -228,6 +228,8 @@ public interface ProductSpuMapper extends BaseMapperX<ProductSpuDO> {
default List<ProductSpuDO> getSpuListByDeviceid(String deviceId){
LambdaQueryWrapperX<ProductSpuDO> query = new LambdaQueryWrapperX<ProductSpuDO>()
.eqIfPresent(ProductSpuDO::getDeviceId, deviceId);
// 上架状态 且有库存
query.eq(ProductSpuDO::getStatus, ProductSpuStatusEnum.ENABLE.getStatus());
return selectList(query);
}
@@ -48,6 +48,28 @@ tenant-id: {{appTenantId}}
"receiverMobile": "15601691300"
}
### /trade-order/create 创建汇总商品订单
POST {{appApi}}/trade/order/create-summary
Content-Type: application/json
Authorization: Bearer {{appToken}}
tenant-id: {{appTenantId}}
{
"pointStatus": false,
"deliveryType": 3,
"pickUpStoreId": 1,
"items": [
{
"barCode": "50000010",
"deviceId": "869667070337387",
"count": 1
}
],
"remark": "",
"receiverName": "土豆",
"receiverMobile": "15601691300"
}
### /trade-order/update-paid 更新订单为已支付
POST {{appApi}}/trade/order/update-paid
Content-Type: application/json