消息--修改--SysUserNotification 添加 detail 消息详情
This commit is contained in:
parent
08e0934895
commit
4fe2ed0d15
@ -42,6 +42,9 @@ public class SysUserNotification extends BaseEntity
|
||||
@Excel(name = "状态", readConverterExp = "状态(0未读")
|
||||
private String status;
|
||||
|
||||
// 消息详情
|
||||
private String detail;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
@ -106,6 +109,14 @@ public class SysUserNotification extends BaseEntity
|
||||
return status;
|
||||
}
|
||||
|
||||
public String getDetail() {
|
||||
return detail;
|
||||
}
|
||||
|
||||
public void setDetail(String detail) {
|
||||
this.detail = detail;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
@ -118,6 +129,7 @@ public class SysUserNotification extends BaseEntity
|
||||
.append("status", getStatus())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("detail", getDetail())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
||||
@ -14,6 +14,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="status" column="status" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="detail" column="detail" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSysUserNotificationVo">
|
||||
@ -29,6 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="targetId != null "> and target_id = #{targetId}</if>
|
||||
<if test="targetType != null and targetType != ''"> and target_type = #{targetType}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
|
||||
</where>
|
||||
</select>
|
||||
|
||||
@ -58,6 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="status != null">status,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="detail != null and detail != ''">detail,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">#{userId},</if>
|
||||
@ -68,6 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="detail != null and detail != ''">#{detail},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@ -82,6 +86,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="detail != null and detail != ''">detail = #{detail},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user