|
|
|
@@ -589,7 +589,7 @@ public class WxCreditHistoryServiceImpl implements WxCreditHistoryService { |
|
|
|
@Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = {Exception.class}) |
|
|
|
public WxCreditHistory saveOrUpdate(WxCreditHistory record,TenantEntity tenantEntity) { |
|
|
|
WxCreditHistory history = wxCreditHistoryMapper.selectOne(new LambdaQueryWrapper<WxCreditHistory>().eq(WxCreditHistory::getTicketNumber, record.getTicketNumber())); |
|
|
|
if (history == null){ |
|
|
|
if (history != null){ |
|
|
|
throw new MallinkException(ErrorCode.SMALL_TICKET_IS_USED); |
|
|
|
} |
|
|
|
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(record.getCUserId(),record.getTenantId()); |
|
|
|
|