Browse Source

修改8909错误码描述

dev_shibei_match
yinzuomei 4 years ago
parent
commit
dd72b2a496
  1. 2
      epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/exception/EpmetErrorCode.java
  2. 4
      epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/act/service/impl/ActSignInRecordServiceImpl.java
  3. 4
      epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/act/service/impl/GroupActInfoServiceImpl.java

2
epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/exception/EpmetErrorCode.java

@ -169,7 +169,7 @@ public enum EpmetErrorCode {
PARTY_MEMBER_CREATE_BRANCH_GROUP(8906,"您不是党员,不能创建支部小组"), PARTY_MEMBER_CREATE_BRANCH_GROUP(8906,"您不是党员,不能创建支部小组"),
NOT_IN_GROUP_CAN_NOT_VIEW(8907,"当前内容仅允许组内成员查看"), NOT_IN_GROUP_CAN_NOT_VIEW(8907,"当前内容仅允许组内成员查看"),
PARTY_MEMBER_JOIN_BRANCH_GROUP(8908,"您不是党员,不能加入支部小组"), PARTY_MEMBER_JOIN_BRANCH_GROUP(8908,"您不是党员,不能加入支部小组"),
GROUP_ACT_CAN_NOT_CANCEL(8909,"活动%s,不能取消"), GROUP_ACT_CAN_NOT_CANCEL(8909,"当前活动已关闭或已取消"),
//8910的msg动态赋值 //8910的msg动态赋值
GROUP_ACT_CAN_NOT_COMMENT(8910,"当前活动,不能评论"), GROUP_ACT_CAN_NOT_COMMENT(8910,"当前活动,不能评论"),
SIGN_IN_TIME_NOT_START(8911,"未到签到时间,不允许签到"), SIGN_IN_TIME_NOT_START(8911,"未到签到时间,不允许签到"),

4
epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/act/service/impl/ActSignInRecordServiceImpl.java

@ -162,9 +162,9 @@ public class ActSignInRecordServiceImpl extends BaseServiceImpl<ActSignInRecordD
} }
//关闭、已取消不能签到 //关闭、已取消不能签到
if (GroupActConstant.CLOSED.equals(originalActInfo.getStatus())) { if (GroupActConstant.CLOSED.equals(originalActInfo.getStatus())) {
throw new RenException(EpmetErrorCode.GROUP_ACT_CAN_NOT_CANCEL.getCode(), "活动已关闭,不能签到"); throw new RenException(EpmetErrorCode.GROUP_ACT_CAN_NOT_CANCEL.getCode(), EpmetErrorCode.GROUP_ACT_CAN_NOT_CANCEL.getMsg());
} else if (GroupActConstant.CANCELED.equals(originalActInfo.getStatus())) { } else if (GroupActConstant.CANCELED.equals(originalActInfo.getStatus())) {
throw new RenException(EpmetErrorCode.GROUP_ACT_CAN_NOT_CANCEL.getCode(), "活动已取消,不能签到"); throw new RenException(EpmetErrorCode.GROUP_ACT_CAN_NOT_CANCEL.getCode(), EpmetErrorCode.GROUP_ACT_CAN_NOT_CANCEL.getMsg());
} }
if (null == originalActInfo.getSignInStartTime() || null == originalActInfo.getSignInEndTime()) { if (null == originalActInfo.getSignInStartTime() || null == originalActInfo.getSignInEndTime()) {

4
epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/act/service/impl/GroupActInfoServiceImpl.java

@ -554,9 +554,9 @@ public class GroupActInfoServiceImpl extends BaseServiceImpl<GroupActInfoDao, Gr
} }
//2、活动已关闭,不能取消 //2、活动已关闭,不能取消
if (GroupActConstant.CLOSED.equals(actInfoEntity.getStatus())) { if (GroupActConstant.CLOSED.equals(actInfoEntity.getStatus())) {
throw new RenException(EpmetErrorCode.GROUP_ACT_CAN_NOT_CANCEL.getCode(), String.format(EpmetErrorCode.GROUP_ACT_CAN_NOT_CANCEL.getMsg(), "已关闭")); throw new RenException(EpmetErrorCode.GROUP_ACT_CAN_NOT_CANCEL.getCode(), EpmetErrorCode.GROUP_ACT_CAN_NOT_CANCEL.getMsg());
} else if (GroupActConstant.CANCELED.equals(actInfoEntity.getStatus())) { } else if (GroupActConstant.CANCELED.equals(actInfoEntity.getStatus())) {
throw new RenException(EpmetErrorCode.GROUP_ACT_CAN_NOT_CANCEL.getCode(), "活动已取消"); throw new RenException(EpmetErrorCode.GROUP_ACT_CAN_NOT_CANCEL.getCode(), EpmetErrorCode.GROUP_ACT_CAN_NOT_CANCEL.getMsg());
} }
//3、取消原因审核 //3、取消原因审核
TextScanParamDTO textScanParamDTO = new TextScanParamDTO(); TextScanParamDTO textScanParamDTO = new TextScanParamDTO();

Loading…
Cancel
Save