精简部分代码

This commit is contained in:
OPGame
2019-08-07 16:35:04 +08:00
parent 98edb80b6f
commit fe9078fb22
6 changed files with 0 additions and 333 deletions

View File

@@ -1,55 +0,0 @@
/*
* Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
*
* https://www.gz-yami.com/
*
* 未经允许,不可做商业用途!
*
* 版权所有,侵权必究!
*/
package com.yami.shop.bean.enums;
/**
* 优惠券适用商品类型
* @author LGH
*/
public enum CouponProdType {
/**
* 0全部商品参与
*/
ALL(0),
/**
* 1指定商品参与
*/
PROD_IN(1),
/**
* 2指定商品不参与
*/
PROD_NO_IN(2)
;
private Integer num;
public Integer value() {
return num;
}
CouponProdType(Integer num){
this.num = num;
}
public static CouponProdType instance(Integer value) {
CouponProdType[] enums = values();
for (CouponProdType statusEnum : enums) {
if (statusEnum.value().equals(value)) {
return statusEnum;
}
}
return null;
}
}

View File

@@ -1,55 +0,0 @@
/*
* Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
*
* https://www.gz-yami.com/
*
* 未经允许,不可做商业用途!
*
* 版权所有,侵权必究!
*/
package com.yami.shop.bean.enums;
/**
* 优惠券类型 1:代金券 2:折扣券 3:兑换券
* @author LGH
*/
public enum CouponType {
/**
* 代金券
*/
C2M(1),
/**
* 折扣券
*/
C2D(2),
/**
* 兑换券
*/
C2P(3)
;
private Integer num;
public Integer value() {
return num;
}
CouponType(Integer num){
this.num = num;
}
public static CouponType instance(Integer value) {
CouponType[] enums = values();
for (CouponType statusEnum : enums) {
if (statusEnum.value().equals(value)) {
return statusEnum;
}
}
return null;
}
}

View File

@@ -1,60 +0,0 @@
/*
* Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
*
* https://www.gz-yami.com/
*
* 未经允许,不可做商业用途!
*
* 版权所有,侵权必究!
*/
package com.yami.shop.bean.enums;
/**
* 满减规则
*
*/
public enum DiscountRule {
/**
* 满钱减钱
* M money
*/
M2M(0),
/**
* 满件减钱
* P piece
*/
P2M(1),
/**
* 满钱打折
* Discount
*/
M2D(2),
/**
* 满件打折
* Discount
*/
P2D(3)
;
private Integer num;
public Integer value() {
return num;
}
DiscountRule(Integer num){
this.num = num;
}
public static DiscountRule instance(Integer value) {
DiscountRule[] enums = values();
for (DiscountRule statusEnum : enums) {
if (statusEnum.value().equals(value)) {
return statusEnum;
}
}
return null;
}
}

View File

@@ -1,50 +0,0 @@
/*
* Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
*
* https://www.gz-yami.com/
*
* 未经允许,不可做商业用途!
*
* 版权所有,侵权必究!
*/
package com.yami.shop.bean.enums;
/**
* 满减规则
*
*/
public enum DiscountType {
/**
* 按满足最高层级减一次
* M money
*/
MAX(0),
/**
* 每满一次减一次
*/
TRIGGER(1)
;
private Integer num;
public Integer value() {
return num;
}
DiscountType(Integer num){
this.num = num;
}
public static DiscountType instance(Integer value) {
DiscountType[] enums = values();
for (DiscountType statusEnum : enums) {
if (statusEnum.value().equals(value)) {
return statusEnum;
}
}
return null;
}
}

View File

@@ -1,21 +0,0 @@
/*
* Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
*
* https://www.gz-yami.com/
*
* 未经允许,不可做商业用途!
*
* 版权所有,侵权必究!
*/
package com.yami.shop.bean.enums;
/**
* 邀请码内容
*/
public enum DistributionUserLinkContent {
}

View File

@@ -1,92 +0,0 @@
/*
* Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
*
* https://www.gz-yami.com/
*
* 未经允许,不可做商业用途!
*
* 版权所有,侵权必究!
*/
package com.yami.shop.bean.param;
public class GroupProdParam {
/**
* 商品名称
*/
private String prodName;
/**
* 商品最小金额区间
*/
private Double minMoney;
/**
* 商品最大金额区间
*/
private Double maxMoney;
/**
* 商品分类Id
*/
private Long categoryId;
/**
* 活动group_activity_id
*/
private Long groupActivityId;
/**
* 商品店铺Id
*/
private Long shopId;
public String getProdName() {
return prodName;
}
public void setProdName(String prodName) {
this.prodName = prodName;
}
public Double getMinMoney() {
return minMoney;
}
public void setMinMoney(Double minMoney) {
this.minMoney = minMoney;
}
public Double getMaxMoney() {
return maxMoney;
}
public void setMaxMoney(Double maxMoney) {
this.maxMoney = maxMoney;
}
public Long getCategoryId() {
return categoryId;
}
public void setCategoryId(Long categoryId) {
this.categoryId = categoryId;
}
public Long getShopId() {
return shopId;
}
public void setShopId(Long shopId) {
this.shopId = shopId;
}
public Long getGroupActivityId() {
return groupActivityId;
}
public void setGroupActivityId(Long groupActivityId) {
this.groupActivityId = groupActivityId;
}
}