|
|
@@ -172,13 +172,10 @@ public class EquipmentDistributeServiceImpl implements EquipmentDistributeServic
|
|
|
deductUserBenefits(sharId, orderId);
|
|
|
}
|
|
|
}
|
|
|
- //展示
|
|
|
- EquipmentUserPayRecord record = new EquipmentUserPayRecord();
|
|
|
- record.setShareId(sharId);
|
|
|
- record.setUserId(userId);
|
|
|
- record.setStatus(EquipmentUserPayRecord.Status.refund);
|
|
|
- record.setOrderId(orderId);
|
|
|
- equipmentUserPayRecordMapper.insert(record);
|
|
|
+ equipmentUserPayRecordMapper.update(null, Wrappers.lambdaUpdate(EquipmentUserPayRecord.class)
|
|
|
+ .set(EquipmentUserPayRecord::getStatus, EquipmentUserPayRecord.Status.refund)
|
|
|
+ .eq(EquipmentUserPayRecord::getOrderId, orderId)
|
|
|
+ .ne(EquipmentUserPayRecord::getStatus, EquipmentUserChanceRecord.Status.refund));
|
|
|
}
|
|
|
}
|
|
|
|