Compare commits

..

1 Commits

Author SHA1 Message Date
sly 4a17fc7227 团购活动修改 2024-11-28 02:26:45 +08:00
49 changed files with 360 additions and 666 deletions

View File

@ -0,0 +1,28 @@
{
"id":"Long",
"团购名称":"String",
"团购商品ID":"Long",
"团购商品图片":"String",
"团购商品简介":"Text",
"策略id":"Long",
"策略类型":"String",
"结束时间":"Date",
"状态":"String",
"轮播图集合":
[
"图片":"String"
]
"商品规格集合":
[
"商品规格":
{
"id":"Long",
"规格" :"String",
// "拼团价格":"Decimal",
// "拼团库存":"Long",
"价格变化值":"Decimal",
"库存变化值":"Long"
}
]
"团购规格ID集合"
}

View File

@ -21,7 +21,6 @@
], ],
"删除商品规格IdList" : ["Long", "Long"], "删除商品规格IdList" : ["Long", "Long"],
"添加商品规格List": [ "添加商品规格List": [
"商品SKU": "String",
"商品价格": "BigDecimal", "商品价格": "BigDecimal",
"拼团价格": "BigDecimal", "拼团价格": "BigDecimal",
"拼团库存": "Long" "拼团库存": "Long"

View File

View File

@ -14,10 +14,10 @@ spring:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 127.0.0.1:8848 server-addr: 121.37.131.224:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 127.0.0.1:8848 server-addr: 121.37.131.224:8848
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置

View File

@ -14,10 +14,10 @@ spring:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 127.0.0.1:8848 server-addr: 121.37.131.224:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 127.0.0.1:8848 server-addr: 121.37.131.224:8848
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置
@ -33,7 +33,7 @@ spring:
datasource: datasource:
ds1: ds1:
nacos: nacos:
server-addr: 127.0.0.1:8848 server-addr: 121.37.131.224:8848
dataId: sentinel-muyu-gateway dataId: sentinel-muyu-gateway
groupId: DEFAULT_GROUP groupId: DEFAULT_GROUP
data-type: json data-type: json

View File

@ -14,10 +14,10 @@ spring:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 127.0.0.1:8848 server-addr: 121.37.131.224:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 127.0.0.1:8848 server-addr: 121.37.131.224:8848
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置

View File

@ -14,10 +14,10 @@ spring:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 127.0.0.1:8848 server-addr: 121.37.131.224:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 127.0.0.1:8848 server-addr: 121.37.131.224:8848
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置

View File

@ -14,10 +14,10 @@ spring:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 127.0.0.1:8848 server-addr: 121.37.131.224:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 127.0.0.1:8848 server-addr: 121.37.131.224:8848
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置

View File

@ -32,11 +32,11 @@ public class ActivityTeamInfo extends BaseEntity {
/** /**
* ID * ID
*/ */
private long productId; private long projectId;
/** /**
* *
*/ */
private String productImage; private String projectImage;
/** /**
* *
*/ */
@ -82,8 +82,8 @@ public class ActivityTeamInfo extends BaseEntity {
public static ActivityTeamInfo addModelBuild(ActivityTeamInfoAddModel activityTeamInfoAddModel){ public static ActivityTeamInfo addModelBuild(ActivityTeamInfoAddModel activityTeamInfoAddModel){
return ActivityTeamInfo.builder() return ActivityTeamInfo.builder()
.name(activityTeamInfoAddModel.getName()) .name(activityTeamInfoAddModel.getName())
.productId(activityTeamInfoAddModel.getProductId()) .projectId(activityTeamInfoAddModel.getProductId())
.productImage(activityTeamInfoAddModel.getProductImage()) .projectImage(activityTeamInfoAddModel.getProductImage())
.introduction(activityTeamInfoAddModel.getIntroduction()) .introduction(activityTeamInfoAddModel.getIntroduction())
.unit(activityTeamInfoAddModel.getUnit()) .unit(activityTeamInfoAddModel.getUnit())
.imageList(activityTeamInfoAddModel.getImageList()) .imageList(activityTeamInfoAddModel.getImageList())
@ -99,8 +99,8 @@ public class ActivityTeamInfo extends BaseEntity {
public static ActivityTeamInfo teamSaveBuild(ActivityTeamInfoSaveModel activityTeamInfoSaveModel) { public static ActivityTeamInfo teamSaveBuild(ActivityTeamInfoSaveModel activityTeamInfoSaveModel) {
return ActivityTeamInfo.builder() return ActivityTeamInfo.builder()
.name(activityTeamInfoSaveModel.getName()) .name(activityTeamInfoSaveModel.getName())
.productId(activityTeamInfoSaveModel.getProductId()) .projectId(activityTeamInfoSaveModel.getProductId())
.productImage(activityTeamInfoSaveModel.getProductImage()) .projectImage(activityTeamInfoSaveModel.getProductImage())
.introduction(activityTeamInfoSaveModel.getIntroduction()) .introduction(activityTeamInfoSaveModel.getIntroduction())
.unit(activityTeamInfoSaveModel.getUnit()) .unit(activityTeamInfoSaveModel.getUnit())
.imageList(activityTeamInfoSaveModel.getImageList()) .imageList(activityTeamInfoSaveModel.getImageList())
@ -116,8 +116,8 @@ public class ActivityTeamInfo extends BaseEntity {
return ActivityTeamInfo.builder() return ActivityTeamInfo.builder()
.id(activityTeamInfoUpdModel.getId()) .id(activityTeamInfoUpdModel.getId())
.name(activityTeamInfoUpdModel.getName()) .name(activityTeamInfoUpdModel.getName())
.productId(activityTeamInfoUpdModel.getProductId()) .projectId(activityTeamInfoUpdModel.getProductId())
.productImage(activityTeamInfoUpdModel.getProductImage()) .projectImage(activityTeamInfoUpdModel.getProductImage())
.introduction(activityTeamInfoUpdModel.getIntroduction()) .introduction(activityTeamInfoUpdModel.getIntroduction())
.unit(activityTeamInfoUpdModel.getUnit()) .unit(activityTeamInfoUpdModel.getUnit())
.imageList(activityTeamInfoUpdModel.getImageList()) .imageList(activityTeamInfoUpdModel.getImageList())

View File

@ -5,7 +5,6 @@ import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.web.domain.BaseEntity; import com.muyu.common.core.web.domain.BaseEntity;
import com.muyu.marketing.domain.model.ActivityTeamProductSkuAddModel; import com.muyu.marketing.domain.model.ActivityTeamProductSkuAddModel;
import com.muyu.marketing.domain.model.ActivityTeamProductSkuModel;
import com.muyu.marketing.domain.model.ActivityTeamProductSkuReqModel; import com.muyu.marketing.domain.model.ActivityTeamProductSkuReqModel;
import com.muyu.marketing.domain.model.ActivityTeamProductSkuUpdModel; import com.muyu.marketing.domain.model.ActivityTeamProductSkuUpdModel;
import lombok.*; import lombok.*;
@ -76,12 +75,11 @@ public class ActivityTeamProductSkuInfo extends BaseEntity {
.build(); .build();
} }
public static ActivityTeamProductSkuInfo updModelBuild(ActivityTeamProductSkuUpdModel teamProductSkuUpdModel){ public static ActivityTeamProductSkuInfo updateModelBuild(ActivityTeamProductSkuUpdModel activityTeamProductSkuUpdModel) {
return ActivityTeamProductSkuInfo.builder() return ActivityTeamProductSkuInfo.builder()
.id(teamProductSkuUpdModel.getId()) .id(activityTeamProductSkuUpdModel.getId())
.teamPrice(teamProductSkuUpdModel.getTeamPrice()) .teamPrice(activityTeamProductSkuUpdModel.getTeamPrice())
.teamStock(teamProductSkuUpdModel.getTeamStock()) .teamStock(activityTeamProductSkuUpdModel.getTeamStock())
.remainStock(teamProductSkuUpdModel.getTeamStock())
.build(); .build();
} }

View File

@ -13,7 +13,7 @@ import lombok.experimental.SuperBuilder;
@AllArgsConstructor @AllArgsConstructor
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@TableName(value = "team_strategy_exemption_hundred", autoResultMap = true) @TableName(value = "team_strategy_exemption_hundred", autoResultMap = true)
public class TeamStrategyHundred extends BaseEntity { public class TeamStrategyExemptionHundred extends BaseEntity {
/** /**
* *

View File

@ -13,7 +13,7 @@ import lombok.experimental.SuperBuilder;
@AllArgsConstructor @AllArgsConstructor
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@TableName(value = "team_strategy_exemption_ordinary", autoResultMap = true) @TableName(value = "team_strategy_exemption_ordinary", autoResultMap = true)
public class TeamStrategyOrdinary extends BaseEntity { public class TeamStrategyExemptionOrdinary extends BaseEntity {
/** /**
* *

View File

@ -86,8 +86,8 @@ public class ActivityTeamDetailModel {
return function.apply(ActivityTeamDetailModel.builder() return function.apply(ActivityTeamDetailModel.builder()
.id(activityTeamInfo.getId()) .id(activityTeamInfo.getId())
.name(activityTeamInfo.getName()) .name(activityTeamInfo.getName())
.productId(activityTeamInfo.getProductId()) .productId(activityTeamInfo.getProjectId())
.productImage(activityTeamInfo.getProductImage()) .productImage(activityTeamInfo.getProjectImage())
.introduction(activityTeamInfo.getIntroduction()) .introduction(activityTeamInfo.getIntroduction())
.unit(activityTeamInfo.getUnit()) .unit(activityTeamInfo.getUnit())
.imageList(activityTeamInfo.getImageList()) .imageList(activityTeamInfo.getImageList())

View File

@ -79,7 +79,7 @@ public class ActivityTeamInfoListModel {
// .addTeamNumber(teamInTypeNumber) // .addTeamNumber(teamInTypeNumber)
// .attendNumber(teamOpenTypeNumber + teamInTypeNumber) // .attendNumber(teamOpenTypeNumber + teamInTypeNumber)
.endTime(activityTeamInfo.getEndTime()) .endTime(activityTeamInfo.getEndTime())
.productImage(activityTeamInfo.getProductImage()) .productImage(activityTeamInfo.getProjectImage())
// .teamPrice(discountPrice.getTeamPrice()) // .teamPrice(discountPrice.getTeamPrice())
// .productPrice(discountPrice.getProductPrice()) // .productPrice(discountPrice.getProductPrice())
// .teamStock(teamProductStockModel.getTeamStock()) // .teamStock(teamProductStockModel.getTeamStock())
@ -91,7 +91,7 @@ public class ActivityTeamInfoListModel {
.id(activityTeamInfo.getId()) .id(activityTeamInfo.getId())
.name(activityTeamInfo.getName()) .name(activityTeamInfo.getName())
.endTime(activityTeamInfo.getEndTime()) .endTime(activityTeamInfo.getEndTime())
.productImage(activityTeamInfo.getProductImage()) .productImage(activityTeamInfo.getProjectImage())
.status(activityTeamInfo.getStatus()) .status(activityTeamInfo.getStatus())
); );
} }

View File

@ -1,65 +1,125 @@
package com.muyu.marketing.domain.model; package com.muyu.marketing.domain.model;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.marketing.domain.ActivityTeamInfo;
import com.muyu.marketing.domain.req.ActivityTeamInfoUpdReq; import com.muyu.marketing.domain.req.ActivityTeamInfoUpdReq;
import com.muyu.marketing.domain.req.ActivityTeamProductSkuSettingReq;
import com.muyu.marketing.domain.req.TeamProjectSkuInfoAddReq;
import com.muyu.marketing.domain.req.TeamProjectSkuInfoUpdReq;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
/** /**
* @program: 2204a-cloud-server *
* @description: *
* @author: AoCi Tian * @author SunLY
* @create: 2024-11-26 19:25 * @version 1.0
**/ * @date 2024/11/27 17:13
*/
@Data @Data
@AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@Builder @AllArgsConstructor
@SuperBuilder
public class ActivityTeamInfoUpdModel { public class ActivityTeamInfoUpdModel {
/**
* ID
*/
private Long id; private Long id;
/**
*
*/
private String name; private String name;
/**
* ID
*/
private Long productId; private Long productId;
/**
*
*/
private String productImage; private String productImage;
/**
*
*/
private String productName;
/**
*
*/
private String introduction; private String introduction;
/**
*
*/
private String unit; private String unit;
/**
*
*/
private String imageList; private String imageList;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
private Date endTime; private Date endTime;
/**
*
*/
private Long sort; private Long sort;
/**
*
*/
private String content; private String content;
/**
*
*/
private String status; private String status;
private String strategyType; /**
* ID
*/
private Long strategyId; private Long strategyId;
private ActivityTeamProductSkuSettingModel activityTeamProductSkuSettingModel; /**
*
*/
private String strategyType;
/**
* list
*/
private List<ActivityTeamProductSkuUpdModel> TeamProductSkuUpdList;
public static ActivityTeamInfoUpdModel activityTeamInfoUpdReqModelBuild (ActivityTeamInfoUpdReq activityTeamInfoUpdReq){ /**
* IDList
*/
private List<Long> TeamProductSkuDelList;
/**
*
*/
private List<ActivityTeamProductSkuAddModel> TeamProductSkuAddList;
public static ActivityTeamInfoUpdModel buildModel(ActivityTeamInfoUpdReq activityTeamInfoUpdReq) {
return ActivityTeamInfoUpdModel.builder() return ActivityTeamInfoUpdModel.builder()
.id(activityTeamInfoUpdReq.getId()) .id(activityTeamInfoUpdReq.getId())
.name(activityTeamInfoUpdReq.getName()) .name(activityTeamInfoUpdReq.getName())
.productId(activityTeamInfoUpdReq.getProductId()) .productId(activityTeamInfoUpdReq.getProductId())
.productImage(activityTeamInfoUpdReq.getProductImage()) .productImage(activityTeamInfoUpdReq.getProductImage())
.productName(activityTeamInfoUpdReq.getProductName())
.introduction(activityTeamInfoUpdReq.getIntroduction()) .introduction(activityTeamInfoUpdReq.getIntroduction())
.unit(activityTeamInfoUpdReq.getUnit()) .unit(activityTeamInfoUpdReq.getUnit())
.imageList(activityTeamInfoUpdReq.getImageList()) .imageList(activityTeamInfoUpdReq.getImageList())
.endTime(activityTeamInfoUpdReq.getEndTime()) .endTime(activityTeamInfoUpdReq.getEndTime())
.strategyId(activityTeamInfoUpdReq.getStrategyId())
.strategyType(activityTeamInfoUpdReq.getStrategyType())
.sort(activityTeamInfoUpdReq.getSort()) .sort(activityTeamInfoUpdReq.getSort())
.content(activityTeamInfoUpdReq.getContent()) .content(activityTeamInfoUpdReq.getContent())
.status(activityTeamInfoUpdReq.getStatus()) .status(activityTeamInfoUpdReq.getStatus())
.strategyType(activityTeamInfoUpdReq.getStrategyType()) .TeamProductSkuAddList(activityTeamInfoUpdReq.getTeamProductSkuAddList())
.strategyId(activityTeamInfoUpdReq.getStrategyId()) .TeamProductSkuDelList(activityTeamInfoUpdReq.getTeamProductSkuDelList())
.activityTeamProductSkuSettingModel( .TeamProductSkuUpdList(activityTeamInfoUpdReq.getTeamProductSkuUpdList())
ActivityTeamProductSkuSettingModel.settingReqModel(
activityTeamInfoUpdReq.getActivityTeamProductSkuSettingReq(),
activityTeamInfoUpdReq::getProductId
)
)
.build(); .build();
} }
} }

View File

@ -1,59 +0,0 @@
package com.muyu.marketing.domain.model;
import com.muyu.marketing.domain.req.ActivityTeamProductSkuSettingReq;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
import java.util.function.Supplier;
/**
*
*
* @author DongZeLiang
* @date 2024-11-28 11:15
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ActivityTeamProductSkuSettingModel {
/**
* ID
*/
private Long teamId;
/**
* ID
*/
private List<Long> removeIds;
/**
*
*/
private List<ActivityTeamProductSkuAddModel> activityTeamProductSkuAddModelList;
/**
*
*/
private List<ActivityTeamProductSkuUpdModel> activityTeamProductSkuUpdModelList;
public static ActivityTeamProductSkuSettingModel settingReqModel(ActivityTeamProductSkuSettingReq activityTeamProductSkuSettingReq, Supplier<Long> productId) {
return ActivityTeamProductSkuSettingModel.builder()
.removeIds(activityTeamProductSkuSettingReq.getRemoveIds())
.activityTeamProductSkuAddModelList(
activityTeamProductSkuSettingReq.getTeamProjectSkuInfoAddReqList().stream()
.map(teamProjectSkuInfoAddReq -> ActivityTeamProductSkuAddModel.addReqBuild(teamProjectSkuInfoAddReq, productId))
.toList()
)
.activityTeamProductSkuUpdModelList(
activityTeamProductSkuSettingReq.getTeamProjectSkuInfoUpdReqList().stream()
.map(ActivityTeamProductSkuUpdModel::updReqBuild)
.toList()
).build();
}
}

View File

@ -1,7 +1,6 @@
package com.muyu.marketing.domain.model; package com.muyu.marketing.domain.model;
import com.muyu.marketing.domain.req.TeamProjectSkuInfoUpdReq;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@ -35,12 +34,4 @@ public class ActivityTeamProductSkuUpdModel {
* *
*/ */
private Long teamStock; private Long teamStock;
public static ActivityTeamProductSkuUpdModel updReqBuild(TeamProjectSkuInfoUpdReq teamProjectSkuInfoUpdReq){
return ActivityTeamProductSkuUpdModel.builder()
.id(teamProjectSkuInfoUpdReq.getId())
.teamStock(teamProjectSkuInfoUpdReq.getTeamStock())
.teamPrice(teamProjectSkuInfoUpdReq.getTeamPrice())
.build();
}
} }

View File

@ -1,5 +1,8 @@
package com.muyu.marketing.domain.req; package com.muyu.marketing.domain.req;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.marketing.domain.model.ActivityTeamProductSkuAddModel;
import com.muyu.marketing.domain.model.ActivityTeamProductSkuUpdModel;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@ -19,18 +22,75 @@ import java.util.List;
@NoArgsConstructor @NoArgsConstructor
@Builder @Builder
public class ActivityTeamInfoUpdReq { public class ActivityTeamInfoUpdReq {
/**
* ID
*/
private Long id; private Long id;
/**
*
*/
private String name; private String name;
/**
* ID
*/
private Long productId; private Long productId;
/**
*
*/
private String productImage; private String productImage;
/**
*
*/
private String productName;
/**
*
*/
private String introduction; private String introduction;
/**
*
*/
private String unit; private String unit;
/**
*
*/
private String imageList; private String imageList;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
private Date endTime; private Date endTime;
/**
*
*/
private Long sort; private Long sort;
/**
*
*/
private String content; private String content;
/**
*
*/
private String status; private String status;
private String strategyType; /**
* ID
*/
private Long strategyId; private Long strategyId;
private ActivityTeamProductSkuSettingReq activityTeamProductSkuSettingReq; /**
*
*/
private String strategyType;
/**
* list
*/
private List<ActivityTeamProductSkuUpdModel> TeamProductSkuUpdList;
/**
* IDList
*/
private List<Long> TeamProductSkuDelList;
/**
*
*/
private List<ActivityTeamProductSkuAddModel> TeamProductSkuAddList;
} }

View File

@ -1,37 +0,0 @@
package com.muyu.marketing.domain.req;
import com.muyu.marketing.domain.model.ActivityTeamProductSkuAddModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
/**
*
*
* @author DongZeLiang
* @date 2024-11-28 11:27
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ActivityTeamProductSkuSettingReq {
/**
* ID
*/
private List<Long> removeIds;
/**
*
*/
private List<TeamProjectSkuInfoAddReq> teamProjectSkuInfoAddReqList;
/**
*
*/
private List<TeamProjectSkuInfoUpdReq> teamProjectSkuInfoUpdReqList;
}

View File

@ -1,33 +0,0 @@
package com.muyu.marketing.domain.req;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.math.BigDecimal;
/**
*
*/
@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
public class TeamProjectSkuInfoUpdReq {
/**
* SKU
*/
private Long id;
/**
*
*/
private BigDecimal teamPrice;
/**
*
*/
private Long teamStock;
}

View File

@ -2,7 +2,7 @@ package com.muyu.marketing.domain.resp;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.marketing.domain.model.ActivityTeamDetailModel; import com.muyu.marketing.domain.model.ActivityTeamDetailModel;
import com.muyu.marketing.domain.req.ProjectSkuInfoAddReq;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;

View File

@ -59,13 +59,24 @@ public class ActivityTeamController {
return Result.success(); return Result.success();
} }
/**
* id
* @param id
* @return
*/
@PostMapping("/findById/{id}") @PostMapping("/findById/{id}")
public Result<TeamInfoFindByIdResp> findTeamById(@PathVariable Long id){ public Result<TeamInfoFindByIdResp> findTeamById(@PathVariable Long id){
return Result.success(TeamInfoFindByIdResp.teamInfoFindByIdBuild(activityTeamInfoService.findDetailById(id))); return Result.success(TeamInfoFindByIdResp.teamInfoFindByIdBuild(activityTeamInfoService.findDetailById(id)));
} }
@PutMapping("/updateByTeamId")
/**
*
* @param
* @return
*/
@PostMapping("/updateByTeamId")
public Result updateByTeamId(@RequestBody ActivityTeamInfoUpdReq activityTeamInfoUpdReq){ public Result updateByTeamId(@RequestBody ActivityTeamInfoUpdReq activityTeamInfoUpdReq){
activityTeamInfoService.update(ActivityTeamInfoUpdModel.activityTeamInfoUpdReqModelBuild(activityTeamInfoUpdReq)); activityTeamInfoService.updateByTeamId(ActivityTeamInfoUpdModel.buildModel(activityTeamInfoUpdReq));
return Result.success(); return Result.success();
} }
} }

View File

@ -2,6 +2,8 @@ package com.muyu.marketing.team.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.marketing.domain.ActivityTeamInfo; import com.muyu.marketing.domain.ActivityTeamInfo;
import com.muyu.marketing.domain.ActivityTeamProductSkuInfo;
import com.muyu.marketing.domain.TeamStrategyExemptionHundred;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
@Mapper @Mapper

View File

@ -0,0 +1,11 @@
package com.muyu.marketing.team.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.marketing.domain.TeamStrategyExemption;
import com.muyu.marketing.domain.TeamStrategyExemptionHundred;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface TeamStrategyExemptionHundredMapper extends BaseMapper<TeamStrategyExemptionHundred> {
}

View File

@ -0,0 +1,11 @@
package com.muyu.marketing.team.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.marketing.domain.TeamStrategyExemptionHundred;
import com.muyu.marketing.domain.TeamStrategyExemptionOrdinary;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface TeamStrategyExemptionOrdinaryMapper extends BaseMapper<TeamStrategyExemptionOrdinary> {
}

View File

@ -1,10 +0,0 @@
package com.muyu.marketing.team.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.marketing.domain.TeamStrategyHundred;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface TeamStrategyHundredMapper extends BaseMapper<TeamStrategyHundred> {
}

View File

@ -1,10 +0,0 @@
package com.muyu.marketing.team.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.marketing.domain.TeamStrategyOrdinary;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface TeamStrategyOrdinaryMapper extends BaseMapper<TeamStrategyOrdinary> {
}

View File

@ -28,12 +28,9 @@ public interface ActivityTeamInfoService extends IService<ActivityTeamInfo> {
*/ */
ActivityTeamDetailModel findDetailById(Long id); ActivityTeamDetailModel findDetailById(Long id);
/**
*
* @param activityTeamInfoUpdModel public boolean updateByTeamId(ActivityTeamInfoUpdModel activityTeamInfoUpdModel);
* @return
*/
boolean update(ActivityTeamInfoUpdModel activityTeamInfoUpdModel);
} }

View File

@ -3,6 +3,7 @@ package com.muyu.marketing.team.service;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.marketing.domain.ActivityTeamProductSkuInfo; import com.muyu.marketing.domain.ActivityTeamProductSkuInfo;
import com.muyu.marketing.domain.TeamStrategyExemptionHundred;
import com.muyu.marketing.domain.model.*; import com.muyu.marketing.domain.model.*;
import java.util.List; import java.util.List;
@ -33,7 +34,7 @@ public interface ActivityTeamProductSkuInfoService extends IService<ActivityTeam
/** /**
* SKU * SKU
* @param activityTeamProductSkuAddModelList SKU * @param activityTeamProductSkuAddModelList SKU
*/ */
public void batchSave(List<ActivityTeamProductSkuAddModel> activityTeamProductSkuAddModelList); public void batchSave(List<ActivityTeamProductSkuAddModel> activityTeamProductSkuAddModelList);
@ -45,29 +46,25 @@ public interface ActivityTeamProductSkuInfoService extends IService<ActivityTeam
*/ */
public List<ActivityTeamProductSkuModel> findListByTeamId(Long teamId); public List<ActivityTeamProductSkuModel> findListByTeamId(Long teamId);
public boolean updateBath(List<ActivityTeamProductSkuReqModel> activityTeamProductSkuReqModelList); /**
* SKU
* @param activityTeamProductSkuUpdModel SKU
* @return
*/
public boolean updateTeamProductSku(ActivityTeamProductSkuUpdModel activityTeamProductSkuUpdModel);
/** /**
* * SKU
* @param activityTeamProductSkuUpdModel * @param activityTeamProductSkuUpdModels
* @return * @return
*/ */
public boolean update(ActivityTeamProductSkuUpdModel activityTeamProductSkuUpdModel); public boolean updateTeamProductSkuList(List<ActivityTeamProductSkuUpdModel> activityTeamProductSkuUpdModels);
/** /**
* * SKU
* @param activityTeamProductSkuUpdModelList * @param productSkuIdList
* @return * @return
*/ */
public boolean batchUpdate(List<ActivityTeamProductSkuUpdModel> activityTeamProductSkuUpdModelList); public boolean deleteTeamProductSkuList(List<Long> productSkuIdList);
/**
*
* @param activityTeamProductSkuSettingModel
*/
public default void setting(ActivityTeamProductSkuSettingModel activityTeamProductSkuSettingModel){
this.batchSave(activityTeamProductSkuSettingModel.getActivityTeamProductSkuAddModelList());
this.batchUpdate(activityTeamProductSkuSettingModel.getActivityTeamProductSkuUpdModelList());
this.removeByIds(activityTeamProductSkuSettingModel.getRemoveIds());
}
} }

View File

@ -0,0 +1,8 @@
package com.muyu.marketing.team.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.marketing.domain.TeamStrategyExemptionHundred;
import com.muyu.marketing.domain.TeamStrategyExemptionOrdinary;
public interface TeamStrategyExemptionHundredService extends IService<TeamStrategyExemptionHundred> {
}

View File

@ -0,0 +1,7 @@
package com.muyu.marketing.team.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.marketing.domain.TeamStrategyExemptionOrdinary;
public interface TeamStrategyExemptionOrdinaryService extends IService<TeamStrategyExemptionOrdinary> {
}

View File

@ -2,10 +2,7 @@ package com.muyu.marketing.team.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.marketing.domain.TeamStrategyExemption; import com.muyu.marketing.domain.TeamStrategyExemption;
import com.muyu.marketing.team.strategy.ActivityTeamStrategy; import com.muyu.marketing.domain.TeamStrategyExemptionHundred;
/** public interface TeamStrategyExemptionService extends IService<TeamStrategyExemption> {
*
*/
public interface TeamStrategyExemptionService extends ActivityTeamStrategy, IService<TeamStrategyExemption> {
} }

View File

@ -1,11 +0,0 @@
package com.muyu.marketing.team.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.marketing.domain.TeamStrategyHundred;
import com.muyu.marketing.team.strategy.ActivityTeamStrategy;
/**
*
*/
public interface TeamStrategyHundredService extends ActivityTeamStrategy, IService<TeamStrategyHundred> {
}

View File

@ -1,11 +0,0 @@
package com.muyu.marketing.team.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.marketing.domain.TeamStrategyOrdinary;
import com.muyu.marketing.team.strategy.ActivityTeamStrategy;
/**
*
*/
public interface TeamStrategyOrdinaryService extends ActivityTeamStrategy, IService<TeamStrategyOrdinary> {
}

View File

@ -1,6 +1,7 @@
package com.muyu.marketing.team.service.impl; package com.muyu.marketing.team.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.common.core.utils.StringUtils; import com.muyu.common.core.utils.StringUtils;
@ -93,16 +94,27 @@ public class ActivityTeamInfoServiceImpl extends ServiceImpl<ActivityTeamInfoMap
); );
} }
/**
*
* @param activityTeamInfoUpdModel
* @return
*/
@Override @Override
public boolean update(ActivityTeamInfoUpdModel activityTeamInfoUpdModel) { public boolean updateByTeamId(ActivityTeamInfoUpdModel activityTeamInfoUpdModel) {
boolean update = this.updateById(ActivityTeamInfo.TeamUpdateBuild(activityTeamInfoUpdModel)); ActivityTeamInfo activityTeamInfo = ActivityTeamInfo.TeamUpdateBuild(activityTeamInfoUpdModel);
Assert.isTrue(update,"修改失败");
activityTeamProductSkuInfoService.setting(activityTeamInfoUpdModel.getActivityTeamProductSkuSettingModel()); this.updateById(activityTeamInfo);
return update;
activityTeamProductSkuInfoService.deleteTeamProductSkuList(
activityTeamInfoUpdModel.getTeamProductSkuDelList()
);
activityTeamProductSkuInfoService.batchSave(
activityTeamInfoUpdModel.getTeamProductSkuAddList()
);
activityTeamProductSkuInfoService.updateTeamProductSkuList(
activityTeamInfoUpdModel.getTeamProductSkuUpdList()
);
return false;
} }
} }

View File

@ -20,6 +20,7 @@ import java.util.ArrayList;
import java.util.Comparator; import java.util.Comparator;
import java.util.List; import java.util.List;
import java.util.Optional; import java.util.Optional;
import java.util.stream.Collectors;
@Service @Service
public class ActivityTeamProductSkuInfoServiceImpl extends ServiceImpl<ActivityTeamProductSkuInfoMapper, ActivityTeamProductSkuInfo> public class ActivityTeamProductSkuInfoServiceImpl extends ServiceImpl<ActivityTeamProductSkuInfoMapper, ActivityTeamProductSkuInfo>
@ -96,43 +97,30 @@ public class ActivityTeamProductSkuInfoServiceImpl extends ServiceImpl<ActivityT
// return list.stream().map(activityTeamProductSkuInfo -> ActivityTeamProductSkuModel.FindBuild(activityTeamProductSkuInfo)).toList(); // return list.stream().map(activityTeamProductSkuInfo -> ActivityTeamProductSkuModel.FindBuild(activityTeamProductSkuInfo)).toList();
} }
@Transactional
@Override @Override
public boolean updateBath(List<ActivityTeamProductSkuReqModel> activityTeamProductSkuReqModelList) { public boolean updateTeamProductSku(ActivityTeamProductSkuUpdModel activityTeamProductSkuUpdModel) {
return this.updateBatchById(activityTeamProductSkuReqModelList.stream().map(ActivityTeamProductSkuInfo::updateModelBuild).toList());
}
/**
*
*
* @param activityTeamProductSkuUpdModel
* @return
*/
@Override
public boolean update(ActivityTeamProductSkuUpdModel activityTeamProductSkuUpdModel) {
// update set where
LambdaUpdateWrapper<ActivityTeamProductSkuInfo> updateWrapper = new LambdaUpdateWrapper<>(); LambdaUpdateWrapper<ActivityTeamProductSkuInfo> updateWrapper = new LambdaUpdateWrapper<>();
// 字段=值 updateWrapper.set(ActivityTeamProductSkuInfo::getTeamPrice, activityTeamProductSkuUpdModel.getTeamPrice());
updateWrapper.set(ActivityTeamProductSkuInfo::getTeamStock,activityTeamProductSkuUpdModel.getTeamStock()); updateWrapper.set(ActivityTeamProductSkuInfo::getTeamStock, activityTeamProductSkuUpdModel.getTeamStock());
updateWrapper.set(ActivityTeamProductSkuInfo::getRemainStock,activityTeamProductSkuUpdModel.getTeamStock()); updateWrapper.set(ActivityTeamProductSkuInfo::getRemainStock, activityTeamProductSkuUpdModel.getTeamStock());
updateWrapper.set(ActivityTeamProductSkuInfo::getTeamPrice,activityTeamProductSkuUpdModel.getTeamPrice()); updateWrapper.eq(ActivityTeamProductSkuInfo::getId, activityTeamProductSkuUpdModel.getId());
// id=
updateWrapper.eq(ActivityTeamProductSkuInfo::getId,activityTeamProductSkuUpdModel.getId());
return this.update(updateWrapper); return this.update(updateWrapper);
} }
/**
*
*
* @param activityTeamProductSkuUpdModelList
* @return
*/
@Override @Override
public boolean batchUpdate(List<ActivityTeamProductSkuUpdModel> activityTeamProductSkuUpdModelList) { public boolean updateTeamProductSkuList(List<ActivityTeamProductSkuUpdModel> activityTeamProductSkuUpdModelList) {
return this.updateBatchById( return this.updateBatchById(
activityTeamProductSkuUpdModelList.stream() activityTeamProductSkuUpdModelList.stream().
.map(ActivityTeamProductSkuInfo::updModelBuild) map(ActivityTeamProductSkuInfo::updateModelBuild)
.toList() .collect(Collectors.toList())
); );
} }
@Override
public boolean deleteTeamProductSkuList(List<Long> productSkuIdList) {
return removeBatchByIds(productSkuIdList);
}
} }

View File

@ -0,0 +1,16 @@
package com.muyu.marketing.team.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.marketing.domain.TeamStrategyExemption;
import com.muyu.marketing.domain.TeamStrategyExemptionHundred;
import com.muyu.marketing.team.mapper.TeamStrategyExemptionHundredMapper;
import com.muyu.marketing.team.mapper.TeamStrategyExemptionMapper;
import com.muyu.marketing.team.service.TeamStrategyExemptionHundredService;
import com.muyu.marketing.team.service.TeamStrategyExemptionService;
import org.springframework.stereotype.Service;
@Service
public class TeamStrategyExemptionHundredServiceImpl extends ServiceImpl<TeamStrategyExemptionHundredMapper, TeamStrategyExemptionHundred>
implements TeamStrategyExemptionHundredService {
}

View File

@ -0,0 +1,13 @@
package com.muyu.marketing.team.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.marketing.domain.TeamStrategyExemptionOrdinary;
import com.muyu.marketing.team.mapper.TeamStrategyExemptionOrdinaryMapper;
import com.muyu.marketing.team.service.TeamStrategyExemptionOrdinaryService;
import org.springframework.stereotype.Service;
@Service
public class TeamStrategyExemptionOrdinaryServiceImpl extends ServiceImpl<TeamStrategyExemptionOrdinaryMapper, TeamStrategyExemptionOrdinary>
implements TeamStrategyExemptionOrdinaryService {
}

View File

@ -4,62 +4,10 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.marketing.domain.TeamStrategyExemption; import com.muyu.marketing.domain.TeamStrategyExemption;
import com.muyu.marketing.team.mapper.TeamStrategyExemptionMapper; import com.muyu.marketing.team.mapper.TeamStrategyExemptionMapper;
import com.muyu.marketing.team.service.TeamStrategyExemptionService; import com.muyu.marketing.team.service.TeamStrategyExemptionService;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@Log4j2 @Service
@Service("team-strategy-exemption")
public class TeamStrategyExemptionServiceImpl extends ServiceImpl<TeamStrategyExemptionMapper, TeamStrategyExemption> public class TeamStrategyExemptionServiceImpl extends ServiceImpl<TeamStrategyExemptionMapper, TeamStrategyExemption>
implements TeamStrategyExemptionService { implements TeamStrategyExemptionService {
/**
*
*
* @param activityTeamId ID
*/
@Override
public void openTeam(Long activityTeamId) {
log.info("参加 - 免单团 - [{}]", activityTeamId);
}
/**
*
*
* @param teamId ID
*/
@Override
public void applyTeam(Long teamId) {
}
/**
*
*
* @param teamId ID
* @param orderNumber
*/
@Override
public void addTeam(Long teamId, String orderNumber) {
}
/**
* 退
*
* @param teamId ID
*/
@Override
public void backTeam(Long teamId) {
}
/**
*
*
* @param teamId ID
*/
@Override
public void settle(Long teamId) {
}
} }

View File

@ -1,66 +0,0 @@
package com.muyu.marketing.team.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.marketing.domain.TeamStrategyHundred;
import com.muyu.marketing.team.mapper.TeamStrategyHundredMapper;
import com.muyu.marketing.team.service.TeamStrategyHundredService;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;
@Log4j2
@Service("team-strategy-hundred")
public class TeamStrategyHundredServiceImpl extends ServiceImpl<TeamStrategyHundredMapper, TeamStrategyHundred>
implements TeamStrategyHundredService {
/**
*
*
* @param activityTeamId ID
*/
@Override
public void openTeam(Long activityTeamId) {
log.info("参加 - 百人团 - [{}]", activityTeamId);
}
/**
*
*
* @param teamId ID
*/
@Override
public void applyTeam(Long teamId) {
}
/**
*
*
* @param teamId ID
* @param orderNumber
*/
@Override
public void addTeam(Long teamId, String orderNumber) {
}
/**
* 退
*
* @param teamId ID
*/
@Override
public void backTeam(Long teamId) {
}
/**
*
*
* @param teamId ID
*/
@Override
public void settle(Long teamId) {
}
}

View File

@ -1,66 +0,0 @@
package com.muyu.marketing.team.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.marketing.domain.TeamStrategyOrdinary;
import com.muyu.marketing.team.mapper.TeamStrategyOrdinaryMapper;
import com.muyu.marketing.team.service.TeamStrategyOrdinaryService;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;
@Log4j2
@Service("team-strategy-ordinary")
public class TeamStrategyOrdinaryServiceImpl extends ServiceImpl<TeamStrategyOrdinaryMapper, TeamStrategyOrdinary>
implements TeamStrategyOrdinaryService {
/**
*
*
* @param activityTeamId ID
*/
@Override
public void openTeam(Long activityTeamId) {
log.info("参加 - 普通团 - [{}]", activityTeamId);
}
/**
*
*
* @param teamId ID
*/
@Override
public void applyTeam(Long teamId) {
}
/**
*
*
* @param teamId ID
* @param orderNumber
*/
@Override
public void addTeam(Long teamId, String orderNumber) {
}
/**
* 退
*
* @param teamId ID
*/
@Override
public void backTeam(Long teamId) {
}
/**
*
*
* @param teamId ID
*/
@Override
public void settle(Long teamId) {
}
}

View File

@ -1,44 +0,0 @@
package com.muyu.marketing.team.strategy;
import org.apache.ibatis.annotations.Param;
/**
*
*
* @author DongZeLiang
* @date 2024-11-29 15:03
*/
public interface ActivityTeamStrategy {
/**
*
* @param activityTeamId ID
*/
public void openTeam(Long activityTeamId);
/**
*
* @param teamId ID
*/
public void applyTeam(Long teamId);
/**
*
* @param teamId ID
* @param orderNumber
*/
public void addTeam(Long teamId, String orderNumber);
/**
* 退
* @param teamId ID
*/
public void backTeam(Long teamId);
/**
*
* @param teamId ID
*/
public void settle(Long teamId);
}

View File

@ -1,85 +0,0 @@
package com.muyu.marketing.team.strategy.impl;
import com.muyu.common.core.exception.ServiceException;
import com.muyu.common.core.utils.SpringUtils;
import com.muyu.marketing.team.strategy.ActivityTeamStrategy;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
/**
*
*
* @author DongZeLiang
* @date 2024-11-29 15:28
*/
@Service
@Primary
public class ActivityTeamStrategyImpl implements ActivityTeamStrategy {
/**
*
*
* @param activityTeamId ID
*/
@Override
public void openTeam(Long activityTeamId) {
// 假设这里是通过方法获取的typeactivityTeamId.toString()
// "team-strategy-exemption"
// "team-strategy-hundred"
// "team-strategy-ordinary"
String activityTeamType = null;
if (activityTeamId == null) {
throw new ServiceException("activityTeamId is null");
}else if (activityTeamId == 0) {
activityTeamType = "team-strategy-exemption";
}else if (activityTeamId == 1) {
activityTeamType = "team-strategy-hundred";
}else if (activityTeamId == 2) {
activityTeamType = "team-strategy-ordinary";
}
ActivityTeamStrategy activityTeamStrategy = SpringUtils.getBean(activityTeamType);
activityTeamStrategy.openTeam(activityTeamId);
}
/**
*
*
* @param teamId ID
*/
@Override
public void applyTeam(Long teamId) {
}
/**
*
*
* @param teamId ID
* @param orderNumber
*/
@Override
public void addTeam(Long teamId, String orderNumber) {
}
/**
* 退
*
* @param teamId ID
*/
@Override
public void backTeam(Long teamId) {
}
/**
*
*
* @param teamId ID
*/
@Override
public void settle(Long teamId) {
}
}

View File

@ -6,7 +6,7 @@ server:
spring: spring:
application: application:
# 应用名称 # 应用名称
name: muyu-buy name: muyu-marketing
profiles: profiles:
# 环境配置 # 环境配置
active: dev active: dev
@ -14,10 +14,10 @@ spring:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 127.0.0.1:8848 server-addr: 121.37.131.224:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 127.0.0.1:8848 server-addr: 121.37.131.224:8848
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置

View File

@ -1,28 +0,0 @@
package com.muyu.test;
import com.muyu.marketing.MuYuMarketIngApplication;
import com.muyu.marketing.team.strategy.ActivityTeamStrategy;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
/**
*
*
* @author DongZeLiang
* @date 2024-11-29 15:40
*/
@SpringBootTest(classes = MuYuMarketIngApplication.class)
public class TeamStrategyTest {
@Autowired
private ActivityTeamStrategy activityTeamStrategy;
@Test
public void testStrategy() {
activityTeamStrategy.openTeam(0L);
activityTeamStrategy.openTeam(1L);
activityTeamStrategy.openTeam(2L);
}
}

View File

@ -14,10 +14,10 @@ spring:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 127.0.0.1:8848 server-addr: 121.37.131.224:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 127.0.0.1:8848 server-addr: 121.37.131.224:8848
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置

View File

@ -16,10 +16,10 @@ spring:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 127.0.0.1:8848 server-addr: 121.37.131.224:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 127.0.0.1:8848 server-addr: 121.37.131.224:8848
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置

View File

@ -14,10 +14,10 @@ spring:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 127.0.0.1:8848 server-addr: 121.37.131.224:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 127.0.0.1:8848 server-addr: 121.37.131.224:8848
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置

View File

@ -14,10 +14,10 @@ spring:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 127.0.0.1:8848 server-addr: 121.37.131.224:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 127.0.0.1:8848 server-addr: 121.37.131.224:8848
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置