| | |
| | | import cn.lili.group.Add; |
| | | import cn.lili.base.AbsForm; |
| | | import cn.lili.modules.lmk.domain.entity.StoreCoupon; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import org.springframework.beans.BeanUtils; |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | |
| | | |
| | | @NotNull(message = "店铺名称不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("店铺名称") |
| | | private Long storeName; |
| | | private String storeName; |
| | | |
| | | @NotNull(message = "优惠卷id不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("优惠卷id") |
| | | private Long couponId; |
| | | private String couponId; |
| | | |
| | | @NotBlank(message = "优惠卷名称不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("优惠卷名称") |
| | | private String couponName; |
| | | |
| | | @NotBlank(message = "生成优惠卷数量不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("生成优惠卷数量") |
| | | private Integer couponNum; |
| | | |
| | | |
| | | |
| | | public static StoreCoupon getEntityByForm(@NonNull StoreCouponForm form, StoreCoupon entity) { |
| | | if(entity == null) { |
| | | entity = new StoreCoupon(); |