Commit d5f2c25d by 杨涛

fix 插入主键错误

parent 0c28f887
...@@ -126,7 +126,8 @@ public class WeixinClockBizImpl implements WeixinClockBiz { ...@@ -126,7 +126,8 @@ public class WeixinClockBizImpl implements WeixinClockBiz {
} }
WeixinClock weixinClock = new WeixinClock(); WeixinClock weixinClock = new WeixinClock();
BeanUtils.copyProperties(weixinClockDto, weixinClock); BeanUtils.copyProperties(weixinClockDto, weixinClock);
Long weixinClockId = weixinClockDao.insert(weixinClock); weixinClockDao.insert(weixinClock);
Long weixinClockId = weixinClock.getWeixinClockId();
if(!ListUtils.isEmpty(weixinClockDto.getGroupClassifyIds())) { if(!ListUtils.isEmpty(weixinClockDto.getGroupClassifyIds())) {
List<WeixinClockGroupClassify> groupClassifyIds = Lists.newArrayList(); List<WeixinClockGroupClassify> groupClassifyIds = Lists.newArrayList();
weixinClockDto.getGroupClassifyIds().forEach(e -> { weixinClockDto.getGroupClassifyIds().forEach(e -> {
...@@ -411,7 +412,8 @@ public class WeixinClockBizImpl implements WeixinClockBiz { ...@@ -411,7 +412,8 @@ public class WeixinClockBizImpl implements WeixinClockBiz {
weixinClockMember.setNickname(groupUserDTO.getNickName()); weixinClockMember.setNickname(groupUserDTO.getNickName());
weixinClockMember.setWxGroupId(wechatGroupId); weixinClockMember.setWxGroupId(wechatGroupId);
weixinClockMember.setWxUserId(userWxId); weixinClockMember.setWxUserId(userWxId);
weixinClockMemberId = weixinClockMemberDao.insert(weixinClockMember); weixinClockMemberDao.insert(weixinClockMember);
weixinClockMemberId = weixinClockMember.getWeixinClockMemberId();
} }
SendTextMessageVO vo = new SendTextMessageVO(); SendTextMessageVO vo = new SendTextMessageVO();
vo.setAltId(wxId); vo.setAltId(wxId);
......
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