Kaynağa Gözat

[积分][修改]:修改积分返回类型

release_toaliyun_real
hanxueda 7 yıl önce
ebeveyn
işleme
475d316c99
2 değiştirilmiş dosya ile 4 ekleme ve 2 silme
  1. +2
    -1
      mallinkService/src/main/java/com/iformall/service/WxCreditHistoryService.java
  2. +2
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxCreditHistoryServiceImpl.java

+ 2
- 1
mallinkService/src/main/java/com/iformall/service/WxCreditHistoryService.java Dosyayı Görüntüle

@@ -1,6 +1,7 @@
package com.iformall.service; package com.iformall.service;


import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.iformall.common.ResultData;
import com.iformall.domain.po.WxCreditHistory; import com.iformall.domain.po.WxCreditHistory;
import com.iformall.domain.vo.WxCreditHistoryVo; import com.iformall.domain.vo.WxCreditHistoryVo;


@@ -41,7 +42,7 @@ public interface WxCreditHistoryService {
* *
* @param record * @param record
*/ */
void saveOrUpdate(WxCreditHistory record);
ResultData saveOrUpdate(WxCreditHistory record);


/** /**
* 根据Id删除实体 * 根据Id删除实体


+ 2
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxCreditHistoryServiceImpl.java Dosyayı Görüntüle

@@ -141,7 +141,7 @@ public class WxCreditHistoryServiceImpl implements WxCreditHistoryService {


@Override @Override
@Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = {Exception.class}) @Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = {Exception.class})
public void saveOrUpdate(WxCreditHistory record) {
public ResultData saveOrUpdate(WxCreditHistory record) {
WxCUser wxCUser = wxCUserMapper.selectByPrimaryKey(record.getCUserId()); WxCUser wxCUser = wxCUserMapper.selectByPrimaryKey(record.getCUserId());
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectByPrimaryKey(record.getCUserId()); WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectByPrimaryKey(record.getCUserId());
if (wxCUser == null && wxCUserBasicInfo == null) { if (wxCUser == null && wxCUserBasicInfo == null) {
@@ -186,6 +186,7 @@ public class WxCreditHistoryServiceImpl implements WxCreditHistoryService {
} else { } else {
//wxCreditHistoryMapper.updateByPrimaryKeySelective(record); //wxCreditHistoryMapper.updateByPrimaryKeySelective(record);
} }
return new ResultData(Result.SUCCESS,"积分操作成功");
} }


@Override @Override


Yükleniyor…
İptal
Kaydet