tao.mo

biz-customer | 修改 | 文描处理

mt
2024年12月25日10:13:01
...@@ -19,14 +19,22 @@ system_exception_10005=登录已过期,请重新登录 ...@@ -19,14 +19,22 @@ system_exception_10005=登录已过期,请重新登录
19 19
20 #******************业务相关、需要做国际化****************** 20 #******************业务相关、需要做国际化******************
21 #*********用于字段描述使用,不单独使用********** 21 #*********用于字段描述使用,不单独使用**********
22 -business_field_31001=发货人计费账号 22 +#business_field_31001=发货人计费账号
23 -business_field_31002=运单ID 23 +business_field_31001=shipper account
24 -business_field_31003=运单号 24 +#business_field_31002=运单ID
25 -business_field_31004=原产国编码 25 +business_field_31002=tracking number ID
26 -business_field_31005=原产国名称 26 +#business_field_31003=运单号
27 -business_field_31006=目的国编码 27 +business_field_31003=tracking number
28 -business_field_31007=目的国全称 28 +#business_field_31004=始发国编码
29 -business_field_31008=文件业务类型 29 +business_field_31004=origin country ID
30 +#business_field_31005=始发国名称
31 +business_field_31005=origin country
32 +#business_field_31006=目的国编码
33 +business_field_31006=destination country ID
34 +#business_field_31007=目的国全称
35 +business_field_31007=destination country
36 +#business_field_31008=文件业务类型
37 +business_field_31008=upload file type
30 38
31 #*********具体响应到前端********** 39 #*********具体响应到前端**********
32 business_exception_30001={0}必填字段未填写 40 business_exception_30001={0}必填字段未填写
...@@ -34,7 +42,7 @@ business_exception_30002=单次最多可查询1000个运单号码 ...@@ -34,7 +42,7 @@ business_exception_30002=单次最多可查询1000个运单号码
34 business_exception_30003={0}不正确,请重新输入 42 business_exception_30003={0}不正确,请重新输入
35 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. 43 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.
36 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. 44 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.
37 -business_exception_30006=附件上传不符合标准 45 +business_exception_30006=附件未上传
38 business_exception_30007=所有上传文件数量不超过{0}个文件 46 business_exception_30007=所有上传文件数量不超过{0}个文件
39 business_exception_30008=所有上传文件总大小不超过{0}M 47 business_exception_30008=所有上传文件总大小不超过{0}M
40 business_exception_30009=运单或发票未上传 48 business_exception_30009=运单或发票未上传
...@@ -43,9 +51,9 @@ business_exception_30011=该运单已被其他人创建,不可以重复创建 ...@@ -43,9 +51,9 @@ business_exception_30011=该运单已被其他人创建,不可以重复创建
43 business_exception_30012=UUID不一致 51 business_exception_30012=UUID不一致
44 business_exception_30013=文件名为:{0},上传失败,请检查后重试 52 business_exception_30013=文件名为:{0},上传失败,请检查后重试
45 business_exception_30014=运单信息加载失败,请稍后重试 53 business_exception_30014=运单信息加载失败,请稍后重试
46 -business_success_30015=上传成功 54 +business_success_30015=提交成功
47 -business_exception_30016=运单提交失败,请联系管理员! 55 +business_exception_30016=提交失败,请稍后重试!
48 -business_exception_30017=运单号填写错误 56 +business_exception_30017=运单号填写错误,请检查!
49 business_exception_30018=运单提交失败,该运单正在被其他用户操作,请稍后重试 57 business_exception_30018=运单提交失败,该运单正在被其他用户操作,请稍后重试
50 -business_exception_30019=Shipper Account填写错误 58 +business_exception_30019=Shipper Account填写错误(Shipper Account是由9位数字组成)
51 -business_exception_30020=的登录账号的shipperAccount与录入的shipperAccount不一致,请确认是否继续上传 59 +business_exception_30020=当前登录账号的shipper Account与您正在录入的shipperAccount不一致,请确认是否继续
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -19,14 +19,22 @@ system_exception_10005=登录已过期,请重新登录 ...@@ -19,14 +19,22 @@ system_exception_10005=登录已过期,请重新登录
19 19
20 #******************业务相关、需要做国际化****************** 20 #******************业务相关、需要做国际化******************
21 #*********用于字段描述使用,不单独使用********** 21 #*********用于字段描述使用,不单独使用**********
22 -business_field_31001=发货人计费账号 22 +#business_field_31001=发货人计费账号
23 -business_field_31002=运单ID 23 +business_field_31001=shipper account
24 -business_field_31003=运单号 24 +#business_field_31002=运单ID
25 -business_field_31004=原产国编码 25 +business_field_31002=tracking number ID
26 -business_field_31005=原产国名称 26 +#business_field_31003=运单号
27 -business_field_31006=目的国编码 27 +business_field_31003=tracking number
28 -business_field_31007=目的国全称 28 +#business_field_31004=始发国编码
29 -business_field_31008=文件业务类型 29 +business_field_31004=origin country ID
30 +#business_field_31005=始发国名称
31 +business_field_31005=origin country
32 +#business_field_31006=目的国编码
33 +business_field_31006=destination country ID
34 +#business_field_31007=目的国全称
35 +business_field_31007=destination country
36 +#business_field_31008=文件业务类型
37 +business_field_31008=upload file type
30 38
31 #*********具体响应到前端********** 39 #*********具体响应到前端**********
32 business_exception_30001={0}必填字段未填写 40 business_exception_30001={0}必填字段未填写
...@@ -34,7 +42,7 @@ business_exception_30002=单次最多可查询1000个运单号码 ...@@ -34,7 +42,7 @@ business_exception_30002=单次最多可查询1000个运单号码
34 business_exception_30003={0}不正确,请重新输入 42 business_exception_30003={0}不正确,请重新输入
35 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. 43 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.
36 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. 44 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.
37 -business_exception_30006=附件上传不符合标准 45 +business_exception_30006=附件未上传
38 business_exception_30007=所有上传文件数量不超过{0}个文件 46 business_exception_30007=所有上传文件数量不超过{0}个文件
39 business_exception_30008=所有上传文件总大小不超过{0}M 47 business_exception_30008=所有上传文件总大小不超过{0}M
40 business_exception_30009=运单或发票未上传 48 business_exception_30009=运单或发票未上传
...@@ -43,9 +51,9 @@ business_exception_30011=该运单已被其他人创建,不可以重复创建 ...@@ -43,9 +51,9 @@ business_exception_30011=该运单已被其他人创建,不可以重复创建
43 business_exception_30012=UUID不一致 51 business_exception_30012=UUID不一致
44 business_exception_30013=文件名为:{0},上传失败,请检查后重试 52 business_exception_30013=文件名为:{0},上传失败,请检查后重试
45 business_exception_30014=运单信息加载失败,请稍后重试 53 business_exception_30014=运单信息加载失败,请稍后重试
46 -business_success_30015=上传成功 54 +business_success_30015=提交成功
47 -business_exception_30016=运单提交失败,请联系管理员! 55 +business_exception_30016=提交失败,请稍后重试!
48 -business_exception_30017=运单号填写错误 56 +business_exception_30017=运单号填写错误,请检查!
49 business_exception_30018=运单提交失败,该运单正在被其他用户操作,请稍后重试 57 business_exception_30018=运单提交失败,该运单正在被其他用户操作,请稍后重试
50 -business_exception_30019=Shipper Account填写错误
51 -business_exception_30020=您的登录账号的shipperAccount与录入的shipperAccount不一致,请确认是否继续上传?
...\ No newline at end of file ...\ No newline at end of file
58 +business_exception_30019=Shipper Account填写错误(Shipper Account是由9位数字组成)
59 +business_exception_30020=您当前登录账号的shipper Account与您正在录入的shipperAccount不一致,请确认是否继续?
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -18,6 +18,7 @@ import com.fedex.connect.manager.controller.sys.ISysAuthController; ...@@ -18,6 +18,7 @@ import com.fedex.connect.manager.controller.sys.ISysAuthController;
18 import com.fedex.connect.manager.data.dto.LogLoginDto; 18 import com.fedex.connect.manager.data.dto.LogLoginDto;
19 import com.fedex.connect.manager.data.dto.LoginRequest; 19 import com.fedex.connect.manager.data.dto.LoginRequest;
20 import com.fedex.connect.manager.data.dto.SysUserDto; 20 import com.fedex.connect.manager.data.dto.SysUserDto;
21 +import com.fedex.connect.manager.enums.ResponseCode;
21 import com.fedex.connect.manager.util.ParamConfigUtil; 22 import com.fedex.connect.manager.util.ParamConfigUtil;
22 import com.google.gson.JsonObject; 23 import com.google.gson.JsonObject;
23 import io.jsonwebtoken.Claims; 24 import io.jsonwebtoken.Claims;
...@@ -243,7 +244,7 @@ public class SysAuthController extends BaseController implements ISysAuthControl ...@@ -243,7 +244,7 @@ public class SysAuthController extends BaseController implements ISysAuthControl
243 new SecurityContextLogoutHandler().logout(request, response, auth); 244 new SecurityContextLogoutHandler().logout(request, response, auth);
244 } 245 }
245 resultRS.setCode(HttpServletResponse.SC_OK); 246 resultRS.setCode(HttpServletResponse.SC_OK);
246 - resultRS.setMsg(localeMessageUtil.getMessage("system_exception_40007")); 247 + resultRS.setMsg(localeMessageUtil.getMessage(ResponseCode.MESSAGE_CODE_40005.getMsg()));
247 //清理redis中token 248 //清理redis中token
248 String token = request.getHeader(SecurityConstants.TOKEN_HEADER); 249 String token = request.getHeader(SecurityConstants.TOKEN_HEADER);
249 250
...@@ -264,7 +265,7 @@ public class SysAuthController extends BaseController implements ISysAuthControl ...@@ -264,7 +265,7 @@ public class SysAuthController extends BaseController implements ISysAuthControl
264 return resultRS; 265 return resultRS;
265 } catch (Exception e) { 266 } catch (Exception e) {
266 log.error("登出3失败",e); 267 log.error("登出3失败",e);
267 - resultRS.setMsg(localeMessageUtil.getMessage("system_exception_40008")); 268 + resultRS.setMsg(localeMessageUtil.getMessage(ResponseCode.MESSAGE_CODE_40006.getMsg()));
268 resultRS.setCode(HttpServletResponse.SC_BAD_REQUEST); 269 resultRS.setCode(HttpServletResponse.SC_BAD_REQUEST);
269 } finally { 270 } finally {
270 if (!org.springframework.util.StringUtils.isEmpty(id)){ 271 if (!org.springframework.util.StringUtils.isEmpty(id)){
......
...@@ -30,13 +30,13 @@ public class SysUserController extends BaseController implements ISysUserControl ...@@ -30,13 +30,13 @@ public class SysUserController extends BaseController implements ISysUserControl
30 } 30 }
31 31
32 if (sysUser.getId() == null || sysUser.getId() == 0){ 32 if (sysUser.getId() == null || sysUser.getId() == 0){
33 - responseUtils.fail(ResponseCode.MESSAGE_CODE_40005); 33 + responseUtils.fail(ResponseCode.MESSAGE_CODE_40001);
34 } 34 }
35 //返回用户信息 35 //返回用户信息
36 return responseUtils.success(sysUser); 36 return responseUtils.success(sysUser);
37 } catch (Exception e){ 37 } catch (Exception e){
38 log.error("获取用户信息失败",e); 38 log.error("获取用户信息失败",e);
39 - responseUtils.fail(ResponseCode.MESSAGE_CODE_40006); 39 + responseUtils.fail(ResponseCode.MESSAGE_CODE_40001);
40 } 40 }
41 return success; 41 return success;
42 } 42 }
...@@ -56,7 +56,7 @@ public class SysUserController extends BaseController implements ISysUserControl ...@@ -56,7 +56,7 @@ public class SysUserController extends BaseController implements ISysUserControl
56 return responseUtils.success(sysUser); 56 return responseUtils.success(sysUser);
57 } catch (Exception e){ 57 } catch (Exception e){
58 log.error("获取用户信息失败",e); 58 log.error("获取用户信息失败",e);
59 - responseUtils.fail(ResponseCode.MESSAGE_CODE_40006); 59 + responseUtils.fail(ResponseCode.MESSAGE_CODE_40001);
60 } 60 }
61 return success; 61 return success;
62 } 62 }
......
...@@ -13,7 +13,6 @@ public enum ResponseCode { ...@@ -13,7 +13,6 @@ public enum ResponseCode {
13 MESSAGE_CODE_40004(40004,"system_exception_40004"), 13 MESSAGE_CODE_40004(40004,"system_exception_40004"),
14 MESSAGE_CODE_40005(40005,"system_exception_40005"), 14 MESSAGE_CODE_40005(40005,"system_exception_40005"),
15 MESSAGE_CODE_40006(40006,"system_exception_40006"), 15 MESSAGE_CODE_40006(40006,"system_exception_40006"),
16 - MESSAGE_CODE_40007(40007,"system_exception_40007"),
17 ; 16 ;
18 private Integer code; 17 private Integer code;
19 private String msg; 18 private String msg;
......
...@@ -7,11 +7,9 @@ system_exception_10004=登录超过8小时,请重新登录 ...@@ -7,11 +7,9 @@ system_exception_10004=登录超过8小时,请重新登录
7 system_exception_10005=登录已过期,请重新登录 7 system_exception_10005=登录已过期,请重新登录
8 8
9 #******************业务相关、需要做国际化****************** 9 #******************业务相关、需要做国际化******************
10 -business_exception_40001=存入token失败 10 +business_exception_40001=系统异常:登录失败,请稍后重试!
11 business_log_40002=用户登录 11 business_log_40002=用户登录
12 -system_exception_40003=系统异常,请联系清关部门
13 -system_exception_40004=登录已过期,请重新登录
14 -system_exception_40005=用戶不存在
15 -system_exception_40006=登录已过期
16 -system_exception_40007=退出成功
17 -system_exception_40008=退出失败
...\ No newline at end of file ...\ No newline at end of file
12 +system_exception_40003=系统异常,请稍后重试!
13 +system_exception_40004=单次登录已过有效期,请重新登录!
14 +system_exception_40005=退出成功
15 +system_exception_40006=退出失败
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -7,11 +7,9 @@ system_exception_10004=登录超过8小时,请重新登录 ...@@ -7,11 +7,9 @@ system_exception_10004=登录超过8小时,请重新登录
7 system_exception_10005=登录已过期,请重新登录 7 system_exception_10005=登录已过期,请重新登录
8 8
9 #******************业务相关、需要做国际化****************** 9 #******************业务相关、需要做国际化******************
10 -business_exception_40001=存入token失败 10 +business_exception_40001=系统异常:登录失败,请稍后重试!
11 business_log_40002=用户登录 11 business_log_40002=用户登录
12 -system_exception_40003=系统异常,请联系清关部门
13 -system_exception_40004=登录已过期,请重新登录
14 -system_exception_40005=用戶不存在
15 -system_exception_40006=登录已过期
16 -system_exception_40007=退出成功
17 -system_exception_40008=退出失败
...\ No newline at end of file ...\ No newline at end of file
12 +system_exception_40003=系统异常,请稍后重试!
13 +system_exception_40004=单次登录已过有效期,请重新登录!
14 +system_exception_40005=退出成功
15 +system_exception_40006=退出失败
...\ No newline at end of file ...\ No newline at end of file
......