Browse Source

10.17新增退款更新

lijianlin/feature-202509231533026-现金管理-收款管理
huangqizhen 1 month ago
parent
commit
2457e23926
  1. 7
      src/main/java/com/example/demo/serviceImpl/cash/CashRefundServiceImpl.java

7
src/main/java/com/example/demo/serviceImpl/cash/CashRefundServiceImpl.java

@ -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();
}
}
Loading…
Cancel
Save