记得上下班打卡 | git大法好,push需谨慎

Commit 15c0fd5f authored by 张国柄's avatar 张国柄

~API:发放券+exclusively属性标识会员专属用于计算特定券有效期;

parent 115952b8
......@@ -79,6 +79,8 @@ public class CandyMgtCouponBuildParam {
@Pattern(regexp = LnsRegex.Valid.DATETIME_FULL, message = "发放时间格式有误")
@ApiModelProperty(required = true, value = "发放时间[yyyy-MM-dd HH:mm:ss](立即-当前时间|预约-点选时间)", example = "2021-08-26 00:00:00")
private String eventAt;
@ApiModelProperty(required = false, value = "专享标识[0-常规|1-会员专属]", allowableValues = "0,1")
private Integer exclusively;
//private String operator;
//private LocalDateTime createdAt;
//private LocalDateTime updatedAt;
......@@ -236,4 +238,12 @@ public class CandyMgtCouponBuildParam {
public void setEventAt(String eventAt) {
this.eventAt = eventAt;
}
public Integer getExclusively() {
return exclusively;
}
public void setExclusively(Integer exclusively) {
this.exclusively = exclusively;
}
}
......@@ -415,6 +415,7 @@ public class CandyMgtCouponAdminServiceImpl extends ServiceImpl<CandyMgtCouponMa
initMgtCoupon.setEventType(parameter.getEventType());
initMgtCoupon.setEventLimit(parameter.getEventLimit());
initMgtCoupon.setEventAt(eventAt);
initMgtCoupon.setExclusively(parameter.getExclusively());
initMgtCoupon.setOperator(initCoupon.getOperator());
initMgtCoupon.setCreatedAt(nowTime);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment