提交 55b185a1 编写于 作者: sq3536's avatar sq3536

Merge remote-tracking branch 'origin/master'

...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"data":"", "data":"",
"codename":"Item_0", "codename":"Item_0",
"color": "rgba(58, 116, 7, 1)", "color": "rgba(58, 116, 7, 1)",
"value": "0", "value": 0,
"disabled": false "disabled": false
} }
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
"data":"", "data":"",
"codename":"Item_1", "codename":"Item_1",
"color": "rgba(67, 65, 65, 1)", "color": "rgba(67, 65, 65, 1)",
"value": "1", "value": 1,
"disabled": false "disabled": false
} }
......
...@@ -19,7 +19,7 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { ...@@ -19,7 +19,7 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
"data":"", "data":"",
"codename":"Item_0", "codename":"Item_0",
"color": "rgba(58, 116, 7, 1)", "color": "rgba(58, 116, 7, 1)",
value: '0', value: 0,
disabled: false, disabled: false,
}, },
...@@ -30,7 +30,7 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { ...@@ -30,7 +30,7 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
"data":"", "data":"",
"codename":"Item_1", "codename":"Item_1",
"color": "rgba(67, 65, 65, 1)", "color": "rgba(67, 65, 65, 1)",
value: '1', value: 1,
disabled: false, disabled: false,
}, },
......
...@@ -31,7 +31,7 @@ export default class MainModel { ...@@ -31,7 +31,7 @@ export default class MainModel {
{ {
name: 'srfkey', name: 'srfkey',
prop: 'id', prop: 'id',
dataType: 'BIGINT', dataType: 'TEXT',
}, },
{ {
name: 'srfmajortext', name: 'srfmajortext',
...@@ -53,7 +53,7 @@ export default class MainModel { ...@@ -53,7 +53,7 @@ export default class MainModel {
{ {
name: 'id', name: 'id',
prop: 'id', prop: 'id',
dataType: 'BIGINT', dataType: 'TEXT',
}, },
{ {
name: 'app', name: 'app',
...@@ -78,12 +78,12 @@ export default class MainModel { ...@@ -78,12 +78,12 @@ export default class MainModel {
{ {
name: 'last_time', name: 'last_time',
prop: 'last_time', prop: 'last_time',
dataType: 'BIGINT', dataType: 'DATETIME',
}, },
{ {
name: 'next_time', name: 'next_time',
prop: 'next_time', prop: 'next_time',
dataType: 'BIGINT', dataType: 'DATETIME',
}, },
{ {
name: 'timeout', name: 'timeout',
...@@ -118,12 +118,12 @@ export default class MainModel { ...@@ -118,12 +118,12 @@ export default class MainModel {
{ {
name: 'create_time', name: 'create_time',
prop: 'create_time', prop: 'create_time',
dataType: 'BIGINT', dataType: 'DATETIME',
}, },
{ {
name: 'update_time', name: 'update_time',
prop: 'update_time', prop: 'update_time',
dataType: 'BIGINT', dataType: 'DATETIME',
}, },
{ {
name: 'jobsinfo', name: 'jobsinfo',
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<span>{{row.last_time}}</span> <app-format-data format="YYYY-MM-DD hh:mm:ss" :data="row.last_time"></app-format-data>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<span>{{row.next_time}}</span> <app-format-data format="YYYY-MM-DD hh:mm:ss" :data="row.next_time"></app-format-data>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<span>{{row.update_time}}</span> <app-format-data format="YYYY-MM-DD hh:mm:ss" :data="row.update_time"></app-format-data>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
......
...@@ -29,7 +29,7 @@ export default class MainModel { ...@@ -29,7 +29,7 @@ export default class MainModel {
{ {
name: 'id', name: 'id',
prop: 'id', prop: 'id',
dataType: 'BIGINT', dataType: 'TEXT',
}, },
{ {
name: 'cron', name: 'cron',
...@@ -44,12 +44,12 @@ export default class MainModel { ...@@ -44,12 +44,12 @@ export default class MainModel {
{ {
name: 'next_time', name: 'next_time',
prop: 'next_time', prop: 'next_time',
dataType: 'BIGINT', dataType: 'DATETIME',
}, },
{ {
name: 'update_time', name: 'update_time',
prop: 'update_time', prop: 'update_time',
dataType: 'BIGINT', dataType: 'DATETIME',
}, },
{ {
name: 'status', name: 'status',
...@@ -59,7 +59,7 @@ export default class MainModel { ...@@ -59,7 +59,7 @@ export default class MainModel {
{ {
name: 'last_time', name: 'last_time',
prop: 'last_time', prop: 'last_time',
dataType: 'BIGINT', dataType: 'DATETIME',
}, },
{ {
name: 'srfmajortext', name: 'srfmajortext',
...@@ -69,12 +69,12 @@ export default class MainModel { ...@@ -69,12 +69,12 @@ export default class MainModel {
{ {
name: 'srfdataaccaction', name: 'srfdataaccaction',
prop: 'id', prop: 'id',
dataType: 'BIGINT', dataType: 'TEXT',
}, },
{ {
name: 'srfkey', name: 'srfkey',
prop: 'id', prop: 'id',
dataType: 'BIGINT', dataType: 'TEXT',
}, },
{ {
name: 'timeout', name: 'timeout',
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<row> <row>
<i-col v-show="detailsModel.n_job_id_eq.visible" :style="{}" :sm="{ span: 24, offset: 0 }" :md="{ span: 8, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }"> <i-col v-show="detailsModel.n_job_id_eq.visible" :style="{}" :sm="{ span: 24, offset: 0 }" :md="{ span: 8, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item name='n_job_id_eq' :itemRules="this.rules.n_job_id_eq" class='' :caption="$t('entities.jobslog.default_searchform.details.n_job_id_eq')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.n_job_id_eq.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='n_job_id_eq' :itemRules="this.rules.n_job_id_eq" class='' :caption="$t('entities.jobslog.default_searchform.details.n_job_id_eq')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.n_job_id_eq.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.n_job_id_eq" @enter="onEnter($event)" :disabled="detailsModel.n_job_id_eq.disabled" type='number' style=""></input-box> <input-box v-model="data.n_job_id_eq" @enter="onEnter($event)" :disabled="detailsModel.n_job_id_eq.disabled" type='text' style=""></input-box>
</app-form-item> </app-form-item>
</i-col> </i-col>
...@@ -275,10 +275,10 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -275,10 +275,10 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public rules: any = { public rules: any = {
n_job_id_eq: [ n_job_id_eq: [
{ type: 'number', message: '任务ID(等于(=)) 值必须为数值类型', trigger: 'change' }, { type: 'string', message: '任务ID(等于(=)) 值必须为字符串类型', trigger: 'change' },
{ type: 'number', message: '任务ID(等于(=)) 值必须为数值类型', trigger: 'blur' }, { type: 'string', message: '任务ID(等于(=)) 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'number', message: '任务ID(等于(=)) 值不能为空', trigger: 'change' }, { required: false, type: 'string', message: '任务ID(等于(=)) 值不能为空', trigger: 'change' },
{ required: false, type: 'number', message: '任务ID(等于(=)) 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: '任务ID(等于(=)) 值不能为空', trigger: 'blur' },
], ],
n_handler_like: [ n_handler_like: [
{ type: 'string', message: '执行器任务HANDLER(文本包含(%)) 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '执行器任务HANDLER(文本包含(%)) 值必须为字符串类型', trigger: 'change' },
......
...@@ -28,7 +28,7 @@ export default class DefaultModel { ...@@ -28,7 +28,7 @@ export default class DefaultModel {
{ {
name: 'n_job_id_eq', name: 'n_job_id_eq',
prop: 'job_id', prop: 'job_id',
dataType: 'BIGINT', dataType: 'TEXT',
}, },
{ {
name: 'n_handler_like', name: 'n_handler_like',
......
...@@ -8,13 +8,13 @@ ...@@ -8,13 +8,13 @@
<row> <row>
<i-col v-show="detailsModel.id.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.id.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='id' :itemRules="this.rules.id" class='' :caption="$t('entities.jobslog.main_form.details.id')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.id.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='id' :itemRules="this.rules.id" class='' :caption="$t('entities.jobslog.main_form.details.id')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.id.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.id" @enter="onEnter($event)" unit="" :disabled="detailsModel.id.disabled" type='number' style=""></input-box> <input-box v-model="data.id" @enter="onEnter($event)" unit="" :disabled="detailsModel.id.disabled" type='text' style=""></input-box>
</app-form-item> </app-form-item>
</i-col> </i-col>
<i-col v-show="detailsModel.job_id.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.job_id.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='job_id' :itemRules="this.rules.job_id" class='' :caption="$t('entities.jobslog.main_form.details.job_id')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.job_id.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='job_id' :itemRules="this.rules.job_id" class='' :caption="$t('entities.jobslog.main_form.details.job_id')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.job_id.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.job_id" @enter="onEnter($event)" unit="" :disabled="detailsModel.job_id.disabled" type='number' style=""></input-box> <input-box v-model="data.job_id" @enter="onEnter($event)" unit="" :disabled="detailsModel.job_id.disabled" type='text' style=""></input-box>
</app-form-item> </app-form-item>
</i-col> </i-col>
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
</i-col> </i-col>
<i-col v-show="detailsModel.create_time.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.create_time.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='create_time' :itemRules="this.rules.create_time" class='' :caption="$t('entities.jobslog.main_form.details.create_time')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.create_time.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='create_time' :itemRules="this.rules.create_time" class='' :caption="$t('entities.jobslog.main_form.details.create_time')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.create_time.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.create_time" @enter="onEnter($event)" unit="" :disabled="detailsModel.create_time.disabled" type='number' style=""></input-box> <date-picker type="datetime" :transfer="true" format="yyyy-MM-dd HH:mm:ss" placeholder="请选择时间..." :value="data.create_time" :disabled="detailsModel.create_time.disabled" style="min-width: 150px; width:160px;" @on-change="(val1, val2) => { this.data.create_time = val1 }"></date-picker>
</app-form-item> </app-form-item>
</i-col> </i-col>
...@@ -437,10 +437,10 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -437,10 +437,10 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: false, type: 'string', message: ' 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: ' 值不能为空', trigger: 'blur' },
], ],
srfkey: [ srfkey: [
{ type: 'number', message: '主键ID 值必须为数值类型', trigger: 'change' }, { type: 'string', message: '主键ID 值必须为字符串类型', trigger: 'change' },
{ type: 'number', message: '主键ID 值必须为数值类型', trigger: 'blur' }, { type: 'string', message: '主键ID 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'number', message: '主键ID 值不能为空', trigger: 'change' }, { required: false, type: 'string', message: '主键ID 值不能为空', trigger: 'change' },
{ required: false, type: 'number', message: '主键ID 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: '主键ID 值不能为空', trigger: 'blur' },
], ],
srfmajortext: [ srfmajortext: [
{ type: 'string', message: '执行器任务HANDLER 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '执行器任务HANDLER 值必须为字符串类型', trigger: 'change' },
...@@ -473,16 +473,16 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -473,16 +473,16 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: false, type: 'string', message: ' 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: ' 值不能为空', trigger: 'blur' },
], ],
id: [ id: [
{ type: 'number', message: '主键ID 值必须为数值类型', trigger: 'change' }, { type: 'string', message: '主键ID 值必须为字符串类型', trigger: 'change' },
{ type: 'number', message: '主键ID 值必须为数值类型', trigger: 'blur' }, { type: 'string', message: '主键ID 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'number', message: '主键ID 值不能为空', trigger: 'change' }, { required: false, type: 'string', message: '主键ID 值不能为空', trigger: 'change' },
{ required: false, type: 'number', message: '主键ID 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: '主键ID 值不能为空', trigger: 'blur' },
], ],
job_id: [ job_id: [
{ type: 'number', message: '任务ID 值必须为数值类型', trigger: 'change' }, { type: 'string', message: '任务ID 值必须为字符串类型', trigger: 'change' },
{ type: 'number', message: '任务ID 值必须为数值类型', trigger: 'blur' }, { type: 'string', message: '任务ID 值必须为字符串类型', trigger: 'blur' },
{ required: true, type: 'number', message: '任务ID 值不能为空', trigger: 'change' }, { required: true, type: 'string', message: '任务ID 值不能为空', trigger: 'change' },
{ required: true, type: 'number', message: '任务ID 值不能为空', trigger: 'blur' }, { required: true, type: 'string', message: '任务ID 值不能为空', trigger: 'blur' },
], ],
handler: [ handler: [
{ type: 'string', message: '执行器任务HANDLER 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '执行器任务HANDLER 值必须为字符串类型', trigger: 'change' },
...@@ -527,10 +527,10 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -527,10 +527,10 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: false, type: 'string', message: '执行地址 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: '执行地址 值不能为空', trigger: 'blur' },
], ],
create_time: [ create_time: [
{ type: 'number', message: '创建时间 值必须为数值类型', trigger: 'change' }, { type: 'string', message: '创建时间 值必须为字符串类型', trigger: 'change' },
{ type: 'number', message: '创建时间 值必须为数值类型', trigger: 'blur' }, { type: 'string', message: '创建时间 值必须为字符串类型', trigger: 'blur' },
{ required: true, type: 'number', message: '创建时间 值不能为空', trigger: 'change' }, { required: true, type: 'string', message: '创建时间 值不能为空', trigger: 'change' },
{ required: true, type: 'number', message: '创建时间 值不能为空', trigger: 'blur' }, { required: true, type: 'string', message: '创建时间 值不能为空', trigger: 'blur' },
], ],
} }
......
...@@ -31,7 +31,7 @@ export default class MainModel { ...@@ -31,7 +31,7 @@ export default class MainModel {
{ {
name: 'srfkey', name: 'srfkey',
prop: 'id', prop: 'id',
dataType: 'BIGINT', dataType: 'TEXT',
}, },
{ {
name: 'srfmajortext', name: 'srfmajortext',
...@@ -53,12 +53,12 @@ export default class MainModel { ...@@ -53,12 +53,12 @@ export default class MainModel {
{ {
name: 'id', name: 'id',
prop: 'id', prop: 'id',
dataType: 'BIGINT', dataType: 'TEXT',
}, },
{ {
name: 'job_id', name: 'job_id',
prop: 'job_id', prop: 'job_id',
dataType: 'BIGINT', dataType: 'TEXT',
}, },
{ {
name: 'handler', name: 'handler',
...@@ -98,7 +98,7 @@ export default class MainModel { ...@@ -98,7 +98,7 @@ export default class MainModel {
{ {
name: 'create_time', name: 'create_time',
prop: 'create_time', prop: 'create_time',
dataType: 'BIGINT', dataType: 'DATETIME',
}, },
{ {
name: 'jobslog', name: 'jobslog',
......
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<span>{{row.create_time}}</span> <app-format-data format="YYYY-MM-DD hh:mm:ss" :data="row.create_time"></app-format-data>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
......
...@@ -29,7 +29,7 @@ export default class MainModel { ...@@ -29,7 +29,7 @@ export default class MainModel {
{ {
name: 'id', name: 'id',
prop: 'id', prop: 'id',
dataType: 'BIGINT', dataType: 'TEXT',
}, },
{ {
name: 'address', name: 'address',
...@@ -44,7 +44,7 @@ export default class MainModel { ...@@ -44,7 +44,7 @@ export default class MainModel {
{ {
name: 'create_time', name: 'create_time',
prop: 'create_time', prop: 'create_time',
dataType: 'BIGINT', dataType: 'DATETIME',
}, },
{ {
name: 'trigger_type', name: 'trigger_type',
...@@ -59,12 +59,12 @@ export default class MainModel { ...@@ -59,12 +59,12 @@ export default class MainModel {
{ {
name: 'srfdataaccaction', name: 'srfdataaccaction',
prop: 'id', prop: 'id',
dataType: 'BIGINT', dataType: 'TEXT',
}, },
{ {
name: 'srfkey', name: 'srfkey',
prop: 'id', prop: 'id',
dataType: 'BIGINT', dataType: 'TEXT',
}, },
{ {
name: 'fail_retry_count', name: 'fail_retry_count',
...@@ -79,7 +79,7 @@ export default class MainModel { ...@@ -79,7 +79,7 @@ export default class MainModel {
{ {
name: 'job_id', name: 'job_id',
prop: 'job_id', prop: 'job_id',
dataType: 'BIGINT', dataType: 'TEXT',
}, },
{ {
name: 'jobslog', name: 'jobslog',
...@@ -88,7 +88,7 @@ export default class MainModel { ...@@ -88,7 +88,7 @@ export default class MainModel {
{ {
name: 'n_job_id_eq', name: 'n_job_id_eq',
prop: 'n_job_id_eq', prop: 'n_job_id_eq',
dataType: 'BIGINT', dataType: 'TEXT',
}, },
{ {
name: 'n_handler_like', name: 'n_handler_like',
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<row> <row>
<i-col v-show="detailsModel.id.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.id.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='id' :itemRules="this.rules.id" class='' :caption="$t('entities.jobsregistry.main_form.details.id')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.id.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='id' :itemRules="this.rules.id" class='' :caption="$t('entities.jobsregistry.main_form.details.id')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.id.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.id" @enter="onEnter($event)" unit="" :disabled="detailsModel.id.disabled" type='number' style=""></input-box> <input-box v-model="data.id" @enter="onEnter($event)" unit="" :disabled="detailsModel.id.disabled" type='text' style=""></input-box>
</app-form-item> </app-form-item>
</i-col> </i-col>
...@@ -405,10 +405,10 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -405,10 +405,10 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: false, type: 'string', message: ' 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: ' 值不能为空', trigger: 'blur' },
], ],
srfkey: [ srfkey: [
{ type: 'number', message: '主键ID 值必须为数值类型', trigger: 'change' }, { type: 'string', message: '主键ID 值必须为字符串类型', trigger: 'change' },
{ type: 'number', message: '主键ID 值必须为数值类型', trigger: 'blur' }, { type: 'string', message: '主键ID 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'number', message: '主键ID 值不能为空', trigger: 'change' }, { required: false, type: 'string', message: '主键ID 值不能为空', trigger: 'change' },
{ required: false, type: 'number', message: '主键ID 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: '主键ID 值不能为空', trigger: 'blur' },
], ],
srfmajortext: [ srfmajortext: [
{ type: 'string', message: '服务名 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '服务名 值必须为字符串类型', trigger: 'change' },
...@@ -441,10 +441,10 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -441,10 +441,10 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: false, type: 'string', message: ' 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: ' 值不能为空', trigger: 'blur' },
], ],
id: [ id: [
{ type: 'number', message: '主键ID 值必须为数值类型', trigger: 'change' }, { type: 'string', message: '主键ID 值必须为字符串类型', trigger: 'change' },
{ type: 'number', message: '主键ID 值必须为数值类型', trigger: 'blur' }, { type: 'string', message: '主键ID 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'number', message: '主键ID 值不能为空', trigger: 'change' }, { required: false, type: 'string', message: '主键ID 值不能为空', trigger: 'change' },
{ required: false, type: 'number', message: '主键ID 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: '主键ID 值不能为空', trigger: 'blur' },
], ],
app: [ app: [
{ type: 'string', message: '服务名 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '服务名 值必须为字符串类型', trigger: 'change' },
......
...@@ -31,7 +31,7 @@ export default class MainModel { ...@@ -31,7 +31,7 @@ export default class MainModel {
{ {
name: 'srfkey', name: 'srfkey',
prop: 'id', prop: 'id',
dataType: 'BIGINT', dataType: 'TEXT',
}, },
{ {
name: 'srfmajortext', name: 'srfmajortext',
...@@ -53,7 +53,7 @@ export default class MainModel { ...@@ -53,7 +53,7 @@ export default class MainModel {
{ {
name: 'id', name: 'id',
prop: 'id', prop: 'id',
dataType: 'BIGINT', dataType: 'TEXT',
}, },
{ {
name: 'app', name: 'app',
......
...@@ -29,7 +29,7 @@ export default class MainModel { ...@@ -29,7 +29,7 @@ export default class MainModel {
{ {
name: 'id', name: 'id',
prop: 'id', prop: 'id',
dataType: 'BIGINT', dataType: 'TEXT',
}, },
{ {
name: 'app', name: 'app',
...@@ -54,12 +54,12 @@ export default class MainModel { ...@@ -54,12 +54,12 @@ export default class MainModel {
{ {
name: 'srfdataaccaction', name: 'srfdataaccaction',
prop: 'id', prop: 'id',
dataType: 'BIGINT', dataType: 'TEXT',
}, },
{ {
name: 'srfkey', name: 'srfkey',
prop: 'id', prop: 'id',
dataType: 'BIGINT', dataType: 'TEXT',
}, },
{ {
name: 'jobsregistry', name: 'jobsregistry',
......
...@@ -37,11 +37,6 @@ ...@@ -37,11 +37,6 @@
git clone -b master $para2 ibztask/ git clone -b master $para2 ibztask/
export NODE_OPTIONS=--max-old-space-size=4096 export NODE_OPTIONS=--max-old-space-size=4096
cd ibztask/ cd ibztask/
mvn clean package -Pweb
cd ibztask-app/ibztask-app-web
mvn -Pweb docker:build
mvn -Pweb docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibztask-app-web.yaml ibzlab-rt --with-registry-auth
</command> </command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</builders> </builders>
......
...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \ ...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \ sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibztask-app-web.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibztask-app-web.jar
EXPOSE 30005 EXPOSE 8080
ADD ibztask-app-web.jar /ibztask-app-web.jar ADD ibztask-app-web.jar /ibztask-app-web.jar
...@@ -3,22 +3,9 @@ services: ...@@ -3,22 +3,9 @@ services:
ibztask-app-web: ibztask-app-web:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibztask-app-web:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibztask-app-web:latest
ports: ports:
- "30005:30005" - "8080:8080"
networks: networks:
- agent_network - agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
- SERVER_PORT=30005
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.102.211:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_A_5d9d78509
- SPRING_DATASOURCE_PASSWORD=@6dEfb3@
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_A_5d9d78509
- NACOS=172.16.102.211:8848
deploy: deploy:
resources: resources:
limits: limits:
......
...@@ -27,8 +27,8 @@ import cn.ibizlab.core.task.domain.JobsLog; ...@@ -27,8 +27,8 @@ import cn.ibizlab.core.task.domain.JobsLog;
@Data @Data
public class JobsLogSearchContext extends QueryWrapperContext<JobsLog> { public class JobsLogSearchContext extends QueryWrapperContext<JobsLog> {
private BigInteger n_job_id_eq;//[任务ID] private String n_job_id_eq;//[任务ID]
public void setN_job_id_eq(BigInteger n_job_id_eq) { public void setN_job_id_eq(String n_job_id_eq) {
this.n_job_id_eq = n_job_id_eq; this.n_job_id_eq = n_job_id_eq;
if(!ObjectUtils.isEmpty(this.n_job_id_eq)){ if(!ObjectUtils.isEmpty(this.n_job_id_eq)){
this.getSearchCond().eq("job_id", n_job_id_eq); this.getSearchCond().eq("job_id", n_job_id_eq);
......
...@@ -33,9 +33,9 @@ public interface IJobsInfoService extends IService<JobsInfo>{ ...@@ -33,9 +33,9 @@ public interface IJobsInfoService extends IService<JobsInfo>{
boolean save(JobsInfo et) ; boolean save(JobsInfo et) ;
void saveBatch(List<JobsInfo> list) ; void saveBatch(List<JobsInfo> list) ;
JobsInfo getDraft(JobsInfo et) ; JobsInfo getDraft(JobsInfo et) ;
boolean remove(BigInteger key) ; boolean remove(String key) ;
void removeBatch(Collection<BigInteger> idList) ; void removeBatch(Collection<String> idList) ;
JobsInfo get(BigInteger key) ; JobsInfo get(String key) ;
boolean create(JobsInfo et) ; boolean create(JobsInfo et) ;
void createBatch(List<JobsInfo> list) ; void createBatch(List<JobsInfo> list) ;
JobsInfo stop(JobsInfo et) ; JobsInfo stop(JobsInfo et) ;
......
...@@ -29,12 +29,12 @@ public interface IJobsLockService extends IService<JobsLock>{ ...@@ -29,12 +29,12 @@ public interface IJobsLockService extends IService<JobsLock>{
void createBatch(List<JobsLock> list) ; void createBatch(List<JobsLock> list) ;
boolean save(JobsLock et) ; boolean save(JobsLock et) ;
void saveBatch(List<JobsLock> list) ; void saveBatch(List<JobsLock> list) ;
JobsLock get(BigInteger key) ; JobsLock get(String key) ;
boolean update(JobsLock et) ; boolean update(JobsLock et) ;
void updateBatch(List<JobsLock> list) ; void updateBatch(List<JobsLock> list) ;
boolean checkKey(JobsLock et) ; boolean checkKey(JobsLock et) ;
boolean remove(BigInteger key) ; boolean remove(String key) ;
void removeBatch(Collection<BigInteger> idList) ; void removeBatch(Collection<String> idList) ;
JobsLock getDraft(JobsLock et) ; JobsLock getDraft(JobsLock et) ;
Page<JobsLock> searchDefault(JobsLockSearchContext context) ; Page<JobsLock> searchDefault(JobsLockSearchContext context) ;
/** /**
......
...@@ -33,9 +33,9 @@ public interface IJobsLogService extends IService<JobsLog>{ ...@@ -33,9 +33,9 @@ public interface IJobsLogService extends IService<JobsLog>{
boolean checkKey(JobsLog et) ; boolean checkKey(JobsLog et) ;
boolean save(JobsLog et) ; boolean save(JobsLog et) ;
void saveBatch(List<JobsLog> list) ; void saveBatch(List<JobsLog> list) ;
boolean remove(BigInteger key) ; boolean remove(String key) ;
void removeBatch(Collection<BigInteger> idList) ; void removeBatch(Collection<String> idList) ;
JobsLog get(BigInteger key) ; JobsLog get(String key) ;
Page<JobsLog> searchDefault(JobsLogSearchContext context) ; Page<JobsLog> searchDefault(JobsLogSearchContext context) ;
/** /**
*自定义查询SQL *自定义查询SQL
......
...@@ -25,9 +25,9 @@ import com.baomidou.mybatisplus.extension.service.IService; ...@@ -25,9 +25,9 @@ import com.baomidou.mybatisplus.extension.service.IService;
*/ */
public interface IJobsRegistryService extends IService<JobsRegistry>{ public interface IJobsRegistryService extends IService<JobsRegistry>{
JobsRegistry get(BigInteger key) ; JobsRegistry get(String key) ;
boolean remove(BigInteger key) ; boolean remove(String key) ;
void removeBatch(Collection<BigInteger> idList) ; void removeBatch(Collection<String> idList) ;
boolean update(JobsRegistry et) ; boolean update(JobsRegistry et) ;
void updateBatch(List<JobsRegistry> list) ; void updateBatch(List<JobsRegistry> list) ;
boolean save(JobsRegistry et) ; boolean save(JobsRegistry et) ;
......
...@@ -50,7 +50,7 @@ public class JobsInfoServiceImpl extends ServiceImpl<JobsInfoMapper, JobsInfo> i ...@@ -50,7 +50,7 @@ public class JobsInfoServiceImpl extends ServiceImpl<JobsInfoMapper, JobsInfo> i
@Override @Override
@Transactional @Transactional
public JobsInfo start(JobsInfo et) { public JobsInfo start(JobsInfo et) {
et.set("Status","1"); et.set("Status","0");
et.set("Last_time","0"); et.set("Last_time","0");
update(et); update(et);
return et; return et;
...@@ -118,19 +118,19 @@ public class JobsInfoServiceImpl extends ServiceImpl<JobsInfoMapper, JobsInfo> i ...@@ -118,19 +118,19 @@ public class JobsInfoServiceImpl extends ServiceImpl<JobsInfoMapper, JobsInfo> i
@Override @Override
@Transactional @Transactional
public boolean remove(BigInteger key) { public boolean remove(String key) {
boolean result=removeById(key); boolean result=removeById(key);
return result ; return result ;
} }
@Override @Override
public void removeBatch(Collection<BigInteger> idList) { public void removeBatch(Collection<String> idList) {
removeByIds(idList); removeByIds(idList);
} }
@Override @Override
@Transactional @Transactional
public JobsInfo get(BigInteger key) { public JobsInfo get(String key) {
JobsInfo et = getById(key); JobsInfo et = getById(key);
if(et==null){ if(et==null){
et=new JobsInfo(); et=new JobsInfo();
...@@ -160,7 +160,7 @@ public class JobsInfoServiceImpl extends ServiceImpl<JobsInfoMapper, JobsInfo> i ...@@ -160,7 +160,7 @@ public class JobsInfoServiceImpl extends ServiceImpl<JobsInfoMapper, JobsInfo> i
public JobsInfo stop(JobsInfo et) { public JobsInfo stop(JobsInfo et) {
et.set("Next_time","0"); et.set("Next_time","0");
et.set("Last_time","0"); et.set("Last_time","0");
et.set("Status","0"); et.set("Status","1");
update(et); update(et);
return et; return et;
} }
......
...@@ -94,7 +94,7 @@ public class JobsLockServiceImpl extends ServiceImpl<JobsLockMapper, JobsLock> i ...@@ -94,7 +94,7 @@ public class JobsLockServiceImpl extends ServiceImpl<JobsLockMapper, JobsLock> i
@Override @Override
@Transactional @Transactional
public JobsLock get(BigInteger key) { public JobsLock get(String key) {
JobsLock et = getById(key); JobsLock et = getById(key);
if(et==null){ if(et==null){
et=new JobsLock(); et=new JobsLock();
...@@ -125,13 +125,13 @@ public class JobsLockServiceImpl extends ServiceImpl<JobsLockMapper, JobsLock> i ...@@ -125,13 +125,13 @@ public class JobsLockServiceImpl extends ServiceImpl<JobsLockMapper, JobsLock> i
} }
@Override @Override
@Transactional @Transactional
public boolean remove(BigInteger key) { public boolean remove(String key) {
boolean result=removeById(key); boolean result=removeById(key);
return result ; return result ;
} }
@Override @Override
public void removeBatch(Collection<BigInteger> idList) { public void removeBatch(Collection<String> idList) {
removeByIds(idList); removeByIds(idList);
} }
......
...@@ -117,19 +117,19 @@ public class JobsLogServiceImpl extends ServiceImpl<JobsLogMapper, JobsLog> impl ...@@ -117,19 +117,19 @@ public class JobsLogServiceImpl extends ServiceImpl<JobsLogMapper, JobsLog> impl
@Override @Override
@Transactional @Transactional
public boolean remove(BigInteger key) { public boolean remove(String key) {
boolean result=removeById(key); boolean result=removeById(key);
return result ; return result ;
} }
@Override @Override
public void removeBatch(Collection<BigInteger> idList) { public void removeBatch(Collection<String> idList) {
removeByIds(idList); removeByIds(idList);
} }
@Override @Override
@Transactional @Transactional
public JobsLog get(BigInteger key) { public JobsLog get(String key) {
JobsLog et = getById(key); JobsLog et = getById(key);
if(et==null){ if(et==null){
et=new JobsLog(); et=new JobsLog();
......
...@@ -49,7 +49,7 @@ public class JobsRegistryServiceImpl extends ServiceImpl<JobsRegistryMapper, Job ...@@ -49,7 +49,7 @@ public class JobsRegistryServiceImpl extends ServiceImpl<JobsRegistryMapper, Job
@Override @Override
@Transactional @Transactional
public JobsRegistry get(BigInteger key) { public JobsRegistry get(String key) {
JobsRegistry et = getById(key); JobsRegistry et = getById(key);
if(et==null){ if(et==null){
et=new JobsRegistry(); et=new JobsRegistry();
...@@ -62,13 +62,13 @@ public class JobsRegistryServiceImpl extends ServiceImpl<JobsRegistryMapper, Job ...@@ -62,13 +62,13 @@ public class JobsRegistryServiceImpl extends ServiceImpl<JobsRegistryMapper, Job
@Override @Override
@Transactional @Transactional
public boolean remove(BigInteger key) { public boolean remove(String key) {
boolean result=removeById(key); boolean result=removeById(key);
return result ; return result ;
} }
@Override @Override
public void removeBatch(Collection<BigInteger> idList) { public void removeBatch(Collection<String> idList) {
removeByIds(idList); removeByIds(idList);
} }
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
<!--输出实体[JOBS_INFO]数据结构 --> <!--输出实体[JOBS_INFO]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-jobs_info-80-1"> <changeSet author="a_A_5d9d78509" id="tab-jobs_info-95-1">
<createTable tableName="JOBS_INFO"> <createTable tableName="JOBS_INFO">
<column name="ID" remarks="" type="BIGINT"> <column name="ID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_JOBS_INFO_ID"/> <constraints primaryKey="true" primaryKeyName="PK_JOBS_INFO_ID"/>
</column> </column>
<column name="TENANT_ID" remarks="" type="VARCHAR(100)"> <column name="TENANT_ID" remarks="" type="VARCHAR(100)">
...@@ -23,9 +23,9 @@ ...@@ -23,9 +23,9 @@
</column> </column>
<column name="FAIL_RETRY_COUNT" remarks="" type="INT"> <column name="FAIL_RETRY_COUNT" remarks="" type="INT">
</column> </column>
<column name="LAST_TIME" remarks="" type="BIGINT"> <column name="LAST_TIME" remarks="" type="DATETIME">
</column> </column>
<column name="NEXT_TIME" remarks="" type="BIGINT"> <column name="NEXT_TIME" remarks="" type="DATETIME">
</column> </column>
<column name="AUTHOR" remarks="" type="VARCHAR(30)"> <column name="AUTHOR" remarks="" type="VARCHAR(30)">
</column> </column>
...@@ -33,18 +33,18 @@ ...@@ -33,18 +33,18 @@
</column> </column>
<column name="STATUS" remarks="" type="INT"> <column name="STATUS" remarks="" type="INT">
</column> </column>
<column name="UPDATE_TIME" remarks="" type="BIGINT"> <column name="UPDATE_TIME" remarks="" type="DATETIME">
</column> </column>
<column name="CREATE_TIME" remarks="" type="BIGINT"> <column name="CREATE_TIME" remarks="" type="DATETIME">
</column> </column>
</createTable> </createTable>
</changeSet> </changeSet>
<!--输出实体[JOBS_REGISTRY]数据结构 --> <!--输出实体[JOBS_REGISTRY]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-jobs_registry-31-2"> <changeSet author="a_A_5d9d78509" id="tab-jobs_registry-35-2">
<createTable tableName="JOBS_REGISTRY"> <createTable tableName="JOBS_REGISTRY">
<column name="ID" remarks="" type="BIGINT"> <column name="ID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_JOBS_REGISTRY_ID"/> <constraints primaryKey="true" primaryKeyName="PK_JOBS_REGISTRY_ID"/>
</column> </column>
<column name="APP" remarks="" type="VARCHAR(100)"> <column name="APP" remarks="" type="VARCHAR(100)">
...@@ -53,35 +53,35 @@ ...@@ -53,35 +53,35 @@
</column> </column>
<column name="STATUS" remarks="" type="INT"> <column name="STATUS" remarks="" type="INT">
</column> </column>
<column name="UPDATE_TIME" remarks="" type="BIGINT"> <column name="UPDATE_TIME" remarks="" type="DATETIME">
</column> </column>
</createTable> </createTable>
</changeSet> </changeSet>
<!--输出实体[JOBS_LOCK]数据结构 --> <!--输出实体[JOBS_LOCK]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-jobs_lock-16-3"> <changeSet author="a_A_5d9d78509" id="tab-jobs_lock-20-3">
<createTable tableName="JOBS_LOCK"> <createTable tableName="JOBS_LOCK">
<column name="ID" remarks="" type="BIGINT"> <column name="ID" remarks="" type="VARCHAR(100)">
<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 name="NAME" remarks="" type="VARCHAR(30)">
</column> </column>
<column name="OWNER" remarks="" type="VARCHAR(100)"> <column name="OWNER" remarks="" type="VARCHAR(100)">
</column> </column>
<column name="CREATE_TIME" remarks="" type="BIGINT"> <column name="CREATE_TIME" remarks="" type="DATETIME">
</column> </column>
</createTable> </createTable>
</changeSet> </changeSet>
<!--输出实体[JOBS_LOG]数据结构 --> <!--输出实体[JOBS_LOG]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-jobs_log-48-4"> <changeSet author="a_A_5d9d78509" id="tab-jobs_log-56-4">
<createTable tableName="JOBS_LOG"> <createTable tableName="JOBS_LOG">
<column name="ID" remarks="" type="BIGINT"> <column name="ID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_JOBS_LOG_ID"/> <constraints primaryKey="true" primaryKeyName="PK_JOBS_LOG_ID"/>
</column> </column>
<column name="JOB_ID" remarks="" type="BIGINT"> <column name="JOB_ID" remarks="" type="VARCHAR(100)">
</column> </column>
<column name="ADDRESS" remarks="" type="VARCHAR(255)"> <column name="ADDRESS" remarks="" type="VARCHAR(255)">
</column> </column>
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
</column> </column>
<column name="TRIGGER_MSG" remarks="" type="TEXT(1048576)"> <column name="TRIGGER_MSG" remarks="" type="TEXT(1048576)">
</column> </column>
<column name="CREATE_TIME" remarks="" type="BIGINT"> <column name="CREATE_TIME" remarks="" type="DATETIME">
</column> </column>
</createTable> </createTable>
</changeSet> </changeSet>
......
...@@ -29,7 +29,7 @@ public class JobsInfoDTO extends DTOBase implements Serializable { ...@@ -29,7 +29,7 @@ public class JobsInfoDTO extends DTOBase implements Serializable {
*/ */
@JSONField(name = "id") @JSONField(name = "id")
@JsonProperty("id") @JsonProperty("id")
private BigInteger id; private String id;
/** /**
* 属性 [TENANT_ID] * 属性 [TENANT_ID]
...@@ -91,17 +91,19 @@ public class JobsInfoDTO extends DTOBase implements Serializable { ...@@ -91,17 +91,19 @@ public class JobsInfoDTO extends DTOBase implements Serializable {
* 属性 [LAST_TIME] * 属性 [LAST_TIME]
* *
*/ */
@JSONField(name = "last_time") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "last_time" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("last_time") @JsonProperty("last_time")
private BigInteger lastTime; private Timestamp lastTime;
/** /**
* 属性 [NEXT_TIME] * 属性 [NEXT_TIME]
* *
*/ */
@JSONField(name = "next_time") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "next_time" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("next_time") @JsonProperty("next_time")
private BigInteger nextTime; private Timestamp nextTime;
/** /**
* 属性 [AUTHOR] * 属性 [AUTHOR]
...@@ -131,17 +133,19 @@ public class JobsInfoDTO extends DTOBase implements Serializable { ...@@ -131,17 +133,19 @@ public class JobsInfoDTO extends DTOBase implements Serializable {
* 属性 [UPDATE_TIME] * 属性 [UPDATE_TIME]
* *
*/ */
@JSONField(name = "update_time") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "update_time" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("update_time") @JsonProperty("update_time")
private BigInteger updateTime; private Timestamp updateTime;
/** /**
* 属性 [CREATE_TIME] * 属性 [CREATE_TIME]
* *
*/ */
@JSONField(name = "create_time") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "create_time" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("create_time") @JsonProperty("create_time")
private BigInteger createTime; private Timestamp createTime;
/** /**
...@@ -203,7 +207,7 @@ public class JobsInfoDTO extends DTOBase implements Serializable { ...@@ -203,7 +207,7 @@ public class JobsInfoDTO extends DTOBase implements Serializable {
/** /**
* 设置 [LAST_TIME] * 设置 [LAST_TIME]
*/ */
public void setLastTime(BigInteger lastTime){ public void setLastTime(Timestamp lastTime){
this.lastTime = lastTime ; this.lastTime = lastTime ;
this.modify("last_time",lastTime); this.modify("last_time",lastTime);
} }
...@@ -211,7 +215,7 @@ public class JobsInfoDTO extends DTOBase implements Serializable { ...@@ -211,7 +215,7 @@ public class JobsInfoDTO extends DTOBase implements Serializable {
/** /**
* 设置 [NEXT_TIME] * 设置 [NEXT_TIME]
*/ */
public void setNextTime(BigInteger nextTime){ public void setNextTime(Timestamp nextTime){
this.nextTime = nextTime ; this.nextTime = nextTime ;
this.modify("next_time",nextTime); this.modify("next_time",nextTime);
} }
...@@ -243,7 +247,7 @@ public class JobsInfoDTO extends DTOBase implements Serializable { ...@@ -243,7 +247,7 @@ public class JobsInfoDTO extends DTOBase implements Serializable {
/** /**
* 设置 [UPDATE_TIME] * 设置 [UPDATE_TIME]
*/ */
public void setUpdateTime(BigInteger updateTime){ public void setUpdateTime(Timestamp updateTime){
this.updateTime = updateTime ; this.updateTime = updateTime ;
this.modify("update_time",updateTime); this.modify("update_time",updateTime);
} }
...@@ -251,7 +255,7 @@ public class JobsInfoDTO extends DTOBase implements Serializable { ...@@ -251,7 +255,7 @@ public class JobsInfoDTO extends DTOBase implements Serializable {
/** /**
* 设置 [CREATE_TIME] * 设置 [CREATE_TIME]
*/ */
public void setCreateTime(BigInteger createTime){ public void setCreateTime(Timestamp createTime){
this.createTime = createTime ; this.createTime = createTime ;
this.modify("create_time",createTime); this.modify("create_time",createTime);
} }
......
...@@ -29,7 +29,7 @@ public class JobsLockDTO extends DTOBase implements Serializable { ...@@ -29,7 +29,7 @@ public class JobsLockDTO extends DTOBase implements Serializable {
*/ */
@JSONField(name = "id") @JSONField(name = "id")
@JsonProperty("id") @JsonProperty("id")
private BigInteger id; private String id;
/** /**
* 属性 [NAME] * 属性 [NAME]
...@@ -51,9 +51,10 @@ public class JobsLockDTO extends DTOBase implements Serializable { ...@@ -51,9 +51,10 @@ public class JobsLockDTO extends DTOBase implements Serializable {
* 属性 [CREATE_TIME] * 属性 [CREATE_TIME]
* *
*/ */
@JSONField(name = "create_time") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "create_time" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("create_time") @JsonProperty("create_time")
private BigInteger createTime; private Timestamp createTime;
/** /**
...@@ -75,7 +76,7 @@ public class JobsLockDTO extends DTOBase implements Serializable { ...@@ -75,7 +76,7 @@ public class JobsLockDTO extends DTOBase implements Serializable {
/** /**
* 设置 [CREATE_TIME] * 设置 [CREATE_TIME]
*/ */
public void setCreateTime(BigInteger createTime){ public void setCreateTime(Timestamp createTime){
this.createTime = createTime ; this.createTime = createTime ;
this.modify("create_time",createTime); this.modify("create_time",createTime);
} }
......
...@@ -29,7 +29,7 @@ public class JobsLogDTO extends DTOBase implements Serializable { ...@@ -29,7 +29,7 @@ public class JobsLogDTO extends DTOBase implements Serializable {
*/ */
@JSONField(name = "id") @JSONField(name = "id")
@JsonProperty("id") @JsonProperty("id")
private BigInteger id; private String id;
/** /**
* 属性 [JOB_ID] * 属性 [JOB_ID]
...@@ -37,7 +37,7 @@ public class JobsLogDTO extends DTOBase implements Serializable { ...@@ -37,7 +37,7 @@ public class JobsLogDTO extends DTOBase implements Serializable {
*/ */
@JSONField(name = "job_id") @JSONField(name = "job_id")
@JsonProperty("job_id") @JsonProperty("job_id")
private BigInteger jobId; private String jobId;
/** /**
* 属性 [ADDRESS] * 属性 [ADDRESS]
...@@ -99,15 +99,16 @@ public class JobsLogDTO extends DTOBase implements Serializable { ...@@ -99,15 +99,16 @@ public class JobsLogDTO extends DTOBase implements Serializable {
* 属性 [CREATE_TIME] * 属性 [CREATE_TIME]
* *
*/ */
@JSONField(name = "create_time") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "create_time" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("create_time") @JsonProperty("create_time")
private BigInteger createTime; private Timestamp createTime;
/** /**
* 设置 [JOB_ID] * 设置 [JOB_ID]
*/ */
public void setJobId(BigInteger jobId){ public void setJobId(String jobId){
this.jobId = jobId ; this.jobId = jobId ;
this.modify("job_id",jobId); this.modify("job_id",jobId);
} }
...@@ -171,7 +172,7 @@ public class JobsLogDTO extends DTOBase implements Serializable { ...@@ -171,7 +172,7 @@ public class JobsLogDTO extends DTOBase implements Serializable {
/** /**
* 设置 [CREATE_TIME] * 设置 [CREATE_TIME]
*/ */
public void setCreateTime(BigInteger createTime){ public void setCreateTime(Timestamp createTime){
this.createTime = createTime ; this.createTime = createTime ;
this.modify("create_time",createTime); this.modify("create_time",createTime);
} }
......
...@@ -29,7 +29,7 @@ public class JobsRegistryDTO extends DTOBase implements Serializable { ...@@ -29,7 +29,7 @@ public class JobsRegistryDTO extends DTOBase implements Serializable {
*/ */
@JSONField(name = "id") @JSONField(name = "id")
@JsonProperty("id") @JsonProperty("id")
private BigInteger id; private String id;
/** /**
* 属性 [APP] * 属性 [APP]
...@@ -59,9 +59,10 @@ public class JobsRegistryDTO extends DTOBase implements Serializable { ...@@ -59,9 +59,10 @@ public class JobsRegistryDTO extends DTOBase implements Serializable {
* 属性 [UPDATE_TIME] * 属性 [UPDATE_TIME]
* *
*/ */
@JSONField(name = "update_time") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "update_time" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("update_time") @JsonProperty("update_time")
private BigInteger updateTime; private Timestamp updateTime;
/** /**
...@@ -91,7 +92,7 @@ public class JobsRegistryDTO extends DTOBase implements Serializable { ...@@ -91,7 +92,7 @@ public class JobsRegistryDTO extends DTOBase implements Serializable {
/** /**
* 设置 [UPDATE_TIME] * 设置 [UPDATE_TIME]
*/ */
public void setUpdateTime(BigInteger updateTime){ public void setUpdateTime(Timestamp updateTime){
this.updateTime = updateTime ; this.updateTime = updateTime ;
this.modify("update_time",updateTime); this.modify("update_time",updateTime);
} }
......
...@@ -50,7 +50,7 @@ public class JobsInfoResource { ...@@ -50,7 +50,7 @@ public class JobsInfoResource {
@ApiOperation(value = "开始", tags = {"任务信息" }, notes = "开始") @ApiOperation(value = "开始", tags = {"任务信息" }, notes = "开始")
@RequestMapping(method = RequestMethod.POST, value = "/jobsinfos/{jobsinfo_id}/start") @RequestMapping(method = RequestMethod.POST, value = "/jobsinfos/{jobsinfo_id}/start")
@Transactional @Transactional
public ResponseEntity<JobsInfoDTO> start(@PathVariable("jobsinfo_id") BigInteger jobsinfo_id, @RequestBody JobsInfoDTO jobsinfodto) { public ResponseEntity<JobsInfoDTO> start(@PathVariable("jobsinfo_id") String jobsinfo_id, @RequestBody JobsInfoDTO jobsinfodto) {
JobsInfo jobsinfo = jobsinfoMapping.toDomain(jobsinfodto); JobsInfo jobsinfo = jobsinfoMapping.toDomain(jobsinfodto);
jobsinfo.setId(jobsinfo_id); jobsinfo.setId(jobsinfo_id);
jobsinfo = jobsinfoService.start(jobsinfo); jobsinfo = jobsinfoService.start(jobsinfo);
...@@ -62,7 +62,7 @@ public class JobsInfoResource { ...@@ -62,7 +62,7 @@ public class JobsInfoResource {
@ApiOperation(value = "更新任务信息", tags = {"任务信息" }, notes = "更新任务信息") @ApiOperation(value = "更新任务信息", tags = {"任务信息" }, notes = "更新任务信息")
@RequestMapping(method = RequestMethod.PUT, value = "/jobsinfos/{jobsinfo_id}") @RequestMapping(method = RequestMethod.PUT, value = "/jobsinfos/{jobsinfo_id}")
@Transactional @Transactional
public ResponseEntity<JobsInfoDTO> update(@PathVariable("jobsinfo_id") BigInteger jobsinfo_id, @RequestBody JobsInfoDTO jobsinfodto) { public ResponseEntity<JobsInfoDTO> update(@PathVariable("jobsinfo_id") String jobsinfo_id, @RequestBody JobsInfoDTO jobsinfodto) {
JobsInfo domain = jobsinfoMapping.toDomain(jobsinfodto); JobsInfo domain = jobsinfoMapping.toDomain(jobsinfodto);
domain .setId(jobsinfo_id); domain .setId(jobsinfo_id);
jobsinfoService.update(domain ); jobsinfoService.update(domain );
...@@ -88,7 +88,7 @@ public class JobsInfoResource { ...@@ -88,7 +88,7 @@ public class JobsInfoResource {
@ApiOperation(value = "执行", tags = {"任务信息" }, notes = "执行") @ApiOperation(value = "执行", tags = {"任务信息" }, notes = "执行")
@RequestMapping(method = RequestMethod.POST, value = "/jobsinfos/{jobsinfo_id}/execute") @RequestMapping(method = RequestMethod.POST, value = "/jobsinfos/{jobsinfo_id}/execute")
@Transactional @Transactional
public ResponseEntity<JobsInfoDTO> execute(@PathVariable("jobsinfo_id") BigInteger jobsinfo_id, @RequestBody JobsInfoDTO jobsinfodto) { public ResponseEntity<JobsInfoDTO> execute(@PathVariable("jobsinfo_id") String jobsinfo_id, @RequestBody JobsInfoDTO jobsinfodto) {
JobsInfo jobsinfo = jobsinfoMapping.toDomain(jobsinfodto); JobsInfo jobsinfo = jobsinfoMapping.toDomain(jobsinfodto);
jobsinfo.setId(jobsinfo_id); jobsinfo.setId(jobsinfo_id);
jobsinfo = jobsinfoService.execute(jobsinfo); jobsinfo = jobsinfoService.execute(jobsinfo);
...@@ -121,14 +121,14 @@ public class JobsInfoResource { ...@@ -121,14 +121,14 @@ public class JobsInfoResource {
@ApiOperation(value = "删除任务信息", tags = {"任务信息" }, notes = "删除任务信息") @ApiOperation(value = "删除任务信息", tags = {"任务信息" }, notes = "删除任务信息")
@RequestMapping(method = RequestMethod.DELETE, value = "/jobsinfos/{jobsinfo_id}") @RequestMapping(method = RequestMethod.DELETE, value = "/jobsinfos/{jobsinfo_id}")
@Transactional @Transactional
public ResponseEntity<Boolean> remove(@PathVariable("jobsinfo_id") BigInteger jobsinfo_id) { public ResponseEntity<Boolean> remove(@PathVariable("jobsinfo_id") String jobsinfo_id) {
return ResponseEntity.status(HttpStatus.OK).body(jobsinfoService.remove(jobsinfo_id)); return ResponseEntity.status(HttpStatus.OK).body(jobsinfoService.remove(jobsinfo_id));
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsInfo-Remove-all')") @PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsInfo-Remove-all')")
@ApiOperation(value = "批量删除任务信息", tags = {"任务信息" }, notes = "批量删除任务信息") @ApiOperation(value = "批量删除任务信息", tags = {"任务信息" }, notes = "批量删除任务信息")
@RequestMapping(method = RequestMethod.DELETE, value = "/jobsinfos/batch") @RequestMapping(method = RequestMethod.DELETE, value = "/jobsinfos/batch")
public ResponseEntity<Boolean> removeBatch(@RequestBody List<BigInteger> ids) { public ResponseEntity<Boolean> removeBatch(@RequestBody List<String> ids) {
jobsinfoService.removeBatch(ids); jobsinfoService.removeBatch(ids);
return ResponseEntity.status(HttpStatus.OK).body(true); return ResponseEntity.status(HttpStatus.OK).body(true);
} }
...@@ -136,7 +136,7 @@ public class JobsInfoResource { ...@@ -136,7 +136,7 @@ public class JobsInfoResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsInfo-Get-all')") @PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsInfo-Get-all')")
@ApiOperation(value = "获取任务信息", tags = {"任务信息" }, notes = "获取任务信息") @ApiOperation(value = "获取任务信息", tags = {"任务信息" }, notes = "获取任务信息")
@RequestMapping(method = RequestMethod.GET, value = "/jobsinfos/{jobsinfo_id}") @RequestMapping(method = RequestMethod.GET, value = "/jobsinfos/{jobsinfo_id}")
public ResponseEntity<JobsInfoDTO> get(@PathVariable("jobsinfo_id") BigInteger jobsinfo_id) { public ResponseEntity<JobsInfoDTO> get(@PathVariable("jobsinfo_id") String jobsinfo_id) {
JobsInfo domain = jobsinfoService.get(jobsinfo_id); JobsInfo domain = jobsinfoService.get(jobsinfo_id);
JobsInfoDTO dto = jobsinfoMapping.toDto(domain); JobsInfoDTO dto = jobsinfoMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto); return ResponseEntity.status(HttpStatus.OK).body(dto);
...@@ -165,7 +165,7 @@ public class JobsInfoResource { ...@@ -165,7 +165,7 @@ public class JobsInfoResource {
@ApiOperation(value = "停止", tags = {"任务信息" }, notes = "停止") @ApiOperation(value = "停止", tags = {"任务信息" }, notes = "停止")
@RequestMapping(method = RequestMethod.POST, value = "/jobsinfos/{jobsinfo_id}/stop") @RequestMapping(method = RequestMethod.POST, value = "/jobsinfos/{jobsinfo_id}/stop")
@Transactional @Transactional
public ResponseEntity<JobsInfoDTO> stop(@PathVariable("jobsinfo_id") BigInteger jobsinfo_id, @RequestBody JobsInfoDTO jobsinfodto) { public ResponseEntity<JobsInfoDTO> stop(@PathVariable("jobsinfo_id") String jobsinfo_id, @RequestBody JobsInfoDTO jobsinfodto) {
JobsInfo jobsinfo = jobsinfoMapping.toDomain(jobsinfodto); JobsInfo jobsinfo = jobsinfoMapping.toDomain(jobsinfodto);
jobsinfo.setId(jobsinfo_id); jobsinfo.setId(jobsinfo_id);
jobsinfo = jobsinfoService.stop(jobsinfo); jobsinfo = jobsinfoService.stop(jobsinfo);
......
...@@ -83,7 +83,7 @@ public class JobsLockResource { ...@@ -83,7 +83,7 @@ public class JobsLockResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsLock-Get-all')") @PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsLock-Get-all')")
@ApiOperation(value = "获取任务锁", tags = {"任务锁" }, notes = "获取任务锁") @ApiOperation(value = "获取任务锁", tags = {"任务锁" }, notes = "获取任务锁")
@RequestMapping(method = RequestMethod.GET, value = "/jobslocks/{jobslock_id}") @RequestMapping(method = RequestMethod.GET, value = "/jobslocks/{jobslock_id}")
public ResponseEntity<JobsLockDTO> get(@PathVariable("jobslock_id") BigInteger jobslock_id) { public ResponseEntity<JobsLockDTO> get(@PathVariable("jobslock_id") String jobslock_id) {
JobsLock domain = jobslockService.get(jobslock_id); JobsLock domain = jobslockService.get(jobslock_id);
JobsLockDTO dto = jobslockMapping.toDto(domain); JobsLockDTO dto = jobslockMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto); return ResponseEntity.status(HttpStatus.OK).body(dto);
...@@ -93,7 +93,7 @@ public class JobsLockResource { ...@@ -93,7 +93,7 @@ public class JobsLockResource {
@ApiOperation(value = "更新任务锁", tags = {"任务锁" }, notes = "更新任务锁") @ApiOperation(value = "更新任务锁", tags = {"任务锁" }, notes = "更新任务锁")
@RequestMapping(method = RequestMethod.PUT, value = "/jobslocks/{jobslock_id}") @RequestMapping(method = RequestMethod.PUT, value = "/jobslocks/{jobslock_id}")
@Transactional @Transactional
public ResponseEntity<JobsLockDTO> update(@PathVariable("jobslock_id") BigInteger jobslock_id, @RequestBody JobsLockDTO jobslockdto) { public ResponseEntity<JobsLockDTO> update(@PathVariable("jobslock_id") String jobslock_id, @RequestBody JobsLockDTO jobslockdto) {
JobsLock domain = jobslockMapping.toDomain(jobslockdto); JobsLock domain = jobslockMapping.toDomain(jobslockdto);
domain .setId(jobslock_id); domain .setId(jobslock_id);
jobslockService.update(domain ); jobslockService.update(domain );
...@@ -119,14 +119,14 @@ public class JobsLockResource { ...@@ -119,14 +119,14 @@ public class JobsLockResource {
@ApiOperation(value = "删除任务锁", tags = {"任务锁" }, notes = "删除任务锁") @ApiOperation(value = "删除任务锁", tags = {"任务锁" }, notes = "删除任务锁")
@RequestMapping(method = RequestMethod.DELETE, value = "/jobslocks/{jobslock_id}") @RequestMapping(method = RequestMethod.DELETE, value = "/jobslocks/{jobslock_id}")
@Transactional @Transactional
public ResponseEntity<Boolean> remove(@PathVariable("jobslock_id") BigInteger jobslock_id) { public ResponseEntity<Boolean> remove(@PathVariable("jobslock_id") String jobslock_id) {
return ResponseEntity.status(HttpStatus.OK).body(jobslockService.remove(jobslock_id)); return ResponseEntity.status(HttpStatus.OK).body(jobslockService.remove(jobslock_id));
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsLock-Remove-all')") @PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsLock-Remove-all')")
@ApiOperation(value = "批量删除任务锁", tags = {"任务锁" }, notes = "批量删除任务锁") @ApiOperation(value = "批量删除任务锁", tags = {"任务锁" }, notes = "批量删除任务锁")
@RequestMapping(method = RequestMethod.DELETE, value = "/jobslocks/batch") @RequestMapping(method = RequestMethod.DELETE, value = "/jobslocks/batch")
public ResponseEntity<Boolean> removeBatch(@RequestBody List<BigInteger> ids) { public ResponseEntity<Boolean> removeBatch(@RequestBody List<String> ids) {
jobslockService.removeBatch(ids); jobslockService.removeBatch(ids);
return ResponseEntity.status(HttpStatus.OK).body(true); return ResponseEntity.status(HttpStatus.OK).body(true);
} }
......
...@@ -56,7 +56,7 @@ public class JobsLogResource { ...@@ -56,7 +56,7 @@ public class JobsLogResource {
@ApiOperation(value = "更新任务调度日志", tags = {"任务调度日志" }, notes = "更新任务调度日志") @ApiOperation(value = "更新任务调度日志", tags = {"任务调度日志" }, notes = "更新任务调度日志")
@RequestMapping(method = RequestMethod.PUT, value = "/jobslogs/{jobslog_id}") @RequestMapping(method = RequestMethod.PUT, value = "/jobslogs/{jobslog_id}")
@Transactional @Transactional
public ResponseEntity<JobsLogDTO> update(@PathVariable("jobslog_id") BigInteger jobslog_id, @RequestBody JobsLogDTO jobslogdto) { public ResponseEntity<JobsLogDTO> update(@PathVariable("jobslog_id") String jobslog_id, @RequestBody JobsLogDTO jobslogdto) {
JobsLog domain = jobslogMapping.toDomain(jobslogdto); JobsLog domain = jobslogMapping.toDomain(jobslogdto);
domain .setId(jobslog_id); domain .setId(jobslog_id);
jobslogService.update(domain ); jobslogService.update(domain );
...@@ -116,14 +116,14 @@ public class JobsLogResource { ...@@ -116,14 +116,14 @@ public class JobsLogResource {
@ApiOperation(value = "删除任务调度日志", tags = {"任务调度日志" }, notes = "删除任务调度日志") @ApiOperation(value = "删除任务调度日志", tags = {"任务调度日志" }, notes = "删除任务调度日志")
@RequestMapping(method = RequestMethod.DELETE, value = "/jobslogs/{jobslog_id}") @RequestMapping(method = RequestMethod.DELETE, value = "/jobslogs/{jobslog_id}")
@Transactional @Transactional
public ResponseEntity<Boolean> remove(@PathVariable("jobslog_id") BigInteger jobslog_id) { public ResponseEntity<Boolean> remove(@PathVariable("jobslog_id") String jobslog_id) {
return ResponseEntity.status(HttpStatus.OK).body(jobslogService.remove(jobslog_id)); return ResponseEntity.status(HttpStatus.OK).body(jobslogService.remove(jobslog_id));
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsLog-Remove-all')") @PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsLog-Remove-all')")
@ApiOperation(value = "批量删除任务调度日志", tags = {"任务调度日志" }, notes = "批量删除任务调度日志") @ApiOperation(value = "批量删除任务调度日志", tags = {"任务调度日志" }, notes = "批量删除任务调度日志")
@RequestMapping(method = RequestMethod.DELETE, value = "/jobslogs/batch") @RequestMapping(method = RequestMethod.DELETE, value = "/jobslogs/batch")
public ResponseEntity<Boolean> removeBatch(@RequestBody List<BigInteger> ids) { public ResponseEntity<Boolean> removeBatch(@RequestBody List<String> ids) {
jobslogService.removeBatch(ids); jobslogService.removeBatch(ids);
return ResponseEntity.status(HttpStatus.OK).body(true); return ResponseEntity.status(HttpStatus.OK).body(true);
} }
...@@ -131,7 +131,7 @@ public class JobsLogResource { ...@@ -131,7 +131,7 @@ public class JobsLogResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsLog-Get-all')") @PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsLog-Get-all')")
@ApiOperation(value = "获取任务调度日志", tags = {"任务调度日志" }, notes = "获取任务调度日志") @ApiOperation(value = "获取任务调度日志", tags = {"任务调度日志" }, notes = "获取任务调度日志")
@RequestMapping(method = RequestMethod.GET, value = "/jobslogs/{jobslog_id}") @RequestMapping(method = RequestMethod.GET, value = "/jobslogs/{jobslog_id}")
public ResponseEntity<JobsLogDTO> get(@PathVariable("jobslog_id") BigInteger jobslog_id) { public ResponseEntity<JobsLogDTO> get(@PathVariable("jobslog_id") String jobslog_id) {
JobsLog domain = jobslogService.get(jobslog_id); JobsLog domain = jobslogService.get(jobslog_id);
JobsLogDTO dto = jobslogMapping.toDto(domain); JobsLogDTO dto = jobslogMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto); return ResponseEntity.status(HttpStatus.OK).body(dto);
......
...@@ -49,7 +49,7 @@ public class JobsRegistryResource { ...@@ -49,7 +49,7 @@ public class JobsRegistryResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsRegistry-Get-all')") @PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsRegistry-Get-all')")
@ApiOperation(value = "获取任务注册信息", tags = {"任务注册信息" }, notes = "获取任务注册信息") @ApiOperation(value = "获取任务注册信息", tags = {"任务注册信息" }, notes = "获取任务注册信息")
@RequestMapping(method = RequestMethod.GET, value = "/jobsregistries/{jobsregistry_id}") @RequestMapping(method = RequestMethod.GET, value = "/jobsregistries/{jobsregistry_id}")
public ResponseEntity<JobsRegistryDTO> get(@PathVariable("jobsregistry_id") BigInteger jobsregistry_id) { public ResponseEntity<JobsRegistryDTO> get(@PathVariable("jobsregistry_id") String jobsregistry_id) {
JobsRegistry domain = jobsregistryService.get(jobsregistry_id); JobsRegistry domain = jobsregistryService.get(jobsregistry_id);
JobsRegistryDTO dto = jobsregistryMapping.toDto(domain); JobsRegistryDTO dto = jobsregistryMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto); return ResponseEntity.status(HttpStatus.OK).body(dto);
...@@ -59,14 +59,14 @@ public class JobsRegistryResource { ...@@ -59,14 +59,14 @@ public class JobsRegistryResource {
@ApiOperation(value = "删除任务注册信息", tags = {"任务注册信息" }, notes = "删除任务注册信息") @ApiOperation(value = "删除任务注册信息", tags = {"任务注册信息" }, notes = "删除任务注册信息")
@RequestMapping(method = RequestMethod.DELETE, value = "/jobsregistries/{jobsregistry_id}") @RequestMapping(method = RequestMethod.DELETE, value = "/jobsregistries/{jobsregistry_id}")
@Transactional @Transactional
public ResponseEntity<Boolean> remove(@PathVariable("jobsregistry_id") BigInteger jobsregistry_id) { public ResponseEntity<Boolean> remove(@PathVariable("jobsregistry_id") String jobsregistry_id) {
return ResponseEntity.status(HttpStatus.OK).body(jobsregistryService.remove(jobsregistry_id)); return ResponseEntity.status(HttpStatus.OK).body(jobsregistryService.remove(jobsregistry_id));
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsRegistry-Remove-all')") @PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsRegistry-Remove-all')")
@ApiOperation(value = "批量删除任务注册信息", tags = {"任务注册信息" }, notes = "批量删除任务注册信息") @ApiOperation(value = "批量删除任务注册信息", tags = {"任务注册信息" }, notes = "批量删除任务注册信息")
@RequestMapping(method = RequestMethod.DELETE, value = "/jobsregistries/batch") @RequestMapping(method = RequestMethod.DELETE, value = "/jobsregistries/batch")
public ResponseEntity<Boolean> removeBatch(@RequestBody List<BigInteger> ids) { public ResponseEntity<Boolean> removeBatch(@RequestBody List<String> ids) {
jobsregistryService.removeBatch(ids); jobsregistryService.removeBatch(ids);
return ResponseEntity.status(HttpStatus.OK).body(true); return ResponseEntity.status(HttpStatus.OK).body(true);
} }
...@@ -75,7 +75,7 @@ public class JobsRegistryResource { ...@@ -75,7 +75,7 @@ public class JobsRegistryResource {
@ApiOperation(value = "更新任务注册信息", tags = {"任务注册信息" }, notes = "更新任务注册信息") @ApiOperation(value = "更新任务注册信息", tags = {"任务注册信息" }, notes = "更新任务注册信息")
@RequestMapping(method = RequestMethod.PUT, value = "/jobsregistries/{jobsregistry_id}") @RequestMapping(method = RequestMethod.PUT, value = "/jobsregistries/{jobsregistry_id}")
@Transactional @Transactional
public ResponseEntity<JobsRegistryDTO> update(@PathVariable("jobsregistry_id") BigInteger jobsregistry_id, @RequestBody JobsRegistryDTO jobsregistrydto) { public ResponseEntity<JobsRegistryDTO> update(@PathVariable("jobsregistry_id") String jobsregistry_id, @RequestBody JobsRegistryDTO jobsregistrydto) {
JobsRegistry domain = jobsregistryMapping.toDomain(jobsregistrydto); JobsRegistry domain = jobsregistryMapping.toDomain(jobsregistrydto);
domain .setId(jobsregistry_id); domain .setId(jobsregistry_id);
jobsregistryService.update(domain ); jobsregistryService.update(domain );
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册