|
|
@@ -135,9 +135,9 @@ public class EquipmentDistributeServiceImpl implements EquipmentDistributeServic
|
|
|
}
|
|
|
|
|
|
public void saveInviteRecord(Long sharId, Long userId, Long orderId, Integer type) {
|
|
|
- EquipmentConfigDto equipmentConfigDto = checkEquipmentConfigDto();
|
|
|
+// EquipmentConfigDto equipmentConfigDto = checkEquipmentConfigDto();
|
|
|
Integer benefitsType = 0;
|
|
|
- if (equipmentConfigDto != null && type == 1) {
|
|
|
+ if (type == 1) {
|
|
|
// //配置车票权益
|
|
|
// if (CollUtil.isNotEmpty(equipmentConfigDto.getSkuList())) {
|
|
|
// addTicketBenefitsChance(sharId, userId, orderId, EquipmentUserChanceRecord.Status.hasPayment);
|
|
|
@@ -156,8 +156,7 @@ public class EquipmentDistributeServiceImpl implements EquipmentDistributeServic
|
|
|
//0无类型 1、车票权益,2、余额
|
|
|
record.setType(benefitsType);
|
|
|
equipmentUserPayRecordMapper.insert(record);
|
|
|
- }
|
|
|
- if (type == 2) {
|
|
|
+ } else if (type == 2) {
|
|
|
// //是否有余额权益
|
|
|
// EquipmentUserDistributeTransportBenefits transportBenefits = transportBenefitsMapper.selectOne(Wrappers.lambdaQuery(EquipmentUserDistributeTransportBenefits.class)
|
|
|
// .eq(EquipmentUserDistributeTransportBenefits::getOrderId, orderId).last("limit 1"));
|