From 9f8e793d9fa4163db5ef3b271d300d3b0eca9e74 Mon Sep 17 00:00:00 2001 From: Jack <46790855@qq.com> Date: Sat, 7 Dec 2024 21:42:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A1=BA=E4=B8=B0=E4=B8=8B?= =?UTF-8?q?=E5=8D=95=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../store/ShopStoreSameCityTransportBase.java | 6 ++ .../mall/common/pojo/dto/KeyValueDTO.java | 26 ++++++++ .../impl/ShopOrderBaseServiceImpl.java | 36 ++++++++--- .../admin/ShopStoreBaseController.java | 11 ++++ ...ShopStoreSameCityTransportBaseService.java | 6 ++ ...StoreSameCityTransportBaseServiceImpl.java | 59 ++++++++++++++++++- 6 files changed, 134 insertions(+), 10 deletions(-) create mode 100644 mall-common/src/main/java/com/suisung/mall/common/pojo/dto/KeyValueDTO.java diff --git a/mall-common/src/main/java/com/suisung/mall/common/modules/store/ShopStoreSameCityTransportBase.java b/mall-common/src/main/java/com/suisung/mall/common/modules/store/ShopStoreSameCityTransportBase.java index 9e06cfab..4ab6397d 100644 --- a/mall-common/src/main/java/com/suisung/mall/common/modules/store/ShopStoreSameCityTransportBase.java +++ b/mall-common/src/main/java/com/suisung/mall/common/modules/store/ShopStoreSameCityTransportBase.java @@ -46,6 +46,12 @@ public class ShopStoreSameCityTransportBase implements Serializable { @ApiModelProperty(value = "店铺ID") private Long store_id; + @ApiModelProperty(value = "顺丰同城店铺ID") + private String shop_id; + + @ApiModelProperty(value = "店铺主营商品分类ID") + private Integer business_type; + @ApiModelProperty(value = "店铺详细地址") private String store_address; diff --git a/mall-common/src/main/java/com/suisung/mall/common/pojo/dto/KeyValueDTO.java b/mall-common/src/main/java/com/suisung/mall/common/pojo/dto/KeyValueDTO.java new file mode 100644 index 00000000..0f537fc4 --- /dev/null +++ b/mall-common/src/main/java/com/suisung/mall/common/pojo/dto/KeyValueDTO.java @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2024. Lorem ipsum dolor sit amet, consectetur adipiscing elit. + * Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan. + * Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna. + * Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus. + * Vestibulum commodo. Ut rhoncus gravida arcu. + */ + +package com.suisung.mall.common.pojo.dto; + +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +@Data +@AllArgsConstructor +@NoArgsConstructor +/** + * 公共键值对实体 + */ +public class KeyValueDTO implements Serializable { + private Object key; // 键 + private Object value; //值 +} diff --git a/mall-shop/src/main/java/com/suisung/mall/shop/order/service/impl/ShopOrderBaseServiceImpl.java b/mall-shop/src/main/java/com/suisung/mall/shop/order/service/impl/ShopOrderBaseServiceImpl.java index 58186f87..e3b3e864 100644 --- a/mall-shop/src/main/java/com/suisung/mall/shop/order/service/impl/ShopOrderBaseServiceImpl.java +++ b/mall-shop/src/main/java/com/suisung/mall/shop/order/service/impl/ShopOrderBaseServiceImpl.java @@ -97,6 +97,7 @@ import io.seata.core.exception.TransactionException; import io.seata.spring.annotation.GlobalTransactional; import io.seata.tm.api.GlobalTransaction; import io.seata.tm.api.GlobalTransactionContext; +import io.swagger.models.auth.In; import org.apache.commons.collections4.CollectionUtils; import org.apache.ibatis.annotations.Param; import org.slf4j.Logger; @@ -353,6 +354,9 @@ public class ShopOrderBaseServiceImpl extends BaseServiceImpl pairShopAddr = shopStoreBaseService.checkStoreAddress(shopStoreBase); shop.setShop_name(shopStoreBase.getStore_name()); @@ -8388,7 +8408,7 @@ public class ShopOrderBaseServiceImpl extends BaseServiceImpl list = new ArrayList(){{ + add(new KeyValueDTO(1,"快餐")); + add(new KeyValueDTO(2,"药品")); + add(new KeyValueDTO(3,"百货")); + add(new KeyValueDTO(4,"脏衣服收")); + add(new KeyValueDTO(5,"干净衣服派")); + add(new KeyValueDTO(6,"生鲜")); + add(new KeyValueDTO(8,"高端饮品")); + add(new KeyValueDTO(10,"快递")); + add(new KeyValueDTO(12,"文件")); + add(new KeyValueDTO(13,"蛋糕")); + add(new KeyValueDTO(14,"鲜花")); + add(new KeyValueDTO(15,"数码")); + add(new KeyValueDTO(16,"服装")); + add(new KeyValueDTO(17,"汽配")); + add(new KeyValueDTO(18,"珠宝")); + add(new KeyValueDTO(20,"披萨")); + add(new KeyValueDTO(21,"中餐")); + add(new KeyValueDTO(22,"水产")); + add(new KeyValueDTO(32,"中端饮品")); + add(new KeyValueDTO(33,"便利店")); + add(new KeyValueDTO(34,"面包糕点")); + add(new KeyValueDTO(35,"火锅")); + add(new KeyValueDTO(36,"证照")); + add(new KeyValueDTO(40,"烧烤小龙虾")); + add(new KeyValueDTO(41,"外部落地配")); + add(new KeyValueDTO(44,"年夜饭")); + add(new KeyValueDTO(47,"烟酒行")); + add(new KeyValueDTO(48,"成人用品")); + add(new KeyValueDTO(53,"冷链医药")); + add(new KeyValueDTO(55,"宠物用品")); + add(new KeyValueDTO(56,"母婴用品")); + add(new KeyValueDTO(57,"美妆用品")); + add(new KeyValueDTO(58,"家居建材")); + add(new KeyValueDTO(59,"眼镜行")); + add(new KeyValueDTO(60,"图文广告")); + add(new KeyValueDTO(81,"中药")); + }}; + + return CommonResult.success(list, ""); + } + /** * 根据店铺 Id 获取同城配送设置详情信息 *