diff --git a/doc/策略-功能划分 b/doc/策略-功能划分 new file mode 100644 index 0000000..46f593f --- /dev/null +++ b/doc/策略-功能划分 @@ -0,0 +1,17 @@ + +商品列表 -点击购买 (回显商品详情) + +普通 +百人 +团长免单: +开团-(添加订单的页面 支付) +开团成功 - (添加订单信息 判断当前人数是否已满)(回显订单信息) 还差x人 邀请好友参团 剩余xx时间 +邀请好友/有人参团 - (添加订单信息 判断当前人数是否已满) +满员 - (团长支付的钱返还至小钱包) (申请解冻-判断团内订单是否都已完成) +时间到达但是未邀满 免单失败 但原订单依然生效 可选择继续开团/参团 + + + + +商品详情 +团购订单列表 diff --git a/muyu-auth/src/main/resources/bootstrap.yml b/muyu-auth/src/main/resources/bootstrap.yml index 26bb01c..fc72a10 100644 --- a/muyu-auth/src/main/resources/bootstrap.yml +++ b/muyu-auth/src/main/resources/bootstrap.yml @@ -14,10 +14,12 @@ spring: nacos: discovery: # 服务注册地址 - server-addr: 120.46.147.226:8848 + server-addr: 113.44.75.158:8848 + namespace: gxc-muyu config: # 配置中心地址 - server-addr: 120.46.147.226:8848 + server-addr: 113.44.75.158:8848 + namespace: gxc-muyu # 配置文件格式 file-extension: yml # 共享配置 diff --git a/muyu-gateway/src/main/resources/bootstrap.yml b/muyu-gateway/src/main/resources/bootstrap.yml index b15f786..6d48de2 100644 --- a/muyu-gateway/src/main/resources/bootstrap.yml +++ b/muyu-gateway/src/main/resources/bootstrap.yml @@ -1,7 +1,6 @@ # Tomcat server: port: 8080 - # Spring spring: application: @@ -14,10 +13,12 @@ spring: nacos: discovery: # 服务注册地址 - server-addr: 120.46.147.226:8848 + server-addr: 113.44.75.158:8848 + namespace: gxc-muyu config: # 配置中心地址 - server-addr: 120.46.147.226:8848 + server-addr: 113.44.75.158:8848 + namespace: gxc-muyu # 配置文件格式 file-extension: yml # 共享配置 @@ -33,7 +34,7 @@ spring: datasource: ds1: nacos: - server-addr: 120.46.147.226:8848 + server-addr: 113.44.75.158:8848 dataId: sentinel-muyu-gateway groupId: DEFAULT_GROUP data-type: json diff --git a/muyu-modules/muyu-file/src/main/resources/bootstrap.yml b/muyu-modules/muyu-file/src/main/resources/bootstrap.yml index 956f52b..08f88bb 100644 --- a/muyu-modules/muyu-file/src/main/resources/bootstrap.yml +++ b/muyu-modules/muyu-file/src/main/resources/bootstrap.yml @@ -14,10 +14,12 @@ spring: nacos: discovery: # 服务注册地址 - server-addr: 120.46.147.226:8848 + server-addr: 113.44.75.158:8848 + namespace: gxc-muyu config: # 配置中心地址 - server-addr: 120.46.147.226:8848 + server-addr: 113.44.75.158:8848 + namespace: gxc-muyu # 配置文件格式 file-extension: yml # 共享配置 diff --git a/muyu-modules/muyu-gen/src/main/resources/bootstrap.yml b/muyu-modules/muyu-gen/src/main/resources/bootstrap.yml index 3ec7c15..60b8297 100644 --- a/muyu-modules/muyu-gen/src/main/resources/bootstrap.yml +++ b/muyu-modules/muyu-gen/src/main/resources/bootstrap.yml @@ -14,10 +14,12 @@ spring: nacos: discovery: # 服务注册地址 - server-addr: 120.46.147.226:8848 + server-addr: 113.44.75.158:8848 + namespace: gxc-muyu config: # 配置中心地址 - server-addr: 120.46.147.226:8848 + server-addr: 113.44.75.158:8848 + namespace: gxc-muyu # 配置文件格式 file-extension: yml # 共享配置 diff --git a/muyu-modules/muyu-job/src/main/resources/bootstrap.yml b/muyu-modules/muyu-job/src/main/resources/bootstrap.yml index 364dc05..f16156d 100644 --- a/muyu-modules/muyu-job/src/main/resources/bootstrap.yml +++ b/muyu-modules/muyu-job/src/main/resources/bootstrap.yml @@ -14,10 +14,12 @@ spring: nacos: discovery: # 服务注册地址 - server-addr: 120.46.147.226:8848 + server-addr: 113.44.75.158:8848 + namespace: gxc-muyu config: # 配置中心地址 - server-addr: 120.46.147.226:8848 + server-addr: 113.44.75.158:8848 + namespace: gxc-muyu # 配置文件格式 file-extension: yml # 共享配置 diff --git a/muyu-modules/muyu-marketing/marketing-common/src/main/java/com/muyu/marketing/domain/model/ActivityTeamProductInfoUpdModel.java b/muyu-modules/muyu-marketing/marketing-common/src/main/java/com/muyu/marketing/domain/model/ActivityTeamProductInfoUpdModel.java index 4d27944..9cbd3e8 100644 --- a/muyu-modules/muyu-marketing/marketing-common/src/main/java/com/muyu/marketing/domain/model/ActivityTeamProductInfoUpdModel.java +++ b/muyu-modules/muyu-marketing/marketing-common/src/main/java/com/muyu/marketing/domain/model/ActivityTeamProductInfoUpdModel.java @@ -10,9 +10,9 @@ import java.util.Date; import java.util.List; @Data +@Builder @AllArgsConstructor @NoArgsConstructor -@Builder public class ActivityTeamProductInfoUpdModel { /** * 活动ID @@ -56,9 +56,9 @@ public class ActivityTeamProductInfoUpdModel { */ private String strategyType; /** - * 商品SkU集合 + * 商品SkU模型 */ - public List updSkuList; + public ActivityTeamUpdSKuModel updSkuList; /** * 活动详情 */ diff --git a/muyu-modules/muyu-marketing/marketing-common/src/main/java/com/muyu/marketing/domain/model/ActivityTeamUpdSKuModel.java b/muyu-modules/muyu-marketing/marketing-common/src/main/java/com/muyu/marketing/domain/model/ActivityTeamUpdSKuModel.java index da174aa..e254104 100644 --- a/muyu-modules/muyu-marketing/marketing-common/src/main/java/com/muyu/marketing/domain/model/ActivityTeamUpdSKuModel.java +++ b/muyu-modules/muyu-marketing/marketing-common/src/main/java/com/muyu/marketing/domain/model/ActivityTeamUpdSKuModel.java @@ -8,9 +8,9 @@ import lombok.NoArgsConstructor; import java.util.List; @Data +@Builder @AllArgsConstructor @NoArgsConstructor -@Builder public class ActivityTeamUpdSKuModel { /** * 商品规格修改集合 diff --git a/muyu-modules/muyu-marketing/marketing-common/src/main/java/com/muyu/marketing/domain/resp/TeamInfoFindByIdResp.java b/muyu-modules/muyu-marketing/marketing-common/src/main/java/com/muyu/marketing/domain/resp/TeamInfoFindByIdResp.java index 3efe23a..c99b334 100644 --- a/muyu-modules/muyu-marketing/marketing-common/src/main/java/com/muyu/marketing/domain/resp/TeamInfoFindByIdResp.java +++ b/muyu-modules/muyu-marketing/marketing-common/src/main/java/com/muyu/marketing/domain/resp/TeamInfoFindByIdResp.java @@ -2,7 +2,6 @@ package com.muyu.marketing.domain.resp; import com.fasterxml.jackson.annotation.JsonFormat; import com.muyu.marketing.domain.model.ActivityTeamDetailModel; -import com.muyu.marketing.domain.req.ProjectSkuInfoAddReq; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; diff --git a/muyu-modules/muyu-marketing/marketing-server/src/main/java/com/muyu/marketing/MuYuMarketIngApplication.java b/muyu-modules/muyu-marketing/marketing-server/src/main/java/com/muyu/marketing/MuYuMarketIngApplication.java index de0a3db..236ca35 100644 --- a/muyu-modules/muyu-marketing/marketing-server/src/main/java/com/muyu/marketing/MuYuMarketIngApplication.java +++ b/muyu-modules/muyu-marketing/marketing-server/src/main/java/com/muyu/marketing/MuYuMarketIngApplication.java @@ -3,6 +3,7 @@ package com.muyu.marketing; import com.muyu.common.security.annotation.EnableCustomConfig; import com.muyu.common.security.annotation.EnableMyFeignClients; import com.muyu.common.swagger.annotation.EnableCustomSwagger2; +import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @@ -15,6 +16,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; @EnableCustomSwagger2 @EnableMyFeignClients @SpringBootApplication +@MapperScan("com.muyu.marketing.team.mapper") public class MuYuMarketIngApplication { public static void main (String[] args) { SpringApplication.run(MuYuMarketIngApplication.class, args); diff --git a/muyu-modules/muyu-marketing/marketing-server/src/main/java/com/muyu/marketing/team/controller/ActivityTeamController.java b/muyu-modules/muyu-marketing/marketing-server/src/main/java/com/muyu/marketing/team/controller/ActivityTeamController.java index 9494be5..b09d07c 100644 --- a/muyu-modules/muyu-marketing/marketing-server/src/main/java/com/muyu/marketing/team/controller/ActivityTeamController.java +++ b/muyu-modules/muyu-marketing/marketing-server/src/main/java/com/muyu/marketing/team/controller/ActivityTeamController.java @@ -59,10 +59,16 @@ public class ActivityTeamController { return Result.success(); } + /** + * 回显 + * @param id + * @return + */ @PostMapping("/findById/{id}") public Result findTeamById(@PathVariable Long id){ return Result.success(TeamInfoFindByIdResp.teamInfoFindByIdBuild(activityTeamInfoService.findDetailById(id))); } + @PutMapping("/updateByTeamId") public Result updateByTeamId(@RequestBody ActivityTeamInfoUpdReq activityTeamInfoUpdReq){ activityTeamInfoService.update(ActivityTeamInfoUpdModel.activityTeamInfoUpdReqModelBuild(activityTeamInfoUpdReq)); diff --git a/muyu-modules/muyu-marketing/marketing-server/src/main/java/com/muyu/marketing/team/service/ActivityTeamProductSkuInfoService.java b/muyu-modules/muyu-marketing/marketing-server/src/main/java/com/muyu/marketing/team/service/ActivityTeamProductSkuInfoService.java index d64d530..adb6459 100644 --- a/muyu-modules/muyu-marketing/marketing-server/src/main/java/com/muyu/marketing/team/service/ActivityTeamProductSkuInfoService.java +++ b/muyu-modules/muyu-marketing/marketing-server/src/main/java/com/muyu/marketing/team/service/ActivityTeamProductSkuInfoService.java @@ -47,10 +47,11 @@ public interface ActivityTeamProductSkuInfoService extends IService findListByTeamId(Long teamId); - public boolean updateBath(List activityTeamProductSkuReqModelList); public boolean delByIds(List id); public boolean add (List activityTeamProductSkuReqModelList); + + public boolean BathSku(ActivityTeamUpdSKuModel activityTeamUpdSKuModels); } diff --git a/muyu-modules/muyu-marketing/marketing-server/src/main/java/com/muyu/marketing/team/service/impl/ActivityTeamInfoServiceImpl.java b/muyu-modules/muyu-marketing/marketing-server/src/main/java/com/muyu/marketing/team/service/impl/ActivityTeamInfoServiceImpl.java index 8eee4a5..f7f0d07 100644 --- a/muyu-modules/muyu-marketing/marketing-server/src/main/java/com/muyu/marketing/team/service/impl/ActivityTeamInfoServiceImpl.java +++ b/muyu-modules/muyu-marketing/marketing-server/src/main/java/com/muyu/marketing/team/service/impl/ActivityTeamInfoServiceImpl.java @@ -35,10 +35,6 @@ public class ActivityTeamInfoServiceImpl extends ServiceImpl -> 创建对象的时候进行的占用 - * Result 以方法返回值为占用 - */ Page activityTeamInfoPage = this.page(activityTeamInfoListQueryModel.buildPage(), queryWrapper); List activityTeamInfoList = activityTeamInfoPage.getRecords(); List activityTeamInfoListModels = activityTeamInfoList.stream() @@ -108,28 +104,33 @@ public class ActivityTeamInfoServiceImpl extends ServiceImpl { - List addSkuList = activityTeamUpdSKuModel.getAddSkuList(); - List skuList = activityTeamUpdSKuModel.getSkuList(); - List delSkuIdList = activityTeamUpdSKuModel.getDelSkuIdList(); - if (addSkuList != null){ - activityTeamProductSkuInfoService.add(addSkuList); - } - if (skuList != null){ - activityTeamProductSkuInfoService.updateBath(skuList); - } - if (delSkuIdList != null){ - activityTeamProductSkuInfoService.removeBatchByIds(delSkuIdList); - } - }); + activityTeamProductSkuInfoService.BathSku(activityTeamProductInfoUpdModel.getUpdSkuList()); return true; } +// activityTeamProductInfoUpdModel.getUpdSkuList().stream().forEach(activityTeamUpdSKuModel -> { +// //存入id +// activityTeamUpdSKuModel.getAddSkuList().stream().forEach(add->{ +// add.setTeamId(activityTeamProductInfoUpdModel.getTeamId()); +// add.setProductId(activityTeamProductInfoUpdModel.getProductId()); +// }); +// //非空校验 业务操作 +// List addSkuList = activityTeamUpdSKuModel.getAddSkuList(); +// Assert.notNull(addSkuList, "添加的SKU列表不能为空"); +// activityTeamProductSkuInfoService.add(addSkuList); +// +// List skuList = activityTeamUpdSKuModel.getSkuList(); +// Assert.notNull(skuList, "skuList 不能为空"); +// activityTeamProductSkuInfoService.updateBath(skuList); +// +// List delSkuIdList = activityTeamUpdSKuModel.getDelSkuIdList(); +// Assert.notNull(delSkuIdList, "delSkuIdList 不能为空"); +// activityTeamProductSkuInfoService.removeBatchByIds(delSkuIdList); +// }); + + } diff --git a/muyu-modules/muyu-marketing/marketing-server/src/main/java/com/muyu/marketing/team/service/impl/ActivityTeamProductSkuInfoServiceImpl.java b/muyu-modules/muyu-marketing/marketing-server/src/main/java/com/muyu/marketing/team/service/impl/ActivityTeamProductSkuInfoServiceImpl.java index f33e101..e0b1886 100644 --- a/muyu-modules/muyu-marketing/marketing-server/src/main/java/com/muyu/marketing/team/service/impl/ActivityTeamProductSkuInfoServiceImpl.java +++ b/muyu-modules/muyu-marketing/marketing-server/src/main/java/com/muyu/marketing/team/service/impl/ActivityTeamProductSkuInfoServiceImpl.java @@ -12,6 +12,7 @@ import com.muyu.product.domain.ProjectSkuInfo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.Assert; import java.util.List; import java.util.Optional; @@ -35,7 +36,7 @@ public class ActivityTeamProductSkuInfoServiceImpl extends ServiceImpl discountPriceModelOptional = teamProductSkuInfoList.stream() .map(activityTeamProductSkuInfo -> { - ProjectSkuInfo projectSkuInfo = projectSkuCache.get(activityTeamProductSkuInfo.getProductId(), activityTeamProductSkuInfo.getProductSku()); + ProjectSkuInfo projectSkuInfo = projectSkuCache.getData(activityTeamProductSkuInfo.getProductId(), activityTeamProductSkuInfo.getProductSku()); return TeamProductDiscountPriceModel.of(projectSkuInfo.getPrice(), activityTeamProductSkuInfo.getTeamPrice()); }).min((o1, o2) -> Double.valueOf(o1.getDiscount() * 100 - o2.getDiscount() * 100).intValue()); @@ -89,25 +90,42 @@ public class ActivityTeamProductSkuInfoServiceImpl extends ServiceImpl activityTeamProductSkuReqModelList) { - return this.updateBatchById(activityTeamProductSkuReqModelList - .stream() - .map(ActivityTeamProductSkuInfo::updateModelBuild) - .toList()); + if (null != activityTeamProductSkuReqModelList) { + return this.updateBatchById(activityTeamProductSkuReqModelList + .stream() + .map(ActivityTeamProductSkuInfo::updateModelBuild) + .toList()); + } + return true; } @Override public boolean delByIds(List id) { - return this.removeBatchByIds(id); + if (null != id) { + return this.removeBatchByIds(id); + } + return true; } @Override public boolean add(List activityTeamProductSkuReqModelList) { - return this.saveBatch(activityTeamProductSkuReqModelList - .stream() - .map(ActivityTeamProductSkuInfo::modelBuild) - .toList()); + if (null != activityTeamProductSkuReqModelList){ + return this.saveBatch(activityTeamProductSkuReqModelList + .stream() + .map(ActivityTeamProductSkuInfo::modelBuild) + .toList()); + } + return true; + } + + @Transactional + @Override + public boolean BathSku(ActivityTeamUpdSKuModel activityTeamUpdSKuModel){ + updateBath(activityTeamUpdSKuModel.getSkuList()); + delByIds(activityTeamUpdSKuModel.getDelSkuIdList()); + add(activityTeamUpdSKuModel.getAddSkuList()); + return true; } } diff --git a/muyu-modules/muyu-marketing/marketing-server/src/main/resources/bootstrap.yml b/muyu-modules/muyu-marketing/marketing-server/src/main/resources/bootstrap.yml index 699e778..7ae6f40 100644 --- a/muyu-modules/muyu-marketing/marketing-server/src/main/resources/bootstrap.yml +++ b/muyu-modules/muyu-marketing/marketing-server/src/main/resources/bootstrap.yml @@ -1,12 +1,11 @@ # Tomcat server: port: 9209 - # Spring spring: application: # 应用名称 - name: muyu-buy + name: muyu-marketing profiles: # 环境配置 active: dev @@ -14,10 +13,12 @@ spring: nacos: discovery: # 服务注册地址 - server-addr: 120.46.147.226:8848 + server-addr: 113.44.75.158:8848 + namespace: gxc-muyu config: # 配置中心地址 - server-addr: 120.46.147.226:8848 + server-addr: 113.44.75.158:8848 + namespace: gxc-muyu # 配置文件格式 file-extension: yml # 共享配置 diff --git a/muyu-modules/muyu-product/muyu-product-cache/src/main/java/com/muyu/product/cache/datasource/impl/ProjectInfoDataRemoteImpl.java b/muyu-modules/muyu-product/muyu-product-cache/src/main/java/com/muyu/product/cache/datasource/impl/ProjectInfoDataRemoteImpl.java index 7a3d119..8fb9521 100644 --- a/muyu-modules/muyu-product/muyu-product-cache/src/main/java/com/muyu/product/cache/datasource/impl/ProjectInfoDataRemoteImpl.java +++ b/muyu-modules/muyu-product/muyu-product-cache/src/main/java/com/muyu/product/cache/datasource/impl/ProjectInfoDataRemoteImpl.java @@ -1,5 +1,6 @@ package com.muyu.product.cache.datasource.impl; +import com.muyu.common.core.domain.Result; import com.muyu.product.cache.datasource.ProjectInfoData; import com.muyu.product.domain.ProjectInfo; import com.muyu.product.remote.RemoteProjectInfoService; diff --git a/muyu-modules/muyu-product/muyu-product-cache/src/main/java/com/muyu/product/cache/datasource/impl/ProjectSkuDataRemoteImpl.java b/muyu-modules/muyu-product/muyu-product-cache/src/main/java/com/muyu/product/cache/datasource/impl/ProjectSkuDataRemoteImpl.java index 3d064c9..0c9759f 100644 --- a/muyu-modules/muyu-product/muyu-product-cache/src/main/java/com/muyu/product/cache/datasource/impl/ProjectSkuDataRemoteImpl.java +++ b/muyu-modules/muyu-product/muyu-product-cache/src/main/java/com/muyu/product/cache/datasource/impl/ProjectSkuDataRemoteImpl.java @@ -1,5 +1,6 @@ package com.muyu.product.cache.datasource.impl; +import com.muyu.common.core.domain.Result; import com.muyu.product.cache.datasource.ProjectSkuData; import com.muyu.product.domain.ProjectSkuInfo; import com.muyu.product.remote.RemoteProjectSkuService; diff --git a/muyu-modules/muyu-product/muyu-product-cache/src/main/java/com/muyu/product/cache/datasource/impl/ProjectSkuStockDataRemoteImpl.java b/muyu-modules/muyu-product/muyu-product-cache/src/main/java/com/muyu/product/cache/datasource/impl/ProjectSkuStockDataRemoteImpl.java index 558e872..2869967 100644 --- a/muyu-modules/muyu-product/muyu-product-cache/src/main/java/com/muyu/product/cache/datasource/impl/ProjectSkuStockDataRemoteImpl.java +++ b/muyu-modules/muyu-product/muyu-product-cache/src/main/java/com/muyu/product/cache/datasource/impl/ProjectSkuStockDataRemoteImpl.java @@ -1,5 +1,6 @@ package com.muyu.product.cache.datasource.impl; +import com.muyu.common.core.domain.Result; import com.muyu.product.cache.datasource.ProjectSkuStockData; import com.muyu.product.cache.key.SkuStockKey; import com.muyu.product.domain.ProjectSkuInfo; diff --git a/muyu-modules/muyu-product/muyu-product-cache/src/main/java/com/muyu/product/cache/datasource/impl/RuleCacheDataRemoteImpl.java b/muyu-modules/muyu-product/muyu-product-cache/src/main/java/com/muyu/product/cache/datasource/impl/RuleCacheDataRemoteImpl.java index 5d55712..09b63f8 100644 --- a/muyu-modules/muyu-product/muyu-product-cache/src/main/java/com/muyu/product/cache/datasource/impl/RuleCacheDataRemoteImpl.java +++ b/muyu-modules/muyu-product/muyu-product-cache/src/main/java/com/muyu/product/cache/datasource/impl/RuleCacheDataRemoteImpl.java @@ -1,5 +1,6 @@ package com.muyu.product.cache.datasource.impl; +import com.muyu.common.core.domain.Result; import com.muyu.product.cache.datasource.RuleCacheData; import com.muyu.product.cache.model.RuleAttrCacheModel; import com.muyu.product.cache.model.RuleCacheModel; diff --git a/muyu-modules/muyu-product/muyu-product-remote/src/main/java/com/muyu/product/remote/factory/RemoteProjectInfoFactory.java b/muyu-modules/muyu-product/muyu-product-remote/src/main/java/com/muyu/product/remote/factory/RemoteProjectInfoFactory.java index c62222b..072a1ff 100644 --- a/muyu-modules/muyu-product/muyu-product-remote/src/main/java/com/muyu/product/remote/factory/RemoteProjectInfoFactory.java +++ b/muyu-modules/muyu-product/muyu-product-remote/src/main/java/com/muyu/product/remote/factory/RemoteProjectInfoFactory.java @@ -1,5 +1,6 @@ package com.muyu.product.remote.factory; +import com.muyu.common.core.domain.Result; import com.muyu.product.domain.ProjectInfo; import com.muyu.product.remote.RemoteProjectInfoService; import org.springframework.cloud.openfeign.FallbackFactory; diff --git a/muyu-modules/muyu-product/muyu-product-remote/src/main/java/com/muyu/product/remote/factory/RemoteProjectSkuFactory.java b/muyu-modules/muyu-product/muyu-product-remote/src/main/java/com/muyu/product/remote/factory/RemoteProjectSkuFactory.java index b73c9ab..78fab1b 100644 --- a/muyu-modules/muyu-product/muyu-product-remote/src/main/java/com/muyu/product/remote/factory/RemoteProjectSkuFactory.java +++ b/muyu-modules/muyu-product/muyu-product-remote/src/main/java/com/muyu/product/remote/factory/RemoteProjectSkuFactory.java @@ -1,5 +1,6 @@ package com.muyu.product.remote.factory; +import com.muyu.common.core.domain.Result; import com.muyu.product.domain.ProjectSkuInfo; import com.muyu.product.remote.RemoteProjectSkuService; import org.springframework.cloud.openfeign.FallbackFactory; diff --git a/muyu-modules/muyu-product/muyu-product-remote/src/main/java/com/muyu/product/remote/factory/RemoteRuleFactory.java b/muyu-modules/muyu-product/muyu-product-remote/src/main/java/com/muyu/product/remote/factory/RemoteRuleFactory.java index 9a34a3f..a2e0585 100644 --- a/muyu-modules/muyu-product/muyu-product-remote/src/main/java/com/muyu/product/remote/factory/RemoteRuleFactory.java +++ b/muyu-modules/muyu-product/muyu-product-remote/src/main/java/com/muyu/product/remote/factory/RemoteRuleFactory.java @@ -1,5 +1,6 @@ package com.muyu.product.remote.factory; +import com.muyu.common.core.domain.Result; import com.muyu.product.domain.RuleInfo; import com.muyu.product.remote.RemoteRuleService; import org.springframework.cloud.openfeign.FallbackFactory; diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/resources/bootstrap.yml b/muyu-modules/muyu-product/muyu-product-server/src/main/resources/bootstrap.yml index 8ece81d..08c72c1 100644 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/resources/bootstrap.yml +++ b/muyu-modules/muyu-product/muyu-product-server/src/main/resources/bootstrap.yml @@ -14,10 +14,12 @@ spring: nacos: discovery: # 服务注册地址 - server-addr: 120.46.147.226:8848 + server-addr: 113.44.75.158:8848 + namespace: gxc-muyu config: # 配置中心地址 - server-addr: 120.46.147.226:8848 + server-addr: 113.44.75.158:8848 + namespace: gxc-muyu # 配置文件格式 file-extension: yml # 共享配置 diff --git a/muyu-modules/muyu-shop-cart/muyu-shop-cart-cache/src/main/java/com/muyu/shop/cart/cache/CartCache.java b/muyu-modules/muyu-shop-cart/muyu-shop-cart-cache/src/main/java/com/muyu/shop/cart/cache/CartCache.java index a07052a..8255f54 100644 --- a/muyu-modules/muyu-shop-cart/muyu-shop-cart-cache/src/main/java/com/muyu/shop/cart/cache/CartCache.java +++ b/muyu-modules/muyu-shop-cart/muyu-shop-cart-cache/src/main/java/com/muyu/shop/cart/cache/CartCache.java @@ -1,6 +1,7 @@ package com.muyu.shop.cart.cache; import com.muyu.common.cache.abs.HashCacheAbs; +import com.muyu.common.core.domain.Result; import com.muyu.common.core.exception.ServiceException; import com.muyu.common.core.text.Convert; import com.muyu.shop.cart.cache.key.CartHashKey; diff --git a/muyu-modules/muyu-shop-cart/muyu-shop-cart-server/src/main/java/com/muyu/shop/cart/controller/CartInfoController.java b/muyu-modules/muyu-shop-cart/muyu-shop-cart-server/src/main/java/com/muyu/shop/cart/controller/CartInfoController.java index 351735b..78fb877 100644 --- a/muyu-modules/muyu-shop-cart/muyu-shop-cart-server/src/main/java/com/muyu/shop/cart/controller/CartInfoController.java +++ b/muyu-modules/muyu-shop-cart/muyu-shop-cart-server/src/main/java/com/muyu/shop/cart/controller/CartInfoController.java @@ -3,6 +3,7 @@ package com.muyu.shop.cart.controller; import java.util.List; import javax.servlet.http.HttpServletResponse; +import com.muyu.common.core.domain.Result; import com.muyu.shop.cart.domain.req.*; import com.muyu.shop.cart.domain.resp.CartDetailResp; import io.swagger.annotations.*; diff --git a/muyu-modules/muyu-shop-cart/muyu-shop-cart-server/src/main/resources/bootstrap.yml b/muyu-modules/muyu-shop-cart/muyu-shop-cart-server/src/main/resources/bootstrap.yml index 9467547..82909b4 100644 --- a/muyu-modules/muyu-shop-cart/muyu-shop-cart-server/src/main/resources/bootstrap.yml +++ b/muyu-modules/muyu-shop-cart/muyu-shop-cart-server/src/main/resources/bootstrap.yml @@ -16,10 +16,12 @@ spring: nacos: discovery: # 服务注册地址 - server-addr: 120.46.147.226:8848 + server-addr: 113.44.75.158:8848 + namespace: gxc-muyu config: # 配置中心地址 - server-addr: 120.46.147.226:8848 + server-addr: 113.44.75.158:8848 + namespace: gxc-muyu # 配置文件格式 file-extension: yml # 共享配置 diff --git a/muyu-modules/muyu-system/src/main/resources/bootstrap.yml b/muyu-modules/muyu-system/src/main/resources/bootstrap.yml index ee5ca7f..edc73e8 100644 --- a/muyu-modules/muyu-system/src/main/resources/bootstrap.yml +++ b/muyu-modules/muyu-system/src/main/resources/bootstrap.yml @@ -14,10 +14,12 @@ spring: nacos: discovery: # 服务注册地址 - server-addr: 120.46.147.226:8848 + server-addr: 113.44.75.158:8848 + namespace: gxc-muyu config: # 配置中心地址 - server-addr: 120.46.147.226:8848 + server-addr: 113.44.75.158:8848 + namespace: gxc-muyu # 配置文件格式 file-extension: yml # 共享配置 diff --git a/muyu-visual/muyu-monitor/src/main/resources/bootstrap.yml b/muyu-visual/muyu-monitor/src/main/resources/bootstrap.yml index c730a55..253b4e5 100644 --- a/muyu-visual/muyu-monitor/src/main/resources/bootstrap.yml +++ b/muyu-visual/muyu-monitor/src/main/resources/bootstrap.yml @@ -14,10 +14,12 @@ spring: nacos: discovery: # 服务注册地址 - server-addr: 120.46.147.226:8848 + server-addr: 113.44.75.158:8848 + namespace: gxc-muyu config: # 配置中心地址 - server-addr: 120.46.147.226:8848 + server-addr: 113.44.75.158:8848 + namespace: gxc-muyu # 配置文件格式 file-extension: yml # 共享配置