Commit eae68ae4 by mobh Committed by chenzg

修改问题

parent 25722314
...@@ -38,14 +38,14 @@ public class AdminMsgTemplate extends Model<AdminMsgTemplate> { ...@@ -38,14 +38,14 @@ public class AdminMsgTemplate extends Model<AdminMsgTemplate> {
@ApiModelProperty(value="id id",example="101") @ApiModelProperty(value="id id",example="101")
private Integer id; private Integer id;
@ApiModelProperty(value="模板ID ",example="模板ID") @ApiModelProperty(value="模板编号 ",example="模板ID")
private String templateId; private String templateNum;
@ApiModelProperty(value="模板名称 ",example="模板名称") @ApiModelProperty(value="模板名称 ",example="模板名称")
private String templateName; private String templateName;
@ApiModelProperty(value="对应平台模板ID ",example="对应平台模板ID") @ApiModelProperty(value="对应平台模板编号 ",example="对应平台模板编号")
private String platformId; private String platformNum;
@ApiModelProperty(value="平台类型 1 阿里云",example="101") @ApiModelProperty(value="平台类型 1 阿里云",example="101")
private Integer platformType; private Integer platformType;
......
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
<resultMap id="BaseResultMap" type="cn.timer.api.bean.admin.AdminMsgTemplate" > <resultMap id="BaseResultMap" type="cn.timer.api.bean.admin.AdminMsgTemplate" >
<id column="id" property="id" /> <id column="id" property="id" />
<result column="template_id" property="templateId" /> <result column="template_num" property="templateNum" />
<result column="template_name" property="templateName" /> <result column="template_name" property="templateName" />
<result column="platform_id" property="platformId" /> <result column="platform_num" property="platformNum" />
<result column="platform_type" property="platformType" /> <result column="platform_type" property="platformType" />
<result column="content" property="content" /> <result column="content" property="content" />
<result column="msg_type" property="msgType" /> <result column="msg_type" property="msgType" />
...@@ -18,9 +18,9 @@ ...@@ -18,9 +18,9 @@
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, id,
template_id, template_num,
template_name, template_name,
platform_id, platform_num,
platform_type, platform_type,
content, content,
msg_type, msg_type,
...@@ -28,123 +28,4 @@ ...@@ -28,123 +28,4 @@
addtime, addtime,
org_code org_code
</sql> </sql>
<sql id="Base_Column_List_Alias">
id AdminMsgTemplate_id,
template_id AdminMsgTemplate_template_id,
template_name AdminMsgTemplate_template_name,
platform_id AdminMsgTemplate_platform_id,
platform_type AdminMsgTemplate_platform_type,
content AdminMsgTemplate_content,
msg_type AdminMsgTemplate_msg_type,
state AdminMsgTemplate_state,
addtime AdminMsgTemplate_addtime,
org_code AdminMsgTemplate_org_code
</sql>
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.admin.AdminMsgTemplate">
INSERT INTO admin_msg_template
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test ='null != templateId'>
template_id,
</if>
<if test ='null != templateName'>
template_name,
</if>
<if test ='null != platformId'>
platform_id,
</if>
<if test ='null != platformType'>
platform_type,
</if>
<if test ='null != content'>
content,
</if>
<if test ='null != msgType'>
msg_type,
</if>
<if test ='null != state'>
state,
</if>
<if test ='null != addtime'>
addtime,
</if>
<if test ='null != orgCode'>
org_code
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test ='null != templateId'>
#{templateId},
</if>
<if test ='null != templateName'>
#{templateName},
</if>
<if test ='null != platformId'>
#{platformId},
</if>
<if test ='null != platformType'>
#{platformType},
</if>
<if test ='null != content'>
#{content},
</if>
<if test ='null != msgType'>
#{msgType},
</if>
<if test ='null != state'>
#{state},
</if>
<if test ='null != addtime'>
#{addtime},
</if>
<if test ='null != orgCode'>
#{orgCode}
</if>
</trim>
</insert>
<delete id="delete" >
DELETE FROM admin_msg_template
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.admin.AdminMsgTemplate">
UPDATE admin_msg_template
<set>
<if test ='null != templateId'>template_id = #{templateId},</if>
<if test ='null != templateName'>template_name = #{templateName},</if>
<if test ='null != platformId'>platform_id = #{platformId},</if>
<if test ='null != platformType'>platform_type = #{platformType},</if>
<if test ='null != content'>content = #{content},</if>
<if test ='null != msgType'>msg_type = #{msgType},</if>
<if test ='null != state'>state = #{state},</if>
<if test ='null != addtime'>addtime = #{addtime},</if>
<if test ='null != orgCode'>org_code = #{orgCode}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM admin_msg_template
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM admin_msg_template
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM admin_msg_template
</select>
-->
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment