Commit 381b57cd by 阮思源

Merge branch 'fix-rsy' into 'master'

修改特殊社群码获取个人号

See merge request rays/pcloud-book!291
parents 30e43bb9 a394de4e
...@@ -1479,8 +1479,7 @@ public class BookGroupBizImpl implements BookGroupBiz { ...@@ -1479,8 +1479,7 @@ public class BookGroupBizImpl implements BookGroupBiz {
ownAltQrcodeInfoDTO.setAltHeadUrl(selfRobotDTO.getHeadPic()); ownAltQrcodeInfoDTO.setAltHeadUrl(selfRobotDTO.getHeadPic());
if (selfRobotDTO.getAgentRobot()!=null&&selfRobotDTO.getAgentRobot()) { if (selfRobotDTO.getAgentRobot()!=null&&selfRobotDTO.getAgentRobot()) {
//先查询有没有重复的 //先查询有没有重复的
String altId = ""; BookGroupAgentRecord old = bookGroupAgentRecordDao.getByAltIdAndBookGroupId(selfRobotDTO.getWxId(), bookGroupId);
BookGroupAgentRecord old = bookGroupAgentRecordDao.getByAltIdAndBookGroupId(altId, bookGroupId);
if (old == null) { if (old == null) {
//没有重复的就插入 //没有重复的就插入
BookGroupAgentRecord bookGroupAgentRecord = new BookGroupAgentRecord(); BookGroupAgentRecord bookGroupAgentRecord = new BookGroupAgentRecord();
...@@ -1491,7 +1490,7 @@ public class BookGroupBizImpl implements BookGroupBiz { ...@@ -1491,7 +1490,7 @@ public class BookGroupBizImpl implements BookGroupBiz {
bookGroupAgentRecord.setGrade(selfRobotDTO.getGrade()); bookGroupAgentRecord.setGrade(selfRobotDTO.getGrade());
bookGroupAgentRecord.setSubject(selfRobotDTO.getSubject()); bookGroupAgentRecord.setSubject(selfRobotDTO.getSubject());
bookGroupAgentRecord.setTarget(selfRobotDTO.getTarget()); bookGroupAgentRecord.setTarget(selfRobotDTO.getTarget());
bookGroupAgentRecord.setAltId(altId); bookGroupAgentRecord.setAltId(selfRobotDTO.getWxId());
bookGroupAgentRecordDao.insert(bookGroupAgentRecord); bookGroupAgentRecordDao.insert(bookGroupAgentRecord);
} }
} }
......
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