master
33442 2024-11-20 21:06:39 +08:00
parent adf42d9e07
commit 1a39e63fa6
23 changed files with 2379 additions and 14 deletions

View File

@ -1,6 +1,6 @@
# Tomcat
server:
port: 9203
port: 9204
# Spring
spring:

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.muyu</groupId>
<artifactId>muyu-marketing</artifactId>
<version>3.6.3</version>
</parent>
<artifactId>marketing-common</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.muyu</groupId>
<artifactId>muyu-common-core</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,395 @@
package com.muyu.marketing.domain;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
/**
*
* @TableName activity_team_info
*/
public class ActivityTeamInfo implements Serializable {
/**
*
*/
@NotNull(message="[主键]不能为空")
@ApiModelProperty("主键")
private Integer id;
/**
*
*/
@Size(max= 255,message="编码长度不能超过255")
@ApiModelProperty("拼团名称")
@Length(max= 255,message="编码长度不能超过255")
private String name;
/**
* ID
*/
@NotNull(message="[商品ID]不能为空")
@ApiModelProperty("商品ID")
private Long productId;
/**
*
*/
@NotBlank(message="[商品活动图]不能为空")
@Size(max= 128,message="编码长度不能超过128")
@ApiModelProperty("商品活动图")
@Length(max= 128,message="编码长度不能超过128")
private String productImage;
/**
*
*/
@Size(max= -1,message="编码长度不能超过-1")
@ApiModelProperty("活动简介")
@Length(max= -1,message="编码长度不能超过-1")
private String introduction;
/**
*
*/
@NotBlank(message="[单位]不能为空")
@Size(max= 255,message="编码长度不能超过255")
@ApiModelProperty("单位")
@Length(max= 255,message="编码长度不能超过255")
private String unit;
/**
*
*/
@NotBlank(message="[轮播图]不能为空")
@Size(max= -1,message="编码长度不能超过-1")
@ApiModelProperty("轮播图")
@Length(max= -1,message="编码长度不能超过-1")
private String imageList;
/**
*
*/
@NotNull(message="[活动结束时间]不能为空")
@ApiModelProperty("活动结束时间")
private Date endTime;
/**
*
*/
@NotNull(message="[活动排序]不能为空")
@ApiModelProperty("活动排序")
private Integer sort;
/**
*
*/
@Size(max= -1,message="编码长度不能超过-1")
@ApiModelProperty("活动详情")
@Length(max= -1,message="编码长度不能超过-1")
private String content;
/**
*
*/
@NotBlank(message="[活动状态]不能为空")
@Size(max= 32,message="编码长度不能超过32")
@ApiModelProperty("活动状态")
@Length(max= 32,message="编码长度不能超过32")
private String status;
/**
*
*/
@NotBlank(message="[策略类型]不能为空")
@Size(max= 32,message="编码长度不能超过32")
@ApiModelProperty("策略类型")
@Length(max= 32,message="编码长度不能超过32")
private String strategyType;
/**
* ID
*/
@NotNull(message="[策略ID]不能为空")
@ApiModelProperty("策略ID")
private Long strategyId;
/**
*
*/
@Size(max= 900,message="编码长度不能超过900")
@ApiModelProperty("备注")
@Length(max= 900,message="编码长度不能超过900")
private String remark;
/**
*
*/
@Size(max= 32,message="编码长度不能超过32")
@ApiModelProperty("创建人")
@Length(max= 32,message="编码长度不能超过32")
private String createBy;
/**
*
*/
@ApiModelProperty("创建时间")
private Date createTime;
/**
*
*/
@Size(max= 32,message="编码长度不能超过32")
@ApiModelProperty("修改人")
@Length(max= 32,message="编码长度不能超过32")
private String updateBy;
/**
*
*/
@ApiModelProperty("修改时间")
private Date updateTime;
/**
*
*/
private void setId(Integer id){
this.id = id;
}
/**
*
*/
private void setName(String name){
this.name = name;
}
/**
* ID
*/
private void setProductId(Long productId){
this.productId = productId;
}
/**
*
*/
private void setProductImage(String productImage){
this.productImage = productImage;
}
/**
*
*/
private void setIntroduction(String introduction){
this.introduction = introduction;
}
/**
*
*/
private void setUnit(String unit){
this.unit = unit;
}
/**
*
*/
private void setImageList(String imageList){
this.imageList = imageList;
}
/**
*
*/
private void setEndTime(Date endTime){
this.endTime = endTime;
}
/**
*
*/
private void setSort(Integer sort){
this.sort = sort;
}
/**
*
*/
private void setContent(String content){
this.content = content;
}
/**
*
*/
private void setStatus(String status){
this.status = status;
}
/**
*
*/
private void setStrategyType(String strategyType){
this.strategyType = strategyType;
}
/**
* ID
*/
private void setStrategyId(Long strategyId){
this.strategyId = strategyId;
}
/**
*
*/
private void setRemark(String remark){
this.remark = remark;
}
/**
*
*/
private void setCreateBy(String createBy){
this.createBy = createBy;
}
/**
*
*/
private void setCreateTime(Date createTime){
this.createTime = createTime;
}
/**
*
*/
private void setUpdateBy(String updateBy){
this.updateBy = updateBy;
}
/**
*
*/
private void setUpdateTime(Date updateTime){
this.updateTime = updateTime;
}
/**
*
*/
private Integer getId(){
return this.id;
}
/**
*
*/
private String getName(){
return this.name;
}
/**
* ID
*/
private Long getProductId(){
return this.productId;
}
/**
*
*/
private String getProductImage(){
return this.productImage;
}
/**
*
*/
private String getIntroduction(){
return this.introduction;
}
/**
*
*/
private String getUnit(){
return this.unit;
}
/**
*
*/
private String getImageList(){
return this.imageList;
}
/**
*
*/
private Date getEndTime(){
return this.endTime;
}
/**
*
*/
private Integer getSort(){
return this.sort;
}
/**
*
*/
private String getContent(){
return this.content;
}
/**
*
*/
private String getStatus(){
return this.status;
}
/**
*
*/
private String getStrategyType(){
return this.strategyType;
}
/**
* ID
*/
private Long getStrategyId(){
return this.strategyId;
}
/**
*
*/
private String getRemark(){
return this.remark;
}
/**
*
*/
private String getCreateBy(){
return this.createBy;
}
/**
*
*/
private Date getCreateTime(){
return this.createTime;
}
/**
*
*/
private String getUpdateBy(){
return this.updateBy;
}
/**
*
*/
private Date getUpdateTime(){
return this.updateTime;
}
}

View File

@ -0,0 +1,379 @@
package com.muyu.marketing.domain;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
/**
*
* @TableName activity_team_open_info
*/
public class ActivityTeamOpenInfo implements Serializable {
/**
*
*/
@NotNull(message="[主键]不能为空")
@ApiModelProperty("主键")
private Integer id;
/**
* ID
*/
@NotNull(message="[团购活动ID]不能为空")
@ApiModelProperty("团购活动ID")
private Long teamId;
/**
*
*/
@NotBlank(message="[团购类型]不能为空")
@Size(max= 255,message="编码长度不能超过255")
@ApiModelProperty("团购类型")
@Length(max= 255,message="编码长度不能超过255")
private String teamType;
/**
*
*/
@NotBlank(message="[团购策略]不能为空")
@Size(max= 255,message="编码长度不能超过255")
@ApiModelProperty("团购策略")
@Length(max= 255,message="编码长度不能超过255")
private String teamStrategyId;
/**
*
*/
@NotBlank(message="[参团类型]不能为空")
@Size(max= 32,message="编码长度不能超过32")
@ApiModelProperty("参团类型")
@Length(max= 32,message="编码长度不能超过32")
private String executiveType;
/**
*
*/
@NotNull(message="[结束团购时间]不能为空")
@ApiModelProperty("结束团购时间")
private Date endTime;
/**
* ID
*/
@NotBlank(message="[商品ID]不能为空")
@Size(max= 255,message="编码长度不能超过255")
@ApiModelProperty("商品ID")
@Length(max= 255,message="编码长度不能超过255")
private String productId;
/**
*
*/
@NotBlank(message="[商品名称]不能为空")
@Size(max= 255,message="编码长度不能超过255")
@ApiModelProperty("商品名称")
@Length(max= 255,message="编码长度不能超过255")
private String productName;
/**
*
*/
@NotBlank(message="[商品规格]不能为空")
@Size(max= 255,message="编码长度不能超过255")
@ApiModelProperty("商品规格")
@Length(max= 255,message="编码长度不能超过255")
private String productSku;
/**
*
*/
@NotBlank(message="[开团标识]不能为空")
@Size(max= 255,message="编码长度不能超过255")
@ApiModelProperty("开团标识")
@Length(max= 255,message="编码长度不能超过255")
private String key;
/**
* ID
*/
@Size(max= 255,message="编码长度不能超过255")
@ApiModelProperty("订单ID")
@Length(max= 255,message="编码长度不能超过255")
private String orderId;
/**
*
*/
@NotBlank(message="[开团状态]不能为空")
@Size(max= 255,message="编码长度不能超过255")
@ApiModelProperty("开团状态")
@Length(max= 255,message="编码长度不能超过255")
private String status;
/**
*
*/
@Size(max= 32,message="编码长度不能超过32")
@ApiModelProperty("创建人")
@Length(max= 32,message="编码长度不能超过32")
private String createBy;
/**
*
*/
@ApiModelProperty("创建时间")
private Date createTime;
/**
*
*/
@Size(max= 32,message="编码长度不能超过32")
@ApiModelProperty("修改人")
@Length(max= 32,message="编码长度不能超过32")
private String updateBy;
/**
*
*/
@ApiModelProperty("修改时间")
private Date updateTime;
/**
*
*/
@Size(max= 900,message="编码长度不能超过900")
@ApiModelProperty("备注")
@Length(max= 900,message="编码长度不能超过900")
private String remark;
/**
*
*/
private void setId(Integer id){
this.id = id;
}
/**
* ID
*/
private void setTeamId(Long teamId){
this.teamId = teamId;
}
/**
*
*/
private void setTeamType(String teamType){
this.teamType = teamType;
}
/**
*
*/
private void setTeamStrategyId(String teamStrategyId){
this.teamStrategyId = teamStrategyId;
}
/**
*
*/
private void setExecutiveType(String executiveType){
this.executiveType = executiveType;
}
/**
*
*/
private void setEndTime(Date endTime){
this.endTime = endTime;
}
/**
* ID
*/
private void setProductId(String productId){
this.productId = productId;
}
/**
*
*/
private void setProductName(String productName){
this.productName = productName;
}
/**
*
*/
private void setProductSku(String productSku){
this.productSku = productSku;
}
/**
*
*/
private void setKey(String key){
this.key = key;
}
/**
* ID
*/
private void setOrderId(String orderId){
this.orderId = orderId;
}
/**
*
*/
private void setStatus(String status){
this.status = status;
}
/**
*
*/
private void setCreateBy(String createBy){
this.createBy = createBy;
}
/**
*
*/
private void setCreateTime(Date createTime){
this.createTime = createTime;
}
/**
*
*/
private void setUpdateBy(String updateBy){
this.updateBy = updateBy;
}
/**
*
*/
private void setUpdateTime(Date updateTime){
this.updateTime = updateTime;
}
/**
*
*/
private void setRemark(String remark){
this.remark = remark;
}
/**
*
*/
private Integer getId(){
return this.id;
}
/**
* ID
*/
private Long getTeamId(){
return this.teamId;
}
/**
*
*/
private String getTeamType(){
return this.teamType;
}
/**
*
*/
private String getTeamStrategyId(){
return this.teamStrategyId;
}
/**
*
*/
private String getExecutiveType(){
return this.executiveType;
}
/**
*
*/
private Date getEndTime(){
return this.endTime;
}
/**
* ID
*/
private String getProductId(){
return this.productId;
}
/**
*
*/
private String getProductName(){
return this.productName;
}
/**
*
*/
private String getProductSku(){
return this.productSku;
}
/**
*
*/
private String getKey(){
return this.key;
}
/**
* ID
*/
private String getOrderId(){
return this.orderId;
}
/**
*
*/
private String getStatus(){
return this.status;
}
/**
*
*/
private String getCreateBy(){
return this.createBy;
}
/**
*
*/
private Date getCreateTime(){
return this.createTime;
}
/**
*
*/
private String getUpdateBy(){
return this.updateBy;
}
/**
*
*/
private Date getUpdateTime(){
return this.updateTime;
}
/**
*
*/
private String getRemark(){
return this.remark;
}
}

View File

@ -0,0 +1,246 @@
package com.muyu.marketing.domain;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
/**
*
* @TableName activity_team_product_sku_info
*/
public class ActivityTeamProductSkuInfo implements Serializable {
/**
*
*/
@NotNull(message="[主键]不能为空")
@ApiModelProperty("主键")
private Integer id;
/**
* ID
*/
@NotNull(message="[活动ID]不能为空")
@ApiModelProperty("活动ID")
private Long teamId;
/**
* ID
*/
@Size(max= 255,message="编码长度不能超过255")
@ApiModelProperty("商品ID")
@Length(max= 255,message="编码长度不能超过255")
private String productId;
/**
* SKU
*/
@Size(max= 255,message="编码长度不能超过255")
@ApiModelProperty("商品SKU")
@Length(max= 255,message="编码长度不能超过255")
private String productSku;
/**
*
*/
@Size(max= 255,message="编码长度不能超过255")
@ApiModelProperty("拼团库存")
@Length(max= 255,message="编码长度不能超过255")
private String teamStock;
/**
*
*/
@Size(max= 255,message="编码长度不能超过255")
@ApiModelProperty("拼团价格")
@Length(max= 255,message="编码长度不能超过255")
private String teamPrice;
/**
*
*/
@Size(max= 32,message="编码长度不能超过32")
@ApiModelProperty("创建人")
@Length(max= 32,message="编码长度不能超过32")
private String createBy;
/**
*
*/
@ApiModelProperty("创建时间")
private Date createTime;
/**
*
*/
@Size(max= 32,message="编码长度不能超过32")
@ApiModelProperty("修改人")
@Length(max= 32,message="编码长度不能超过32")
private String updateBy;
/**
*
*/
@ApiModelProperty("修改时间")
private Date updateTime;
/**
*
*/
@Size(max= 900,message="编码长度不能超过900")
@ApiModelProperty("备注")
@Length(max= 900,message="编码长度不能超过900")
private String remark;
/**
*
*/
private void setId(Integer id){
this.id = id;
}
/**
* ID
*/
private void setTeamId(Long teamId){
this.teamId = teamId;
}
/**
* ID
*/
private void setProductId(String productId){
this.productId = productId;
}
/**
* SKU
*/
private void setProductSku(String productSku){
this.productSku = productSku;
}
/**
*
*/
private void setTeamStock(String teamStock){
this.teamStock = teamStock;
}
/**
*
*/
private void setTeamPrice(String teamPrice){
this.teamPrice = teamPrice;
}
/**
*
*/
private void setCreateBy(String createBy){
this.createBy = createBy;
}
/**
*
*/
private void setCreateTime(Date createTime){
this.createTime = createTime;
}
/**
*
*/
private void setUpdateBy(String updateBy){
this.updateBy = updateBy;
}
/**
*
*/
private void setUpdateTime(Date updateTime){
this.updateTime = updateTime;
}
/**
*
*/
private void setRemark(String remark){
this.remark = remark;
}
/**
*
*/
private Integer getId(){
return this.id;
}
/**
* ID
*/
private Long getTeamId(){
return this.teamId;
}
/**
* ID
*/
private String getProductId(){
return this.productId;
}
/**
* SKU
*/
private String getProductSku(){
return this.productSku;
}
/**
*
*/
private String getTeamStock(){
return this.teamStock;
}
/**
*
*/
private String getTeamPrice(){
return this.teamPrice;
}
/**
*
*/
private String getCreateBy(){
return this.createBy;
}
/**
*
*/
private Date getCreateTime(){
return this.createTime;
}
/**
*
*/
private String getUpdateBy(){
return this.updateBy;
}
/**
*
*/
private Date getUpdateTime(){
return this.updateTime;
}
/**
*
*/
private String getRemark(){
return this.remark;
}
}

View File

@ -0,0 +1,307 @@
package com.muyu.marketing.domain;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
/**
*
* @TableName team_strategy_exemption
*/
public class TeamStrategyExemption implements Serializable {
/**
*
*/
@NotNull(message="[主键]不能为空")
@ApiModelProperty("主键")
private Integer id;
/**
*
*/
@NotNull(message="[持续时间]不能为空")
@ApiModelProperty("持续时间")
private Integer duration;
/**
*
*/
@NotNull(message="[免单人数]不能为空")
@ApiModelProperty("免单人数")
private Integer exemptionNumber;
/**
*
*/
@NotNull(message="[最大购买量]不能为空")
@ApiModelProperty("最大购买量")
private Integer maxBuy;
/**
*
*/
@NotNull(message="[单次购买量]不能为空")
@ApiModelProperty("单次购买量")
private Integer oneBuy;
/**
*
*/
@NotNull(message="[虚拟人数]不能为空")
@ApiModelProperty("虚拟人数")
private Integer virtualNumber;
/**
*
*/
@NotBlank(message="[面单类型]不能为空")
@Size(max= 32,message="编码长度不能超过32")
@ApiModelProperty("面单类型")
@Length(max= 32,message="编码长度不能超过32")
private String type;
/**
*
*/
@Size(max= -1,message="编码长度不能超过-1")
@ApiModelProperty("返款阶梯")
@Length(max= -1,message="编码长度不能超过-1")
private String ruleInfo;
/**
*
*/
@NotBlank(message="[策略状态]不能为空")
@Size(max= 32,message="编码长度不能超过32")
@ApiModelProperty("策略状态")
@Length(max= 32,message="编码长度不能超过32")
private String status;
/**
*
*/
@Size(max= 32,message="编码长度不能超过32")
@ApiModelProperty("创建人")
@Length(max= 32,message="编码长度不能超过32")
private String createBy;
/**
*
*/
@ApiModelProperty("创建时间")
private Date createTime;
/**
*
*/
@Size(max= 32,message="编码长度不能超过32")
@ApiModelProperty("修改人")
@Length(max= 32,message="编码长度不能超过32")
private String updateBy;
/**
*
*/
@ApiModelProperty("修改时间")
private Date updateTime;
/**
*
*/
@Size(max= 900,message="编码长度不能超过900")
@ApiModelProperty("备注")
@Length(max= 900,message="编码长度不能超过900")
private String remark;
/**
*
*/
private void setId(Integer id){
this.id = id;
}
/**
*
*/
private void setDuration(Integer duration){
this.duration = duration;
}
/**
*
*/
private void setExemptionNumber(Integer exemptionNumber){
this.exemptionNumber = exemptionNumber;
}
/**
*
*/
private void setMaxBuy(Integer maxBuy){
this.maxBuy = maxBuy;
}
/**
*
*/
private void setOneBuy(Integer oneBuy){
this.oneBuy = oneBuy;
}
/**
*
*/
private void setVirtualNumber(Integer virtualNumber){
this.virtualNumber = virtualNumber;
}
/**
*
*/
private void setType(String type){
this.type = type;
}
/**
*
*/
private void setRuleInfo(String ruleInfo){
this.ruleInfo = ruleInfo;
}
/**
*
*/
private void setStatus(String status){
this.status = status;
}
/**
*
*/
private void setCreateBy(String createBy){
this.createBy = createBy;
}
/**
*
*/
private void setCreateTime(Date createTime){
this.createTime = createTime;
}
/**
*
*/
private void setUpdateBy(String updateBy){
this.updateBy = updateBy;
}
/**
*
*/
private void setUpdateTime(Date updateTime){
this.updateTime = updateTime;
}
/**
*
*/
private void setRemark(String remark){
this.remark = remark;
}
/**
*
*/
private Integer getId(){
return this.id;
}
/**
*
*/
private Integer getDuration(){
return this.duration;
}
/**
*
*/
private Integer getExemptionNumber(){
return this.exemptionNumber;
}
/**
*
*/
private Integer getMaxBuy(){
return this.maxBuy;
}
/**
*
*/
private Integer getOneBuy(){
return this.oneBuy;
}
/**
*
*/
private Integer getVirtualNumber(){
return this.virtualNumber;
}
/**
*
*/
private String getType(){
return this.type;
}
/**
*
*/
private String getRuleInfo(){
return this.ruleInfo;
}
/**
*
*/
private String getStatus(){
return this.status;
}
/**
*
*/
private String getCreateBy(){
return this.createBy;
}
/**
*
*/
private Date getCreateTime(){
return this.createTime;
}
/**
*
*/
private String getUpdateBy(){
return this.updateBy;
}
/**
*
*/
private Date getUpdateTime(){
return this.updateTime;
}
/**
*
*/
private String getRemark(){
return this.remark;
}
}

View File

@ -0,0 +1,266 @@
package com.muyu.marketing.domain;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
/**
*
* @TableName team_strategy_exemption_hundred
*/
public class TeamStrategyExemptionHundred implements Serializable {
/**
*
*/
@NotNull(message="[主键]不能为空")
@ApiModelProperty("主键")
private Integer id;
/**
*
*/
@NotNull(message="[持续时间]不能为空")
@ApiModelProperty("持续时间")
private Integer duration;
/**
*
*/
@NotNull(message="[最大购买量]不能为空")
@ApiModelProperty("最大购买量")
private Integer maxBuy;
/**
*
*/
@NotNull(message="[单次购买量]不能为空")
@ApiModelProperty("单次购买量")
private Integer oneBuy;
/**
*
*/
@NotNull(message="[虚拟人数]不能为空")
@ApiModelProperty("虚拟人数")
private Integer virtualNumber;
/**
*
*/
@NotBlank(message="[策略状态]不能为空")
@Size(max= 32,message="编码长度不能超过32")
@ApiModelProperty("策略状态")
@Length(max= 32,message="编码长度不能超过32")
private String status;
/**
*
*/
@NotBlank(message="[规则信息]不能为空")
@Size(max= -1,message="编码长度不能超过-1")
@ApiModelProperty("规则信息")
@Length(max= -1,message="编码长度不能超过-1")
private String ruleInfo;
/**
*
*/
@Size(max= 32,message="编码长度不能超过32")
@ApiModelProperty("创建人")
@Length(max= 32,message="编码长度不能超过32")
private String createBy;
/**
*
*/
@ApiModelProperty("创建时间")
private Date createTime;
/**
*
*/
@Size(max= 32,message="编码长度不能超过32")
@ApiModelProperty("修改人")
@Length(max= 32,message="编码长度不能超过32")
private String updateBy;
/**
*
*/
@ApiModelProperty("修改时间")
private Date updateTime;
/**
*
*/
@Size(max= 900,message="编码长度不能超过900")
@ApiModelProperty("备注")
@Length(max= 900,message="编码长度不能超过900")
private String remark;
/**
*
*/
private void setId(Integer id){
this.id = id;
}
/**
*
*/
private void setDuration(Integer duration){
this.duration = duration;
}
/**
*
*/
private void setMaxBuy(Integer maxBuy){
this.maxBuy = maxBuy;
}
/**
*
*/
private void setOneBuy(Integer oneBuy){
this.oneBuy = oneBuy;
}
/**
*
*/
private void setVirtualNumber(Integer virtualNumber){
this.virtualNumber = virtualNumber;
}
/**
*
*/
private void setStatus(String status){
this.status = status;
}
/**
*
*/
private void setRuleInfo(String ruleInfo){
this.ruleInfo = ruleInfo;
}
/**
*
*/
private void setCreateBy(String createBy){
this.createBy = createBy;
}
/**
*
*/
private void setCreateTime(Date createTime){
this.createTime = createTime;
}
/**
*
*/
private void setUpdateBy(String updateBy){
this.updateBy = updateBy;
}
/**
*
*/
private void setUpdateTime(Date updateTime){
this.updateTime = updateTime;
}
/**
*
*/
private void setRemark(String remark){
this.remark = remark;
}
/**
*
*/
private Integer getId(){
return this.id;
}
/**
*
*/
private Integer getDuration(){
return this.duration;
}
/**
*
*/
private Integer getMaxBuy(){
return this.maxBuy;
}
/**
*
*/
private Integer getOneBuy(){
return this.oneBuy;
}
/**
*
*/
private Integer getVirtualNumber(){
return this.virtualNumber;
}
/**
*
*/
private String getStatus(){
return this.status;
}
/**
*
*/
private String getRuleInfo(){
return this.ruleInfo;
}
/**
*
*/
private String getCreateBy(){
return this.createBy;
}
/**
*
*/
private Date getCreateTime(){
return this.createTime;
}
/**
*
*/
private String getUpdateBy(){
return this.updateBy;
}
/**
*
*/
private Date getUpdateTime(){
return this.updateTime;
}
/**
*
*/
private String getRemark(){
return this.remark;
}
}

View File

@ -0,0 +1,264 @@
package com.muyu.marketing.domain;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
/**
*
* @TableName team_strategy_exemption_ordinary
*/
public class TeamStrategyExemptionOrdinary implements Serializable {
/**
*
*/
@NotNull(message="[主键]不能为空")
@ApiModelProperty("主键")
private Integer id;
/**
*
*/
@NotNull(message="[持续时间]不能为空")
@ApiModelProperty("持续时间")
private Integer duration;
/**
*
*/
@NotNull(message="[成团人数]不能为空")
@ApiModelProperty("成团人数")
private Integer teamNumber;
/**
*
*/
@NotNull(message="[最大购买量]不能为空")
@ApiModelProperty("最大购买量")
private Integer maxBuy;
/**
*
*/
@NotNull(message="[单次购买量]不能为空")
@ApiModelProperty("单次购买量")
private Integer oneBuy;
/**
*
*/
@NotNull(message="[虚拟人数]不能为空")
@ApiModelProperty("虚拟人数")
private Integer virtualNumber;
/**
*
*/
@NotBlank(message="[策略状态]不能为空")
@Size(max= 32,message="编码长度不能超过32")
@ApiModelProperty("策略状态")
@Length(max= 32,message="编码长度不能超过32")
private String status;
/**
*
*/
@Size(max= 32,message="编码长度不能超过32")
@ApiModelProperty("创建人")
@Length(max= 32,message="编码长度不能超过32")
private String createBy;
/**
*
*/
@ApiModelProperty("创建时间")
private Date createTime;
/**
*
*/
@Size(max= 32,message="编码长度不能超过32")
@ApiModelProperty("修改人")
@Length(max= 32,message="编码长度不能超过32")
private String updateBy;
/**
*
*/
@ApiModelProperty("修改时间")
private Date updateTime;
/**
*
*/
@Size(max= 900,message="编码长度不能超过900")
@ApiModelProperty("备注")
@Length(max= 900,message="编码长度不能超过900")
private String remark;
/**
*
*/
private void setId(Integer id){
this.id = id;
}
/**
*
*/
private void setDuration(Integer duration){
this.duration = duration;
}
/**
*
*/
private void setTeamNumber(Integer teamNumber){
this.teamNumber = teamNumber;
}
/**
*
*/
private void setMaxBuy(Integer maxBuy){
this.maxBuy = maxBuy;
}
/**
*
*/
private void setOneBuy(Integer oneBuy){
this.oneBuy = oneBuy;
}
/**
*
*/
private void setVirtualNumber(Integer virtualNumber){
this.virtualNumber = virtualNumber;
}
/**
*
*/
private void setStatus(String status){
this.status = status;
}
/**
*
*/
private void setCreateBy(String createBy){
this.createBy = createBy;
}
/**
*
*/
private void setCreateTime(Date createTime){
this.createTime = createTime;
}
/**
*
*/
private void setUpdateBy(String updateBy){
this.updateBy = updateBy;
}
/**
*
*/
private void setUpdateTime(Date updateTime){
this.updateTime = updateTime;
}
/**
*
*/
private void setRemark(String remark){
this.remark = remark;
}
/**
*
*/
private Integer getId(){
return this.id;
}
/**
*
*/
private Integer getDuration(){
return this.duration;
}
/**
*
*/
private Integer getTeamNumber(){
return this.teamNumber;
}
/**
*
*/
private Integer getMaxBuy(){
return this.maxBuy;
}
/**
*
*/
private Integer getOneBuy(){
return this.oneBuy;
}
/**
*
*/
private Integer getVirtualNumber(){
return this.virtualNumber;
}
/**
*
*/
private String getStatus(){
return this.status;
}
/**
*
*/
private String getCreateBy(){
return this.createBy;
}
/**
*
*/
private Date getCreateTime(){
return this.createTime;
}
/**
*
*/
private String getUpdateBy(){
return this.updateBy;
}
/**
*
*/
private Date getUpdateTime(){
return this.updateTime;
}
/**
*
*/
private String getRemark(){
return this.remark;
}
}

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.muyu</groupId>
<artifactId>muyu-marketing</artifactId>
<version>3.6.3</version>
</parent>
<artifactId>marketing-remote</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.muyu</groupId>
<artifactId>marketing-common</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,7 @@
package com.muyu;
public class Main {
public static void main(String[] args) {
System.out.println("Hello world!");
}
}

View File

@ -0,0 +1,127 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.muyu</groupId>
<artifactId>muyu-marketing</artifactId>
<version>3.6.3</version>
</parent>
<artifactId>marketing-server</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<description>
marketing-server营销模块
</description>
<dependencies>
<!-- SpringCloud Alibaba Nacos -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!-- SpringCloud Alibaba Nacos Config -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<!-- SpringCloud Alibaba Sentinel -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>
<!-- SpringBoot Actuator -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- Swagger UI -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>${swagger.fox.version}</version>
</dependency>
<!-- Mysql Connector -->
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
</dependency>
<!-- MuYu Common DataSource -->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>muyu-common-datasource</artifactId>
</dependency>
<!-- MuYu Common DataScope -->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>muyu-common-datascope</artifactId>
</dependency>
<!-- MuYu Common Log -->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>muyu-common-log</artifactId>
</dependency>
<!-- MuYu Common Swagger -->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>muyu-common-swagger</artifactId>
</dependency>
<dependency>
<groupId>com.dtflys.forest</groupId>
<artifactId>forest-spring-boot-starter</artifactId>
</dependency>
<!--远程调用 -->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>marketing-remote</artifactId>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- 加入maven deploy插件当在deploy时忽略些model-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,18 @@
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.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@EnableCustomConfig
@EnableCustomSwagger2
@EnableMyFeignClients
@SpringBootApplication
public class MuYuMarketIngApplication {
public static void main (String[] args) {
SpringApplication.run(MuYuMarketIngApplication.class, args);
}
}

View File

@ -0,0 +1,2 @@
Spring Boot Version: ${spring-boot.version}
Spring Application Name: ${spring.application.name}

View File

@ -0,0 +1,28 @@
# Tomcat
server:
port: 9203
# Spring
spring:
application:
# 应用名称
name: muyu-marketing
profiles:
# 环境配置
active: dev
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: 122.51.134.139:8848
config:
# 配置中心地址
server-addr: 122.51.134.139:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
logging:
level:
com.muyu.marketing.mapper: DEBUG

View File

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="60 seconds" debug="false">
<!-- 日志存放路径 -->
<property name="log.path" value="logs/muyu-system"/>
<!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n"/>
<!-- 控制台输出 -->
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<!-- 系统日志输出 -->
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/info.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/info.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>INFO</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/error.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/error.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>ERROR</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!-- 系统模块日志级别控制 -->
<logger name="com.muyu" level="info"/>
<!-- Spring日志级别控制 -->
<logger name="org.springframework" level="warn"/>
<root level="info">
<appender-ref ref="console"/>
</root>
<!--系统操作日志-->
<root level="info">
<appender-ref ref="file_info"/>
<appender-ref ref="file_error"/>
</root>
</configuration>

View File

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.muyu</groupId>
<artifactId>muyu-modules</artifactId>
<version>3.6.3</version>
</parent>
<packaging>pom</packaging>
<modules>
<module>marketing-common</module>
<module>marketing-remote</module>
<module>marketing-server</module>
</modules>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<artifactId>muyu-marketing</artifactId>
<description>
muyu-marketing营销模块
</description>
</project>

View File

@ -0,0 +1,67 @@
package com.muyu.product.domain.resp;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ProjectInfoListResp {
/** 主键 */
private Long id;
/** 商品名称 */
private String name;
/** 商品描述 */
private String introduction;
/** 主类型 */
private Long mianType;
/** 父类型 */
private Long parentType;
/** 商品类型 */
private Long type;
/** 商品图片 */
private String image;
/** 商品轮播图 */
private String carouselImages;
/** 商品状态 */
private String status;
/** 规格 */
private Long ruleId;
/** 品牌 */
private Long brandId;
/**
*
*/
public String mianTypeName;
/**
*
*/
public String parentTypeName;
/**
*
*/
public String typeName;
/**
*
*/
public String ruleName;
/**
*
*/
public String brandName;
}

View File

@ -107,9 +107,9 @@ public class CategoryInfoController extends BaseController {
@ApiOperation("新增品类信息")
public Result<String> add(@RequestBody CategoryInfoSaveReq categoryInfoSaveReq) {
return toAjax(categoryInfoService.save(
CategoryInfoSaveModel.saveBuild(categoryInfoSaveReq, SecurityUtils::getUsername)
CategoryInfoSaveModel.saveBuild(categoryInfoSaveReq, SecurityUtils::getUsername)
));
}
}
/**
*

View File

@ -5,6 +5,7 @@ import javax.servlet.http.HttpServletResponse;
import com.muyu.product.cache.ProjectInfoCache;
import com.muyu.product.domain.resp.ProjectDetailResp;
import com.muyu.product.domain.resp.ProjectInfoListResp;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@ -50,12 +51,11 @@ public class ProjectInfoController extends BaseController {
@ApiOperation("获取商品信息列表")
@RequiresPermissions("product:info:list")
@GetMapping("/list")
public Result<TableDataInfo<ProjectInfo>> list(ProjectInfoQueryReq projectInfoQueryReq) {
public Result<TableDataInfo<ProjectInfoListResp>> list(ProjectInfoQueryReq projectInfoQueryReq) {
startPage();
List<ProjectInfo> list = projectInfoService.list(ProjectInfo.queryBuild(projectInfoQueryReq));
List<ProjectInfoListResp> list = projectInfoService.ProjectInfo(ProjectInfo.queryBuild(projectInfoQueryReq));
return getDataTable(list);
}
/**
*
*/
@ -110,8 +110,9 @@ public class ProjectInfoController extends BaseController {
@Log(title = "商品信息", businessType = BusinessType.INSERT)
@PostMapping
@ApiOperation("新增商品信息")
public Result<String> add(@RequestBody ProjectInfoSaveReq projectInfoSaveReq) {
return toAjax(projectInfoService.save(projectInfoSaveReq));
public Result add(@RequestBody ProjectInfoSaveReq projectInfoSaveReq) {
Result save = projectInfoService.save(projectInfoSaveReq);
return save;
}
/**
@ -121,10 +122,9 @@ public class ProjectInfoController extends BaseController {
@Log(title = "商品信息", businessType = BusinessType.UPDATE)
@PutMapping("/{id}")
@ApiOperation("修改商品信息")
public Result<String> edit(@PathVariable Long id, @RequestBody ProjectInfoEditReq projectInfoEditReq) {
return toAjax(projectInfoService.updateById(ProjectInfo.editBuild(id,projectInfoEditReq)));
public Result edit(@PathVariable Long id, @RequestBody ProjectInfoEditReq projectInfoEditReq) {
return (projectInfoService.upDateById(id,projectInfoEditReq));
}
/**
*
*/

View File

@ -1,10 +1,14 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.common.core.domain.Result;
import com.muyu.product.domain.ProjectInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.product.domain.req.ProjectInfoEditReq;
import com.muyu.product.domain.req.ProjectInfoSaveReq;
import com.muyu.product.domain.resp.ProjectDetailResp;
import com.muyu.product.domain.resp.ProjectInfoListResp;
/**
* Service
@ -21,12 +25,18 @@ public interface ProjectInfoService extends IService<ProjectInfo> {
*/
public List<ProjectInfo> list(ProjectInfo projectInfo);
public List<ProjectInfoListResp> ProjectInfo(ProjectInfo projectInfo);
/**
*
* @param projectInfoSaveReq
* @return
*/
boolean save (ProjectInfoSaveReq projectInfoSaveReq);
public Result save (ProjectInfoSaveReq projectInfoSaveReq);
public Result upDateById(Long id, ProjectInfoEditReq projectInfoEditReq);
/**
* ID

View File

@ -2,15 +2,20 @@ package com.muyu.product.service.impl;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.ObjUtils;
import com.muyu.common.security.utils.SecurityUtils;
import com.muyu.product.domain.*;
import com.muyu.product.domain.model.*;
import com.muyu.product.domain.req.ProjectInfoEditReq;
import com.muyu.product.domain.req.ProjectInfoSaveReq;
import com.muyu.product.domain.resp.CategoryCommonElementResp;
import com.muyu.product.domain.resp.ProjectDetailResp;
import com.muyu.product.domain.resp.ProjectInfoListResp;
import com.muyu.product.mapper.RuleInfoMapper;
import com.muyu.product.service.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
@ -48,6 +53,10 @@ public class ProjectInfoServiceImpl extends ServiceImpl<ProjectInfoMapper, Proje
@Autowired
private AttributeInfoService attributeInfoService;
@Autowired
private RuleInfoMapper ruleInfoMapper;
/**
*
*
@ -106,6 +115,57 @@ public class ProjectInfoServiceImpl extends ServiceImpl<ProjectInfoMapper, Proje
return list(queryWrapper);
}
public List<ProjectInfoListResp> ProjectInfo(ProjectInfo projectInfo) {
List<ProjectInfo> list = list(projectInfo);
List<ProjectInfoListResp> projectInfoListResps = new LinkedList<>();
list.forEach(p -> {
// 获取类别信息
CategoryInfo mianTypeName = categoryInfoService.getById(p.getMianType());
CategoryInfo parentTypeName = categoryInfoService.getById(p.getParentType());
CategoryInfo typeName = p.getType() != null ? categoryInfoService.getById(p.getType()) : null;
// 获取规则信息
RuleInfo ruleName = ruleInfoMapper.selectById(p.getRuleId());
// 获取品牌信息
BrandInfo brandName = brandInfoService.getById(p.getBrandId());
// 构建响应对象
ProjectInfoListResp resp = ProjectInfoListResp.builder()
.id(p.getId())
.name(p.getName())
.introduction(p.getIntroduction())
.mianType(p.getMianType())
.parentType(p.getParentType())
.type(p.getType())
.image(p.getImage())
.carouselImages(p.getCarouselImages())
.status(p.getStatus())
.mianTypeName(mianTypeName != null ? mianTypeName.getName() : "")
.parentTypeName(parentTypeName != null ? parentTypeName.getName() : "")
.typeName(typeName != null ? typeName.getName() : "")
.ruleName(ruleName != null ? ruleName.getName() : "")
.brandName(brandName != null ? brandName.getNam() : "")
.build();
// 添加到结果列表
projectInfoListResps.add(resp);
});
return projectInfoListResps;
}
private List<String> getStrings() {
List<ProjectInfo> projectInfos = this.list();
List<String> list = projectInfos.stream().map(ProjectInfo::getName).toList();
return list;
}
/**
*
*
@ -114,7 +174,13 @@ public class ProjectInfoServiceImpl extends ServiceImpl<ProjectInfoMapper, Proje
* @return
*/
@Override
public boolean save (ProjectInfoSaveReq projectInfoSaveReq) {
public Result save (ProjectInfoSaveReq projectInfoSaveReq) {
List<String> strings = getStrings();
if (strings.contains(projectInfoSaveReq.getProjectAddModel().getName())){
return Result.error("名称背占用");
}
ProjectAddModel projectAddModel = projectInfoSaveReq.getProjectAddModel();
ProjectInfo projectInfo = ProjectInfo.saveModelBuild(projectAddModel, SecurityUtils::getUsername);
boolean save = this.save(projectInfo);
@ -136,9 +202,19 @@ public class ProjectInfoServiceImpl extends ServiceImpl<ProjectInfoMapper, Proje
projectSkuInfoService.saveBatch(projectSkuInfoList);
}
}
return save;
return Result.success("成功");
}
@Override
public Result upDateById(Long id, ProjectInfoEditReq projectInfoEditReq) {
List<String> strings = getStrings();
if (strings.contains(projectInfoEditReq.getName())){
return Result.error("名称背占用");
}
this.upDateById(id,projectInfoEditReq);
return Result.success("成功");
}
/**
* ID
*

View File

@ -15,6 +15,7 @@
<module>muyu-file</module>
<module>muyu-product</module>
<module>muyu-shop-cart</module>
<module>muyu-marketing</module>
</modules>
<artifactId>muyu-modules</artifactId>

13
pom.xml
View File

@ -263,6 +263,19 @@
<version>${muyu.version}</version>
</dependency>
<!-- 营销服务 公共 模块-->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>marketing-common</artifactId>
<version>${muyu.version}</version>
</dependency>
<!-- 营销服务 远调 模块-->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>marketing-remote</artifactId>
<version>${muyu.version}</version>
</dependency>
</dependencies>
</dependencyManagement>