|
@@ -352,9 +352,9 @@ public class StudentRepairServiceImpl extends BaseServiceImpl<Integer, StudentRe
|
|
|
@Override
|
|
|
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
|
|
|
public Boolean orderCallback(StudentPaymentOrder studentPaymentOrder) {
|
|
|
- Date noDate = new Date();
|
|
|
+ Date nowDate = new Date();
|
|
|
//更新订单信息
|
|
|
- studentPaymentOrder.setUpdateTime(noDate);
|
|
|
+ studentPaymentOrder.setUpdateTime(nowDate);
|
|
|
int updateCount = studentPaymentOrderService.update(studentPaymentOrder);
|
|
|
if (updateCount <= 0) {
|
|
|
throw new BizException("订单更新失败");
|
|
@@ -370,14 +370,13 @@ public class StudentRepairServiceImpl extends BaseServiceImpl<Integer, StudentRe
|
|
|
|
|
|
if (studentPaymentOrder.getStatus() == DealStatusEnum.SUCCESS) {
|
|
|
repairInfo.setPayStatus(2);
|
|
|
- repairInfo.setUpdateTime(noDate);
|
|
|
+ repairInfo.setUpdateTime(nowDate);
|
|
|
if (this.update(repairInfo) <= 0) {
|
|
|
throw new BizException("维修单更新失败");
|
|
|
}
|
|
|
|
|
|
//插入交易明细
|
|
|
BigDecimal amount = studentPaymentOrder.getActualAmount();
|
|
|
- Date nowDate = new Date();
|
|
|
SysUserCashAccount cashAccount = sysUserCashAccountService.get(userId);
|
|
|
//充值
|
|
|
SysUserCashAccountDetail rechargeDetail = new SysUserCashAccountDetail();
|