提交 138bc672 编写于 作者: ibizdev's avatar ibizdev

xignzi006 发布系统代码

上级 1c00c80e
...@@ -1219,6 +1219,16 @@ ...@@ -1219,6 +1219,16 @@
"viewtag": "6ab7d7604dbd53cc5b469aa9176dcb2f", "viewtag": "6ab7d7604dbd53cc5b469aa9176dcb2f",
"memo": "" "memo": ""
}, },
"incidentquickcreatebyparentkey": {
"title": "快速新建",
"caption": "案例",
"viewtype": "DEOPTVIEW",
"viewmodule": "Service",
"viewname": "IncidentQuickCreateByParentKey",
"viewfilename": "incident-quick-create-by-parent-key",
"viewtag": "6b1896d002d20fec6591398a98f37e39",
"memo": "系统自动添加"
},
"knowledgearticleincidentgridview": { "knowledgearticleincidentgridview": {
"title": "知识文章事件表格视图", "title": "知识文章事件表格视图",
"caption": "知识文章事件", "caption": "知识文章事件",
......
...@@ -119,6 +119,10 @@ export default { ...@@ -119,6 +119,10 @@ export default {
caption: "案例", caption: "案例",
title: "快速新建", title: "快速新建",
}, },
quickcreatebyparentkey: {
caption: "案例",
title: "快速新建",
},
pickupgridview: { pickupgridview: {
caption: "案例", caption: "案例",
title: "案例选择表格视图", title: "案例选择表格视图",
...@@ -261,7 +265,7 @@ export default { ...@@ -261,7 +265,7 @@ export default {
ticketnumber: "案例号", ticketnumber: "案例号",
prioritycode: "优先级", prioritycode: "优先级",
caseorigincode: "起源", caseorigincode: "起源",
customerid: "客户", customername: "客户",
statecode: "状态", statecode: "状态",
}, },
uiactions: { uiactions: {
......
...@@ -118,6 +118,10 @@ export default { ...@@ -118,6 +118,10 @@ export default {
caption: "案例", caption: "案例",
title: "快速新建", title: "快速新建",
}, },
quickcreatebyparentkey: {
caption: "案例",
title: "快速新建",
},
pickupgridview: { pickupgridview: {
caption: "案例", caption: "案例",
title: "案例选择表格视图", title: "案例选择表格视图",
...@@ -260,7 +264,7 @@ export default { ...@@ -260,7 +264,7 @@ export default {
ticketnumber: "案例号", ticketnumber: "案例号",
prioritycode: "优先级", prioritycode: "优先级",
caseorigincode: "起源", caseorigincode: "起源",
customerid: "客户", customername: "客户",
statecode: "状态", statecode: "状态",
}, },
uiactions: { uiactions: {
......
...@@ -983,6 +983,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -983,6 +983,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "AccountEdit_DataPanel", "viewname": "AccountEdit_DataPanel",
"viewtag": "6ab7d7604dbd53cc5b469aa9176dcb2f" "viewtag": "6ab7d7604dbd53cc5b469aa9176dcb2f"
}, },
"incidentquickcreatebyparentkey": {
"title": "快速新建",
"caption": "案例",
"viewtype": "DEOPTVIEW",
"viewmodule": "Service",
"viewname": "IncidentQuickCreateByParentKey",
"viewtag": "6b1896d002d20fec6591398a98f37e39"
},
"knowledgearticleincidentgridview": { "knowledgearticleincidentgridview": {
"title": "知识文章事件表格视图", "title": "知识文章事件表格视图",
"caption": "知识文章事件", "caption": "知识文章事件",
......
...@@ -512,10 +512,10 @@ export class IncidentByParentKeyBase extends GridViewBase { ...@@ -512,10 +512,10 @@ export class IncidentByParentKeyBase extends GridViewBase {
}); });
} }
const view: any = { const view: any = {
viewname: 'incident-quick-create-view', viewname: 'incident-quick-create-by-parent-key',
height: 0, height: 0,
width: 0, width: 0,
title: this.$t('entities.incident.views.quickcreateview.title'), title: this.$t('entities.incident.views.quickcreatebyparentkey.title'),
placement: 'DRAWER_RIGHT', placement: 'DRAWER_RIGHT',
}; };
openDrawer(view, data); openDrawer(view, data);
......
import { Subject } from 'rxjs';
import { OptionViewBase } from '@/studio-core';
import IncidentService from '@/service/incident/incident-service';
import OptionViewEngine from '@engine/view/option-view-engine';
/**
* 快速新建视图基类
*
* @export
* @class IncidentQuickCreateByParentKeyBase
* @extends {OptionViewBase}
*/
export class IncidentQuickCreateByParentKeyBase extends OptionViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof IncidentQuickCreateByParentKeyBase
*/
protected appDeName: string = 'incident';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof IncidentQuickCreateByParentKeyBase
*/
protected appDeKey: string = 'incidentid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof IncidentQuickCreateByParentKeyBase
*/
protected appDeMajor: string = 'title';
/**
* 实体服务对象
*
* @type {IncidentService}
* @memberof IncidentQuickCreateByParentKeyBase
*/
protected appEntityService: IncidentService = new IncidentService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof IncidentQuickCreateByParentKeyBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof IncidentQuickCreateByParentKeyBase
*/
protected model: any = {
srfCaption: 'entities.incident.views.quickcreatebyparentkey.caption',
srfTitle: 'entities.incident.views.quickcreatebyparentkey.title',
srfSubTitle: 'entities.incident.views.quickcreatebyparentkey.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof IncidentQuickCreateByParentKeyBase
*/
protected containerModel: any = {
view_form: { name: 'form', type: 'FORM' },
view_okbtn: { name: 'okbtn', type: 'button', text: '确定', disabled: true },
view_cancelbtn: { name: 'cancelbtn', type: 'button', text: '取消', disabled: false },
view_leftbtn: { name: 'leftbtn', type: 'button', text: '左移', disabled: true },
view_rightbtn: { name: 'rightbtn', type: 'button', text: '右移', disabled: true },
view_allleftbtn: { name: 'allleftbtn', type: 'button', text: '全部左移', disabled: true },
view_allrightbtn: { name: 'allrightbtn', type: 'button', text: '全部右移', disabled: true },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '6b1896d002d20fec6591398a98f37e39';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof IncidentQuickCreateByParentKeyBase
*/
public engine: OptionViewEngine = new OptionViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof IncidentQuickCreateByParentKeyBase
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'incident',
majorPSDEField: 'title',
isLoadDefault: true,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IncidentQuickCreateByParentKeyBase
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IncidentQuickCreateByParentKeyBase
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IncidentQuickCreateByParentKeyBase
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
}
\ No newline at end of file
<studio-view-style2 viewName="incidentquickcreatebyparentkey" viewTitle="快速新建" class='deoptview incident-quick-create-by-parent-key'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:autosave="false"
:viewtag="viewtag"
:showBusyIndicator="true"
updateAction="Update"
removeAction="Remove"
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
WFSubmitAction=""
WFStartAction=""
style=''
name="form"
ref='form'
@save="form_save($event)"
@remove="form_remove($event)"
@load="form_load($event)"
@closeview="closeView($event)">
</view_form>
<template slot="footer">
<div class="option-view-footer-actions">
<i-button type='primary' @click="onClickOk.apply(_self, arguments)">{{ containerModel.view_okbtn.text }}</i-button>
&nbsp;&nbsp;
<i-button @click="onClickCancel.apply(_self, arguments)">{{ containerModel.view_cancelbtn.text }}</i-button>
</div>
</template>
</studio-view-style2>
\ No newline at end of file
<template src="./incident-quick-create-by-parent-key.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { IncidentQuickCreateByParentKeyBase } from './incident-quick-create-by-parent-key-base';
import view_form from '@widgets/incident/quick-create-form/quick-create-form.vue';
/**
* 快速新建视图
*
* @export
* @class IncidentQuickCreateByParentKey
* @extends {IncidentQuickCreateByParentKeyBase}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class IncidentQuickCreateByParentKey extends IncidentQuickCreateByParentKeyBase { }
</script>
...@@ -160,6 +160,7 @@ export const PageComponents = { ...@@ -160,6 +160,7 @@ export const PageComponents = {
Vue.component('sales-literature-item-edit-view', () => import('@pages/sales/sales-literature-item-edit-view/sales-literature-item-edit-view.vue')); Vue.component('sales-literature-item-edit-view', () => import('@pages/sales/sales-literature-item-edit-view/sales-literature-item-edit-view.vue'));
Vue.component('competitor-grid-view', () => import('@pages/sales/competitor-grid-view/competitor-grid-view.vue')); Vue.component('competitor-grid-view', () => import('@pages/sales/competitor-grid-view/competitor-grid-view.vue'));
Vue.component('incident-pickup-grid-view', () => import('@pages/service/incident-pickup-grid-view/incident-pickup-grid-view.vue')); Vue.component('incident-pickup-grid-view', () => import('@pages/service/incident-pickup-grid-view/incident-pickup-grid-view.vue'));
Vue.component('incident-quick-create-by-parent-key', () => import('@pages/service/incident-quick-create-by-parent-key/incident-quick-create-by-parent-key.vue'));
Vue.component('ibiz-list-quick-create', () => import('@pages/marketing/ibiz-list-quick-create/ibiz-list-quick-create.vue')); Vue.component('ibiz-list-quick-create', () => import('@pages/marketing/ibiz-list-quick-create/ibiz-list-quick-create.vue'));
Vue.component('opportunity-product-opp-opp-pro-grid-view', () => import('@pages/sales/opportunity-product-opp-opp-pro-grid-view/opportunity-product-opp-opp-pro-grid-view.vue')); Vue.component('opportunity-product-opp-opp-pro-grid-view', () => import('@pages/sales/opportunity-product-opp-opp-pro-grid-view/opportunity-product-opp-opp-pro-grid-view.vue'));
Vue.component('contact-tab-exp-view', () => import('@pages/base/contact-tab-exp-view/contact-tab-exp-view.vue')); Vue.component('contact-tab-exp-view', () => import('@pages/base/contact-tab-exp-view/contact-tab-exp-view.vue'));
......
...@@ -7132,6 +7132,20 @@ const router = new Router({ ...@@ -7132,6 +7132,20 @@ const router = new Router({
}, },
component: () => import('@pages/service/incident-pickup-grid-view/incident-pickup-grid-view.vue'), component: () => import('@pages/service/incident-pickup-grid-view/incident-pickup-grid-view.vue'),
}, },
{
path: 'incidents/:incident?/quickcreatebyparentkey/:quickcreatebyparentkey?',
meta: {
caption: 'entities.incident.views.quickcreatebyparentkey.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'incidents', parameterName: 'incident' },
{ pathName: 'quickcreatebyparentkey', parameterName: 'quickcreatebyparentkey' },
],
requireAuth: true,
},
component: () => import('@pages/service/incident-quick-create-by-parent-key/incident-quick-create-by-parent-key.vue'),
},
{ {
path: 'ibizlists/:ibizlist?/quickcreate/:quickcreate?', path: 'ibizlists/:ibizlist?/quickcreate/:quickcreate?',
meta: { meta: {
......
...@@ -461,6 +461,7 @@ export const viewstate: any = { ...@@ -461,6 +461,7 @@ export const viewstate: any = {
refviews: [ refviews: [
'540213698dac06ea2ef3193da7fe9b11', '540213698dac06ea2ef3193da7fe9b11',
'f440f1d3b950a89e6cb72cadea120b74', 'f440f1d3b950a89e6cb72cadea120b74',
'6b1896d002d20fec6591398a98f37e39',
], ],
}, },
{ {
...@@ -1109,6 +1110,19 @@ export const viewstate: any = { ...@@ -1109,6 +1110,19 @@ export const viewstate: any = {
refviews: [ refviews: [
], ],
}, },
{
viewtag: '6b1896d002d20fec6591398a98f37e39',
viewmodule: 'Service',
viewname: 'IncidentQuickCreateByParentKey',
viewaction: '',
viewdatachange: false,
refviews: [
'05d66c9ecb6eeb18a00a23cca19bf042',
'e52af970c14fd89546ac8ccaecab460c',
'ba34ee36c1d0de288403607e17e7eb3e',
'0dff48c04927315f77dd70a9a2767b59',
],
},
{ {
viewtag: '6c17740cc21fd25906f3feeec10a454a', viewtag: '6c17740cc21fd25906f3feeec10a454a',
viewmodule: 'Service', viewmodule: 'Service',
......
...@@ -84,6 +84,7 @@ export default class IncidentUIServiceBase extends UIService { ...@@ -84,6 +84,7 @@ export default class IncidentUIServiceBase extends UIService {
this.allViewMap.set(':',{viewname:'byparentkey',srfappde:'incidents'}); this.allViewMap.set(':',{viewname:'byparentkey',srfappde:'incidents'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'incidents'}); this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'incidents'});
this.allViewMap.set(':',{viewname:'quickcreateview',srfappde:'incidents'}); this.allViewMap.set(':',{viewname:'quickcreateview',srfappde:'incidents'});
this.allViewMap.set(':',{viewname:'quickcreatebyparentkey',srfappde:'incidents'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'incidents'}); this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'incidents'});
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'incidents'}); this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'incidents'});
this.allViewMap.set(':',{viewname:'childincidentgridview',srfappde:'incidents'}); this.allViewMap.set(':',{viewname:'childincidentgridview',srfappde:'incidents'});
......
...@@ -94,9 +94,9 @@ export class MainGridBase extends GridControllerBase { ...@@ -94,9 +94,9 @@ export class MainGridBase extends GridControllerBase {
util: 'PX' util: 'PX'
}, },
{ {
name: 'customerid', name: 'customername',
label: '客户', label: '客户',
langtag: 'entities.incident.main_grid.columns.customerid', langtag: 'entities.incident.main_grid.columns.customername',
show: true, show: true,
util: 'PX' util: 'PX'
}, },
...@@ -145,7 +145,7 @@ export class MainGridBase extends GridControllerBase { ...@@ -145,7 +145,7 @@ export class MainGridBase extends GridControllerBase {
'ticketnumber':false, 'ticketnumber':false,
'prioritycode':false, 'prioritycode':false,
'caseorigincode':false, 'caseorigincode':false,
'customerid':false, 'customername':false,
'statecode':false, 'statecode':false,
}; };
......
...@@ -106,11 +106,6 @@ export default class MainModel { ...@@ -106,11 +106,6 @@ export default class MainModel {
prop: 'title', prop: 'title',
dataType: 'TEXT', dataType: 'TEXT',
}, },
{
name: 'customerid',
prop: 'customerid',
dataType: 'TEXT',
},
{ {
name: 'productid', name: 'productid',
prop: 'productid', prop: 'productid',
...@@ -141,6 +136,11 @@ export default class MainModel { ...@@ -141,6 +136,11 @@ export default class MainModel {
prop: 'entitlementid', prop: 'entitlementid',
dataType: 'PICKUP', dataType: 'PICKUP',
}, },
{
name: 'customername',
prop: 'customername',
dataType: 'TEXT',
},
{ {
name: 'incident', name: 'incident',
prop: 'incidentid', prop: 'incidentid',
......
...@@ -75,15 +75,15 @@ ...@@ -75,15 +75,15 @@
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
<template v-if="getColumnState('customerid')"> <template v-if="getColumnState('customername')">
<el-table-column show-overflow-tooltip :prop="'customerid'" :label="$t('entities.incident.main_grid.columns.customerid')" :width="160" :align="'left'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'customername'" :label="$t('entities.incident.main_grid.columns.customername')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}"> <template v-slot:header="{column}">
<span class="column-header "> <span class="column-header ">
{{$t('entities.incident.main_grid.columns.customerid')}} {{$t('entities.incident.main_grid.columns.customername')}}
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<span>{{row.customerid}}</span> <span>{{row.customername}}</span>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
......
...@@ -4769,7 +4769,7 @@ ...@@ -4769,7 +4769,7 @@
<!--输出实体[INCIDENT]数据结构 --> <!--输出实体[INCIDENT]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-incident-74-59"> <changeSet author="a_LAB01_e85d8801c" id="tab-incident-81-59">
<createTable tableName="INCIDENT"> <createTable tableName="INCIDENT">
<column name="LASTONHOLDTIME" remarks="" type="DATETIME"> <column name="LASTONHOLDTIME" remarks="" type="DATETIME">
</column> </column>
...@@ -9346,7 +9346,7 @@ ...@@ -9346,7 +9346,7 @@
<!--输出实体[SALESORDER]数据结构 --> <!--输出实体[SALESORDER]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-salesorder-116-110"> <changeSet author="a_LAB01_e85d8801c" id="tab-salesorder-124-110">
<createTable tableName="SALESORDER"> <createTable tableName="SALESORDER">
<column name="ENTITYIMAGE" remarks="" type="VARCHAR(100)"> <column name="ENTITYIMAGE" remarks="" type="VARCHAR(100)">
</column> </column>
...@@ -11357,43 +11357,43 @@ ...@@ -11357,43 +11357,43 @@
<addForeignKeyConstraint baseColumnNames="RESOURCESPECID" baseTableName="SERVICE" constraintName="DER1N_SERVICE__RESOURCESPEC__R" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="RESOURCESPECID" referencedTableName="RESOURCESPEC" validate="true"/> <addForeignKeyConstraint baseColumnNames="RESOURCESPECID" baseTableName="SERVICE" constraintName="DER1N_SERVICE__RESOURCESPEC__R" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="RESOURCESPECID" referencedTableName="RESOURCESPEC" validate="true"/>
</changeSet> </changeSet>
<!--输出实体[INCIDENT]外键关系 --> <!--输出实体[INCIDENT]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-incident-74-260"> <changeSet author="a_LAB01_e85d8801c" id="fk-incident-81-260">
<addForeignKeyConstraint baseColumnNames="PRIMARYCONTACTID" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__CONTACT__PRIMA" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CONTACTID" referencedTableName="CONTACT" validate="true"/> <addForeignKeyConstraint baseColumnNames="PRIMARYCONTACTID" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__CONTACT__PRIMA" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CONTACTID" referencedTableName="CONTACT" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-incident-74-261"> <changeSet author="a_LAB01_e85d8801c" id="fk-incident-81-261">
<addForeignKeyConstraint baseColumnNames="RESPONSIBLECONTACTID" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__CONTACT__RESPO" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CONTACTID" referencedTableName="CONTACT" validate="true"/> <addForeignKeyConstraint baseColumnNames="RESPONSIBLECONTACTID" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__CONTACT__RESPO" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CONTACTID" referencedTableName="CONTACT" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-incident-74-262"> <changeSet author="a_LAB01_e85d8801c" id="fk-incident-81-262">
<addForeignKeyConstraint baseColumnNames="CONTRACTDETAILID" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__CONTRACTDETAIL" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CONTRACTDETAILID" referencedTableName="CONTRACTDETAIL" validate="true"/> <addForeignKeyConstraint baseColumnNames="CONTRACTDETAILID" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__CONTRACTDETAIL" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CONTRACTDETAILID" referencedTableName="CONTRACTDETAIL" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-incident-74-263"> <changeSet author="a_LAB01_e85d8801c" id="fk-incident-81-263">
<addForeignKeyConstraint baseColumnNames="CONTRACTID" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__CONTRACT__CONT" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CONTRACTID" referencedTableName="CONTRACT" validate="true"/> <addForeignKeyConstraint baseColumnNames="CONTRACTID" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__CONTRACT__CONT" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CONTRACTID" referencedTableName="CONTRACT" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-incident-74-264"> <changeSet author="a_LAB01_e85d8801c" id="fk-incident-81-264">
<addForeignKeyConstraint baseColumnNames="ENTITLEMENTID" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__ENTITLEMENT__E" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ENTITLEMENTID" referencedTableName="ENTITLEMENT" validate="true"/> <addForeignKeyConstraint baseColumnNames="ENTITLEMENTID" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__ENTITLEMENT__E" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ENTITLEMENTID" referencedTableName="ENTITLEMENT" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-incident-74-265"> <changeSet author="a_LAB01_e85d8801c" id="fk-incident-81-265">
<addForeignKeyConstraint baseColumnNames="EXISTINGCASE" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__INCIDENT__EXIS" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="INCIDENTID" referencedTableName="INCIDENT" validate="true"/> <addForeignKeyConstraint baseColumnNames="EXISTINGCASE" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__INCIDENT__EXIS" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="INCIDENTID" referencedTableName="INCIDENT" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-incident-74-266"> <changeSet author="a_LAB01_e85d8801c" id="fk-incident-81-266">
<addForeignKeyConstraint baseColumnNames="MASTERID" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__INCIDENT__MAST" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="INCIDENTID" referencedTableName="INCIDENT" validate="true"/> <addForeignKeyConstraint baseColumnNames="MASTERID" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__INCIDENT__MAST" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="INCIDENTID" referencedTableName="INCIDENT" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-incident-74-267"> <changeSet author="a_LAB01_e85d8801c" id="fk-incident-81-267">
<addForeignKeyConstraint baseColumnNames="PARENTCASEID" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__INCIDENT__PARE" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="INCIDENTID" referencedTableName="INCIDENT" validate="true"/> <addForeignKeyConstraint baseColumnNames="PARENTCASEID" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__INCIDENT__PARE" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="INCIDENTID" referencedTableName="INCIDENT" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-incident-74-268"> <changeSet author="a_LAB01_e85d8801c" id="fk-incident-81-268">
<addForeignKeyConstraint baseColumnNames="PRODUCTID" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__PRODUCT__PRODU" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRODUCTID" referencedTableName="PRODUCT" validate="true"/> <addForeignKeyConstraint baseColumnNames="PRODUCTID" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__PRODUCT__PRODU" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRODUCTID" referencedTableName="PRODUCT" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-incident-74-269"> <changeSet author="a_LAB01_e85d8801c" id="fk-incident-81-269">
<addForeignKeyConstraint baseColumnNames="FIRSTRESPONSEBYKPIID" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__SLAKPIINSTANCE" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SLAKPIINSTANCEID" referencedTableName="SLAKPIINSTANCE" validate="true"/> <addForeignKeyConstraint baseColumnNames="FIRSTRESPONSEBYKPIID" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__SLAKPIINSTANCE" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SLAKPIINSTANCEID" referencedTableName="SLAKPIINSTANCE" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-incident-74-271"> <changeSet author="a_LAB01_e85d8801c" id="fk-incident-81-271">
<addForeignKeyConstraint baseColumnNames="SLAID" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__SLA__SLAID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SLAID" referencedTableName="SLA" validate="true"/> <addForeignKeyConstraint baseColumnNames="SLAID" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__SLA__SLAID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SLAID" referencedTableName="SLA" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-incident-74-272"> <changeSet author="a_LAB01_e85d8801c" id="fk-incident-81-272">
<addForeignKeyConstraint baseColumnNames="SUBJECTID" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__SUBJECT__SUBJE" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SUBJECTID" referencedTableName="SUBJECT" validate="true"/> <addForeignKeyConstraint baseColumnNames="SUBJECTID" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__SUBJECT__SUBJE" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SUBJECTID" referencedTableName="SUBJECT" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-incident-74-273"> <changeSet author="a_LAB01_e85d8801c" id="fk-incident-81-273">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__TRANSACTIONCUR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/> <addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="INCIDENT" constraintName="DER1N_INCIDENT__TRANSACTIONCUR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet> </changeSet>
<!--输出实体[INCIDENTCUSTOMER]外键关系 --> <!--输出实体[INCIDENTCUSTOMER]外键关系 -->
...@@ -11792,22 +11792,22 @@ ...@@ -11792,22 +11792,22 @@
<addForeignKeyConstraint baseColumnNames="SALESLITERATUREID" baseTableName="SALESLITERATUREITEM" constraintName="DER1N_SALESLITERATUREITEM__SAL" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SALESLITERATUREID" referencedTableName="SALESLITERATURE" validate="true"/> <addForeignKeyConstraint baseColumnNames="SALESLITERATUREID" baseTableName="SALESLITERATUREITEM" constraintName="DER1N_SALESLITERATUREITEM__SAL" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SALESLITERATUREID" referencedTableName="SALESLITERATURE" validate="true"/>
</changeSet> </changeSet>
<!--输出实体[SALESORDER]外键关系 --> <!--输出实体[SALESORDER]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-salesorder-116-395"> <changeSet author="a_LAB01_e85d8801c" id="fk-salesorder-124-395">
<addForeignKeyConstraint baseColumnNames="CAMPAIGNID" baseTableName="SALESORDER" constraintName="DER1N_SALESORDER__CAMPAIGN__CA" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CAMPAIGNID" referencedTableName="CAMPAIGN" validate="true"/> <addForeignKeyConstraint baseColumnNames="CAMPAIGNID" baseTableName="SALESORDER" constraintName="DER1N_SALESORDER__CAMPAIGN__CA" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CAMPAIGNID" referencedTableName="CAMPAIGN" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-salesorder-116-396"> <changeSet author="a_LAB01_e85d8801c" id="fk-salesorder-124-396">
<addForeignKeyConstraint baseColumnNames="OPPORTUNITYID" baseTableName="SALESORDER" constraintName="DER1N_SALESORDER__OPPORTUNITY_" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="OPPORTUNITYID" referencedTableName="OPPORTUNITY" validate="true"/> <addForeignKeyConstraint baseColumnNames="OPPORTUNITYID" baseTableName="SALESORDER" constraintName="DER1N_SALESORDER__OPPORTUNITY_" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="OPPORTUNITYID" referencedTableName="OPPORTUNITY" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-salesorder-116-397"> <changeSet author="a_LAB01_e85d8801c" id="fk-salesorder-124-397">
<addForeignKeyConstraint baseColumnNames="PRICELEVELID" baseTableName="SALESORDER" constraintName="DER1N_SALESORDER__PRICELEVEL__" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRICELEVELID" referencedTableName="PRICELEVEL" validate="true"/> <addForeignKeyConstraint baseColumnNames="PRICELEVELID" baseTableName="SALESORDER" constraintName="DER1N_SALESORDER__PRICELEVEL__" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRICELEVELID" referencedTableName="PRICELEVEL" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-salesorder-116-398"> <changeSet author="a_LAB01_e85d8801c" id="fk-salesorder-124-398">
<addForeignKeyConstraint baseColumnNames="QUOTEID" baseTableName="SALESORDER" constraintName="DER1N_SALESORDER__QUOTE__QUOTE" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="QUOTEID" referencedTableName="QUOTE" validate="true"/> <addForeignKeyConstraint baseColumnNames="QUOTEID" baseTableName="SALESORDER" constraintName="DER1N_SALESORDER__QUOTE__QUOTE" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="QUOTEID" referencedTableName="QUOTE" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-salesorder-116-399"> <changeSet author="a_LAB01_e85d8801c" id="fk-salesorder-124-399">
<addForeignKeyConstraint baseColumnNames="SLAID" baseTableName="SALESORDER" constraintName="DER1N_SALESORDER__SLA__SLAID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SLAID" referencedTableName="SLA" validate="true"/> <addForeignKeyConstraint baseColumnNames="SLAID" baseTableName="SALESORDER" constraintName="DER1N_SALESORDER__SLA__SLAID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SLAID" referencedTableName="SLA" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-salesorder-116-400"> <changeSet author="a_LAB01_e85d8801c" id="fk-salesorder-124-400">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="SALESORDER" constraintName="DER1N_SALESORDER__TRANSACTIONC" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/> <addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="SALESORDER" constraintName="DER1N_SALESORDER__TRANSACTIONC" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet> </changeSet>
<!--输出实体[SALESORDERDETAIL]外键关系 --> <!--输出实体[SALESORDERDETAIL]外键关系 -->
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性--> <!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="IncidentResultMap" databaseId="mysql"> <select id="selectById" resultMap="IncidentResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`ACCOUNTNAME`, t1.`ACTIVITIESCOMPLETE`, t1.`ACTUALSERVICEUNITS`, t1.`BILLEDSERVICEUNITS`, t1.`BLOCKEDPROFILE`, t1.`CASEORIGINCODE`, t1.`CASETYPECODE`, t1.`CHECKEMAIL`, t1.`CONTACTNAME`, t1.`CONTRACTDETAILID`, t1.`CONTRACTDETAILNAME`, t1.`CONTRACTID`, t1.`CONTRACTNAME`, t1.`CONTRACTSERVICELEVELCODE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERCONTACTED`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERNAME`, t1.`CUSTOMERSATISFACTIONCODE`, t1.`DECREMENTENTITLEMENTTERM`, t1.`DECREMENTING`, t1.`DESCRIPTION`, t1.`EMAILADDRESS`, t1.`ENTITLEMENTID`, t1.`ENTITLEMENTNAME`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`ESCALATED`, t1.`ESCALATEDON`, t1.`EXCHANGERATE`, t1.`EXISTINGCASE`, t1.`EXISTINGCASENAME`, t1.`FIRSTRESPONSEBYKPIID`, t1.`FIRSTRESPONSEBYKPINAME`, t1.`FIRSTRESPONSESENT`, t1.`FIRSTRESPONSESLASTATUS`, t1.`FOLLOWUPBY`, t1.`FOLLOWUPTASKCREATED`, t1.`IMPORTSEQUENCENUMBER`, t1.`INCIDENTID`, t1.`INCIDENTSTAGECODE`, t1.`INFLUENCESCORE`, t1.`KBARTICLEID`, t1.`LASTONHOLDTIME`, t1.`MASTERID`, t1.`MASTERNAME`, t1.`MERGED`, t1.`MESSAGETYPECODE`, t1.`NUMBEROFCHILDINCIDENTS`, t1.`ONHOLDTIME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERNAME`, t1.`PARENTCASEID`, t1.`PARENTCASENAME`, t1.`PRIMARYCONTACTID`, t1.`PRIMARYCONTACTNAME`, t1.`PRIORITYCODE`, t1.`PROCESSID`, t1.`PRODUCTID`, t1.`PRODUCTNAME`, t1.`PRODUCTSERIALNUMBER`, t1.`RESOLVEBY`, t1.`RESOLVEBYKPIID`, t1.`RESOLVEBYKPINAME`, t1.`RESOLVEBYSLASTATUS`, t1.`RESPONSEBY`, t1.`RESPONSIBLECONTACTID`, t1.`RESPONSIBLECONTACTNAME`, t1.`ROUTECASE`, t1.`SENTIMENTVALUE`, t1.`SERVICESTAGE`, t1.`SEVERITYCODE`, t1.`SLAID`, t1.`SLANAME`, t1.`SOCIALPROFILEID`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBJECTID`, t1.`SUBJECTNAME`, t1.`TICKETNUMBER`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TITLE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `INCIDENT` t1 ) t1 where incidentid=#{id}]]> <![CDATA[select t1.* from (SELECT t1.`ACCOUNTNAME`, t1.`ACTIVITIESCOMPLETE`, t1.`ACTUALSERVICEUNITS`, t1.`BILLEDSERVICEUNITS`, t1.`BLOCKEDPROFILE`, t1.`CASEORIGINCODE`, t1.`CASETYPECODE`, t1.`CHECKEMAIL`, t1.`CONTACTNAME`, t1.`CONTRACTDETAILID`, t1.`CONTRACTDETAILNAME`, t1.`CONTRACTID`, t1.`CONTRACTNAME`, t1.`CONTRACTSERVICELEVELCODE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERCONTACTED`, t1.`CUSTOMERID`, t1.`CUSTOMERNAME`, t1.`CUSTOMERSATISFACTIONCODE`, t1.`CUSTOMERTYPE`, t1.`DECREMENTENTITLEMENTTERM`, t1.`DECREMENTING`, t1.`DESCRIPTION`, t1.`EMAILADDRESS`, t1.`ENTITLEMENTID`, t1.`ENTITLEMENTNAME`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`ESCALATED`, t1.`ESCALATEDON`, t1.`EXCHANGERATE`, t1.`EXISTINGCASE`, t1.`EXISTINGCASENAME`, t1.`FIRSTRESPONSEBYKPIID`, t1.`FIRSTRESPONSEBYKPINAME`, t1.`FIRSTRESPONSESENT`, t1.`FIRSTRESPONSESLASTATUS`, t1.`FOLLOWUPBY`, t1.`FOLLOWUPTASKCREATED`, t1.`IMPORTSEQUENCENUMBER`, t1.`INCIDENTID`, t1.`INCIDENTSTAGECODE`, t1.`INFLUENCESCORE`, t1.`KBARTICLEID`, t1.`LASTONHOLDTIME`, t1.`MASTERID`, t1.`MASTERNAME`, t1.`MERGED`, t1.`MESSAGETYPECODE`, t1.`NUMBEROFCHILDINCIDENTS`, t1.`ONHOLDTIME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERNAME`, t1.`OWNERTYPE`, t1.`PARENTCASEID`, t1.`PARENTCASENAME`, t1.`PRIMARYCONTACTID`, t1.`PRIMARYCONTACTNAME`, t1.`PRIORITYCODE`, t1.`PROCESSID`, t1.`PRODUCTID`, t1.`PRODUCTNAME`, t1.`PRODUCTSERIALNUMBER`, t1.`RESOLVEBY`, t1.`RESOLVEBYKPIID`, t1.`RESOLVEBYKPINAME`, t1.`RESOLVEBYSLASTATUS`, t1.`RESPONSEBY`, t1.`RESPONSIBLECONTACTID`, t1.`RESPONSIBLECONTACTNAME`, t1.`ROUTECASE`, t1.`SENTIMENTVALUE`, t1.`SERVICESTAGE`, t1.`SEVERITYCODE`, t1.`SLAID`, t1.`SLANAME`, t1.`SOCIALPROFILEID`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBJECTID`, t1.`SUBJECTNAME`, t1.`TICKETNUMBER`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TITLE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `INCIDENT` t1 ) t1 where incidentid=#{id}]]>
</select> </select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 --> <!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
...@@ -178,18 +178,18 @@ ...@@ -178,18 +178,18 @@
<!--数据查询[ByParentKey]--> <!--数据查询[ByParentKey]-->
<sql id="ByParentKey" databaseId="mysql"> <sql id="ByParentKey" databaseId="mysql">
<![CDATA[ SELECT t1.`ACCOUNTNAME`, t1.`ACTIVITIESCOMPLETE`, t1.`ACTUALSERVICEUNITS`, t1.`BILLEDSERVICEUNITS`, t1.`BLOCKEDPROFILE`, t1.`CASEORIGINCODE`, t1.`CASETYPECODE`, t1.`CHECKEMAIL`, t1.`CONTACTNAME`, t1.`CONTRACTDETAILID`, t1.`CONTRACTDETAILNAME`, t1.`CONTRACTID`, t1.`CONTRACTNAME`, t1.`CONTRACTSERVICELEVELCODE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERCONTACTED`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERNAME`, t1.`CUSTOMERSATISFACTIONCODE`, t1.`DECREMENTENTITLEMENTTERM`, t1.`DECREMENTING`, t1.`DESCRIPTION`, t1.`EMAILADDRESS`, t1.`ENTITLEMENTID`, t1.`ENTITLEMENTNAME`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`ESCALATED`, t1.`ESCALATEDON`, t1.`EXCHANGERATE`, t1.`EXISTINGCASE`, t1.`EXISTINGCASENAME`, t1.`FIRSTRESPONSEBYKPIID`, t1.`FIRSTRESPONSEBYKPINAME`, t1.`FIRSTRESPONSESENT`, t1.`FIRSTRESPONSESLASTATUS`, t1.`FOLLOWUPBY`, t1.`FOLLOWUPTASKCREATED`, t1.`IMPORTSEQUENCENUMBER`, t1.`INCIDENTID`, t1.`INCIDENTSTAGECODE`, t1.`INFLUENCESCORE`, t1.`KBARTICLEID`, t1.`LASTONHOLDTIME`, t1.`MASTERID`, t1.`MASTERNAME`, t1.`MERGED`, t1.`MESSAGETYPECODE`, t1.`NUMBEROFCHILDINCIDENTS`, t1.`ONHOLDTIME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERNAME`, t1.`PARENTCASEID`, t1.`PARENTCASENAME`, t1.`PRIMARYCONTACTID`, t1.`PRIMARYCONTACTNAME`, t1.`PRIORITYCODE`, t1.`PROCESSID`, t1.`PRODUCTID`, t1.`PRODUCTNAME`, t1.`PRODUCTSERIALNUMBER`, t1.`RESOLVEBY`, t1.`RESOLVEBYKPIID`, t1.`RESOLVEBYKPINAME`, t1.`RESOLVEBYSLASTATUS`, t1.`RESPONSEBY`, t1.`RESPONSIBLECONTACTID`, t1.`RESPONSIBLECONTACTNAME`, t1.`ROUTECASE`, t1.`SENTIMENTVALUE`, t1.`SERVICESTAGE`, t1.`SEVERITYCODE`, t1.`SLAID`, t1.`SLANAME`, t1.`SOCIALPROFILEID`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBJECTID`, t1.`SUBJECTNAME`, t1.`TICKETNUMBER`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TITLE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `INCIDENT` t1 <![CDATA[ SELECT t1.`ACCOUNTNAME`, t1.`ACTIVITIESCOMPLETE`, t1.`ACTUALSERVICEUNITS`, t1.`BILLEDSERVICEUNITS`, t1.`BLOCKEDPROFILE`, t1.`CASEORIGINCODE`, t1.`CASETYPECODE`, t1.`CHECKEMAIL`, t1.`CONTACTNAME`, t1.`CONTRACTDETAILID`, t1.`CONTRACTDETAILNAME`, t1.`CONTRACTID`, t1.`CONTRACTNAME`, t1.`CONTRACTSERVICELEVELCODE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERCONTACTED`, t1.`CUSTOMERID`, t1.`CUSTOMERNAME`, t1.`CUSTOMERSATISFACTIONCODE`, t1.`CUSTOMERTYPE`, t1.`DECREMENTENTITLEMENTTERM`, t1.`DECREMENTING`, t1.`DESCRIPTION`, t1.`EMAILADDRESS`, t1.`ENTITLEMENTID`, t1.`ENTITLEMENTNAME`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`ESCALATED`, t1.`ESCALATEDON`, t1.`EXCHANGERATE`, t1.`EXISTINGCASE`, t1.`EXISTINGCASENAME`, t1.`FIRSTRESPONSEBYKPIID`, t1.`FIRSTRESPONSEBYKPINAME`, t1.`FIRSTRESPONSESENT`, t1.`FIRSTRESPONSESLASTATUS`, t1.`FOLLOWUPBY`, t1.`FOLLOWUPTASKCREATED`, t1.`IMPORTSEQUENCENUMBER`, t1.`INCIDENTID`, t1.`INCIDENTSTAGECODE`, t1.`INFLUENCESCORE`, t1.`KBARTICLEID`, t1.`LASTONHOLDTIME`, t1.`MASTERID`, t1.`MASTERNAME`, t1.`MERGED`, t1.`MESSAGETYPECODE`, t1.`NUMBEROFCHILDINCIDENTS`, t1.`ONHOLDTIME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERNAME`, t1.`OWNERTYPE`, t1.`PARENTCASEID`, t1.`PARENTCASENAME`, t1.`PRIMARYCONTACTID`, t1.`PRIMARYCONTACTNAME`, t1.`PRIORITYCODE`, t1.`PROCESSID`, t1.`PRODUCTID`, t1.`PRODUCTNAME`, t1.`PRODUCTSERIALNUMBER`, t1.`RESOLVEBY`, t1.`RESOLVEBYKPIID`, t1.`RESOLVEBYKPINAME`, t1.`RESOLVEBYSLASTATUS`, t1.`RESPONSEBY`, t1.`RESPONSIBLECONTACTID`, t1.`RESPONSIBLECONTACTNAME`, t1.`ROUTECASE`, t1.`SENTIMENTVALUE`, t1.`SERVICESTAGE`, t1.`SEVERITYCODE`, t1.`SLAID`, t1.`SLANAME`, t1.`SOCIALPROFILEID`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBJECTID`, t1.`SUBJECTNAME`, t1.`TICKETNUMBER`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TITLE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `INCIDENT` t1
WHERE ( t1.`CUSTOMERID` = #{srf.datacontext.srfparentkey} ) WHERE ( t1.`CUSTOMERID` = #{srf.datacontext.srfparentkey} )
]]> ]]>
</sql> </sql>
<!--数据查询[Default]--> <!--数据查询[Default]-->
<sql id="Default" databaseId="mysql"> <sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`ACCOUNTNAME`, t1.`ACTIVITIESCOMPLETE`, t1.`ACTUALSERVICEUNITS`, t1.`BILLEDSERVICEUNITS`, t1.`BLOCKEDPROFILE`, t1.`CASEORIGINCODE`, t1.`CASETYPECODE`, t1.`CHECKEMAIL`, t1.`CONTACTNAME`, t1.`CONTRACTDETAILID`, t1.`CONTRACTDETAILNAME`, t1.`CONTRACTID`, t1.`CONTRACTNAME`, t1.`CONTRACTSERVICELEVELCODE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERCONTACTED`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERNAME`, t1.`CUSTOMERSATISFACTIONCODE`, t1.`DECREMENTENTITLEMENTTERM`, t1.`DECREMENTING`, t1.`DESCRIPTION`, t1.`EMAILADDRESS`, t1.`ENTITLEMENTID`, t1.`ENTITLEMENTNAME`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`ESCALATED`, t1.`ESCALATEDON`, t1.`EXCHANGERATE`, t1.`EXISTINGCASE`, t1.`EXISTINGCASENAME`, t1.`FIRSTRESPONSEBYKPIID`, t1.`FIRSTRESPONSEBYKPINAME`, t1.`FIRSTRESPONSESENT`, t1.`FIRSTRESPONSESLASTATUS`, t1.`FOLLOWUPBY`, t1.`FOLLOWUPTASKCREATED`, t1.`IMPORTSEQUENCENUMBER`, t1.`INCIDENTID`, t1.`INCIDENTSTAGECODE`, t1.`INFLUENCESCORE`, t1.`KBARTICLEID`, t1.`LASTONHOLDTIME`, t1.`MASTERID`, t1.`MASTERNAME`, t1.`MERGED`, t1.`MESSAGETYPECODE`, t1.`NUMBEROFCHILDINCIDENTS`, t1.`ONHOLDTIME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERNAME`, t1.`PARENTCASEID`, t1.`PARENTCASENAME`, t1.`PRIMARYCONTACTID`, t1.`PRIMARYCONTACTNAME`, t1.`PRIORITYCODE`, t1.`PROCESSID`, t1.`PRODUCTID`, t1.`PRODUCTNAME`, t1.`PRODUCTSERIALNUMBER`, t1.`RESOLVEBY`, t1.`RESOLVEBYKPIID`, t1.`RESOLVEBYKPINAME`, t1.`RESOLVEBYSLASTATUS`, t1.`RESPONSEBY`, t1.`RESPONSIBLECONTACTID`, t1.`RESPONSIBLECONTACTNAME`, t1.`ROUTECASE`, t1.`SENTIMENTVALUE`, t1.`SERVICESTAGE`, t1.`SEVERITYCODE`, t1.`SLAID`, t1.`SLANAME`, t1.`SOCIALPROFILEID`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBJECTID`, t1.`SUBJECTNAME`, t1.`TICKETNUMBER`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TITLE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `INCIDENT` t1 <![CDATA[ SELECT t1.`ACCOUNTNAME`, t1.`ACTIVITIESCOMPLETE`, t1.`ACTUALSERVICEUNITS`, t1.`BILLEDSERVICEUNITS`, t1.`BLOCKEDPROFILE`, t1.`CASEORIGINCODE`, t1.`CASETYPECODE`, t1.`CHECKEMAIL`, t1.`CONTACTNAME`, t1.`CONTRACTDETAILID`, t1.`CONTRACTDETAILNAME`, t1.`CONTRACTID`, t1.`CONTRACTNAME`, t1.`CONTRACTSERVICELEVELCODE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERCONTACTED`, t1.`CUSTOMERID`, t1.`CUSTOMERNAME`, t1.`CUSTOMERSATISFACTIONCODE`, t1.`CUSTOMERTYPE`, t1.`DECREMENTENTITLEMENTTERM`, t1.`DECREMENTING`, t1.`DESCRIPTION`, t1.`EMAILADDRESS`, t1.`ENTITLEMENTID`, t1.`ENTITLEMENTNAME`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`ESCALATED`, t1.`ESCALATEDON`, t1.`EXCHANGERATE`, t1.`EXISTINGCASE`, t1.`EXISTINGCASENAME`, t1.`FIRSTRESPONSEBYKPIID`, t1.`FIRSTRESPONSEBYKPINAME`, t1.`FIRSTRESPONSESENT`, t1.`FIRSTRESPONSESLASTATUS`, t1.`FOLLOWUPBY`, t1.`FOLLOWUPTASKCREATED`, t1.`IMPORTSEQUENCENUMBER`, t1.`INCIDENTID`, t1.`INCIDENTSTAGECODE`, t1.`INFLUENCESCORE`, t1.`KBARTICLEID`, t1.`LASTONHOLDTIME`, t1.`MASTERID`, t1.`MASTERNAME`, t1.`MERGED`, t1.`MESSAGETYPECODE`, t1.`NUMBEROFCHILDINCIDENTS`, t1.`ONHOLDTIME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERNAME`, t1.`OWNERTYPE`, t1.`PARENTCASEID`, t1.`PARENTCASENAME`, t1.`PRIMARYCONTACTID`, t1.`PRIMARYCONTACTNAME`, t1.`PRIORITYCODE`, t1.`PROCESSID`, t1.`PRODUCTID`, t1.`PRODUCTNAME`, t1.`PRODUCTSERIALNUMBER`, t1.`RESOLVEBY`, t1.`RESOLVEBYKPIID`, t1.`RESOLVEBYKPINAME`, t1.`RESOLVEBYSLASTATUS`, t1.`RESPONSEBY`, t1.`RESPONSIBLECONTACTID`, t1.`RESPONSIBLECONTACTNAME`, t1.`ROUTECASE`, t1.`SENTIMENTVALUE`, t1.`SERVICESTAGE`, t1.`SEVERITYCODE`, t1.`SLAID`, t1.`SLANAME`, t1.`SOCIALPROFILEID`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBJECTID`, t1.`SUBJECTNAME`, t1.`TICKETNUMBER`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TITLE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `INCIDENT` t1
]]> ]]>
</sql> </sql>
<!--数据查询[View]--> <!--数据查询[View]-->
<sql id="View" databaseId="mysql"> <sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`ACCOUNTNAME`, t1.`ACTIVITIESCOMPLETE`, t1.`ACTUALSERVICEUNITS`, t1.`BILLEDSERVICEUNITS`, t1.`BLOCKEDPROFILE`, t1.`CASEORIGINCODE`, t1.`CASETYPECODE`, t1.`CHECKEMAIL`, t1.`CONTACTNAME`, t1.`CONTRACTDETAILID`, t1.`CONTRACTDETAILNAME`, t1.`CONTRACTID`, t1.`CONTRACTNAME`, t1.`CONTRACTSERVICELEVELCODE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERCONTACTED`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERNAME`, t1.`CUSTOMERSATISFACTIONCODE`, t1.`DECREMENTENTITLEMENTTERM`, t1.`DECREMENTING`, t1.`DESCRIPTION`, t1.`EMAILADDRESS`, t1.`ENTITLEMENTID`, t1.`ENTITLEMENTNAME`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`ESCALATED`, t1.`ESCALATEDON`, t1.`EXCHANGERATE`, t1.`EXISTINGCASE`, t1.`EXISTINGCASENAME`, t1.`FIRSTRESPONSEBYKPIID`, t1.`FIRSTRESPONSEBYKPINAME`, t1.`FIRSTRESPONSESENT`, t1.`FIRSTRESPONSESLASTATUS`, t1.`FOLLOWUPBY`, t1.`FOLLOWUPTASKCREATED`, t1.`IMPORTSEQUENCENUMBER`, t1.`INCIDENTID`, t1.`INCIDENTSTAGECODE`, t1.`INFLUENCESCORE`, t1.`KBARTICLEID`, t1.`LASTONHOLDTIME`, t1.`MASTERID`, t1.`MASTERNAME`, t1.`MERGED`, t1.`MESSAGETYPECODE`, t1.`NUMBEROFCHILDINCIDENTS`, t1.`ONHOLDTIME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERNAME`, t1.`PARENTCASEID`, t1.`PARENTCASENAME`, t1.`PRIMARYCONTACTID`, t1.`PRIMARYCONTACTNAME`, t1.`PRIORITYCODE`, t1.`PROCESSID`, t1.`PRODUCTID`, t1.`PRODUCTNAME`, t1.`PRODUCTSERIALNUMBER`, t1.`RESOLVEBY`, t1.`RESOLVEBYKPIID`, t1.`RESOLVEBYKPINAME`, t1.`RESOLVEBYSLASTATUS`, t1.`RESPONSEBY`, t1.`RESPONSIBLECONTACTID`, t1.`RESPONSIBLECONTACTNAME`, t1.`ROUTECASE`, t1.`SENTIMENTVALUE`, t1.`SERVICESTAGE`, t1.`SEVERITYCODE`, t1.`SLAID`, t1.`SLANAME`, t1.`SOCIALPROFILEID`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBJECTID`, t1.`SUBJECTNAME`, t1.`TICKETNUMBER`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TITLE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `INCIDENT` t1 <![CDATA[ SELECT t1.`ACCOUNTNAME`, t1.`ACTIVITIESCOMPLETE`, t1.`ACTUALSERVICEUNITS`, t1.`BILLEDSERVICEUNITS`, t1.`BLOCKEDPROFILE`, t1.`CASEORIGINCODE`, t1.`CASETYPECODE`, t1.`CHECKEMAIL`, t1.`CONTACTNAME`, t1.`CONTRACTDETAILID`, t1.`CONTRACTDETAILNAME`, t1.`CONTRACTID`, t1.`CONTRACTNAME`, t1.`CONTRACTSERVICELEVELCODE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERCONTACTED`, t1.`CUSTOMERID`, t1.`CUSTOMERNAME`, t1.`CUSTOMERSATISFACTIONCODE`, t1.`CUSTOMERTYPE`, t1.`DECREMENTENTITLEMENTTERM`, t1.`DECREMENTING`, t1.`DESCRIPTION`, t1.`EMAILADDRESS`, t1.`ENTITLEMENTID`, t1.`ENTITLEMENTNAME`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`ESCALATED`, t1.`ESCALATEDON`, t1.`EXCHANGERATE`, t1.`EXISTINGCASE`, t1.`EXISTINGCASENAME`, t1.`FIRSTRESPONSEBYKPIID`, t1.`FIRSTRESPONSEBYKPINAME`, t1.`FIRSTRESPONSESENT`, t1.`FIRSTRESPONSESLASTATUS`, t1.`FOLLOWUPBY`, t1.`FOLLOWUPTASKCREATED`, t1.`IMPORTSEQUENCENUMBER`, t1.`INCIDENTID`, t1.`INCIDENTSTAGECODE`, t1.`INFLUENCESCORE`, t1.`KBARTICLEID`, t1.`LASTONHOLDTIME`, t1.`MASTERID`, t1.`MASTERNAME`, t1.`MERGED`, t1.`MESSAGETYPECODE`, t1.`NUMBEROFCHILDINCIDENTS`, t1.`ONHOLDTIME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERNAME`, t1.`OWNERTYPE`, t1.`PARENTCASEID`, t1.`PARENTCASENAME`, t1.`PRIMARYCONTACTID`, t1.`PRIMARYCONTACTNAME`, t1.`PRIORITYCODE`, t1.`PROCESSID`, t1.`PRODUCTID`, t1.`PRODUCTNAME`, t1.`PRODUCTSERIALNUMBER`, t1.`RESOLVEBY`, t1.`RESOLVEBYKPIID`, t1.`RESOLVEBYKPINAME`, t1.`RESOLVEBYSLASTATUS`, t1.`RESPONSEBY`, t1.`RESPONSIBLECONTACTID`, t1.`RESPONSIBLECONTACTNAME`, t1.`ROUTECASE`, t1.`SENTIMENTVALUE`, t1.`SERVICESTAGE`, t1.`SEVERITYCODE`, t1.`SLAID`, t1.`SLANAME`, t1.`SOCIALPROFILEID`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBJECTID`, t1.`SUBJECTNAME`, t1.`TICKETNUMBER`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TITLE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `INCIDENT` t1
]]> ]]>
</sql> </sql>
</mapper> </mapper>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册