Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibztask
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibztask
提交
6e70c295
提交
6e70c295
编写于
6月 18, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码
上级
7d7c01f5
变更
7
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
82 行增加
和
3 行删除
+82
-3
app-picker.vue
app_web/src/components/app-picker/app-picker.vue
+1
-1
md-view-engine.ts
app_web/src/engine/view/md-view-engine.ts
+7
-0
navdata-service.ts
app_web/src/service/app/navdata-service.ts
+22
-2
JobsInfoMapper.xml
...rc/main/resources/mapper/task/jobsinfo/JobsInfoMapper.xml
+13
-0
JobsLockMapper.xml
...rc/main/resources/mapper/task/jobslock/JobsLockMapper.xml
+13
-0
JobsLogMapper.xml
.../src/main/resources/mapper/task/jobslog/JobsLogMapper.xml
+13
-0
JobsRegistryMapper.xml
...resources/mapper/task/jobsregistry/JobsRegistryMapper.xml
+13
-0
未找到文件。
app_web/src/components/app-picker/app-picker.vue
浏览文件 @
6e70c295
...
...
@@ -242,7 +242,7 @@ export default class AppPicker extends Vue {
* @param {*} oldVal
* @memberof AppPicker
*/
@
Watch
(
'value'
)
@
Watch
(
'value'
,{
immediate
:
true
}
)
public
onValueChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
curvalue
=
newVal
;
if
(
Object
.
is
(
this
.
editortype
,
'dropdown'
)
&&
this
.
valueitem
)
{
...
...
app_web/src/engine/view/md-view-engine.ts
浏览文件 @
6e70c295
...
...
@@ -367,6 +367,13 @@ export default class MDViewEngine extends ViewEngine {
* @memberof MDViewEngine
*/
public
MDCtrlLoad
(
args
:
any
[])
{
let
cacheArray
:
Array
<
any
>
=
[];
if
(
args
.
length
>
0
){
args
.
forEach
((
item
:
any
)
=>
{
cacheArray
.
push
({
srfkey
:
item
.
srfkey
,
srfmajortext
:
item
.
srfmajortext
});
})
}
this
.
view
.
initNavData
(
cacheArray
);
if
(
this
.
view
)
{
this
.
view
.
$emit
(
'viewload'
,
args
);
}
...
...
app_web/src/service/app/navdata-service.ts
浏览文件 @
6e70c295
...
...
@@ -63,6 +63,7 @@ export interface ServiceState {
}
import
{
Subject
}
from
'rxjs'
;
/**
* 导航数据服务
*
...
...
@@ -81,6 +82,15 @@ export default class NavDataService {
*/
private
static
navDataService
:
NavDataService
;
/**
* 缓存对象
*
* @private
* @type {(any)}
* @memberof NavDataService
*/
private
store
:
any
;
/**
* 服务状态
*
...
...
@@ -119,10 +129,11 @@ export default class NavDataService {
* @returns {NavDataService}
* @memberof NavDataService
*/
public
static
getInstance
():
NavDataService
{
public
static
getInstance
(
store
:
any
):
NavDataService
{
if
(
!
NavDataService
.
navDataService
)
{
NavDataService
.
navDataService
=
new
NavDataService
();
}
this
.
navDataService
.
store
=
store
;
return
this
.
navDataService
;
}
...
...
@@ -246,6 +257,15 @@ export default class NavDataService {
* @memberof NavDataService
*/
public
getNavData
(){
return
this
.
navDataStack
;
if
(
this
.
navDataStack
&&
this
.
navDataStack
.
length
>
0
){
this
.
navDataStack
.
forEach
((
item
:
any
,
index
)
=>
{
if
(
item
&&
item
.
data
&&
this
.
navDataStack
[
index
+
1
]){
this
.
navDataStack
[
index
+
1
]
=
Object
.
assign
(
this
.
navDataStack
[
index
+
1
],{
isselected
:
true
});
}
})
return
this
.
navDataStack
;
}
else
{
return
[];
}
}
}
\ No newline at end of file
ibztask-core/src/main/resources/mapper/task/jobsinfo/JobsInfoMapper.xml
浏览文件 @
6e70c295
...
...
@@ -10,6 +10,9 @@
<select
id=
"selectById"
resultMap=
"JobsInfoResultMap"
databaseId=
"oracle"
>
<![CDATA[select t1.* from (SELECT t1.APP, t1.AUTHOR, t1.CREATE_TIME, t1.CRON, t1.FAIL_RETRY_COUNT, t1.HANDLER, t1.ID, t1.LAST_TIME, t1.NEXT_TIME, t1.PARAM, t1.REMARK, t1.STATUS, t1.TENANT_ID, t1.TIMEOUT, t1.UPDATE_TIME FROM JOBS_INFO t1 ) t1 where id=#{id}]]>
</select>
<select
id=
"selectById"
resultMap=
"JobsInfoResultMap"
databaseId=
"postgresql"
>
<![CDATA[select t1.* from (SELECT t1.APP, t1.AUTHOR, t1.CREATE_TIME, t1.CRON, t1.FAIL_RETRY_COUNT, t1.HANDLER, t1.ID, t1.LAST_TIME, t1.NEXT_TIME, t1.PARAM, t1.REMARK, t1.STATUS, t1.TENANT_ID, t1.TIMEOUT, t1.UPDATE_TIME FROM JOBS_INFO t1 ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap
id=
"JobsInfoResultMap"
type=
"cn.ibizlab.core.task.domain.JobsInfo"
autoMapping=
"true"
>
...
...
@@ -44,6 +47,11 @@
<![CDATA[ SELECT t1.APP, t1.AUTHOR, t1.CREATE_TIME, t1.CRON, t1.FAIL_RETRY_COUNT, t1.HANDLER, t1.ID, t1.LAST_TIME, t1.NEXT_TIME, t1.PARAM, t1.REMARK, t1.STATUS, t1.TENANT_ID, t1.TIMEOUT, t1.UPDATE_TIME FROM JOBS_INFO t1
]]>
</sql>
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"postgresql"
>
<![CDATA[ SELECT t1.APP, t1.AUTHOR, t1.CREATE_TIME, t1.CRON, t1.FAIL_RETRY_COUNT, t1.HANDLER, t1.ID, t1.LAST_TIME, t1.NEXT_TIME, t1.PARAM, t1.REMARK, t1.STATUS, t1.TENANT_ID, t1.TIMEOUT, t1.UPDATE_TIME FROM JOBS_INFO t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`APP`, t1.`AUTHOR`, t1.`CREATE_TIME`, t1.`CRON`, t1.`FAIL_RETRY_COUNT`, t1.`HANDLER`, t1.`ID`, t1.`LAST_TIME`, t1.`NEXT_TIME`, t1.`PARAM`, t1.`REMARK`, t1.`STATUS`, t1.`TENANT_ID`, t1.`TIMEOUT`, t1.`UPDATE_TIME` FROM `JOBS_INFO` t1
...
...
@@ -54,5 +62,10 @@
<![CDATA[ SELECT t1.APP, t1.AUTHOR, t1.CREATE_TIME, t1.CRON, t1.FAIL_RETRY_COUNT, t1.HANDLER, t1.ID, t1.LAST_TIME, t1.NEXT_TIME, t1.PARAM, t1.REMARK, t1.STATUS, t1.TENANT_ID, t1.TIMEOUT, t1.UPDATE_TIME FROM JOBS_INFO t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"postgresql"
>
<![CDATA[ SELECT t1.APP, t1.AUTHOR, t1.CREATE_TIME, t1.CRON, t1.FAIL_RETRY_COUNT, t1.HANDLER, t1.ID, t1.LAST_TIME, t1.NEXT_TIME, t1.PARAM, t1.REMARK, t1.STATUS, t1.TENANT_ID, t1.TIMEOUT, t1.UPDATE_TIME FROM JOBS_INFO t1
]]>
</sql>
</mapper>
ibztask-core/src/main/resources/mapper/task/jobslock/JobsLockMapper.xml
浏览文件 @
6e70c295
...
...
@@ -10,6 +10,9 @@
<select
id=
"selectById"
resultMap=
"JobsLockResultMap"
databaseId=
"oracle"
>
<![CDATA[select t1.* from (SELECT t1.CREATE_TIME, t1.ID, t1.NAME, t1.OWNER FROM JOBS_LOCK t1 ) t1 where id=#{id}]]>
</select>
<select
id=
"selectById"
resultMap=
"JobsLockResultMap"
databaseId=
"postgresql"
>
<![CDATA[select t1.* from (SELECT t1.CREATE_TIME, t1.ID, t1.NAME, t1.OWNER FROM JOBS_LOCK t1 ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap
id=
"JobsLockResultMap"
type=
"cn.ibizlab.core.task.domain.JobsLock"
autoMapping=
"true"
>
...
...
@@ -39,6 +42,11 @@
<![CDATA[ SELECT t1.CREATE_TIME, t1.ID, t1.NAME, t1.OWNER FROM JOBS_LOCK t1
]]>
</sql>
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"postgresql"
>
<![CDATA[ SELECT t1.CREATE_TIME, t1.ID, t1.NAME, t1.OWNER FROM JOBS_LOCK t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATE_TIME`, t1.`ID`, t1.`NAME`, t1.`OWNER` FROM `JOBS_LOCK` t1
...
...
@@ -49,5 +57,10 @@
<![CDATA[ SELECT t1.CREATE_TIME, t1.ID, t1.NAME, t1.OWNER FROM JOBS_LOCK t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"postgresql"
>
<![CDATA[ SELECT t1.CREATE_TIME, t1.ID, t1.NAME, t1.OWNER FROM JOBS_LOCK t1
]]>
</sql>
</mapper>
ibztask-core/src/main/resources/mapper/task/jobslog/JobsLogMapper.xml
浏览文件 @
6e70c295
...
...
@@ -10,6 +10,9 @@
<select
id=
"selectById"
resultMap=
"JobsLogResultMap"
databaseId=
"oracle"
>
<![CDATA[select t1.* from (SELECT t1.ADDRESS, t1.CREATE_TIME, t1.FAIL_RETRY_COUNT, t1.HANDLER, t1.ID, t1.JOB_ID, t1.PARAM, t1.TRIGGER_CODE, t1.TRIGGER_MSG, t1.TRIGGER_TYPE FROM JOBS_LOG t1 ) t1 where id=#{id}]]>
</select>
<select
id=
"selectById"
resultMap=
"JobsLogResultMap"
databaseId=
"postgresql"
>
<![CDATA[select t1.* from (SELECT t1.ADDRESS, t1.CREATE_TIME, t1.FAIL_RETRY_COUNT, t1.HANDLER, t1.ID, t1.JOB_ID, t1.PARAM, t1.TRIGGER_CODE, t1.TRIGGER_MSG, t1.TRIGGER_TYPE FROM JOBS_LOG t1 ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap
id=
"JobsLogResultMap"
type=
"cn.ibizlab.core.task.domain.JobsLog"
autoMapping=
"true"
>
...
...
@@ -44,6 +47,11 @@
<![CDATA[ SELECT t1.ADDRESS, t1.CREATE_TIME, t1.FAIL_RETRY_COUNT, t1.HANDLER, t1.ID, t1.JOB_ID, t1.PARAM, t1.TRIGGER_CODE, t1.TRIGGER_TYPE FROM JOBS_LOG t1
]]>
</sql>
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"postgresql"
>
<![CDATA[ SELECT t1.ADDRESS, t1.CREATE_TIME, t1.FAIL_RETRY_COUNT, t1.HANDLER, t1.ID, t1.JOB_ID, t1.PARAM, t1.TRIGGER_CODE, t1.TRIGGER_TYPE FROM JOBS_LOG t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`ADDRESS`, t1.`CREATE_TIME`, t1.`FAIL_RETRY_COUNT`, t1.`HANDLER`, t1.`ID`, t1.`JOB_ID`, t1.`PARAM`, t1.`TRIGGER_CODE`, t1.`TRIGGER_MSG`, t1.`TRIGGER_TYPE` FROM `JOBS_LOG` t1
...
...
@@ -54,5 +62,10 @@
<![CDATA[ SELECT t1.ADDRESS, t1.CREATE_TIME, t1.FAIL_RETRY_COUNT, t1.HANDLER, t1.ID, t1.JOB_ID, t1.PARAM, t1.TRIGGER_CODE, t1.TRIGGER_MSG, t1.TRIGGER_TYPE FROM JOBS_LOG t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"postgresql"
>
<![CDATA[ SELECT t1.ADDRESS, t1.CREATE_TIME, t1.FAIL_RETRY_COUNT, t1.HANDLER, t1.ID, t1.JOB_ID, t1.PARAM, t1.TRIGGER_CODE, t1.TRIGGER_MSG, t1.TRIGGER_TYPE FROM JOBS_LOG t1
]]>
</sql>
</mapper>
ibztask-core/src/main/resources/mapper/task/jobsregistry/JobsRegistryMapper.xml
浏览文件 @
6e70c295
...
...
@@ -10,6 +10,9 @@
<select
id=
"selectById"
resultMap=
"JobsRegistryResultMap"
databaseId=
"oracle"
>
<![CDATA[select t1.* from (SELECT t1.ADDRESS, t1.APP, t1.ID, t1.STATUS, t1.UPDATE_TIME FROM JOBS_REGISTRY t1 ) t1 where id=#{id}]]>
</select>
<select
id=
"selectById"
resultMap=
"JobsRegistryResultMap"
databaseId=
"postgresql"
>
<![CDATA[select t1.* from (SELECT t1.ADDRESS, t1.APP, t1.ID, t1.STATUS, t1.UPDATE_TIME FROM JOBS_REGISTRY t1 ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap
id=
"JobsRegistryResultMap"
type=
"cn.ibizlab.core.task.domain.JobsRegistry"
autoMapping=
"true"
>
...
...
@@ -39,6 +42,11 @@
<![CDATA[ SELECT t1.ADDRESS, t1.APP, t1.ID, t1.STATUS, t1.UPDATE_TIME FROM JOBS_REGISTRY t1
]]>
</sql>
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"postgresql"
>
<![CDATA[ SELECT t1.ADDRESS, t1.APP, t1.ID, t1.STATUS, t1.UPDATE_TIME FROM JOBS_REGISTRY t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`ADDRESS`, t1.`APP`, t1.`ID`, t1.`STATUS`, t1.`UPDATE_TIME` FROM `JOBS_REGISTRY` t1
...
...
@@ -49,5 +57,10 @@
<![CDATA[ SELECT t1.ADDRESS, t1.APP, t1.ID, t1.STATUS, t1.UPDATE_TIME FROM JOBS_REGISTRY t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"postgresql"
>
<![CDATA[ SELECT t1.ADDRESS, t1.APP, t1.ID, t1.STATUS, t1.UPDATE_TIME FROM JOBS_REGISTRY t1
]]>
</sql>
</mapper>
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录