feat(material): 新增材料相关接口
This commit is contained in:
@@ -74,7 +74,7 @@ import java.util.*;
|
||||
* @date 2021/10/9 14:24
|
||||
**/
|
||||
@Configuration
|
||||
@MapperScan(basePackages = {"mjkf.xinke.**.mapper, com.bstek.**.mapper"})
|
||||
@MapperScan(basePackages = {"mjkf.xinke.**.mapper, mjkf.xinke.**.dao, com.bstek.**.mapper"})
|
||||
public class GlobalConfigure implements WebMvcConfigurer {
|
||||
|
||||
private static final String COMMON_REPEAT_SUBMIT_CACHE_KEY = "common-repeatSubmit:";
|
||||
@@ -142,6 +142,8 @@ public class GlobalConfigure implements WebMvcConfigurer {
|
||||
"/pay/wx/authNotifyUrl",
|
||||
"/pay/wx/jsPay",
|
||||
"/pay/order/sample/doCreateOrder",
|
||||
|
||||
"/solr/**",
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -5,6 +5,7 @@ import cn.dev33.satoken.exception.SaTokenException;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.http.HttpStatus;
|
||||
import com.jgy.xxs.core.http.exp.NcHttpException;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.ibatis.exceptions.PersistenceException;
|
||||
import org.mybatis.spring.MyBatisSystemException;
|
||||
@@ -120,6 +121,10 @@ public class GlobalExceptionUtil {
|
||||
log.error(">>> 数据操作异常:", e);
|
||||
commonResult = CommonResult.error("数据操作异常");
|
||||
}
|
||||
} else if (e instanceof NcHttpException) {
|
||||
// 通用业务异常,直接返回给前端
|
||||
NcHttpException ncHttpException = (NcHttpException) e;
|
||||
commonResult = CommonResult.get(ncHttpException.getMetaCode(), ncHttpException.getMessage(), null);
|
||||
} else if (e instanceof CommonException) {
|
||||
|
||||
// 通用业务异常,直接返回给前端
|
||||
|
||||
Reference in New Issue
Block a user