admin
2019-09-17 f31c17938f5b8e57e896e53de3ffbd210f5c4129
UserInfoDao依赖清除
4个文件已修改
1个文件已删除
90 ■■■■■ 已修改文件
fanli/src/main/java/com/yeshi/fanli/aspect/integral/IntegralGetVersionLimitAspect.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/user/UserInfoDao.java 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/impl/user/AccountMessageServiceImpl.java 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/impl/user/SpreadUserImgServiceImpl.java 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/impl/user/integral/IntegralGetServiceImpl.java 57 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/aspect/integral/IntegralGetVersionLimitAspect.java
@@ -1,6 +1,5 @@
package com.yeshi.fanli.aspect.integral;
import java.io.IOException;
import java.lang.reflect.Method;
import javax.annotation.Resource;
@@ -20,7 +19,6 @@
import org.yeshi.utils.NumberUtil;
import com.yeshi.fanli.entity.bus.user.UserActiveLog;
import com.yeshi.fanli.log.LogHelper;
import com.yeshi.fanli.service.inter.user.UserActiveLogService;
import com.yeshi.fanli.util.VersionUtil;
import com.yeshi.fanli.util.annotation.integral.IntegralGetVersionLimit;
fanli/src/main/java/com/yeshi/fanli/dao/user/UserInfoDao.java
File was deleted
fanli/src/main/java/com/yeshi/fanli/service/impl/user/AccountMessageServiceImpl.java
@@ -4,18 +4,15 @@
import javax.annotation.Resource;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.springframework.orm.hibernate4.HibernateCallback;
import org.springframework.stereotype.Service;
import com.yeshi.fanli.dao.mybatis.AccountMessageMapper;
import com.yeshi.fanli.dao.user.UserInfoDao;
import com.yeshi.fanli.entity.bus.user.AccountMessage;
import com.yeshi.fanli.entity.bus.user.UserInfo;
import com.yeshi.fanli.entity.system.SystemZnx;
import com.yeshi.fanli.service.inter.user.AccountMessageService;
import com.yeshi.fanli.service.inter.user.SystemZnxService;
import com.yeshi.fanli.service.inter.user.UserInfoService;
import com.yeshi.fanli.util.Constant;
@Service
@@ -24,7 +21,7 @@
    @Resource
    private AccountMessageMapper accountMessageMapper;
    @Resource
    private UserInfoDao userInfoDao;
    private UserInfoService userInfoService;
    
    @Resource
    private SystemZnxService systemZnxService;
@@ -62,10 +59,9 @@
            accountMessageMapper.insertSelective(accountMessage);
    }
    @SuppressWarnings("unchecked")
    @Override
    public void syncSystemZnx(long uid) {
        UserInfo userInfo = userInfoDao.find(UserInfo.class, uid);
        UserInfo userInfo = userInfoService.selectByPKey(uid);
        if (userInfo == null)
            return;
        
fanli/src/main/java/com/yeshi/fanli/service/impl/user/SpreadUserImgServiceImpl.java
@@ -15,7 +15,6 @@
import com.yeshi.fanli.dao.mybatis.share.SpreadUserImgMapper;
import com.yeshi.fanli.dao.mybatis.user.SpreadImgMapper;
import com.yeshi.fanli.dao.user.UserInfoDao;
import com.yeshi.fanli.entity.bus.invite.SpreadImg;
import com.yeshi.fanli.entity.bus.invite.SpreadUserImg;
import com.yeshi.fanli.entity.bus.user.UserInfo;
@@ -23,6 +22,7 @@
import com.yeshi.fanli.service.inter.user.QrCodeService;
import com.yeshi.fanli.service.inter.user.SpreadUserImgService;
import com.yeshi.fanli.service.inter.user.UserInfoExtraService;
import com.yeshi.fanli.service.inter.user.UserInfoService;
import com.yeshi.fanli.util.Constant;
import com.yeshi.fanli.util.StringUtil;
@@ -39,7 +39,7 @@
    private QrCodeService qrCodeService;
    @Resource
    private UserInfoDao userInfoDao;
    private UserInfoService userInfoService;
    @Resource
    private UserInfoExtraService userInfoExtraService;
@@ -170,7 +170,7 @@
        UserInfo user = null;
        if (dlist != null && dlist.size() > 0)
            user = userInfoDao.find(UserInfo.class, uid);
            user = userInfoService.selectByPKey(uid);
        String inviteCode = null;
        UserInfoExtra extraInfo = userInfoExtraService.getUserInfoExtra(uid);
@@ -223,7 +223,7 @@
        // }
        // 生成
        UserInfo user = userInfoDao.find(UserInfo.class, uid);
        UserInfo user = userInfoService.selectByPKey(uid);
        try {
            String imgUrl = qrCodeService.drawInviteQrCode(bgImg, uid, user.getPortrait(), null);
            return imgUrl;
@@ -235,7 +235,7 @@
    @Override
    public String getUserSpreadImg(Long uid, String bgImg, int erCodePostionX, int erCodePostionY, int erCodeSize) {
        UserInfo user = userInfoDao.find(UserInfo.class, uid);
        UserInfo user = userInfoService.selectByPKey(uid);
        try {
            String imgUrl = qrCodeService.drawInviteQrCode(bgImg, uid, user.getPortrait(), erCodePostionX,
                    erCodePostionY, erCodeSize, null);
fanli/src/main/java/com/yeshi/fanli/service/impl/user/integral/IntegralGetServiceImpl.java
@@ -19,7 +19,6 @@
import com.yeshi.fanli.entity.integral.IntegralTaskRecord;
import com.yeshi.fanli.exception.integral.IntegralGetException;
import com.yeshi.fanli.exception.integral.IntegralTaskRecordException;
import com.yeshi.fanli.log.LogHelper;
import com.yeshi.fanli.service.inter.user.UserInfoExtraService;
import com.yeshi.fanli.service.inter.user.integral.IntegralGetService;
import com.yeshi.fanli.service.inter.user.integral.IntegralTaskRankService;
@@ -175,7 +174,7 @@
            addEventStatistic(uid, TaskUniqueKeyEnum.inShopLevelOne.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -185,7 +184,7 @@
        try {
            addEventStatistic(uid, TaskUniqueKeyEnum.inShopLevelTwo.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -253,7 +252,7 @@
        try {
            addEventStatistic(uid, TaskUniqueKeyEnum.taoLiJinBuy.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -268,7 +267,7 @@
            addEventStatistic(uid, TaskUniqueKeyEnum.inviteLevelOne.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -283,7 +282,7 @@
        try {
            addEventStatistic(uid, TaskUniqueKeyEnum.inviteLevelTwo.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -295,7 +294,7 @@
        try {
            addEventStatistic(uid, TaskUniqueKeyEnum.shareSingleGoods.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -307,7 +306,7 @@
        try {
            addEventStatistic(uid, TaskUniqueKeyEnum.shareMultipleGoods.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -319,7 +318,7 @@
        try {
            addEventStatistic(uid, TaskUniqueKeyEnum.shareTLJGoods.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -330,7 +329,7 @@
        try {
            addEventStatistic(uid, TaskUniqueKeyEnum.giveRebateCoupon.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -341,7 +340,7 @@
        try {
            addEventStatistic(uid, TaskUniqueKeyEnum.giveFreeCoupon.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -352,7 +351,7 @@
        try {
            addEventStatistic(uid, TaskUniqueKeyEnum.giveTaoLiJin.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -364,7 +363,7 @@
        try {
            addEventStatistic(uid, TaskUniqueKeyEnum.closeRecommendGoods.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -380,7 +379,7 @@
            addEventStatistic(uid, TaskUniqueKeyEnum.couponRebate.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -399,7 +398,7 @@
            addEventStatistic(uid, TaskUniqueKeyEnum.couponRebateLevelOne.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -414,7 +413,7 @@
        try {
            addEventStatistic(uid, TaskUniqueKeyEnum.couponRebateLevelTwo.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -425,7 +424,7 @@
        try {
            addEventStatistic(uid, TaskUniqueKeyEnum.rebateOrder.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -441,7 +440,7 @@
        try {
            addEventStatistic(uid, TaskUniqueKeyEnum.inviteOrderLevelOne.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -457,7 +456,7 @@
        try {
            addEventStatistic(uid, TaskUniqueKeyEnum.inviteOrderLevelTwo.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -468,7 +467,7 @@
        try {
            addEventStatistic(uid, TaskUniqueKeyEnum.shareOrder.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -479,7 +478,7 @@
        try {
            addEventStatistic(uid, TaskUniqueKeyEnum.bindWeiXin.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -490,7 +489,7 @@
        try {
            addEventStatistic(uid, TaskUniqueKeyEnum.bindPhone.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -501,7 +500,7 @@
        try {
            addEventStatistic(uid, TaskUniqueKeyEnum.bindTaoBao.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -512,7 +511,7 @@
        try {
            addEventStatistic(uid, TaskUniqueKeyEnum.setWeiXinNum.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -523,7 +522,7 @@
        try {
            addEventStatistic(uid, TaskUniqueKeyEnum.setGender.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -534,7 +533,7 @@
        try {
            addEventStatistic(uid, TaskUniqueKeyEnum.setPortrait.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -545,7 +544,7 @@
        try {
            addEventStatistic(uid, TaskUniqueKeyEnum.setNickName.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -556,7 +555,7 @@
        try {
            addEventStatistic(uid, TaskUniqueKeyEnum.bindAlipay.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }
@@ -567,7 +566,7 @@
        try {
            addEventStatistic(uid, TaskUniqueKeyEnum.inviteActivate.name());
        } catch (Exception e) {
            LogHelper.errorDetailInfo(e);
            //LogHelper.errorDetailInfo(e);
        }
    }