Commit e8afb6eb by jianan

出账检核-分期出账3

parent 71f6df76
...@@ -784,9 +784,8 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune> ...@@ -784,9 +784,8 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
throw new BusinessException(ResultCode.NULL_ERROR.getCode(), "对应的预计出账记录不存在"); throw new BusinessException(ResultCode.NULL_ERROR.getCode(), "对应的预计出账记录不存在");
} }
if (!FortuneStatusEnum.CAN_SEND.getItemValue().equals(originalFortune.getStatus()) && if (FortuneStatusEnum.SENT.getItemValue().equals(originalFortune.getStatus())) {
!FortuneStatusEnum.RESERVED.getItemValue().equals(originalFortune.getStatus())) { throw new BusinessException(ResultCode.PARAM_CHECK_ERROR.getCode(), "已完成出账状态的记录不能分期");
throw new BusinessException(ResultCode.PARAM_CHECK_ERROR.getCode(), "只有可出账或保留状态的记录才能分期");
} }
if (originalFortune.getIsPart() != null && originalFortune.getIsPart() == 1) { if (originalFortune.getIsPart() != null && originalFortune.getIsPart() == 1) {
......
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