Commit 48d4d228 by 18356073052

fix some bugs

1 parent bafae4e0
......@@ -40,6 +40,12 @@ public class WeCommunityNewGroup extends BaseEntity {
private String welcomeMsg;
/**
* 新增联系方式的配置id
*/
@ApiModelProperty("新增联系方式的配置id")
private String configId;
/**
* 二维码链接
*/
@ApiModelProperty("二维码链接")
......
......@@ -59,6 +59,12 @@ public class WeCommunityNewGroupDto {
private Boolean isJoinConfirmFriends;
/**
* 新增联系方式的配置id
*/
@ApiModelProperty("新增联系方式的配置id")
private String configId;
/**
* 二维码链接
*/
@ApiModelProperty("二维码链接")
......
......@@ -18,14 +18,18 @@ public interface WeCommunityNewGroupMapper extends BaseMapper<WeCommunityNewGrou
/**
* 查询新客自动拉群列表
*
* @param communityNewGroup 搜索信息
* @return {@link WeCommunityNewGroup}s
* @param employCodeName 员工名称
* @param createBy 创建人
* @param beginTime 开始时间
* @param endTime 结束时间
* @return {WeCommunityNewGroupVo}s 列表
*/
List<WeCommunityNewGroupVo> selectWeCommunityNewGroupList(@Param("empleCodeName") String empleCodeName, @Param("createBy") String createBy
,@Param("beginTime") String beginTime, @Param("endTime") String endTime);
List<WeCommunityNewGroupVo> selectWeCommunityNewGroupList(@Param("employCodeName") String employCodeName, @Param("createBy") String createBy
, @Param("beginTime") String beginTime, @Param("endTime") String endTime);
/**
* 获取新客自动拉群详细信息
*
* @param newGroupId 主键id
* @return {@link WeCommunityNewGroupVo} 自动拉群信息
*/
......
......@@ -85,6 +85,7 @@ public class WeCommunityNewGroupServiceImpl extends ServiceImpl<WeCommunityNewGr
if (qrCode != null) {
communityNewGroup.setQrCode(qrCode.getQr_code());
communityNewGroup.setConfigId(qrCode.getConfig_id());
}
if (this.save(communityNewGroup)) {
......@@ -112,6 +113,7 @@ public class WeCommunityNewGroupServiceImpl extends ServiceImpl<WeCommunityNewGr
weEmpleCode.setWeEmpleCodeTags(communityNewGroupDto.getWeEmpleCodeTags());
weEmpleCode.setQrCode(communityNewGroupDto.getQrCode());
weEmpleCode.setMediaId(communityNewGroupDto.getMediaId());
weEmpleCode.setConfigId(communityNewGroupDto.getConfigId());
return weEmpleCode;
}
......@@ -173,8 +175,8 @@ public class WeCommunityNewGroupServiceImpl extends ServiceImpl<WeCommunityNewGr
}
//查询新客自动拉群信息
WeCommunityNewGroup communityNewGroup = weCommunityNewGroupMapper.selectOne(new LambdaQueryWrapper<WeCommunityNewGroup>()
.eq(WeCommunityNewGroup::getGroupCodeId,communityNewGroupDto.getGroupCodeId()));
WeCommunityNewGroup communityNewGroup = weCommunityNewGroupMapper.selectOne(new LambdaQueryWrapper<WeCommunityNewGroup>()
.eq(WeCommunityNewGroup::getGroupCodeId, communityNewGroupDto.getGroupCodeId()));
// WeCommunityNewGroup communityNewGroup = weCommunityNewGroupMapper.selectById(communityNewGroupDto.getGroupCodeId());
if (null == communityNewGroup) {
throw new WeComException("信息不存在!");
......
......@@ -18,7 +18,8 @@
qr_code,
is_join_confirm_friends,
media_id,
join_friend_nums
join_friend_nums,
config_id
FROM we_community_new_group
</sql>
<update id="batchRemoveWeCommunityNewGroupIds">
......@@ -36,8 +37,8 @@
<include refid="selectSql"/>
<where>
del_flag = 0
<if test="empleCodeName!=null and empleCodeName!=''">
AND emple_code_name LIKE CONCAT("%",#{empleCodeName},"%")
<if test="employCodeName!=null and employCodeName!=''">
AND emple_code_name LIKE CONCAT("%",#{employCodeName},"%")
</if>
<if test="beginTime != null and beginTime != ''"><!-- 开始时间检索 -->
AND date_format(create_time,'%y%m%d') &gt;= date_format(#{beginTime},'%y%m%d')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!