feat:修复已知问题,提升系统稳定性
This commit is contained in:
59
remi-demo/remi-demo-server/pom.xml
Normal file
59
remi-demo/remi-demo-server/pom.xml
Normal file
@@ -0,0 +1,59 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>remi-demo-server</artifactId>
|
||||
<name>remi-demo-server</name>
|
||||
<description>remi-demo-server</description>
|
||||
|
||||
<parent>
|
||||
<groupId>ai.remi.cloud</groupId>
|
||||
<artifactId>remi-demo</artifactId>
|
||||
<version>3.1.0</version>
|
||||
</parent>
|
||||
|
||||
<!-- 打包上传到私服, 需要和配置文件中的server节点配合使用 -->
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>maven-releases</id>
|
||||
<name>release</name>
|
||||
<url>https://repository.njydsz.com/repository/maven-releases/</url>
|
||||
</repository>
|
||||
<snapshotRepository>
|
||||
<id>maven-snapshots</id>
|
||||
<name>snapshot</name>
|
||||
<url>https://repository.njydsz.com/repository/maven-snapshots/</url>
|
||||
</snapshotRepository>
|
||||
</distributionManagement>
|
||||
|
||||
<dependencies>
|
||||
<!--remi-demo-infra-->
|
||||
<dependency>
|
||||
<groupId>ai.remi.cloud</groupId>
|
||||
<artifactId>remi-demo-infra</artifactId>
|
||||
</dependency>
|
||||
<!--启迪公共模块-->
|
||||
<dependency>
|
||||
<groupId>ai.remi.comm</groupId>
|
||||
<artifactId>remi-comm-exception</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ai.remi.comm</groupId>
|
||||
<artifactId>remi-comm-minio</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ai.remi.comm</groupId>
|
||||
<artifactId>remi-comm-redis</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ai.remi.comm</groupId>
|
||||
<artifactId>remi-comm-thread</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ai.remi.comm</groupId>
|
||||
<artifactId>remi-comm-util</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,28 @@
|
||||
package ai.remi.boot.server.exception;
|
||||
|
||||
import ai.remi.comm.exception.enums.ExceptionCode;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
public enum BpmExceptionCode implements ExceptionCode {
|
||||
|
||||
/**
|
||||
* 业务异常code
|
||||
*/
|
||||
INVENTORY_CHECK_FAIL("B2006", "库存不足"),
|
||||
QUERY_ORDER_FAIL("B2007", "查询订单失败"),
|
||||
ORDER_STATUS_EXCEPTION("B2008", "订单状态不合法"),
|
||||
ORDER_PRODUCT_EXCEPTION("B2010", "查询商品失败"),
|
||||
ORDER_SHIPPING_RATE_PLAN_EXCEPTION("B2011", "邮费方案不存在"),
|
||||
ORDER_VARIANTS_EXCEPTION("B2012", "库存扣减异常"),
|
||||
PROMOTION_CODE_EXCEPTION("B2013", "优惠码错误"),
|
||||
CUSTOMER_DISABLE("B2014", "用户被禁用"),
|
||||
;
|
||||
|
||||
|
||||
private String code;
|
||||
|
||||
private String key;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package ai.remi.boot.server.exception;
|
||||
|
||||
import ai.remi.comm.exception.custom.BusinessException;
|
||||
|
||||
public class BpmServiceException extends BusinessException {
|
||||
|
||||
public BpmServiceException(String code, String message) {
|
||||
super(code, message);
|
||||
}
|
||||
|
||||
public BpmServiceException(String code, Throwable cause) {
|
||||
super(code, cause);
|
||||
}
|
||||
|
||||
public BpmServiceException(String code, String message, Throwable cause) {
|
||||
super(code, message, cause);
|
||||
}
|
||||
|
||||
public BpmServiceException(String code, String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
|
||||
super(code, message, cause, enableSuppression, writableStackTrace);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user