|
|
|
@ -232,6 +232,12 @@ public class CashRefundServiceImpl implements RefundService { |
|
|
|
if (cashRecordDone.getRefundReason()== null) { |
|
|
|
throw new RuntimeException("请填写退款理由"); |
|
|
|
} |
|
|
|
if(cashRecordDone.getNewRefundGold()== null){ |
|
|
|
cashRecordDone.setNewRefundGold(BigDecimal.valueOf(0)); |
|
|
|
} |
|
|
|
if(cashRecordDone.getNewRefundFree()== null){ |
|
|
|
cashRecordDone.setNewRefundFree(BigDecimal.valueOf(0)); |
|
|
|
} |
|
|
|
int result = cashRefundMapper.update(cashRecordDone); |
|
|
|
return (result > 0 ? Result.success("提交成功") : Result.error("提交失败")).getCode(); |
|
|
|
} |
|
|
|
@ -346,7 +352,7 @@ CashRecordDone cashRecordDone1 = new CashRecordDone(); |
|
|
|
userGoldRecord.setGoodsName(cashRecordDone.getGoodsName()); |
|
|
|
userGoldRecord.setPayPlatform("金币系统"); |
|
|
|
userGoldRecord.setRemark(cashRecordDone.getRemark()); |
|
|
|
userGoldRecord.setAdminId(cashRecordDone.getAuditId()); |
|
|
|
userGoldRecord.setAdminId(cashRecordDone.getAdminId()); |
|
|
|
userGoldRecord.setAuditStatus(1); |
|
|
|
userGoldRecord.setTaskGold(0); |
|
|
|
userGoldRecord.setCreateTime(new Date()); |
|
|
|
|