👎 增加所有租户商城的自动取消订单和自动确认收货

This commit is contained in:
2022-12-06 17:37:36 +08:00
parent 77745360f6
commit 6264571059
66 changed files with 365 additions and 385 deletions
@@ -19,40 +19,40 @@ import lombok.EqualsAndHashCode;
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class YshopException extends RuntimeException{
public class ShopException extends RuntimeException{
private static final long serialVersionUID = -2470461654663264392L;
private Integer errorCode;
private String message;
public YshopException() {
public ShopException() {
super();
}
public YshopException(String message) {
public ShopException(String message) {
super(message);
this.errorCode = ApiCode.FAIL.getCode();
this.message = message;
}
public YshopException(Integer errorCode, String message) {
public ShopException(Integer errorCode, String message) {
super(message);
this.errorCode = errorCode;
this.message = message;
}
public YshopException(ApiCode apiCode) {
public ShopException(ApiCode apiCode) {
super(apiCode.getMessage());
this.errorCode = apiCode.getCode();
this.message = apiCode.getMessage();
}
public YshopException(String message, Throwable cause) {
public ShopException(String message, Throwable cause) {
super(message, cause);
}
public YshopException(Throwable cause) {
public ShopException(Throwable cause) {
super(cause);
}