fix: 充值相关
parent
ec433d0134
commit
38b5bfde5d
|
@ -87,12 +87,9 @@ public class PhoneRecordServiceImpl implements PhoneRecordService {
|
||||||
@TenantIgnore
|
@TenantIgnore
|
||||||
@Transactional
|
@Transactional
|
||||||
public Boolean deletePhoneGearByOrderId(Long orderId) {
|
public Boolean deletePhoneGearByOrderId(Long orderId) {
|
||||||
log.info("-------------------------orderId{}",orderId);
|
|
||||||
List<PhoneRecordDO> recordDOS = phoneRecordMapper.selectList(Wrappers.<PhoneRecordDO>lambdaQuery().eq(PhoneRecordDO::getRechargeOrderId, orderId));
|
List<PhoneRecordDO> recordDOS = phoneRecordMapper.selectList(Wrappers.<PhoneRecordDO>lambdaQuery().eq(PhoneRecordDO::getRechargeOrderId, orderId));
|
||||||
log.info("-------------------------recordDOS{},{}",recordDOS,recordDOS.size());
|
|
||||||
if (!CollectionUtils.isEmpty(recordDOS)) {
|
if (!CollectionUtils.isEmpty(recordDOS)) {
|
||||||
Set<Long> ids = recordDOS.stream().map(PhoneRecordDO::getId).collect(Collectors.toSet());
|
Set<Long> ids = recordDOS.stream().map(PhoneRecordDO::getId).collect(Collectors.toSet());
|
||||||
log.info("-------------------------ids{}",ids);
|
|
||||||
phoneRecordMapper.deleteBatchIds(ids);
|
phoneRecordMapper.deleteBatchIds(ids);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue