|
@@ -2,9 +2,6 @@ package cn.com.ty.lift.ud.expertComment.service.impl;
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
-import cn.com.ty.lift.ud.expertComment.mapper.entity.ScoreInfo;
|
|
|
|
-import cn.com.ty.lift.ud.userInfo.mapper.entity.UserInfoEntity;
|
|
|
|
-import cn.com.xwy.util.collection.ListUtil;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.jms.core.JmsMessagingTemplate;
|
|
import org.springframework.jms.core.JmsMessagingTemplate;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -17,14 +14,16 @@ import cn.com.ty.lift.common.model.PushMessage;
|
|
import cn.com.ty.lift.common.model.PushUserInfo;
|
|
import cn.com.ty.lift.common.model.PushUserInfo;
|
|
import cn.com.ty.lift.ud.chat.mapper.LiftCaseMapper;
|
|
import cn.com.ty.lift.ud.chat.mapper.LiftCaseMapper;
|
|
import cn.com.ty.lift.ud.chat.mapper.entity.LiftCaseEntity;
|
|
import cn.com.ty.lift.ud.chat.mapper.entity.LiftCaseEntity;
|
|
-import cn.com.ty.lift.ud.chat.service.ILiftCaseService;
|
|
|
|
import cn.com.ty.lift.ud.expertComment.controller.query.ExpertCommentQuery;
|
|
import cn.com.ty.lift.ud.expertComment.controller.query.ExpertCommentQuery;
|
|
import cn.com.ty.lift.ud.expertComment.mapper.ExpertCommentMapper;
|
|
import cn.com.ty.lift.ud.expertComment.mapper.ExpertCommentMapper;
|
|
import cn.com.ty.lift.ud.expertComment.mapper.entity.ExpertCommentEntity;
|
|
import cn.com.ty.lift.ud.expertComment.mapper.entity.ExpertCommentEntity;
|
|
|
|
+import cn.com.ty.lift.ud.expertComment.mapper.entity.ScoreInfo;
|
|
import cn.com.ty.lift.ud.expertComment.service.IExpertCommentService;
|
|
import cn.com.ty.lift.ud.expertComment.service.IExpertCommentService;
|
|
import cn.com.ty.lift.ud.operation.mapper.entity.ExpertLevelSettingEntity;
|
|
import cn.com.ty.lift.ud.operation.mapper.entity.ExpertLevelSettingEntity;
|
|
import cn.com.ty.lift.ud.operation.service.IExpertLevelSettingService;
|
|
import cn.com.ty.lift.ud.operation.service.IExpertLevelSettingService;
|
|
import cn.com.ty.lift.ud.userAccount.service.IUserAccountService;
|
|
import cn.com.ty.lift.ud.userAccount.service.IUserAccountService;
|
|
|
|
+import cn.com.ty.lift.ud.userInfo.mapper.UserInfoMapper;
|
|
|
|
+import cn.com.ty.lift.ud.userInfo.mapper.entity.UserInfoEntity;
|
|
import cn.com.ty.lift.ud.userInfo.service.IUserInfoService;
|
|
import cn.com.ty.lift.ud.userInfo.service.IUserInfoService;
|
|
import cn.com.xwy.boot.web.dto.RestResponse;
|
|
import cn.com.xwy.boot.web.dto.RestResponse;
|
|
|
|
|
|
@@ -56,7 +55,7 @@ public class ExpertCommentServiceImpl extends ServiceImpl<ExpertCommentMapper, E
|
|
private IUserInfoService iUserInfoService;
|
|
private IUserInfoService iUserInfoService;
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
- private ILiftCaseService iLiftCaseService;
|
|
|
|
|
|
+ private UserInfoMapper userInfoMapper;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 多表查询
|
|
* 多表查询
|
|
@@ -153,6 +152,7 @@ public class ExpertCommentServiceImpl extends ServiceImpl<ExpertCommentMapper, E
|
|
}
|
|
}
|
|
// 修改 user_info 中的专家总积分 level_total_score,并修改专家星级
|
|
// 修改 user_info 中的专家总积分 level_total_score,并修改专家星级
|
|
UserInfoEntity expertInfo = iUserInfoService.getByUserId(entity.getExpertId());
|
|
UserInfoEntity expertInfo = iUserInfoService.getByUserId(entity.getExpertId());
|
|
|
|
+ userInfoMapper.updateAverageScore(expertInfo.getUserId(),expertInfo.getAverageScore());
|
|
if(null != expertInfo){
|
|
if(null != expertInfo){
|
|
int nowTotalScore = score;
|
|
int nowTotalScore = score;
|
|
if(null != expertInfo.getLevelTotalScore()){
|
|
if(null != expertInfo.getLevelTotalScore()){
|