提交 fb1e2977 authored 作者: 李秋林's avatar 李秋林

更新错误码

上级 bc2238db
......@@ -20,6 +20,12 @@ public class DataException extends RuntimeException {
this.msg = statusCode.getMsg();
}
public DataException(StatusCode statusCode) {
super(statusCode.getMsg());
this.code = statusCode.getCode();
this.msg = statusCode.getMsg();
}
/**
* 默认异常编码
*/
......
......@@ -50,6 +50,8 @@ public enum RCode implements StatusCode {
*/
PRO_NOT_QC_STORE_CLOCK_DISTANCE(4000,"打卡店铺距离偏差过大"),
PRO_FAR_QC_STORE_CLOCK_DISTANCE(4001,"请在距离店铺100米内打卡"),
SEND_BACK_REASON_NOT(4002,"请描述退回原因"),
APPROVE_STATUS_REPETITION(4003,"审批状态不可重复"),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论