提交 23b9452e 编写于 作者: ibizdev's avatar ibizdev

chitanda 发布系统代码

上级 f4effc84
<script>
export default {
name: 'app-keep-alive',
render: function render() {
let _this = this;
let slot = _this.$slots.default;
let vnode = _this.getFirstComponentChild(slot);
let componentOptions = vnode && vnode.componentOptions;
render() {
const slot = this.$slots.default;
const vnode = this.getFirstComponentChild(slot);
const componentOptions = vnode && vnode.componentOptions;
if (componentOptions) {
// check pattern
let name = _this.getComponentName(componentOptions);
let ref = _this;
let include = ref.include;
let exclude = ref.exclude;
let routerList = ref.routerList;
let route = ref.$route;
const name = this.getComponentName(componentOptions);
const include = this.include;
const exclude = this.exclude;
const routerList = this.routerList;
const route = this.$route;
if (
// not included
(include && (!name || !_this.matches(include, name))) ||
(include && (!name || !this.matches(include, name))) ||
// excluded
(exclude && name && _this.matches(exclude, name)) ||
(routerList && (!route.fullPath && !_this.matches(routerList, route.fullPath)))
(exclude && name && this.matches(exclude, name)) ||
(routerList && (!route.fullPath && !this.matches(routerList, route.fullPath)))
) {
return vnode
return vnode;
}
let ref$1 = _this;
let cache = ref$1.cache;
let keys = ref$1.keys;
let key = vnode.key == null
const cache = this.cache;
const keys = this.keys;
const key = vnode.key == null
// same constructor may get registered as different local components
// so cid alone is not enough (#3269)
? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
......@@ -35,17 +31,16 @@ export default {
if (cache[key]) {
vnode.componentInstance = cache[key].componentInstance;
// make current key freshest
_this.remove(keys, key);
this.remove(keys, key);
keys.push(key);
} else {
cache[key] = vnode;
keys.push(key);
// prune oldest entry
if (_this.max && keys.length > parseInt(_this.max)) {
_this.pruneCacheEntry(cache, keys[0], keys, _this._vnode);
if (this.max && keys.length > parseInt(this.max)) {
this.pruneCacheEntry(cache, keys[0], keys, this._vnode);
}
}
vnode.data.keepAlive = true;
vnode.data.curPath = route.fullPath;
}
......@@ -57,44 +52,40 @@ export default {
max: [String, Number],
routerList: [Array]
},
data: function(){
data() {
return {
_toString: Object.prototype.toString
}
},
created: function () {
this.cache = Object.create(null);
created() {
this.cache = {};
this.keys = [];
},
destroyed: function () {
let _this = this;
for (let key in _this.cache) {
_this.pruneCacheEntry(_this.cache, key, _this.keys);
destroyed() {
for (let key in this.cache) {
this.pruneCacheEntry(this.cache, key, this.keys);
}
},
watch: {
'include': function (val) {
let _this = this;
_this.pruneCache(function (name) {
return _this.matches(val, name);
include(val) {
this.pruneCache((name) => {
return this.matches(val, name);
});
},
'exclude': function (val) {
let _this = this;
_this.pruneCache(function (name) {
return !_this.matches(val, name);
exclude(val) {
this.pruneCache((name) => {
return !this.matches(val, name);
});
},
'routerList': function(val) {
let _this = this;
_this.pruneCache2(function (name) {
return !_this.matches(val, name);
routerList(val) {
this.pruneCache2((name) => {
return !this.matches(val, name);
});
}
},
methods: {
pruneCacheEntry(cache, key, keys, current) {
let cached = cache[key];
const cached = cache[key];
if (cached) {
cached.componentInstance.$destroy();
}
......@@ -102,82 +93,68 @@ export default {
this.remove(keys, key);
},
pruneCache(filter) {
let _this = this;
let cache = _this.cache;
let keys = _this.keys;
let _vnode = _this._vnode;
for (let key in cache) {
let cachedNode = cache[key];
for (let key in this.cache) {
const cachedNode = this.cache[key];
if (cachedNode) {
let name = _this.getComponentName(cachedNode.componentOptions);
const name = this.getComponentName(cachedNode.componentOptions);
if (name && !filter(name)) {
_this.pruneCacheEntry(cache, key, keys, _vnode);
this.pruneCacheEntry(this.cache, key, this.keys, this._vnode);
}
}
}
},
pruneCache2(filter) {
let _this = this;
let cache = _this.cache;
let keys = _this.keys;
let _vnode = _this._vnode;
for (let key in cache) {
let cachedNode = cache[key];
for (let key in this.cache) {
const cachedNode = this.cache[key];
if (cachedNode) {
let name = cachedNode.data.curPath;
const name = cachedNode.data.curPath;
if (name && filter(name)) {
_this.pruneCacheEntry(cache, key, keys, _vnode);
this.pruneCacheEntry(this.cache, key, this.keys, this._vnode);
}
}
}
},
matches(pattern, name) {
if (Array.isArray(pattern)) {
return pattern.indexOf(name) > -1
return pattern.indexOf(name) > -1;
} else if (typeof pattern === 'string') {
return pattern.split(',').indexOf(name) > -1
return pattern.split(',').indexOf(name) > -1;
} else if (this.isRegExp(pattern)) {
return pattern.test(name)
return pattern.test(name);
}
/* istanbul ignore next */
return false
return false;
},
getComponentName(opts) {
return opts && (opts.Ctor.options.name || opts.tag)
},
getFirstComponentChild(children) {
let _this = this;
if (Array.isArray(children)) {
for (let i = 0; i < children.length; i++) {
let c = children[i];
if (_this.isDef(c) && (_this.isDef(c.componentOptions) || _this.isAsyncPlaceholder(c))) {
return c
const c = children[i];
if (this.isDef(c) && (this.isDef(c.componentOptions) || this.isAsyncPlaceholder(c))) {
return c;
}
}
}
},
isAsyncPlaceholder(node) {
return node.isComment && node.asyncFactory
return node.isComment && node.asyncFactory;
},
isDef(v) {
return v !== undefined && v !== null
return v !== undefined && v !== null;
},
isRegExp(v) {
return this._toString.call(v) === '[object RegExp]'
return this._toString.call(v) === '[object RegExp]';
},
remove(arr, item) {
if (arr.length) {
let index = arr.indexOf(item);
const index = arr.indexOf(item);
if (index > -1) {
return arr.splice(index, 1)
return arr.splice(index, 1);
}
}
}
}
}
</script>
\ No newline at end of file
<style lang="less">
</style>
......@@ -62,6 +62,21 @@ export default class CampaignServiceBase extends EntityService {
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
let leadsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_leads'),'undefined')){
leadsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_leads') as any);
if(leadsData && leadsData.length && leadsData.length > 0){
leadsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.leadid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.leads = leadsData;
let campaignlistsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_campaignlists'),'undefined')){
campaignlistsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_campaignlists') as any);
......@@ -92,21 +107,6 @@ export default class CampaignServiceBase extends EntityService {
}
}
masterData.campaigncampaigns = campaigncampaignsData;
let leadsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_leads'),'undefined')){
leadsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_leads') as any);
if(leadsData && leadsData.length && leadsData.length > 0){
leadsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.leadid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.leads = leadsData;
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
......@@ -116,9 +116,9 @@ export default class CampaignServiceBase extends EntityService {
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/campaigns`,data,isloading);
this.tempStorage.setItem(tempContext.srfsessionkey+'_leads',JSON.stringify(res.data.leads));
this.tempStorage.setItem(tempContext.srfsessionkey+'_campaignlists',JSON.stringify(res.data.campaignlists));
this.tempStorage.setItem(tempContext.srfsessionkey+'_campaigncampaigns',JSON.stringify(res.data.campaigncampaigns));
this.tempStorage.setItem(tempContext.srfsessionkey+'_leads',JSON.stringify(res.data.leads));
return res;
}
......@@ -133,6 +133,21 @@ export default class CampaignServiceBase extends EntityService {
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
let leadsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_leads'),'undefined')){
leadsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_leads') as any);
if(leadsData && leadsData.length && leadsData.length > 0){
leadsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.leadid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.leads = leadsData;
let campaignlistsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_campaignlists'),'undefined')){
campaignlistsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_campaignlists') as any);
......@@ -163,26 +178,11 @@ export default class CampaignServiceBase extends EntityService {
}
}
masterData.campaigncampaigns = campaigncampaignsData;
let leadsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_leads'),'undefined')){
leadsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_leads') as any);
if(leadsData && leadsData.length && leadsData.length > 0){
leadsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.leadid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.leads = leadsData;
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/campaigns/${context.campaign}`,data,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_leads',JSON.stringify(res.data.leads));
this.tempStorage.setItem(context.srfsessionkey+'_campaignlists',JSON.stringify(res.data.campaignlists));
this.tempStorage.setItem(context.srfsessionkey+'_campaigncampaigns',JSON.stringify(res.data.campaigncampaigns));
this.tempStorage.setItem(context.srfsessionkey+'_leads',JSON.stringify(res.data.leads));
return res;
}
......@@ -210,9 +210,9 @@ export default class CampaignServiceBase extends EntityService {
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/campaigns/${context.campaign}`,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_leads',JSON.stringify(res.data.leads));
this.tempStorage.setItem(context.srfsessionkey+'_campaignlists',JSON.stringify(res.data.campaignlists));
this.tempStorage.setItem(context.srfsessionkey+'_campaigncampaigns',JSON.stringify(res.data.campaigncampaigns));
this.tempStorage.setItem(context.srfsessionkey+'_leads',JSON.stringify(res.data.leads));
return res;
}
......@@ -228,9 +228,9 @@ export default class CampaignServiceBase extends EntityService {
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/campaigns/getdraft`,isloading);
res.data.campaign = data.campaign;
this.tempStorage.setItem(context.srfsessionkey+'_leads',JSON.stringify(res.data.leads));
this.tempStorage.setItem(context.srfsessionkey+'_campaignlists',JSON.stringify(res.data.campaignlists));
this.tempStorage.setItem(context.srfsessionkey+'_campaigncampaigns',JSON.stringify(res.data.campaigncampaigns));
this.tempStorage.setItem(context.srfsessionkey+'_leads',JSON.stringify(res.data.leads));
return res;
}
......@@ -258,6 +258,21 @@ export default class CampaignServiceBase extends EntityService {
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
let leadsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_leads'),'undefined')){
leadsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_leads') as any);
if(leadsData && leadsData.length && leadsData.length > 0){
leadsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.leadid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.leads = leadsData;
let campaignlistsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_campaignlists'),'undefined')){
campaignlistsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_campaignlists') as any);
......@@ -288,26 +303,11 @@ export default class CampaignServiceBase extends EntityService {
}
}
masterData.campaigncampaigns = campaigncampaignsData;
let leadsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_leads'),'undefined')){
leadsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_leads') as any);
if(leadsData && leadsData.length && leadsData.length > 0){
leadsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.leadid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.leads = leadsData;
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/campaigns/${context.campaign}/save`,data,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_leads',JSON.stringify(res.data.leads));
this.tempStorage.setItem(context.srfsessionkey+'_campaignlists',JSON.stringify(res.data.campaignlists));
this.tempStorage.setItem(context.srfsessionkey+'_campaigncampaigns',JSON.stringify(res.data.campaigncampaigns));
this.tempStorage.setItem(context.srfsessionkey+'_leads',JSON.stringify(res.data.leads));
return res;
}
......
......@@ -76,6 +76,7 @@ import HtmlContainer from './components/html-container/html-container.vue';
// 组件 End
// 服务 Start
import { acc } from './message-center/app-communications-center';
import { AppService } from './service/app-service/AppService';
import { FooterItemsService } from './service/FooterItemsService';
import { UIStateService } from './service/UIStateService';
// 服务 End
......@@ -88,6 +89,7 @@ export const StudioCore = {
install(v: any, opt: any) {
// 注册服务
v.prototype.$acc = acc;
v.prototype.$app = new AppService();
v.prototype.$footerMenuService = new FooterItemsService();
v.prototype.$uiState = new UIStateService();
// 注册组件
......
import { AppContextStoreBase } from './AppContextStoreBase';
/**
* 全局上下文仓库
*
* @export
* @class AppContextStore
* @extends {AppContextStoreBase}
*/
export class AppContextStore extends AppContextStoreBase {
}
\ No newline at end of file
/**
* 全局上下文仓库基类
*
* @export
* @class AppContextStoreBase
*/
export class AppContextStoreBase {
}
\ No newline at end of file
import { AppNavHistoryBase } from './AppNavHistoryBase';
/**
* 应用导航记录
*
* @export
* @class AppNavHistory
* @extends {AppNavHistoryBase}
*/
export class AppNavHistory extends AppNavHistoryBase {
}
\ No newline at end of file
import { AppContextStore } from '../app-context-store/AppContextStore';
/**
* 应用导航记录基类
*
* @export
* @class AppNavHistoryBase
*/
export class AppNavHistoryBase {
/**
* 应用上下文仓库
*
* @type {AppContextStore}
* @memberof AppNavHistoryBase
*/
public readonly contextStore: AppContextStore = new AppContextStore();
}
\ No newline at end of file
import { SingletonMode } from '../../decorators/SingletonMode';
import { AppServiceBase } from './AppServiceBase';
/**
* 应用级服务
*
* @export
* @class AppService
*/
@SingletonMode()
export class AppService extends AppServiceBase {
}
\ No newline at end of file
import { AppNavHistory } from '../app-nav-history/AppNavHistory';
import { AppContextStore } from '../app-context-store/AppContextStore';
/**
* 应用服务基类
*
* @export
* @class AppServiceBase
*/
export class AppServiceBase {
/**
* 应用导航工具类
*
* @type {AppNavHistory}
* @memberof AppServiceBase
*/
public readonly navHistory: AppNavHistory = new AppNavHistory();
/**
* 应用上下文仓库
*
* @type {AppContextStore}
* @memberof AppServiceBase
*/
public readonly contextStore: AppContextStore = this.navHistory.contextStore;
}
\ No newline at end of file
import { AppCommunicationsCenter } from "../message-center/app-communications-center";
import { AppService } from "../service/app-service/AppService";
import { FooterItemsService } from "../service/FooterItemsService";
import { UIStateService } from "../service/UIStateService";
declare module "vue/types/vue" {
interface Vue {
$acc: AppCommunicationsCenter,
$app: AppService,
$footerMenuService: FooterItemsService,
$uiState: UIStateService
}
......
......@@ -355,9 +355,7 @@ export class ViewBase extends Vue {
* @memberof ViewBase
*/
protected parseViewParam(): void {
for (let key in this.context) {
delete this.context[key];
}
this.context.clearAll();
if (!this.viewDefaultUsage && this.viewdata && !Object.is(this.viewdata, '')) {
Object.assign(this.context, JSON.parse(this.viewdata));
if (this.context && this.context.srfparentdename) {
......
......@@ -3284,7 +3284,7 @@
<!--输出实体[CONTACT]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-contact-261-46">
<changeSet author="a_LAB01_e85d8801c" id="tab-contact-264-46">
<createTable tableName="CONTACT">
<column name="ADDRESS1_FREIGHTTERMSCODE" remarks="" type="VARCHAR(30)">
</column>
......@@ -4620,7 +4620,7 @@
<!--输出实体[ACCOUNT]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-account-381-57">
<changeSet author="a_LAB01_e85d8801c" id="tab-account-383-57">
<createTable tableName="ACCOUNT">
<column name="ADDRESS1_PRIMARYCONTACTNAME" remarks="" type="VARCHAR(100)">
</column>
......@@ -6541,7 +6541,7 @@
<!--输出实体[METRIC]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-metric-9-78">
<changeSet author="a_LAB01_e85d8801c" id="tab-metric-10-78">
<createTable tableName="METRIC">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -11240,25 +11240,25 @@
<addForeignKeyConstraint baseColumnNames="ENTITLEMENTTEMPLATEID" baseTableName="ENTITLEMENTTEMPLATECHANNEL" constraintName="DER1N_ENTITLEMENTTEMPLATECHANN" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ENTITLEMENTTEMPLATEID" referencedTableName="ENTITLEMENTTEMPLATE" validate="true"/>
</changeSet>
<!--输出实体[CONTACT]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-261-225">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-264-225">
<addForeignKeyConstraint baseColumnNames="CUSTOMERID" baseTableName="CONTACT" constraintName="DER1N_CONTACT_ACCOUNT_CUSTOMER" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ACCOUNTID" referencedTableName="ACCOUNT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-261-226">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-264-226">
<addForeignKeyConstraint baseColumnNames="PREFERREDEQUIPMENTID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__EQUIPMENT__PREF" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EQUIPMENTID" referencedTableName="EQUIPMENT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-261-227">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-264-227">
<addForeignKeyConstraint baseColumnNames="ORIGINATINGLEADID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__LEAD__ORIGINATI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="LEADID" referencedTableName="LEAD" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-261-228">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-264-228">
<addForeignKeyConstraint baseColumnNames="DEFAULTPRICELEVELID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__PRICELEVEL__DEF" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRICELEVELID" referencedTableName="PRICELEVEL" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-261-229">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-264-229">
<addForeignKeyConstraint baseColumnNames="PREFERREDSERVICEID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__SERVICE__PREFER" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SERVICEID" referencedTableName="SERVICE" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-261-230">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-264-230">
<addForeignKeyConstraint baseColumnNames="SLAID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__SLA__SLAID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SLAID" referencedTableName="SLA" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-261-231">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-264-231">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__TRANSACTIONCURR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[TEAM]外键关系 -->
......@@ -11344,31 +11344,31 @@
<addForeignKeyConstraint baseColumnNames="METRICID" baseTableName="GOAL" constraintName="DER1N_GOAL__METRIC__METRICID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="METRICID" referencedTableName="METRIC" validate="true"/>
</changeSet>
<!--输出实体[ACCOUNT]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-account-381-266">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-383-266">
<addForeignKeyConstraint baseColumnNames="PARENTACCOUNTID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__ACCOUNT__PARENT" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ACCOUNTID" referencedTableName="ACCOUNT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-381-267">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-383-267">
<addForeignKeyConstraint baseColumnNames="PRIMARYCONTACTID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__CONTACT__PRIMAR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CONTACTID" referencedTableName="CONTACT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-381-268">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-383-268">
<addForeignKeyConstraint baseColumnNames="PREFERREDEQUIPMENTID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__EQUIPMENT__PREF" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EQUIPMENTID" referencedTableName="EQUIPMENT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-381-269">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-383-269">
<addForeignKeyConstraint baseColumnNames="ORIGINATINGLEADID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__LEAD__ORIGINATI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="LEADID" referencedTableName="LEAD" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-381-270">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-383-270">
<addForeignKeyConstraint baseColumnNames="DEFAULTPRICELEVELID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__PRICELEVEL__DEF" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRICELEVELID" referencedTableName="PRICELEVEL" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-381-271">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-383-271">
<addForeignKeyConstraint baseColumnNames="PREFERREDSERVICEID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__SERVICE__PREFER" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SERVICEID" referencedTableName="SERVICE" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-381-272">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-383-272">
<addForeignKeyConstraint baseColumnNames="SLAID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__SLA__SLAID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SLAID" referencedTableName="SLA" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-381-273">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-383-273">
<addForeignKeyConstraint baseColumnNames="TERRITORYID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__TERRITORY__TERR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TERRITORYID" referencedTableName="TERRITORY" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-381-274">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-383-274">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__TRANSACTIONCURR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[KNOWLEDGEARTICLEVIEWS]外键关系 -->
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册