feat(material): 新增材料相关接口

This commit is contained in:
han0
2023-11-11 12:24:39 +08:00
parent 6ff7bf0caa
commit 6fbe40104c
13 changed files with 521 additions and 2 deletions

View File

@@ -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/**",
};
/**

View File

@@ -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) {
// 通用业务异常,直接返回给前端