Commit a394de4e by 阮思源

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

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