Commit 50319394 by songyinghui

feat: 分组操作提示

parent 31fc52a0
......@@ -381,7 +381,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
}
log.info("插入加好友日志");
wxUserAddLogService.updateMemberInfo(wxEnterpriseId,externalUserId,memberId);
wxUserAddLogService.updateMemberInfo(wxEnterpriseId,externalUserId,memberId, null);
}
/**
......
......@@ -56,10 +56,10 @@ public class HmGroupApiServiceImpl implements HmGroupApiService {
public ServiceResponse<Long> saveOrUpdateHmGroupSetting(HmGroupDTO hmGroupDTO) {
log.info("[saveOrUpdateHmGroupSetting] params:{}", JSON.toJSONString(hmGroupDTO));
if (StringUtils.isBlank(hmGroupDTO.getGroupName())) {
return ServiceResponse.failure(HaoBanErrCodeCommon.ERR_5.getCode() + "", HaoBanErrCodeCommon.ERR_5.getMsg());
return ServiceResponse.failure(HaoBanErrCodeCommon.ERR_5.getCode() + "", "分组名称不存在");
}
if (StringUtils.equals(DEFAULT_GROUP_NAME, hmGroupDTO.getGroupName())) {
return ServiceResponse.failure(HaoBanErrCodeCommon.ERR_9.getCode() + "", HaoBanErrCodeCommon.ERR_9.getMsg());
return ServiceResponse.failure(HaoBanErrCodeCommon.ERR_9.getCode() + "", "分组名称不可使用默认分组名称");
}
HmGroupInfoQO groupInfoQo = new HmGroupInfoQO();
groupInfoQo.setGroupName(hmGroupDTO.getGroupName());
......@@ -71,19 +71,19 @@ public class HmGroupApiServiceImpl implements HmGroupApiService {
// insert
// check groupName unique
if (CollectionUtils.isNotEmpty(hmGroupSettingPage.getResult())) {
return ServiceResponse.failure(HaoBanErrCodeCommon.ERR_5.getCode() + "", HaoBanErrCodeCommon.ERR_5.getMsg());
return ServiceResponse.failure(HaoBanErrCodeCommon.ERR_5.getCode() + "", "该分组名称已存在,请重新输入");
}
} else {
// update
if (CollectionUtils.isNotEmpty(hmGroupSettingPage.getResult())
&& hmGroupSettingPage.getTotalCount() > 1) {
// 名称重复
return ServiceResponse.failure(HaoBanErrCodeCommon.ERR_5.getCode() + "", HaoBanErrCodeCommon.ERR_5.getMsg());
return ServiceResponse.failure(HaoBanErrCodeCommon.ERR_5.getCode() + "", "该分组名称已存在,请重新输入");
}
if (CollectionUtils.isNotEmpty(hmGroupSettingPage.getResult())
&& !hmGroupSettingPage.getResult().get(0).getGroupId().equals(hmGroupDTO.getGroupId())) {
// 名称重复
return ServiceResponse.failure(HaoBanErrCodeCommon.ERR_5.getCode() + "", HaoBanErrCodeCommon.ERR_5.getMsg());
return ServiceResponse.failure(HaoBanErrCodeCommon.ERR_5.getCode() + "", "该分组名称已存在,请重新输入");
}
HmGroupSettingBO groupSettingBo = groupService.queryGroupSettingDetail(hmGroupDTO.getGroupId());
if (groupSettingBo == null) {
......
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