|
@@ -40,6 +40,7 @@ import com.sckw.redis.utils.RedissonUtils;
|
|
|
import com.sckw.system.api.RemoteSystemService;
|
|
import com.sckw.system.api.RemoteSystemService;
|
|
|
import com.sckw.system.api.model.dto.res.EntCacheResDto;
|
|
import com.sckw.system.api.model.dto.res.EntCacheResDto;
|
|
|
import com.sckw.system.api.model.dto.res.UserCacheResDto;
|
|
import com.sckw.system.api.model.dto.res.UserCacheResDto;
|
|
|
|
|
+import com.sckw.system.api.model.dto.res.UserResDto;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.dubbo.config.annotation.DubboReference;
|
|
import org.apache.dubbo.config.annotation.DubboReference;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -412,7 +413,11 @@ public class KwcContractLogisticsScoreServiceImpl implements IKwcContractLogisti
|
|
|
//2.插入评分明细记录
|
|
//2.插入评分明细记录
|
|
|
LogisticsScoreDetailAddDto detailAddDto = new LogisticsScoreDetailAddDto();
|
|
LogisticsScoreDetailAddDto detailAddDto = new LogisticsScoreDetailAddDto();
|
|
|
detailAddDto.setScoreId(logisticsScore.getId());
|
|
detailAddDto.setScoreId(logisticsScore.getId());
|
|
|
- detailAddDto.setInfluenceBy(detailDto.getInfluenceBy());
|
|
|
|
|
|
|
+ //根据影响人手机号查询影响人userId
|
|
|
|
|
+ UserResDto userResDto = remoteSystemService.queryUserByPhone(detailDto.getPhone());
|
|
|
|
|
+ if(userResDto != null){
|
|
|
|
|
+ detailAddDto.setInfluenceBy(userResDto.getId());
|
|
|
|
|
+ }
|
|
|
detailAddDto.setAction(detailDto.getAction());
|
|
detailAddDto.setAction(detailDto.getAction());
|
|
|
detailAddDto.setScoreChange(entScoreChange);
|
|
detailAddDto.setScoreChange(entScoreChange);
|
|
|
detailAddDto.setScore(resultScore);
|
|
detailAddDto.setScore(resultScore);
|