tao.mo

All | 修改 | 异常监听配置调整

mt
2024年12月19日15:50:51
......@@ -2,6 +2,7 @@ package com.fedex.connect.customer.service.biz.impl;
import com.fedex.connect.common.dependencies.contants.DigitConstants;
import com.fedex.connect.common.dependencies.date.vo.ResponseVo;
import com.fedex.connect.common.dependencies.exception.OpErrorException;
import com.fedex.connect.common.model.biz.*;
import com.fedex.connect.common.model.sys.User;
import com.fedex.connect.customer.data.bo.AddBo;
......@@ -134,6 +135,12 @@ public class ConsignmentServiceImpl extends BaseService implements IConsignmentS
* 保存运单相关信息
*/
this.submitInfo(consignment,attachmentList,uploadRecord,user);
}catch(OpErrorException ex){
/**
* 提交异常,需要删除对应已上传附件
*/
attachmentService.deleteAttachments(attachmentList);
throw ex;
}catch(Exception ex){
/**
* 提交异常,需要删除对应已上传附件
......
......@@ -43,4 +43,8 @@ mybatis:
configuration:
#开启驼峰与下划线转换
map-underscore-to-camel-case: true
call-setters-on-nulls: true
\ No newline at end of file
call-setters-on-nulls: true
#全局异常拦截是否生效
common:
exception-advice-webconfig:
enable: true
\ No newline at end of file
......
......@@ -30,19 +30,19 @@ business_field_31007=目的国全称
business_field_31008=文件业务类型
#*********具体响应到前端**********
business_exception_30001=#{0}必填字段未填写
business_exception_30001={0}必填字段未填写
business_exception_30002=单次最多可查询1000个运单号码
business_exception_30003=#{0}不正确,请重新输入
business_exception_30003={0}不正确,请重新输入
business_exception_30004=The waybill you entered is generated by another user, whether continue uploading? Confirm, Cancel. No more prompts in the future for the same situation.
business_exception_30005=The waybill you entered is generated by another account, whether continue uploading? Confirm, Cancel. No more prompts in the future for the same situation.
business_exception_30006=附件上传不符合标准
business_exception_30007=所有上传文件数量不超过#{0}个文件
business_exception_30008=所有上传文件总大小不超过#{0}M
business_exception_30007=所有上传文件数量不超过{0}个文件
business_exception_30008=所有上传文件总大小不超过{0}M
business_exception_30009=运单或发票未上传
business_exception_30010=文件类型不在:运单、发票、箱单、其他
business_exception_30011=该运单已被其他人创建,不可以重复创建
business_exception_30012=UUID不一致
business_exception_30013=文件名为:#{0},上传失败,请检查后重试
business_exception_30013=文件名为:{0},上传失败,请检查后重试
business_exception_30014=运单信息加载失败,请稍后重试
business_success_30015=上传成功
business_exception_30016=运单提交失败
\ No newline at end of file
......
......@@ -30,9 +30,9 @@ business_field_31007=目的国全称
business_field_31008=文件业务类型
#*********具体响应到前端**********
business_exception_30001=${0}必填字段未填写
business_exception_30001={0}必填字段未填写
business_exception_30002=单次最多可查询1000个运单号码
business_exception_30003=${0}不正确,请重新输入
business_exception_30003={0}不正确,请重新输入
business_exception_30004=The waybill you entered is generated by another user, whether continue uploading? Confirm, Cancel. No more prompts in the future for the same situation.
business_exception_30005=The waybill you entered is generated by another account, whether continue uploading? Confirm, Cancel. No more prompts in the future for the same situation.
business_exception_30006=附件上传不符合标准
......@@ -42,7 +42,7 @@ business_exception_30009=运单或发票未上传
business_exception_30010=文件类型不在:运单、发票、箱单、其他
business_exception_30011=该运单已被其他人创建,不可以重复创建
business_exception_30012=UUID不一致
business_exception_30013=文件名为:#{0},上传失败,请检查后重试
business_exception_30013=文件名为:{0},上传失败,请检查后重试
business_exception_30014=运单信息加载失败,请稍后重试
business_success_30015=上传成功
business_exception_30016=运单提交失败
\ No newline at end of file
......
......@@ -36,4 +36,8 @@ mybatis:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
#开启驼峰与下划线转换
map-underscore-to-camel-case: true
call-setters-on-nulls: true
\ No newline at end of file
call-setters-on-nulls: true
#全局异常拦截是否生效
common:
exception-advice-webconfig:
enable: true
\ No newline at end of file
......
......@@ -43,4 +43,8 @@ mybatis:
configuration:
#开启驼峰与下划线转换
map-underscore-to-camel-case: true
call-setters-on-nulls: true
\ No newline at end of file
call-setters-on-nulls: true
#全局异常拦截是否生效
common:
exception-advice-webconfig:
enable: true
\ No newline at end of file
......
......@@ -18,4 +18,8 @@ mybatis:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
#开启驼峰与下划线转换
map-underscore-to-camel-case: true
call-setters-on-nulls: true
\ No newline at end of file
call-setters-on-nulls: true
#全局异常拦截是否生效
common:
exception-advice-webconfig:
enable: true
\ No newline at end of file
......