forked from rememberber/WePush
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb076de
commit b690264
Showing
7 changed files
with
237 additions
and
3 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
src/main/java/com/fangxuele/tool/push/dao/TMsgMaSubscribeMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.fangxuele.tool.push.dao; | ||
|
||
import com.fangxuele.tool.push.domain.TMsgMaSubscribe; | ||
|
||
public interface TMsgMaSubscribeMapper { | ||
int deleteByPrimaryKey(Integer id); | ||
|
||
int insert(TMsgMaSubscribe record); | ||
|
||
int insertSelective(TMsgMaSubscribe record); | ||
|
||
TMsgMaSubscribe selectByPrimaryKey(Integer id); | ||
|
||
int updateByPrimaryKeySelective(TMsgMaSubscribe record); | ||
|
||
int updateByPrimaryKey(TMsgMaSubscribe record); | ||
} |
77 changes: 77 additions & 0 deletions
77
src/main/java/com/fangxuele/tool/push/domain/TMsgMaSubscribe.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
package com.fangxuele.tool.push.domain; | ||
|
||
import java.io.Serializable; | ||
|
||
public class TMsgMaSubscribe implements Serializable { | ||
private Integer id; | ||
|
||
private Integer msgType; | ||
|
||
private String msgName; | ||
|
||
private String templateId; | ||
|
||
private String page; | ||
|
||
private String createTime; | ||
|
||
private String modifiedTime; | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public Integer getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Integer id) { | ||
this.id = id; | ||
} | ||
|
||
public Integer getMsgType() { | ||
return msgType; | ||
} | ||
|
||
public void setMsgType(Integer msgType) { | ||
this.msgType = msgType; | ||
} | ||
|
||
public String getMsgName() { | ||
return msgName; | ||
} | ||
|
||
public void setMsgName(String msgName) { | ||
this.msgName = msgName == null ? null : msgName.trim(); | ||
} | ||
|
||
public String getTemplateId() { | ||
return templateId; | ||
} | ||
|
||
public void setTemplateId(String templateId) { | ||
this.templateId = templateId == null ? null : templateId.trim(); | ||
} | ||
|
||
public String getPage() { | ||
return page; | ||
} | ||
|
||
public void setPage(String page) { | ||
this.page = page == null ? null : page.trim(); | ||
} | ||
|
||
public String getCreateTime() { | ||
return createTime; | ||
} | ||
|
||
public void setCreateTime(String createTime) { | ||
this.createTime = createTime == null ? null : createTime.trim(); | ||
} | ||
|
||
public String getModifiedTime() { | ||
return modifiedTime; | ||
} | ||
|
||
public void setModifiedTime(String modifiedTime) { | ||
this.modifiedTime = modifiedTime == null ? null : modifiedTime.trim(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
<mapper namespace="com.fangxuele.tool.push.dao.TMsgMaSubscribeMapper"> | ||
<resultMap id="BaseResultMap" type="com.fangxuele.tool.push.domain.TMsgMaSubscribe"> | ||
<id column="id" jdbcType="INTEGER" property="id" /> | ||
<result column="msg_type" jdbcType="INTEGER" property="msgType" /> | ||
<result column="msg_name" jdbcType="VARCHAR" property="msgName" /> | ||
<result column="template_id" jdbcType="VARCHAR" property="templateId" /> | ||
<result column="page" jdbcType="VARCHAR" property="page" /> | ||
<result column="create_time" jdbcType="VARCHAR" property="createTime" /> | ||
<result column="modified_time" jdbcType="VARCHAR" property="modifiedTime" /> | ||
</resultMap> | ||
<sql id="Base_Column_List"> | ||
id, msg_type, msg_name, template_id, page, create_time, modified_time | ||
</sql> | ||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> | ||
select | ||
<include refid="Base_Column_List" /> | ||
from t_msg_ma_subscribe | ||
where id = #{id,jdbcType=INTEGER} | ||
</select> | ||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> | ||
delete from t_msg_ma_subscribe | ||
where id = #{id,jdbcType=INTEGER} | ||
</delete> | ||
<insert id="insert" parameterType="com.fangxuele.tool.push.domain.TMsgMaSubscribe"> | ||
insert into t_msg_ma_subscribe (id, msg_type, msg_name, | ||
template_id, page, create_time, | ||
modified_time) | ||
values (#{id,jdbcType=INTEGER}, #{msgType,jdbcType=INTEGER}, #{msgName,jdbcType=VARCHAR}, | ||
#{templateId,jdbcType=VARCHAR}, #{page,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, | ||
#{modifiedTime,jdbcType=VARCHAR}) | ||
</insert> | ||
<insert id="insertSelective" parameterType="com.fangxuele.tool.push.domain.TMsgMaSubscribe"> | ||
insert into t_msg_ma_subscribe | ||
<trim prefix="(" suffix=")" suffixOverrides=","> | ||
<if test="id != null"> | ||
id, | ||
</if> | ||
<if test="msgType != null"> | ||
msg_type, | ||
</if> | ||
<if test="msgName != null"> | ||
msg_name, | ||
</if> | ||
<if test="templateId != null"> | ||
template_id, | ||
</if> | ||
<if test="page != null"> | ||
page, | ||
</if> | ||
<if test="createTime != null"> | ||
create_time, | ||
</if> | ||
<if test="modifiedTime != null"> | ||
modified_time, | ||
</if> | ||
</trim> | ||
<trim prefix="values (" suffix=")" suffixOverrides=","> | ||
<if test="id != null"> | ||
#{id,jdbcType=INTEGER}, | ||
</if> | ||
<if test="msgType != null"> | ||
#{msgType,jdbcType=INTEGER}, | ||
</if> | ||
<if test="msgName != null"> | ||
#{msgName,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="templateId != null"> | ||
#{templateId,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="page != null"> | ||
#{page,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="createTime != null"> | ||
#{createTime,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="modifiedTime != null"> | ||
#{modifiedTime,jdbcType=VARCHAR}, | ||
</if> | ||
</trim> | ||
</insert> | ||
<update id="updateByPrimaryKeySelective" parameterType="com.fangxuele.tool.push.domain.TMsgMaSubscribe"> | ||
update t_msg_ma_subscribe | ||
<set> | ||
<if test="msgType != null"> | ||
msg_type = #{msgType,jdbcType=INTEGER}, | ||
</if> | ||
<if test="msgName != null"> | ||
msg_name = #{msgName,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="templateId != null"> | ||
template_id = #{templateId,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="page != null"> | ||
page = #{page,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="createTime != null"> | ||
create_time = #{createTime,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="modifiedTime != null"> | ||
modified_time = #{modifiedTime,jdbcType=VARCHAR}, | ||
</if> | ||
</set> | ||
where id = #{id,jdbcType=INTEGER} | ||
</update> | ||
<update id="updateByPrimaryKey" parameterType="com.fangxuele.tool.push.domain.TMsgMaSubscribe"> | ||
update t_msg_ma_subscribe | ||
set msg_type = #{msgType,jdbcType=INTEGER}, | ||
msg_name = #{msgName,jdbcType=VARCHAR}, | ||
template_id = #{templateId,jdbcType=VARCHAR}, | ||
page = #{page,jdbcType=VARCHAR}, | ||
create_time = #{createTime,jdbcType=VARCHAR}, | ||
modified_time = #{modifiedTime,jdbcType=VARCHAR} | ||
where id = #{id,jdbcType=INTEGER} | ||
</update> | ||
</mapper> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters