|
|
|
@ -57,6 +57,7 @@ public class CashRefundServiceImpl implements RefundService { |
|
|
|
throw new Exception("请填写退款理由") ; |
|
|
|
} |
|
|
|
cashRecordDone.setOrderType(2); |
|
|
|
cashRecordDone.setStatus(10); |
|
|
|
//生成订单号后半部分 |
|
|
|
String orderNumber = UUID.randomUUID().toString().replaceAll("-", ""); |
|
|
|
//构建订单信息 |
|
|
|
@ -81,7 +82,7 @@ public class CashRefundServiceImpl implements RefundService { |
|
|
|
throw new RuntimeException("请填写退款理由"); |
|
|
|
} |
|
|
|
int result = cashRefundMapper.update(cashRecordDone); |
|
|
|
return (result > 0 ? Result.success("重新提交成功") : Result.error("重新提交失败")).getCode(); |
|
|
|
return (result > 0 ? Result.success("提交成功") : Result.error("提交失败")).getCode(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@ -92,7 +93,7 @@ public class CashRefundServiceImpl implements RefundService { |
|
|
|
@Override |
|
|
|
public int review(CashRecordDone cashRecordDone) { |
|
|
|
int result = cashRefundMapper.review(cashRecordDone); |
|
|
|
return (result > 0 ? Result.success("重新提交成功") : Result.error("重新提交失败")).getCode(); |
|
|
|
return (result > 0 ? Result.success("提交成功") : Result.error("提交失败")).getCode(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@ -116,6 +117,6 @@ public class CashRefundServiceImpl implements RefundService { |
|
|
|
throw new RuntimeException("未输入退款金额"); |
|
|
|
} |
|
|
|
int result = cashRefundMapper.executor(cashRecordDone); |
|
|
|
return (result > 0 ? Result.success("重新提交成功") : Result.error("重新提交失败")).getCode(); |
|
|
|
return (result > 0 ? Result.success("提交成功") : Result.error("提交失败")).getCode(); |
|
|
|
} |
|
|
|
} |