Commit 5b43c84e by 18356073052

fix some bugs

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