提交 74849c3f 编写于 作者: ibizdev's avatar ibizdev

ibiz4j 发布系统代码

上级 385910da
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
export default { export default {
fields: { fields: {
id: '主键ID', id: '主键ID',
name: '名称',
owner: '持有者',
create_time: '创建时间', create_time: '创建时间',
}, },
}; };
\ No newline at end of file
export default { export default {
fields: { fields: {
id: '主键ID', id: '主键ID',
name: '名称',
owner: '持有者',
create_time: '创建时间', create_time: '创建时间',
}, },
}; };
\ No newline at end of file
...@@ -31,7 +31,7 @@ export default class JobsLockServiceBase extends EntityService { ...@@ -31,7 +31,7 @@ export default class JobsLockServiceBase extends EntityService {
this.APPLYDEKEY ='jobslock'; this.APPLYDEKEY ='jobslock';
this.APPDEKEY = 'id'; this.APPDEKEY = 'id';
this.APPDENAME = 'jobslocks'; this.APPDENAME = 'jobslocks';
this.APPDETEXT = ''; this.APPDETEXT = 'name';
this.APPNAME = 'web'; this.APPNAME = 'web';
this.SYSTEMNAME = 'ibztask'; this.SYSTEMNAME = 'ibztask';
} }
......
...@@ -31,7 +31,7 @@ export default class JobsLogServiceBase extends EntityService { ...@@ -31,7 +31,7 @@ export default class JobsLogServiceBase extends EntityService {
this.APPLYDEKEY ='jobslog'; this.APPLYDEKEY ='jobslog';
this.APPDEKEY = 'id'; this.APPDEKEY = 'id';
this.APPDENAME = 'jobslogs'; this.APPDENAME = 'jobslogs';
this.APPDETEXT = ''; this.APPDETEXT = 'handler';
this.APPNAME = 'web'; this.APPNAME = 'web';
this.SYSTEMNAME = 'ibztask'; this.SYSTEMNAME = 'ibztask';
} }
......
...@@ -47,6 +47,20 @@ public class JobsLock extends EntityMP implements Serializable { ...@@ -47,6 +47,20 @@ public class JobsLock extends EntityMP implements Serializable {
@JSONField(name = "id") @JSONField(name = "id")
@JsonProperty("id") @JsonProperty("id")
private BigInteger id; private BigInteger id;
/**
* 名称
*/
@TableField(value = "name")
@JSONField(name = "name")
@JsonProperty("name")
private String name;
/**
* 持有者
*/
@TableField(value = "owner")
@JSONField(name = "owner")
@JsonProperty("owner")
private String owner;
/** /**
* 创建时间 * 创建时间
*/ */
...@@ -58,6 +72,22 @@ public class JobsLock extends EntityMP implements Serializable { ...@@ -58,6 +72,22 @@ public class JobsLock extends EntityMP implements Serializable {
/**
* 设置 [名称]
*/
public void setName(String name){
this.name = name ;
this.modify("name",name);
}
/**
* 设置 [持有者]
*/
public void setOwner(String owner){
this.owner = owner ;
this.modify("owner",owner);
}
/** /**
* 设置 [创建时间] * 设置 [创建时间]
*/ */
......
...@@ -27,6 +27,13 @@ import cn.ibizlab.core.task.domain.JobsLock; ...@@ -27,6 +27,13 @@ import cn.ibizlab.core.task.domain.JobsLock;
@Data @Data
public class JobsLockSearchContext extends QueryWrapperContext<JobsLock> { public class JobsLockSearchContext extends QueryWrapperContext<JobsLock> {
private String n_name_like;//[名称]
public void setN_name_like(String n_name_like) {
this.n_name_like = n_name_like;
if(!ObjectUtils.isEmpty(this.n_name_like)){
this.getSearchCond().like("name", n_name_like);
}
}
/** /**
* 启用快速搜索 * 启用快速搜索
...@@ -35,6 +42,9 @@ public class JobsLockSearchContext extends QueryWrapperContext<JobsLock> { ...@@ -35,6 +42,9 @@ public class JobsLockSearchContext extends QueryWrapperContext<JobsLock> {
{ {
this.query=query; this.query=query;
if(!StringUtils.isEmpty(query)){ if(!StringUtils.isEmpty(query)){
this.getSearchCond().and( wrapper ->
wrapper.like("name", query)
);
} }
} }
} }
......
...@@ -35,6 +35,9 @@ public class JobsLogSearchContext extends QueryWrapperContext<JobsLog> { ...@@ -35,6 +35,9 @@ public class JobsLogSearchContext extends QueryWrapperContext<JobsLog> {
{ {
this.query=query; this.query=query;
if(!StringUtils.isEmpty(query)){ if(!StringUtils.isEmpty(query)){
this.getSearchCond().and( wrapper ->
wrapper.like("handler", query)
);
} }
} }
} }
......
...@@ -60,11 +60,15 @@ ...@@ -60,11 +60,15 @@
<!--输出实体[JOBS_LOCK]数据结构 --> <!--输出实体[JOBS_LOCK]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-jobs_lock-10-3"> <changeSet author="a_A_5d9d78509" id="tab-jobs_lock-13-3">
<createTable tableName="JOBS_LOCK"> <createTable tableName="JOBS_LOCK">
<column name="ID" remarks="" type="BIGINT"> <column name="ID" remarks="" type="BIGINT">
<constraints primaryKey="true" primaryKeyName="PK_JOBS_LOCK_ID"/> <constraints primaryKey="true" primaryKeyName="PK_JOBS_LOCK_ID"/>
</column> </column>
<column name="NAME" remarks="" type="VARCHAR(30)">
</column>
<column name="OWNER" remarks="" type="VARCHAR(100)">
</column>
<column name="CREATE_TIME" remarks="" type="BIGINT"> <column name="CREATE_TIME" remarks="" type="BIGINT">
</column> </column>
</createTable> </createTable>
...@@ -72,7 +76,7 @@ ...@@ -72,7 +76,7 @@
<!--输出实体[JOBS_LOG]数据结构 --> <!--输出实体[JOBS_LOG]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-jobs_log-28-4"> <changeSet author="a_A_5d9d78509" id="tab-jobs_log-29-4">
<createTable tableName="JOBS_LOG"> <createTable tableName="JOBS_LOG">
<column name="ID" remarks="" type="BIGINT"> <column name="ID" remarks="" type="BIGINT">
<constraints primaryKey="true" primaryKeyName="PK_JOBS_LOG_ID"/> <constraints primaryKey="true" primaryKeyName="PK_JOBS_LOG_ID"/>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性--> <!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="JobsLockResultMap" databaseId="mysql"> <select id="selectById" resultMap="JobsLockResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`CREATE_TIME`, t1.`ID` FROM `JOBS_LOCK` t1 ) t1 where id=#{id}]]> <![CDATA[select t1.* from (SELECT t1.`CREATE_TIME`, t1.`ID`, t1.`NAME`, t1.`OWNER` FROM `JOBS_LOCK` t1 ) t1 where id=#{id}]]>
</select> </select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 --> <!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
...@@ -28,12 +28,12 @@ ...@@ -28,12 +28,12 @@
<!--数据查询[Default]--> <!--数据查询[Default]-->
<sql id="Default" databaseId="mysql"> <sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`CREATE_TIME`, t1.`ID` FROM `JOBS_LOCK` t1 <![CDATA[ SELECT t1.`CREATE_TIME`, t1.`ID`, t1.`NAME`, t1.`OWNER` FROM `JOBS_LOCK` t1
]]> ]]>
</sql> </sql>
<!--数据查询[View]--> <!--数据查询[View]-->
<sql id="View" databaseId="mysql"> <sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`CREATE_TIME`, t1.`ID` FROM `JOBS_LOCK` t1 <![CDATA[ SELECT t1.`CREATE_TIME`, t1.`ID`, t1.`NAME`, t1.`OWNER` FROM `JOBS_LOCK` t1
]]> ]]>
</sql> </sql>
</mapper> </mapper>
......
...@@ -31,6 +31,22 @@ public class JobsLockDTO extends DTOBase implements Serializable { ...@@ -31,6 +31,22 @@ public class JobsLockDTO extends DTOBase implements Serializable {
@JsonProperty("id") @JsonProperty("id")
private BigInteger id; private BigInteger id;
/**
* 属性 [NAME]
*
*/
@JSONField(name = "name")
@JsonProperty("name")
private String name;
/**
* 属性 [OWNER]
*
*/
@JSONField(name = "owner")
@JsonProperty("owner")
private String owner;
/** /**
* 属性 [CREATE_TIME] * 属性 [CREATE_TIME]
* *
...@@ -40,6 +56,22 @@ public class JobsLockDTO extends DTOBase implements Serializable { ...@@ -40,6 +56,22 @@ public class JobsLockDTO extends DTOBase implements Serializable {
private BigInteger createTime; private BigInteger createTime;
/**
* 设置 [NAME]
*/
public void setName(String name){
this.name = name ;
this.modify("name",name);
}
/**
* 设置 [OWNER]
*/
public void setOwner(String owner){
this.owner = owner ;
this.modify("owner",owner);
}
/** /**
* 设置 [CREATE_TIME] * 设置 [CREATE_TIME]
*/ */
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册