Commit a407739b by Administrator

Merge branch 'fixbug/1024262' into 'master'

bug: [1024262] 【生产环境】【平台端】【权益配置】选择某些群时保存多次,群会出现空白情况

See merge request rays/pcloud-book!800
parents 5a536875 d416ba8d
...@@ -1204,8 +1204,10 @@ public class RightsSettingBizImpl implements RightsSettingBiz { ...@@ -1204,8 +1204,10 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
if (groupActivity4AppletDTO != null) { if (groupActivity4AppletDTO != null) {
item.setGroupName(groupActivity4AppletDTO.getName()); item.setGroupName(groupActivity4AppletDTO.getName());
item.setGroupDesc(groupActivity4AppletDTO.getCutDesc()); item.setGroupDesc(groupActivity4AppletDTO.getCutDesc());
item.setGroupType(groupActivity4AppletDTO.getGroupType() == null ? null :groupActivity4AppletDTO.getGroupType().toString()); if (StringUtil.isEmpty(item.getGroupType())){ //add by pans 编辑段群groupType来源于rightNowItem
item.setLinkUrl(groupActivity4AppletDTO.getGroupLink()); item.setGroupType(groupActivity4AppletDTO.getGroupType() == null ? null :groupActivity4AppletDTO.getGroupType().toString());
item.setLinkUrl(groupActivity4AppletDTO.getGroupLink());
}
// 填充头像 // 填充头像
fillGroupActivityHead(Collections.singletonList(groupActivity4AppletDTO)); fillGroupActivityHead(Collections.singletonList(groupActivity4AppletDTO));
item.setGroupQrCode(groupActivity4AppletDTO.getGroupPic()); item.setGroupQrCode(groupActivity4AppletDTO.getGroupPic());
......
...@@ -449,6 +449,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz { ...@@ -449,6 +449,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
private List<Long> getActivityGroupIds(List<Long> ids, List<Long> adviserGroupIds) { private List<Long> getActivityGroupIds(List<Long> ids, List<Long> adviserGroupIds) {
if (!ListUtils.isEmpty(adviserGroupIds)) { if (!ListUtils.isEmpty(adviserGroupIds)) {
Iterator<Long> it4Ids = ids.iterator(); Iterator<Long> it4Ids = ids.iterator();
log.info("it4Ids : {}, adviserGroupIds {}",ids,adviserGroupIds);
while (it4Ids.hasNext()) { while (it4Ids.hasNext()) {
Long serverId = it4Ids.next(); Long serverId = it4Ids.next();
Iterator<Long> it4Group = adviserGroupIds.iterator(); Iterator<Long> it4Group = adviserGroupIds.iterator();
...@@ -456,7 +457,9 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz { ...@@ -456,7 +457,9 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
Long serverId4Group = it4Group.next(); Long serverId4Group = it4Group.next();
if (serverId.equals(serverId4Group)) { if (serverId.equals(serverId4Group)) {
it4Group.remove(); it4Group.remove();
it4Ids.remove(); if(!ListUtils.isEmpty(ids)){
it4Ids.remove();
}
} }
} }
} }
......
...@@ -13,11 +13,12 @@ ...@@ -13,11 +13,12 @@
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="rightsItemGroupId" column="rights_item_group_id" jdbcType="BIGINT"/> <result property="rightsItemGroupId" column="rights_item_group_id" jdbcType="BIGINT"/>
<result property="rightsSettingTitleId" column="rights_setting_title_id" jdbcType="BIGINT"/> <result property="rightsSettingTitleId" column="rights_setting_title_id" jdbcType="BIGINT"/>
<result property="groupType" column="group_type" jdbcType="VARCHAR"/>
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, rights_setting_id, serve_id, serve_type, link_url, type, gift_coupon_package_id, create_time, id, rights_setting_id, serve_id, serve_type, link_url, type, gift_coupon_package_id, create_time,
rights_item_group_id,rights_setting_title_id rights_item_group_id,rights_setting_title_id,group_type
</sql> </sql>
<select id="getById" resultMap="BaseResultMap" parameterType="java.lang.Long"> <select id="getById" resultMap="BaseResultMap" parameterType="java.lang.Long">
......
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
select count(1) select count(1)
from pcloud_group_activity from pcloud_group_activity
where number=#{number} where number=#{number}
and is_delete = 0
</select> </select>
......
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