|
@@ -35,10 +35,10 @@
|
|
|
<insert id="insertBatch" keyColumn="id_" keyProperty="id" useGeneratedKeys="true"
|
|
|
parameterType="com.yonge.cooleshow.biz.dal.entity.ImGroupMember">
|
|
|
insert into im_group_member(group_id_, user_id_,avatar_, nickname_, is_admin_, role_type_, create_time_,
|
|
|
- update_time_)
|
|
|
+ update_time_,group_role_type_)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
- (#{entity.groupId}, #{entity.userId}, #{entity.avatar}, #{entity.nickname}, #{entity.isAdmin}, #{entity.roleType},NOW(), NOW())
|
|
|
+ (#{entity.groupId}, #{entity.userId}, #{entity.avatar}, #{entity.nickname}, #{entity.isAdmin}, #{entity.roleType},NOW(), NOW(),#{entity.groupRoleType})
|
|
|
</foreach>
|
|
|
ON DUPLICATE KEY UPDATE
|
|
|
group_id_ = VALUES(group_id_),
|