-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
1,337 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
shoppingmall_common/src/main/java/com/bill/common/constant/ProductConstant.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.bill.common.constant; | ||
|
||
import lombok.Data; | ||
|
||
public class ProductConstant { | ||
|
||
|
||
public enum AttrEnum{ | ||
ATTR_TYPE_BASE(1,"基本屬性"),ATTR_TYPE_SALE(0,"銷售屬性"); | ||
private int code; | ||
private String msg; | ||
|
||
AttrEnum(int code,String msg){ | ||
this.code = code; | ||
this.msg = msg; | ||
} | ||
|
||
public int getCode() { | ||
return code; | ||
} | ||
|
||
public String getMsg() { | ||
return msg; | ||
} | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
shoppingmall_common/src/main/java/com/bill/common/constant/WareConstant.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package com.bill.common.constant; | ||
|
||
public class WareConstant { | ||
|
||
public enum PurchaseStatusEnum{ | ||
CREATED(0,"新建"),ASSIGNED(1,"已分配"), | ||
RECEIVE(2,"已領取"),FINISH(3,"已完成"), | ||
HASERROR(4,"有異常"); | ||
private int code; | ||
private String msg; | ||
|
||
PurchaseStatusEnum(int code,String msg){ | ||
this.code = code; | ||
this.msg = msg; | ||
} | ||
|
||
public int getCode() { | ||
return code; | ||
} | ||
|
||
public String getMsg() { | ||
return msg; | ||
} | ||
} | ||
|
||
|
||
public enum PurchaseDetailStatusEnum{ | ||
CREATED(0,"新建"),ASSIGNED(1,"已分配"), | ||
BUYING(2,"正在採購"),FINISH(3,"已完成"), | ||
HASERROR(4,"採購失败"); | ||
private int code; | ||
private String msg; | ||
|
||
PurchaseDetailStatusEnum(int code,String msg){ | ||
this.code = code; | ||
this.msg = msg; | ||
} | ||
|
||
public int getCode() { | ||
return code; | ||
} | ||
|
||
public String getMsg() { | ||
return msg; | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
shoppingmall_common/src/main/java/com/bill/common/exception/BizCodeEnume.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.bill.common.exception; | ||
|
||
public enum BizCodeEnume { | ||
UNKNOW_EXCEPTION(10000,"系统未知異常"), | ||
VAILD_EXCEPTION(10001,"参数格式校正失敗"); | ||
|
||
private int code; | ||
private String msg; | ||
BizCodeEnume(int code,String msg){ | ||
this.code = code; | ||
this.msg = msg; | ||
} | ||
|
||
public int getCode() { | ||
return code; | ||
} | ||
|
||
public String getMsg() { | ||
return msg; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
shoppingmall_common/src/main/java/com/bill/common/to/MemberPrice.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* Copyright 2019 bejson.com | ||
*/ | ||
package com.bill.common.to; | ||
|
||
import lombok.Data; | ||
|
||
import java.math.BigDecimal; | ||
|
||
@Data | ||
public class MemberPrice { | ||
|
||
private Long id; | ||
private String name; | ||
private BigDecimal price; | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
shoppingmall_common/src/main/java/com/bill/common/to/SkuReductionTo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.bill.common.to; | ||
|
||
import lombok.Data; | ||
|
||
import java.math.BigDecimal; | ||
import java.util.List; | ||
|
||
@Data | ||
public class SkuReductionTo { | ||
|
||
private Long skuId; | ||
private int fullCount; | ||
private BigDecimal discount; | ||
private int countStatus; | ||
private BigDecimal fullPrice; | ||
private BigDecimal reducePrice; | ||
private int priceStatus; | ||
private List<MemberPrice> memberPrice; | ||
} |
13 changes: 13 additions & 0 deletions
13
shoppingmall_common/src/main/java/com/bill/common/to/SpuBoundTo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.bill.common.to; | ||
|
||
import lombok.Data; | ||
|
||
import java.math.BigDecimal; | ||
|
||
@Data | ||
public class SpuBoundTo { | ||
|
||
private Long spuId; | ||
private BigDecimal buyBounds; | ||
private BigDecimal growBounds; | ||
} |
Oops, something went wrong.