|
|
|
@@ -186,8 +186,8 @@ public class WxCreditHistoryServiceImpl implements WxCreditHistoryService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public WxCreditHistory getById(Long id) { |
|
|
|
return wxCreditHistoryMapper.selectById(id); |
|
|
|
public WxCreditHistory getById(Long id,String tenantId) { |
|
|
|
return wxCreditHistoryMapper.selectById(id,tenantId); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@@ -285,7 +285,7 @@ public class WxCreditHistoryServiceImpl implements WxCreditHistoryService { |
|
|
|
wxCreditHistory = creditHistories.get(0); |
|
|
|
} |
|
|
|
if (wxCreditHistory != null) { |
|
|
|
num = wxCreditHistoryMapper.deleteById(wxCreditHistory.getId()); |
|
|
|
num = wxCreditHistoryMapper.deleteById(wxCreditHistory.getId(),wxCreditHistory.getTenantId()); |
|
|
|
if (num != 1) { |
|
|
|
String errMessage = "删除积分历史出错"; |
|
|
|
logger.error(errMessage + wxCreditHistory.toString()); |
|
|
|
@@ -307,10 +307,10 @@ public class WxCreditHistoryServiceImpl implements WxCreditHistoryService { |
|
|
|
return num; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void deleteById(Long id) { |
|
|
|
wxCreditHistoryMapper.deleteById(id); |
|
|
|
} |
|
|
|
// @Override |
|
|
|
// public void deleteById(Long id) { |
|
|
|
// wxCreditHistoryMapper.deleteById(id); |
|
|
|
// } |
|
|
|
|
|
|
|
@Override |
|
|
|
public Map<String, Integer> findByMerchantIdAndSpend(Long merchantId, String spendStr, Long userId, TenantEntity tenantEntity) { |
|
|
|
|