no message
This commit is contained in:
parent
bcfbf9f75d
commit
baa12f36c3
@ -58,7 +58,7 @@
|
|||||||
<el-table-column prop="templateContent" label="模板内容"></el-table-column>
|
<el-table-column prop="templateContent" label="模板内容"></el-table-column>
|
||||||
<el-table-column prop="recipientRoles" label="接收角色"></el-table-column>
|
<el-table-column prop="recipientRoles" label="接收角色"></el-table-column>
|
||||||
<el-table-column prop="templateStatus" label="模板状态"></el-table-column>
|
<el-table-column prop="templateStatus" label="模板状态"></el-table-column>
|
||||||
<el-table-column prop="createTime" label="创建人"></el-table-column>
|
<el-table-column prop="createBy" label="创建人"></el-table-column>
|
||||||
<el-table-column prop="createTime" label="创建时间"></el-table-column>
|
<el-table-column prop="createTime" label="创建时间"></el-table-column>
|
||||||
<el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
@ -36,6 +36,7 @@ public class SysNotify extends BaseEntity {
|
|||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String recipientRolesName;
|
private String recipientRolesName;
|
||||||
private String conditions;
|
private String conditions;
|
||||||
|
private String createName;
|
||||||
/**
|
/**
|
||||||
* 模板状态,布尔类型,不能为空
|
* 模板状态,布尔类型,不能为空
|
||||||
*/
|
*/
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
<result property="templateContent" column="template_content" jdbcType="VARCHAR"/>
|
<result property="templateContent" column="template_content" jdbcType="VARCHAR"/>
|
||||||
<result property="recipientRoles" column="recipient_roles" jdbcType="VARCHAR"/>
|
<result property="recipientRoles" column="recipient_roles" jdbcType="VARCHAR"/>
|
||||||
<result property="templateStatus" column="template_status" jdbcType="VARCHAR"/>
|
<result property="templateStatus" column="template_status" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createName" column="create_name" jdbcType="VARCHAR"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<!--查询单个-->
|
<!--查询单个-->
|
||||||
@ -22,7 +23,7 @@ id,notification_name,notification_type,template_content,recipient_roles,template
|
|||||||
<!--查询指定行数据-->
|
<!--查询指定行数据-->
|
||||||
<select id="queryAllByLimit" resultMap="SysNotifyMap">
|
<select id="queryAllByLimit" resultMap="SysNotifyMap">
|
||||||
select
|
select
|
||||||
id,notification_name,notification_type,template_content,recipient_roles,template_status
|
id,notification_name,notification_type,template_content,recipient_roles,template_status,create_by,update_by,update_time,create_time,create_name
|
||||||
|
|
||||||
from sys_notify
|
from sys_notify
|
||||||
<where>
|
<where>
|
||||||
@ -75,8 +76,8 @@ id,notification_name,notification_type,template_content,recipient_roles,template
|
|||||||
|
|
||||||
<!--新增所有列-->
|
<!--新增所有列-->
|
||||||
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
||||||
insert into sys_notify(notification_name,notification_type,template_content,recipient_roles,template_status,conditions)
|
insert into sys_notify(notification_name,notification_type,template_content,recipient_roles,template_status,conditions,create_name)
|
||||||
values (#{notificationName},#{notificationType},#{templateContent},#{recipientRoles},#{templateStatus},#{conditions})
|
values (#{notificationName},#{notificationType},#{templateContent},#{recipientRoles},#{templateStatus},#{conditions},#{createName})
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
|
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||||
|
@ -60,6 +60,7 @@ public class SysNotifyServiceImpl implements SysNotifyService {
|
|||||||
public SysNotify insert(SysNotify sysNotify) {
|
public SysNotify insert(SysNotify sysNotify) {
|
||||||
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
||||||
// sysNotify.setStoreId(nowAccountInfo.getStoreId());
|
// sysNotify.setStoreId(nowAccountInfo.getStoreId());
|
||||||
|
sysNotify.setCreateName(nowAccountInfo.getRealName());
|
||||||
this.sysNotifyMapper.insert(sysNotify);
|
this.sysNotifyMapper.insert(sysNotify);
|
||||||
return sysNotify;
|
return sysNotify;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user