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
da0e2717
Commit
da0e2717
authored
Nov 09, 2020
by
ilal
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
9232d95d
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
448 additions
and
0 deletions
+448
-0
src/main/java/cn/timer/api/bean/admin/AdminAssoTxjlb.java
+62
-0
src/main/java/cn/timer/api/bean/admin/AdminMsgTemplate.java
+70
-0
src/main/java/cn/timer/api/dao/admin/AdminAssoTxjlbMapper.java
+17
-0
src/main/java/cn/timer/api/dao/admin/AdminMsgTemplateMapper.java
+17
-0
src/main/resources/mapping/admin/AdminAssoTxjlbMapper.xml
+131
-0
src/main/resources/mapping/admin/AdminMsgTemplateMapper.xml
+151
-0
No files found.
src/main/java/cn/timer/api/bean/admin/AdminAssoTxjlb.java
0 → 100644
View file @
da0e2717
package
cn
.
timer
.
api
.
bean
.
admin
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author LAL 2020-11-09
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table
(
name
=
"admin_asso_txjlb"
)
@ApiModel
(
"系统消息记录"
)
public
class
AdminAssoTxjlb
extends
Model
<
AdminAssoTxjlb
>
{
/**
*
*/
private
static
final
long
serialVersionUID
=
1L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"id id"
,
example
=
"101"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"内容 "
,
example
=
"内容"
)
private
String
content
;
@ApiModelProperty
(
value
=
"提醒用户姓名 提醒用户姓名"
,
example
=
"101"
)
private
Integer
userName
;
@ApiModelProperty
(
value
=
"提醒用户id 提醒用户id"
,
example
=
"101"
)
private
Integer
empNum
;
@ApiModelProperty
(
value
=
"提醒类型:1;证照... 提醒类型:1;证照..."
,
example
=
"101"
)
private
Integer
txType
;
@ApiModelProperty
(
value
=
"企业组织代码 企业组织代码"
,
example
=
"101"
)
private
Integer
orgCode
;
@ApiModelProperty
(
value
=
"生成时间 生成时间"
,
example
=
"101"
)
private
Integer
addtime
;
@ApiModelProperty
(
value
=
"状态 0:未读 1:已读"
,
example
=
"101"
)
private
Integer
txstate
;
}
\ No newline at end of file
src/main/java/cn/timer/api/bean/admin/AdminMsgTemplate.java
0 → 100644
View file @
da0e2717
package
cn
.
timer
.
api
.
bean
.
admin
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author LAL 2020-11-09
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table
(
name
=
"admin_msg_template"
)
@ApiModel
(
"消息模板"
)
public
class
AdminMsgTemplate
extends
Model
<
AdminMsgTemplate
>
{
/**
*
*/
private
static
final
long
serialVersionUID
=
1L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"id id"
,
example
=
"101"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"模板ID "
,
example
=
"模板ID"
)
private
String
templateId
;
@ApiModelProperty
(
value
=
"模板名称 "
,
example
=
"模板名称"
)
private
String
templateName
;
@ApiModelProperty
(
value
=
"对应平台模板ID "
,
example
=
"对应平台模板ID"
)
private
String
platformId
;
@ApiModelProperty
(
value
=
"平台类型 1 阿里云"
,
example
=
"101"
)
private
Integer
platformType
;
@ApiModelProperty
(
value
=
"模板内容 "
,
example
=
"模板内容"
)
private
String
content
;
@ApiModelProperty
(
value
=
"类型 1 证照到期提醒"
,
example
=
"101"
)
private
Integer
msgType
;
@ApiModelProperty
(
value
=
"状态 0 启用 1 停用"
,
example
=
"101"
)
private
Integer
state
;
@ApiModelProperty
(
value
=
"生产时间 生产时间"
,
example
=
"101"
)
private
Integer
addtime
;
@ApiModelProperty
(
value
=
"企业ID 企业ID"
,
example
=
"101"
)
private
Integer
orgCode
;
}
\ No newline at end of file
src/main/java/cn/timer/api/dao/admin/AdminAssoTxjlbMapper.java
0 → 100644
View file @
da0e2717
package
cn
.
timer
.
api
.
dao
.
admin
;
import
org.springframework.stereotype.Repository
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.timer.api.bean.admin.AdminAssoTxjlb
;
/**
* 系统消息记录
*
* @author LAL 2020-11-09
*/
@Repository
public
interface
AdminAssoTxjlbMapper
extends
BaseMapper
<
AdminAssoTxjlb
>
{
}
src/main/java/cn/timer/api/dao/admin/AdminMsgTemplateMapper.java
0 → 100644
View file @
da0e2717
package
cn
.
timer
.
api
.
dao
.
admin
;
import
org.springframework.stereotype.Repository
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.timer.api.bean.admin.AdminMsgTemplate
;
/**
* 消息模板
*
* @author LAL 2020-11-09
*/
@Repository
public
interface
AdminMsgTemplateMapper
extends
BaseMapper
<
AdminMsgTemplate
>
{
}
src/main/resources/mapping/admin/AdminAssoTxjlbMapper.xml
0 → 100644
View file @
da0e2717
<?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=
"cn.timer.api.dao.admin.AdminAssoTxjlbMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.admin.AdminAssoTxjlb"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"content"
property=
"content"
/>
<result
column=
"user_name"
property=
"userName"
/>
<result
column=
"emp_num"
property=
"empNum"
/>
<result
column=
"tx_type"
property=
"txType"
/>
<result
column=
"org_code"
property=
"orgCode"
/>
<result
column=
"addtime"
property=
"addtime"
/>
<result
column=
"txstate"
property=
"txstate"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
content,
user_name,
emp_num,
tx_type,
org_code,
addtime,
txstate
</sql>
<sql
id=
"Base_Column_List_Alias"
>
id AdminAssoTxjlb_id,
content AdminAssoTxjlb_content,
user_name AdminAssoTxjlb_user_name,
emp_num AdminAssoTxjlb_emp_num,
tx_type AdminAssoTxjlb_tx_type,
org_code AdminAssoTxjlb_org_code,
addtime AdminAssoTxjlb_addtime,
txstate AdminAssoTxjlb_txstate
</sql>
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.admin.AdminAssoTxjlb">
INSERT INTO admin_asso_txjlb
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test ='null != content'>
content,
</if>
<if test ='null != userName'>
user_name,
</if>
<if test ='null != empNum'>
emp_num,
</if>
<if test ='null != txType'>
tx_type,
</if>
<if test ='null != orgCode'>
org_code,
</if>
<if test ='null != addtime'>
addtime,
</if>
<if test ='null != txstate'>
txstate
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test ='null != content'>
#{content},
</if>
<if test ='null != userName'>
#{userName},
</if>
<if test ='null != empNum'>
#{empNum},
</if>
<if test ='null != txType'>
#{txType},
</if>
<if test ='null != orgCode'>
#{orgCode},
</if>
<if test ='null != addtime'>
#{addtime},
</if>
<if test ='null != txstate'>
#{txstate}
</if>
</trim>
</insert>
<delete id="delete" >
DELETE FROM admin_asso_txjlb
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.admin.AdminAssoTxjlb">
UPDATE admin_asso_txjlb
<set>
<if test ='null != content'>content = #{content},</if>
<if test ='null != userName'>user_name = #{userName},</if>
<if test ='null != empNum'>emp_num = #{empNum},</if>
<if test ='null != txType'>tx_type = #{txType},</if>
<if test ='null != orgCode'>org_code = #{orgCode},</if>
<if test ='null != addtime'>addtime = #{addtime},</if>
<if test ='null != txstate'>txstate = #{txstate}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM admin_asso_txjlb
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM admin_asso_txjlb
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM admin_asso_txjlb
</select>
-->
</mapper>
\ No newline at end of file
src/main/resources/mapping/admin/AdminMsgTemplateMapper.xml
0 → 100644
View file @
da0e2717
<?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=
"cn.timer.api.dao.admin.AdminMsgTemplateMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.admin.AdminMsgTemplate"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"template_id"
property=
"templateId"
/>
<result
column=
"template_name"
property=
"templateName"
/>
<result
column=
"platform_id"
property=
"platformId"
/>
<result
column=
"platform_type"
property=
"platformType"
/>
<result
column=
"content"
property=
"content"
/>
<result
column=
"msg_type"
property=
"msgType"
/>
<result
column=
"state"
property=
"state"
/>
<result
column=
"addtime"
property=
"addtime"
/>
<result
column=
"org_code"
property=
"orgCode"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
template_id,
template_name,
platform_id,
platform_type,
content,
msg_type,
state,
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