Commit 440e7299 by yao.xiao

修改-客户姓名乱码问题

parent 0b1e66d7
...@@ -19,6 +19,8 @@ import org.springframework.beans.BeanUtils; ...@@ -19,6 +19,8 @@ import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
...@@ -72,6 +74,19 @@ public class PractitionerArticleServiceImpl implements PractitionerArticleServic ...@@ -72,6 +74,19 @@ public class PractitionerArticleServiceImpl implements PractitionerArticleServic
ArticleTrackQueryResponseVO responseVO = new ArticleTrackQueryResponseVO(); ArticleTrackQueryResponseVO responseVO = new ArticleTrackQueryResponseVO();
//通过经纪人id和文章id查询 客户跟踪信息 //通过经纪人id和文章id查询 客户跟踪信息
List<ArticleTrackQueryInfo> articleTrackQueryInfos = practitionerArticleDALService.articleTrackQuery(practitionerId,sharingId); List<ArticleTrackQueryInfo> articleTrackQueryInfos = practitionerArticleDALService.articleTrackQuery(practitionerId,sharingId);
if (articleTrackQueryInfos.isEmpty()){
responseVO.setCommonResult(new CommonResult(true, ZHBErrorConfig.getErrorInfo("800000")));
return responseVO;
}
articleTrackQueryInfos.forEach(a -> {
try {
if ((a.getNickName() != null)) {
a.setNickName(URLDecoder.decode(a.getNickName(), "utf-8"));
}
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
});
responseVO.setArticleTrackQueryInfos(articleTrackQueryInfos); responseVO.setArticleTrackQueryInfos(articleTrackQueryInfos);
responseVO.setCommonResult(new CommonResult(true, ZHBErrorConfig.getErrorInfo("800000"))); responseVO.setCommonResult(new CommonResult(true, ZHBErrorConfig.getErrorInfo("800000")));
return responseVO; return responseVO;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment