Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
3be745c4
Commit
3be745c4
authored
Nov 09, 2020
by
mobh
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-mobh' into develop
parents
da2ee2e8
05233381
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
128 deletions
+8
-128
src/main/java/cn/timer/api/bean/admin/AdminMsgTemplate.java
+4
-4
src/main/resources/mapping/admin/AdminMsgTemplateMapper.xml
+4
-124
No files found.
src/main/java/cn/timer/api/bean/admin/AdminMsgTemplate.java
View file @
3be745c4
...
...
@@ -38,14 +38,14 @@ public class AdminMsgTemplate extends Model<AdminMsgTemplate> {
@ApiModelProperty
(
value
=
"id id"
,
example
=
"101"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"模板
ID
"
,
example
=
"模板ID"
)
private
String
template
Id
;
@ApiModelProperty
(
value
=
"模板
编号
"
,
example
=
"模板ID"
)
private
String
template
Num
;
@ApiModelProperty
(
value
=
"模板名称 "
,
example
=
"模板名称"
)
private
String
templateName
;
@ApiModelProperty
(
value
=
"对应平台模板
ID "
,
example
=
"对应平台模板ID
"
)
private
String
platform
Id
;
@ApiModelProperty
(
value
=
"对应平台模板
编号 "
,
example
=
"对应平台模板编号
"
)
private
String
platform
Num
;
@ApiModelProperty
(
value
=
"平台类型 1 阿里云"
,
example
=
"101"
)
private
Integer
platformType
;
...
...
src/main/resources/mapping/admin/AdminMsgTemplateMapper.xml
View file @
3be745c4
...
...
@@ -5,9 +5,9 @@
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.admin.AdminMsgTemplate"
>
<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=
"platform_
id"
property=
"platformId
"
/>
<result
column=
"platform_
num"
property=
"platformNum
"
/>
<result
column=
"platform_type"
property=
"platformType"
/>
<result
column=
"content"
property=
"content"
/>
<result
column=
"msg_type"
property=
"msgType"
/>
...
...
@@ -18,9 +18,9 @@
<sql
id=
"Base_Column_List"
>
id,
template_
id
,
template_
num
,
template_name,
platform_
id
,
platform_
num
,
platform_type,
content,
msg_type,
...
...
@@ -28,123 +28,4 @@
addtime,
org_code
</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>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment