Commit 0ce74b44 by jianan

前端对接问题修复93

parent 7cdefb4e
...@@ -181,8 +181,8 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune> ...@@ -181,8 +181,8 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
if (fortuneUpdateRequest.getStatus() == null) { if (fortuneUpdateRequest.getStatus() == null) {
throw new BusinessException(ResultCode.PARAM_CHECK_ERROR.getCode(), "出账状态不能为空"); throw new BusinessException(ResultCode.PARAM_CHECK_ERROR.getCode(), "出账状态不能为空");
} }
if (!StringUtils.equalsAny(fortuneUpdateRequest.getStatus(), FortuneStatusEnum.RESERVED.getItemValue(), FortuneStatusEnum.INVALID.getItemValue(), FortuneStatusEnum.CHECKED.getItemValue(), FortuneStatusEnum.CHECKED.getItemValue())) { if (!StringUtils.equalsAny(fortuneUpdateRequest.getStatus(), FortuneStatusEnum.RESERVED.getItemValue(), FortuneStatusEnum.INVALID.getItemValue(), FortuneStatusEnum.CHECKED.getItemValue(), FortuneStatusEnum.CAN_SEND.getItemValue())) {
throw new BusinessException(ResultCode.PARAM_CHECK_ERROR.getCode(), "出账状态只能为保留、已失效、可出帐,检核完成"); throw new BusinessException(ResultCode.PARAM_CHECK_ERROR.getCode(), "出账状态只能为可出帐,待检核、保留、已失效、可出帐,检核完成");
} }
String fortuneBizId = fortuneUpdateRequest.getFortuneBizId(); String fortuneBizId = fortuneUpdateRequest.getFortuneBizId();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment