Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyuan
byit-myth-job
Commits
255c388c
Commit
255c388c
authored
Apr 14, 2020
by
guominglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加javatask的实体和mapper
parent
7584097e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
199 additions
and
10 deletions
+199
-10
JavaTaskMapper.java
...in-core/src/main/java/com/byit/mapper/JavaTaskMapper.java
+15
-0
Generator-config.xml
...e/myth-admin-core/src/main/resources/Generator-config.xml
+1
-1
JavaTaskMapper.xml
...h-admin-core/src/main/resources/mapper/JavaTaskMapper.xml
+159
-0
JavaTask.java
...-dto-core/src/main/java/com/byit/dto/plugin/JavaTask.java
+24
-9
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/mapper/JavaTaskMapper.java
0 → 100644
View file @
255c388c
package
com
.
byit
.
mapper
;
import
com.byit.dto.plugin.JavaTask
;
public
interface
JavaTaskMapper
{
int
deleteById
(
Integer
id
);
int
insertSelective
(
JavaTask
record
);
JavaTask
getById
(
Integer
id
);
int
updateByIdSelective
(
JavaTask
record
);
}
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/resources/Generator-config.xml
View file @
255c388c
...
...
@@ -55,7 +55,7 @@
type=
"XMLMAPPER"
>
<property
name=
"enableSubPackages"
value=
"false"
/>
</javaClientGenerator>
<table
tableName=
"
flow_status_snapshoot"
domainObjectName=
"FlowStatusSnapshoot
"
/>
<table
tableName=
"
java_task"
domainObjectName=
"JavaTask
"
/>
</context>
...
...
byit-myth-core/myth-admin-core/src/main/resources/mapper/JavaTaskMapper.xml
0 → 100644
View file @
255c388c
<?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.byit.mapper.JavaTaskMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.byit.dto.plugin.JavaTask"
>
<!-- generated @mbg.generated date: 2020-04-14 -->
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"job_name"
jdbcType=
"VARCHAR"
property=
"jobName"
/>
<result
column=
"task_name"
jdbcType=
"VARCHAR"
property=
"taskName"
/>
<result
column=
"scheduling_count"
jdbcType=
"INTEGER"
property=
"schedulingCount"
/>
<result
column=
"param"
jdbcType=
"VARCHAR"
property=
"param"
/>
<result
column=
"trigger_time"
jdbcType=
"BIGINT"
property=
"triggerTime"
/>
<result
column=
"cron"
jdbcType=
"VARCHAR"
property=
"cron"
/>
<result
column=
"remaining_count"
jdbcType=
"INTEGER"
property=
"remainingCount"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"alarml_action"
jdbcType=
"CHAR"
property=
"alarmlAction"
/>
<result
column=
"alarm_email"
jdbcType=
"VARCHAR"
property=
"alarmEmail"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
<!-- generated @mbg.generated date: 2020-04-14 -->
id, job_name, task_name, scheduling_count, param, trigger_time, cron, remaining_count,
create_time, update_time, alarml_action, alarm_email
</sql>
<select
id=
"getById"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<!-- generated @mbg.generated date: 2020-04-14 -->
select
<include
refid=
"Base_Column_List"
/>
from java_task
where id = #{id,jdbcType=INTEGER}
</select>
<delete
id=
"deleteById"
parameterType=
"java.lang.Integer"
>
<!-- generated @mbg.generated date: 2020-04-14 -->
delete from java_task
where id = #{id,jdbcType=INTEGER}
</delete>
<insert
id=
"insertSelective"
parameterType=
"com.byit.dto.plugin.JavaTask"
>
<!-- generated @mbg.generated date: 2020-04-14 -->
insert into java_task
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
<if
test=
"jobName != null"
>
job_name,
</if>
<if
test=
"taskName != null"
>
task_name,
</if>
<if
test=
"schedulingCount != null"
>
scheduling_count,
</if>
<if
test=
"param != null"
>
param,
</if>
<if
test=
"triggerTime != null"
>
trigger_time,
</if>
<if
test=
"cron != null"
>
cron,
</if>
<if
test=
"remainingCount != null"
>
remaining_count,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"alarmlAction != null"
>
alarml_action,
</if>
<if
test=
"alarmEmail != null"
>
alarm_email,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=INTEGER},
</if>
<if
test=
"jobName != null"
>
#{jobName,jdbcType=VARCHAR},
</if>
<if
test=
"taskName != null"
>
#{taskName,jdbcType=VARCHAR},
</if>
<if
test=
"schedulingCount != null"
>
#{schedulingCount,jdbcType=INTEGER},
</if>
<if
test=
"param != null"
>
#{param,jdbcType=VARCHAR},
</if>
<if
test=
"triggerTime != null"
>
#{triggerTime,jdbcType=BIGINT},
</if>
<if
test=
"cron != null"
>
#{cron,jdbcType=VARCHAR},
</if>
<if
test=
"remainingCount != null"
>
#{remainingCount,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"alarmlAction != null"
>
#{alarmlAction,jdbcType=CHAR},
</if>
<if
test=
"alarmEmail != null"
>
#{alarmEmail,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update
id=
"updateByIdSelective"
parameterType=
"com.byit.dto.plugin.JavaTask"
>
<!-- generated @mbg.generated date: 2020-04-14 -->
update java_task
<set>
<if
test=
"jobName != null"
>
job_name = #{jobName,jdbcType=VARCHAR},
</if>
<if
test=
"taskName != null"
>
task_name = #{taskName,jdbcType=VARCHAR},
</if>
<if
test=
"schedulingCount != null"
>
scheduling_count = #{schedulingCount,jdbcType=INTEGER},
</if>
<if
test=
"param != null"
>
param = #{param,jdbcType=VARCHAR},
</if>
<if
test=
"triggerTime != null"
>
trigger_time = #{triggerTime,jdbcType=BIGINT},
</if>
<if
test=
"cron != null"
>
cron = #{cron,jdbcType=VARCHAR},
</if>
<if
test=
"remainingCount != null"
>
remaining_count = #{remainingCount,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"alarmlAction != null"
>
alarml_action = #{alarmlAction,jdbcType=CHAR},
</if>
<if
test=
"alarmEmail != null"
>
alarm_email = #{alarmEmail,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
byit-myth-core/myth-dto-core/src/main/java/com/byit/dto/plugin/JavaTask.java
View file @
255c388c
...
...
@@ -4,6 +4,7 @@ import lombok.AllArgsConstructor;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
...
...
@@ -13,54 +14,68 @@ import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
JavaTask
{
public
class
JavaTask
implements
Serializable
{
/**
* 主键
*/
private
Integer
id
;
/**
* 任务名称
*/
private
String
jobName
;
/**
* 调度名称
*/
private
String
taskName
;
/**
* 调度次数
默认
周期性调度
* 调度次数
-1
周期性调度
*/
private
String
schedulingCount
;
private
Integer
schedulingCount
;
/**
*
调度
参数
* 参数
*/
private
String
param
;
/**
*
本次的
执行时间
*
节点本次
执行时间
*/
private
Long
triggerTime
;
/**
* cron表达式
*/
private
String
cron
;
/**
* 剩余执行
词素
* 剩余执行
次数 -1周期性调度
*/
private
Integer
remainingCount
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 修改时间
*/
private
Date
updateTime
;
/**
*
告警时机
*
当前工作流版本的告警的时机(0 不告警, 1 完成时告警, 2 失败时告警, 3 成功时告警)
*/
private
String
alarmlAction
;
/**
* 告警邮箱
*/
private
String
alarmEmail
;
/**
* 邮件接收人
*/
private
String
sendEmail
;
private
static
final
long
serialVersionUID
=
1L
;
}
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