提交 1953347a authored 作者: 000516's avatar 000516 提交者: Coding

添加报错信息

Merge Request: 添加报错信息 Created By: @李秋林 Accepted By: @李秋林 URL: https://g-pkkp8204.coding.net/p/wangxiaolu-sfa/d/wangxiaolu-sfa-common-core/git/merge/65?initial=true
...@@ -25,6 +25,7 @@ public enum ECode implements StatusCode { ...@@ -25,6 +25,7 @@ public enum ECode implements StatusCode {
*/ */
PARAM_ID_ISNULL_ERROR(800, "缺失 - %sID;"), PARAM_ID_ISNULL_ERROR(800, "缺失 - %sID;"),
PARAM_CODE_ISNULL_ERROR(801, "缺失 - %s编码;"), PARAM_CODE_ISNULL_ERROR(801, "缺失 - %s编码;"),
LEAST_INCLUDE_ONE_ERROR(802, "最少选择一项;"),
/** /**
......
...@@ -11,6 +11,11 @@ public enum StatusType { ...@@ -11,6 +11,11 @@ public enum StatusType {
*/ */
VALID(0), VALID(0),
INVALID(1), INVALID(1),
/**
* 版本号 0:未删除
*/
DEL_FLAG(0),
; ;
private Integer type; private Integer type;
...@@ -23,4 +28,10 @@ public enum StatusType { ...@@ -23,4 +28,10 @@ public enum StatusType {
StatusType(Integer type) { StatusType(Integer type) {
this.type = type; this.type = type;
} }
public static String getDelFlag(){
return String.valueOf(DEL_FLAG.getType());
}
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论