@ -44,4 +44,7 @@ public class SysWxBannerImage extends BaseEntity
|
||||
|
||||
/** 删除标识 0未删除 1已删除 */
|
||||
private Long delFlag;
|
||||
|
||||
//预览Banner图片地址
|
||||
private String previewBannerUrl;
|
||||
}
|
@ -14,6 +14,9 @@ import java.util.Map;
|
||||
@Data
|
||||
public class CommunityPunchReponse {
|
||||
|
||||
//加密ID
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 微信openid
|
||||
*/
|
||||
@ -22,7 +25,7 @@ public class CommunityPunchReponse {
|
||||
/**
|
||||
* 客户ID
|
||||
*/
|
||||
private Long cusId;
|
||||
private String cusId;
|
||||
|
||||
/**
|
||||
* 昵称
|
||||
|
@ -25,6 +25,12 @@
|
||||
|
||||
<select id="selectSysWxBannerImageList" parameterType="SysWxBannerImage" resultMap="SysWxBannerImageResult">
|
||||
<include refid="selectSysWxBannerImageVo"/> where del_flag = 0
|
||||
<if test="title != null">
|
||||
and (title like concat('%',#{title},'%') or content like concat('%',#{title},'%'))
|
||||
</if>
|
||||
<if test="showFlag != null">
|
||||
and show_flag = #{showFlag}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectSysWxBannerImageById" parameterType="Long" resultMap="SysWxBannerImageResult">
|
||||
|
@ -319,6 +319,7 @@
|
||||
|
||||
|
||||
<resultMap id="punchReponseMap" type="com.stdiet.custom.dto.response.CommunityPunchReponse">
|
||||
<result property="id" column="id" />
|
||||
<result property="openid" column="openid" />
|
||||
<result property="cusId" column="cus_id"/>
|
||||
<result property="nickName" column="nick_name"/>
|
||||
@ -334,7 +335,7 @@
|
||||
|
||||
<!-- 查询打卡社区内容 -->
|
||||
<select id="getCommunityPunch" resultMap="punchReponseMap" parameterType="SysWxUserLog">
|
||||
select wxinfo.openid,wxinfo.cus_id,wxinfo.nick_name,wxinfo.avatar_url,wxlog.log_time,wxlog.weight,wxlog.comment,wxlog.thumbsup_num,wxlog.health_manifesto from sys_wx_user_log wxlog
|
||||
select wxlog.id,wxinfo.openid,wxinfo.cus_id,wxinfo.nick_name,wxinfo.avatar_url,wxlog.log_time,wxlog.weight,wxlog.comment,wxlog.thumbsup_num,wxlog.health_manifesto from sys_wx_user_log wxlog
|
||||
left join sys_wx_user_info wxinfo on wxinfo.openid = wxlog.openid
|
||||
where wxlog.del_flag = 0
|
||||
order by wxlog.log_time desc
|
||||
|
Reference in New Issue
Block a user