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

xignzi006 发布系统代码

上级 117e14f0
/**
* 报价单产品
*
* @export
* @interface QuoteDetail
*/
export interface QuoteDetail {
/**
* 负责人类型
*
* @returns {*}
* @memberof QuoteDetail
*/
owneridtype?: any;
/**
* 金额 (Base)
*
* @returns {*}
* @memberof QuoteDetail
*/
baseamount_base?: any;
/**
* 送货地的传真号码
*
* @returns {*}
* @memberof QuoteDetail
*/
shipto_fax?: any;
/**
* 送至国家/地区
*
* @returns {*}
* @memberof QuoteDetail
*/
shipto_country?: any;
/**
* 送货地的名称
*
* @returns {*}
* @memberof QuoteDetail
*/
shipto_name?: any;
/**
* 送至街道 1
*
* @returns {*}
* @memberof QuoteDetail
*/
shipto_line1?: any;
/**
* 送货地址
*
* @returns {*}
* @memberof QuoteDetail
*/
willcall?: any;
/**
* SalesRepIdYomiName
*
* @returns {*}
* @memberof QuoteDetail
*/
salesrepidyominame?: any;
/**
* 应收净额 (Base)
*
* @returns {*}
* @memberof QuoteDetail
*/
extendedamount_base?: any;
/**
* 明细项目编号
*
* @returns {*}
* @memberof QuoteDetail
*/
lineitemnumber?: any;
/**
* 说明
*
* @returns {*}
* @memberof QuoteDetail
*/
description?: any;
/**
* 送货地的联系人姓名
*
* @returns {*}
* @memberof QuoteDetail
*/
shipto_contactname?: any;
/**
* 更新时间
*
* @returns {*}
* @memberof QuoteDetail
*/
updatedate?: any;
/**
* 报价单产品
*
* @returns {*}
* @memberof QuoteDetail
*/
quotedetailid?: any;
/**
* Import Sequence Number
*
* @returns {*}
* @memberof QuoteDetail
*/
importsequencenumber?: any;
/**
* 送货地的电话号码
*
* @returns {*}
* @memberof QuoteDetail
*/
shipto_telephone?: any;
/**
* 零售折扣 (Base)
*
* @returns {*}
* @memberof QuoteDetail
*/
manualdiscountamount_base?: any;
/**
* 批发折扣 (Base)
*
* @returns {*}
* @memberof QuoteDetail
*/
volumediscountamount_base?: any;
/**
* 零售折扣
*
* @returns {*}
* @memberof QuoteDetail
*/
manualdiscountamount?: any;
/**
* 货运条款
*
* @returns {*}
* @memberof QuoteDetail
*/
shipto_freighttermscode?: any;
/**
* 送至市/县
*
* @returns {*}
* @memberof QuoteDetail
*/
shipto_city?: any;
/**
* 建立时间
*
* @returns {*}
* @memberof QuoteDetail
*/
createdate?: any;
/**
* 定价错误
*
* @returns {*}
* @memberof QuoteDetail
*/
pricingerrorcode?: any;
/**
* 汇率
*
* @returns {*}
* @memberof QuoteDetail
*/
exchangerate?: any;
/**
* 送至省/市/自治区
*
* @returns {*}
* @memberof QuoteDetail
*/
shipto_stateorprovince?: any;
/**
* 送至街道 2
*
* @returns {*}
* @memberof QuoteDetail
*/
shipto_line2?: any;
/**
* Record Created On
*
* @returns {*}
* @memberof QuoteDetail
*/
overriddencreatedon?: any;
/**
* 建立人
*
* @returns {*}
* @memberof QuoteDetail
*/
createman?: any;
/**
* 数量
*
* @returns {*}
* @memberof QuoteDetail
*/
quantity?: any;
/**
* 报价单状态
*
* @returns {*}
* @memberof QuoteDetail
*/
quotestatecode?: any;
/**
* 送至街道 3
*
* @returns {*}
* @memberof QuoteDetail
*/
shipto_line3?: any;
/**
* 负责人
*
* @returns {*}
* @memberof QuoteDetail
*/
ownerid?: any;
/**
* 单价 (Base)
*
* @returns {*}
* @memberof QuoteDetail
*/
priceperunit_base?: any;
/**
* 目录外产品
*
* @returns {*}
* @memberof QuoteDetail
*/
productdescription?: any;
/**
* 单价
*
* @returns {*}
* @memberof QuoteDetail
*/
priceperunit?: any;
/**
* 更新人
*
* @returns {*}
* @memberof QuoteDetail
*/
updateman?: any;
/**
* 税 (Base)
*
* @returns {*}
* @memberof QuoteDetail
*/
tax_base?: any;
/**
* 自定义的价格
*
* @returns {*}
* @memberof QuoteDetail
*/
priceoverridden?: any;
/**
* UTC Conversion Time Zone Code
*
* @returns {*}
* @memberof QuoteDetail
*/
utcconversiontimezonecode?: any;
/**
* 父捆绑销售
*
* @returns {*}
* @memberof QuoteDetail
*/
parentbundleid?: any;
/**
* 名称
*
* @returns {*}
* @memberof QuoteDetail
*/
quotedetailname?: any;
/**
* 选择产品
*
* @returns {*}
* @memberof QuoteDetail
*/
productoverridden?: any;
/**
* Product Name
*
* @returns {*}
* @memberof QuoteDetail
*/
productname?: any;
/**
* Time Zone Rule Version Number
*
* @returns {*}
* @memberof QuoteDetail
*/
timezoneruleversionnumber?: any;
/**
* 送货地的邮政编码
*
* @returns {*}
* @memberof QuoteDetail
*/
shipto_postalcode?: any;
/**
* 送货地址 ID
*
* @returns {*}
* @memberof QuoteDetail
*/
shipto_addressid?: any;
/**
* 属性配置
*
* @returns {*}
* @memberof QuoteDetail
*/
propertyconfigurationstatus?: any;
/**
* 税
*
* @returns {*}
* @memberof QuoteDetail
*/
tax?: any;
/**
* 要求交付日期
*
* @returns {*}
* @memberof QuoteDetail
*/
requestdeliveryby?: any;
/**
* 产品类型
*
* @returns {*}
* @memberof QuoteDetail
*/
producttypecode?: any;
/**
* 负责人
*
* @returns {*}
* @memberof QuoteDetail
*/
owneridyominame?: any;
/**
* 金额
*
* @returns {*}
* @memberof QuoteDetail
*/
baseamount?: any;
/**
* 应收净额
*
* @returns {*}
* @memberof QuoteDetail
*/
extendedamount?: any;
/**
* 批发折扣
*
* @returns {*}
* @memberof QuoteDetail
*/
volumediscountamount?: any;
/**
* SkipPriceCalculation
*
* @returns {*}
* @memberof QuoteDetail
*/
skippricecalculation?: any;
/**
* 捆绑销售项关联
*
* @returns {*}
* @memberof QuoteDetail
*/
productassociationid?: any;
/**
* Version Number
*
* @returns {*}
* @memberof QuoteDetail
*/
versionnumber?: any;
/**
* 销售员
*
* @returns {*}
* @memberof QuoteDetail
*/
salesrepid?: any;
/**
* 序号
*
* @returns {*}
* @memberof QuoteDetail
*/
sequencenumber?: any;
/**
* Parent bundle product
*
* @returns {*}
* @memberof QuoteDetail
*/
parentbundleidref?: any;
/**
* 报价单
*
* @returns {*}
* @memberof QuoteDetail
*/
quoteid?: any;
/**
* 现有产品
*
* @returns {*}
* @memberof QuoteDetail
*/
productid?: any;
/**
* 货币
*
* @returns {*}
* @memberof QuoteDetail
*/
transactioncurrencyid?: any;
/**
* 计价单位
*
* @returns {*}
* @memberof QuoteDetail
*/
uomid?: any;
}
\ No newline at end of file
......@@ -32,6 +32,7 @@ import product_en_US from '@locale/lanres/entities/product/product_en_US';
import competitor_en_US from '@locale/lanres/entities/competitor/competitor_en_US';
import account_en_US from '@locale/lanres/entities/account/account_en_US';
import salesorder_en_US from '@locale/lanres/entities/sales-order/sales-order_en_US';
import quotedetail_en_US from '@locale/lanres/entities/quote-detail/quote-detail_en_US';
import components_en_US from '@locale/lanres/components/components_en_US';
import codelist_en_US from '@locale/lanres/codelist/codelist_en_US';
import userCustom_en_US from '@locale/lanres/userCustom/userCustom_en_US';
......@@ -171,6 +172,7 @@ export default {
competitor: competitor_en_US,
account: account_en_US,
salesorder: salesorder_en_US,
quotedetail: quotedetail_en_US,
},
components: components_en_US,
codelist: codelist_en_US,
......
......@@ -32,6 +32,7 @@ import product_zh_CN from '@locale/lanres/entities/product/product_zh_CN';
import competitor_zh_CN from '@locale/lanres/entities/competitor/competitor_zh_CN';
import account_zh_CN from '@locale/lanres/entities/account/account_zh_CN';
import salesorder_zh_CN from '@locale/lanres/entities/sales-order/sales-order_zh_CN';
import quotedetail_zh_CN from '@locale/lanres/entities/quote-detail/quote-detail_zh_CN';
import components_zh_CN from '@locale/lanres/components/components_zh_CN';
import codelist_zh_CN from '@locale/lanres/codelist/codelist_zh_CN';
import userCustom_zh_CN from '@locale/lanres/userCustom/userCustom_zh_CN';
......@@ -171,6 +172,7 @@ export default {
competitor: competitor_zh_CN,
account: account_zh_CN,
salesorder: salesorder_zh_CN,
quotedetail: quotedetail_zh_CN,
},
components: components_zh_CN,
codelist: codelist_zh_CN,
......
export default {
fields: {
owneridtype: '负责人类型',
baseamount_base: '金额 (Base)',
shipto_fax: '送货地的传真号码',
shipto_country: '送至国家/地区',
shipto_name: '送货地的名称',
shipto_line1: '送至街道 1',
willcall: '送货地址',
salesrepidyominame: 'SalesRepIdYomiName',
extendedamount_base: '应收净额 (Base)',
lineitemnumber: '明细项目编号',
description: '说明',
shipto_contactname: '送货地的联系人姓名',
updatedate: '更新时间',
quotedetailid: '报价单产品',
importsequencenumber: 'Import Sequence Number',
shipto_telephone: '送货地的电话号码',
manualdiscountamount_base: '零售折扣 (Base)',
volumediscountamount_base: '批发折扣 (Base)',
manualdiscountamount: '零售折扣',
shipto_freighttermscode: '货运条款',
shipto_city: '送至市/县',
createdate: '建立时间',
pricingerrorcode: '定价错误',
exchangerate: '汇率',
shipto_stateorprovince: '送至省/市/自治区',
shipto_line2: '送至街道 2',
overriddencreatedon: 'Record Created On',
createman: '建立人',
quantity: '数量',
quotestatecode: '报价单状态',
shipto_line3: '送至街道 3',
ownerid: '负责人',
priceperunit_base: '单价 (Base)',
productdescription: '目录外产品',
priceperunit: '单价',
updateman: '更新人',
tax_base: '税 (Base)',
priceoverridden: '自定义的价格',
utcconversiontimezonecode: 'UTC Conversion Time Zone Code',
parentbundleid: '父捆绑销售',
quotedetailname: '名称',
productoverridden: '选择产品',
productname: 'Product Name',
timezoneruleversionnumber: 'Time Zone Rule Version Number',
shipto_postalcode: '送货地的邮政编码',
shipto_addressid: '送货地址 ID',
propertyconfigurationstatus: '属性配置',
tax: '税',
requestdeliveryby: '要求交付日期',
producttypecode: '产品类型',
owneridyominame: '负责人',
baseamount: '金额',
extendedamount: '应收净额',
volumediscountamount: '批发折扣',
skippricecalculation: 'SkipPriceCalculation',
productassociationid: '捆绑销售项关联',
versionnumber: 'Version Number',
salesrepid: '销售员',
sequencenumber: '序号',
parentbundleidref: 'Parent bundle product',
quoteid: '报价单',
productid: '现有产品',
transactioncurrencyid: '货币',
uomid: '计价单位',
},
};
\ No newline at end of file
export default {
fields: {
owneridtype: '负责人类型',
baseamount_base: '金额 (Base)',
shipto_fax: '送货地的传真号码',
shipto_country: '送至国家/地区',
shipto_name: '送货地的名称',
shipto_line1: '送至街道 1',
willcall: '送货地址',
salesrepidyominame: 'SalesRepIdYomiName',
extendedamount_base: '应收净额 (Base)',
lineitemnumber: '明细项目编号',
description: '说明',
shipto_contactname: '送货地的联系人姓名',
updatedate: '更新时间',
quotedetailid: '报价单产品',
importsequencenumber: 'Import Sequence Number',
shipto_telephone: '送货地的电话号码',
manualdiscountamount_base: '零售折扣 (Base)',
volumediscountamount_base: '批发折扣 (Base)',
manualdiscountamount: '零售折扣',
shipto_freighttermscode: '货运条款',
shipto_city: '送至市/县',
createdate: '建立时间',
pricingerrorcode: '定价错误',
exchangerate: '汇率',
shipto_stateorprovince: '送至省/市/自治区',
shipto_line2: '送至街道 2',
overriddencreatedon: 'Record Created On',
createman: '建立人',
quantity: '数量',
quotestatecode: '报价单状态',
shipto_line3: '送至街道 3',
ownerid: '负责人',
priceperunit_base: '单价 (Base)',
productdescription: '目录外产品',
priceperunit: '单价',
updateman: '更新人',
tax_base: '税 (Base)',
priceoverridden: '自定义的价格',
utcconversiontimezonecode: 'UTC Conversion Time Zone Code',
parentbundleid: '父捆绑销售',
quotedetailname: '名称',
productoverridden: '选择产品',
productname: 'Product Name',
timezoneruleversionnumber: 'Time Zone Rule Version Number',
shipto_postalcode: '送货地的邮政编码',
shipto_addressid: '送货地址 ID',
propertyconfigurationstatus: '属性配置',
tax: '税',
requestdeliveryby: '要求交付日期',
producttypecode: '产品类型',
owneridyominame: '负责人',
baseamount: '金额',
extendedamount: '应收净额',
volumediscountamount: '批发折扣',
skippricecalculation: 'SkipPriceCalculation',
productassociationid: '捆绑销售项关联',
versionnumber: 'Version Number',
salesrepid: '销售员',
sequencenumber: '序号',
parentbundleidref: 'Parent bundle product',
quoteid: '报价单',
productid: '现有产品',
transactioncurrencyid: '货币',
uomid: '计价单位',
},
};
\ No newline at end of file
import qs from 'qs';
import { MockAdapter } from '@/mock/mock-adapter';
const mock = MockAdapter.getInstance();
// 模拟数据
const mockDatas: Array<any> = [
];
//getwflink
mock.onGet(new RegExp(/^\/wfcore\/ibizbusinesscentral-app-crm\/quotedetails\/[a-zA-Z0-9\-\;]+\/usertasks\/[a-zA-Z0-9\-\;]+\/ways$/)).reply((config: any) => {
console.groupCollapsed("实体:quotedetail 方法: getwflink");
console.table({url:config.url, method: config.method, data:config.data});
console.groupEnd();
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, {}];
}
return [status,[
{"sequenceFlowId":"dfdsfdsfdsfdsfds","sequenceFlowName":"同意",
"taskId":"aaaaddddccccddddd","processDefinitionKey":"support-workorders-approve-v1",
"processInstanceId":"ddlfldldfldsfds","refViewKey":""},
{"sequenceFlowId":"ddssdfdfdfdfsfdf","sequenceFlowName":"不同意",
"taskId":"aaaaddddccccddddd","processDefinitionKey":"support-workorders-approve-v1",
"processInstanceId":"ddfdsldlfdlldsf","refViewKey":"workorder_ltform_editview"}
]];
});
// getwfstep
mock.onGet(new RegExp(/^\/wfcore\/ibizbusinesscentral-app-crm\/quotedetails\/process-definitions-nodes$/)).reply((config: any) => {
console.groupCollapsed("实体:quotedetail 方法: getwfstep");
console.table({url:config.url, method: config.method, data:config.data});
console.groupEnd();
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, {}];
}
return [status, [
{"userTaskId":"sddfddfd-dfdf-fdfd-fdf-dfdfd",
"userTaskName":"待审",
"cnt":0,
"processDefinitionKey":"support-workorders-approve-v1",
"processDefinitionName":"工单审批流程v1"
},
{"userTaskId":"sddfddfd-dfdf-fdfd-fdf-87927",
"userTaskName":"待分配",
"cnt":3,
"processDefinitionKey":"support-workorders-approve-v1",
"processDefinitionName":"工单审批流程v1"}
]];
});
// createBatch
mock.onPost(new RegExp(/^\/quotedetails\/batch$/)).reply((config: any) => {
console.groupCollapsed("实体:quotedetail 方法: createBatch");
console.table({url:config.url, method: config.method, data:config.data});
console.groupEnd();
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, {}];
}
return [status, {}];
});
// updateBatch
mock.onPut(new RegExp(/^\/quotedetails\/batch$/)).reply((config: any) => {
console.groupCollapsed("实体:quotedetail 方法: updateBatch");
console.table({url:config.url, method: config.method, data:config.data});
console.groupEnd();
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, {}];
}
return [status, {}];
});
// removeBatch
mock.onDelete(new RegExp(/^\/quotedetails\/batch$/)).reply((config: any) => {
console.groupCollapsed("实体:quotedetail 方法: removeBatch");
console.table({url:config.url, method: config.method, data:config.data});
console.groupEnd();
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, {}];
}
return [status, {}];
});
// Select
mock.onGet(new RegExp(/^\/quotedetails\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:quotedetail 方法: Select");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['quotedetailid'];
const matchArray:any = new RegExp(/^\/quotedetails\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
let items = mockDatas ? mockDatas : [];
let _items = items.find((item: any) => Object.is(item.quotedetailid, tempValue.quotedetailid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items);
console.groupEnd();
console.groupEnd();
return [status, _items];
});
// GetDraft
mock.onGet(new RegExp(/^\/quotedetails\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:quotedetail 方法: GetDraft");
console.table({url:config.url, method: config.method, data:config.data});
// GetDraft
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// Update
mock.onPut(new RegExp(/^\/quotedetails\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:quotedetail 方法: Update");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['quotedetailid'];
const matchArray:any = new RegExp(/^\/quotedetails\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
//let items = mockDatas ? mockDatas : [];
//let _items = items.find((item: any) => Object.is(item.quotedetailid, tempValue.quotedetailid));
let data = JSON.parse(config.data);
mockDatas.forEach((item)=>{
if(item['quotedetailid'] == tempValue['quotedetailid'] ){
for(let value in data){
if(item.hasOwnProperty(value)){
item[value] = data[value];
}
}
}
})
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(data);
console.groupEnd();
console.groupEnd();
return [status, data];
});
// Save
mock.onPost(new RegExp(/^\/quotedetails\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => {
console.groupCollapsed("实体:quotedetail 方法: Save");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['quotedetailid'];
const matchArray:any = new RegExp(/^\/quotedetails\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
//let items = mockDatas ? mockDatas : [];
//let _items = items.find((item: any) => Object.is(item.quotedetailid, tempValue.quotedetailid));
let data = JSON.parse(config.data);
mockDatas.forEach((item)=>{
if(item['quotedetailid'] == tempValue['quotedetailid'] ){
for(let value in data){
if(item.hasOwnProperty(value)){
item[value] = data[value];
}
}
}
})
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(data);
console.groupEnd();
console.groupEnd();
return [status, data];
});
// CheckKey
mock.onPost(new RegExp(/^\/quotedetails\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => {
console.groupCollapsed("实体:quotedetail 方法: CheckKey");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['quotedetailid'];
const matchArray:any = new RegExp(/^\/quotedetails\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
//let items = mockDatas ? mockDatas : [];
//let _items = items.find((item: any) => Object.is(item.quotedetailid, tempValue.quotedetailid));
let data = JSON.parse(config.data);
mockDatas.forEach((item)=>{
if(item['quotedetailid'] == tempValue['quotedetailid'] ){
for(let value in data){
if(item.hasOwnProperty(value)){
item[value] = data[value];
}
}
}
})
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(data);
console.groupEnd();
console.groupEnd();
return [status, data];
});
// Create
mock.onPost(new RegExp(/^\/quotedetails\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:quotedetail 方法: Create");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['quotedetailid'];
const matchArray:any = new RegExp(/^\/quotedetails\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(mockDatas[0]);
console.groupEnd();
console.groupEnd();
return [status, mockDatas[0]];
});
// FetchDefault
mock.onGet(new RegExp(/^\/quotedetails\/fetchdefault$/)).reply((config: any) => {
console.groupCollapsed("实体:quotedetail 方法: FetchDefault");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(mockDatas);
console.groupEnd();
console.groupEnd();
return [status, mockDatas ? mockDatas : []];
});
// FetchDefault
mock.onGet(new RegExp(/^\/quotedetails\/fetchdefault(\?[\w-./?%&=,]*)*$/)).reply((config: any) => {
console.groupCollapsed("实体:quotedetail 方法: FetchDefault");
console.table({url:config.url, method: config.method, data:config.data});
if(config.url.includes('page')){
let url = config.url.split('?')[1];
let params = qs.parse(url);
Object.assign(config, params);
}
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
let total = mockDatas.length;
let records: Array<any> = [];
if(!config.page || !config.size){
records = mockDatas;
}else{
if((config.page-1)*config.size < total){
records = mockDatas.slice(config.page,config.size);
}
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(records ? records : []);
console.groupEnd();
console.groupEnd();
return [status, records ? records : []];
});
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// Remove
mock.onDelete(new RegExp(/^\/quotedetails\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:quotedetail 方法: Remove");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['quotedetailid'];
const matchArray:any = new RegExp(/^\/quotedetails\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
let items = mockDatas ? mockDatas : [];
let _items = items.find((item: any) => Object.is(item.quotedetailid, tempValue.quotedetailid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/quotedetails\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:quotedetail 方法: Get");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['quotedetailid'];
const matchArray:any = new RegExp(/^\/quotedetails\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
let items = mockDatas ? mockDatas : [];
let _items = items.find((item: any) => Object.is(item.quotedetailid, tempValue.quotedetailid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
......@@ -41,3 +41,4 @@ import './entity/products/products';
import './entity/competitors/competitors';
import './entity/accounts/accounts';
import './entity/sales-orders/sales-orders';
import './entity/quote-details/quote-details';
......@@ -73,6 +73,7 @@ export class EntityServiceRegister {
this.allEntityService.set('competitor', () => import('@/service/competitor/competitor-service'));
this.allEntityService.set('account', () => import('@/service/account/account-service'));
this.allEntityService.set('salesorder', () => import('@/service/sales-order/sales-order-service'));
this.allEntityService.set('quotedetail', () => import('@/service/quote-detail/quote-detail-service'));
}
/**
......
import { Http,Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 报价单产品服务对象基类
*
* @export
* @class QuoteDetailServiceBase
* @extends {EntityServie}
*/
export default class QuoteDetailServiceBase extends EntityService {
/**
* Creates an instance of QuoteDetailServiceBase.
*
* @param {*} [opts={}]
* @memberof QuoteDetailServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof QuoteDetailServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='quotedetail';
this.APPDEKEY = 'quotedetailid';
this.APPDENAME = 'quotedetails';
this.APPDETEXT = 'quotedetailname';
this.APPNAME = 'crm';
this.SYSTEMNAME = 'ibizbusinesscentral';
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof QuoteDetailServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().get(`/quotedetails/${context.quotedetail}/select`,isloading);
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof QuoteDetailServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/quotedetails/getdraft`,isloading);
res.data.quotedetail = data.quotedetail;
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof QuoteDetailServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/quotedetails/${context.quotedetail}`,data,isloading);
return res;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof QuoteDetailServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/quotedetails/${context.quotedetail}/save`,data,isloading);
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof QuoteDetailServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().delete(`/quotedetails/${context.quotedetail}`,isloading);
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof QuoteDetailServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().post(`/quotedetails/${context.quotedetail}/checkkey`,data,isloading);
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof QuoteDetailServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/quotedetails/${context.quotedetail}`,isloading);
return res;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof QuoteDetailServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/quotedetails`,data,isloading);
return res;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof QuoteDetailServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/quotedetails/fetchdefault`,tempData,isloading);
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import QuoteDetailServiceBase from './quote-detail-service-base';
/**
* 报价单产品服务对象
*
* @export
* @class QuoteDetailService
* @extends {QuoteDetailServiceBase}
*/
export default class QuoteDetailService extends QuoteDetailServiceBase {
/**
* Creates an instance of QuoteDetailService.
*
* @param {*} [opts={}]
* @memberof QuoteDetailService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import { Environment } from '@/environments/environment';
import { UIActionTool,Util } from '@/utils';
import UIService from '../ui-service';
import { Subject } from 'rxjs';
import QuoteDetailService from '@/service/quote-detail/quote-detail-service';
/**
* 报价单产品UI服务对象基类
*
* @export
* @class QuoteDetailUIServiceBase
*/
export default class QuoteDetailUIServiceBase extends UIService {
/**
* 是否支持工作流
*
* @memberof QuoteDetailUIServiceBase
*/
public isEnableWorkflow:boolean = false;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof QuoteDetailUIServiceBase
*/
public dataService:QuoteDetailService = new QuoteDetailService();
/**
* 所有关联视图
*
* @memberof QuoteDetailUIServiceBase
*/
public allViewMap: Map<string, Object> = new Map();
/**
* 状态值
*
* @memberof QuoteDetailUIServiceBase
*/
public stateValue: number = 0;
/**
* 状态属性
*
* @memberof QuoteDetailUIServiceBase
*/
public stateField: string = "";
/**
* 主状态属性集合
*
* @memberof QuoteDetailUIServiceBase
*/
public mainStateFields:Array<any> = [];
/**
* 主状态集合Map
*
* @memberof QuoteDetailUIServiceBase
*/
public allDeMainStateMap:Map<string,string> = new Map();
/**
* Creates an instance of QuoteDetailUIServiceBase.
*
* @param {*} [opts={}]
* @memberof QuoteDetailUIServiceBase
*/
constructor(opts: any = {}) {
super(opts);
this.initViewMap();
this.initDeMainStateMap();
}
/**
* 初始化视图Map
*
* @memberof QuoteDetailUIServiceBase
*/
public initViewMap(){
}
/**
* 初始化主状态集合
*
* @memberof QuoteDetailUIServiceBase
*/
public initDeMainStateMap(){
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @memberof QuoteDetailUIServiceBase
*/
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){
this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询
let result:any = await this.dataService.Get({quotedetail:srfkey});
const curData:any = result.data;
//判断当前数据模式,默认为true,todo
const iRealDEModel:boolean = true;
let bDataInWF:boolean = false;
let bWFMode:any = false;
// 计算数据模式
if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData);
if (bDataInWF) {
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData);
}
}
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam);
}
/**
* 获取实际的数据类型
*
* @memberof QuoteDetailUIServiceBase
*/
public getRealDEType(entity:any){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof QuoteDetailUIServiceBase
*/
public async getDESDDEViewPDTParam(curData:any, bDataInWF:boolean, bWFMode:boolean){
let strPDTParam:string = '';
if (bDataInWF) {
// 判断数据是否在流程中
}
//多表单,todo
const isEnableMultiForm:boolean = false;
const multiFormDEField:string|null =null;
if (isEnableMultiForm && multiFormDEField) {
const objFormValue:string = curData[multiFormDEField];
if(!Environment.isAppMode){
return 'MOBEDITVIEW'+objFormValue;
}
return 'EDITVIEW'+objFormValue;
}
if(!Environment.isAppMode){
if(this.getDEMainStateTag(curData)){
return `MOBEDITVIEW:MSTAG:${ await this.getDEMainStateTag(curData)}`;
}
return 'MOBEDITVIEW:';
}
if(this.getDEMainStateTag(curData)){
return `EDITVIEW:MSTAG:${ await this.getDEMainStateTag(curData)}`;
}
return 'EDITVIEW:';
}
/**
* 获取数据对象的主状态标识
*
* @param curData 当前数据
* @memberof QuoteDetailUIServiceBase
*/
public async getDEMainStateTag(curData:any){
if(this.mainStateFields.length === 0) return null;
this.mainStateFields.forEach((singleMainField:any) =>{
if(!(singleMainField in curData)){
console.error(`当前数据对象不包含属性singleMainField,可能会发生错误`);
}
})
let strTag:String = "";
for (let i = 0; i <= 1; i++) {
let strTag:string = (curData[this.mainStateFields[0]])?(i == 0) ? curData[this.mainStateFields[0]] : "":"";
if (this.mainStateFields.length >= 2) {
for (let j = 0; j <= 1; j++) {
let strTag2:string = (curData[this.mainStateFields[1]])?`${strTag}__${(j == 0) ? curData[this.mainStateFields[1]] : ""}`:strTag;
if (this.mainStateFields.length >= 3) {
for (let k = 0; k <= 1; k++) {
let strTag3:string = (curData[this.mainStateFields[2]])?`${strTag2}__${(k == 0) ? curData[this.mainStateFields[2]] : ""}`:strTag2;
// 判断是否存在
return this.allDeMainStateMap.get(strTag3);
}
}else{
return this.allDeMainStateMap.get(strTag2);
}
}
}else{
return this.allDeMainStateMap.get(strTag);
}
}
return null;
}
}
\ No newline at end of file
import QuoteDetailUIServiceBase from './quote-detail-ui-service-base';
/**
* 报价单产品UI服务对象
*
* @export
* @class QuoteDetailUIService
*/
export default class QuoteDetailUIService extends QuoteDetailUIServiceBase {
/**
* Creates an instance of QuoteDetailUIService.
*
* @param {*} [opts={}]
* @memberof QuoteDetailUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -73,6 +73,7 @@ export class UIServiceRegister {
this.allUIService.set('competitor', () => import('@/uiservice/competitor/competitor-ui-service'));
this.allUIService.set('account', () => import('@/uiservice/account/account-ui-service'));
this.allUIService.set('salesorder', () => import('@/uiservice/sales-order/sales-order-ui-service'));
this.allUIService.set('quotedetail', () => import('@/uiservice/quote-detail/quote-detail-ui-service'));
}
/**
......
......@@ -143,6 +143,10 @@ zuul:
path: /salesorders/**
serviceId: ibizbusinesscentral-centralapi
stripPrefix: false
quotedetail:
path: /quotedetails/**
serviceId: ibizbusinesscentral-centralapi
stripPrefix: false
loginv7:
path: /v7/login
serviceId: ibzuaa-api
......
......@@ -273,6 +273,14 @@
"sysmoudle":{"id":"SALES","name":"Sales"},
"dedataset":[{"id":"Default" , "name":"DEFAULT"}],
"deaction":[{"id":"CheckKey" , "name":"CheckKey" , "type":"BUILTIN" },{"id":"GetDraft" , "name":"GetDraft" , "type":"BUILTIN" },{"id":"Get" , "name":"Get" , "type":"BUILTIN" },{"id":"Save" , "name":"Save" , "type":"BUILTIN" },{"id":"Remove" , "name":"Remove" , "type":"BUILTIN" },{"id":"Update" , "name":"Update" , "type":"BUILTIN" },{"id":"Create" , "name":"Create" , "type":"BUILTIN" }],
"datascope":[{"id":"all","name":"全部数据"}, {"id":"createman","name":"创建人"}]
}
, {
"dename":"QuoteDetail",
"delogicname":"报价单产品",
"sysmoudle":{"id":"SALES","name":"Sales"},
"dedataset":[{"id":"Default" , "name":"DEFAULT"}],
"deaction":[{"id":"GetDraft" , "name":"GetDraft" , "type":"BUILTIN" },{"id":"Update" , "name":"Update" , "type":"BUILTIN" },{"id":"Save" , "name":"Save" , "type":"BUILTIN" },{"id":"Remove" , "name":"Remove" , "type":"BUILTIN" },{"id":"CheckKey" , "name":"CheckKey" , "type":"BUILTIN" },{"id":"Get" , "name":"Get" , "type":"BUILTIN" },{"id":"Create" , "name":"Create" , "type":"BUILTIN" }],
"datascope":[{"id":"all","name":"全部数据"}, {"id":"createman","name":"创建人"}]
}
],
......
package cn.ibizlab.businesscentral.centralapi.dto;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.fastjson.annotation.JSONField;
import cn.ibizlab.businesscentral.util.domain.DTOBase;
import lombok.Data;
/**
* 服务DTO对象[ParentAccountDTO]
*/
@Data
public class ParentAccountDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 属性 [ADDRESS1_PRIMARYCONTACTNAME]
*
*/
@JSONField(name = "address1_primarycontactname")
@JsonProperty("address1_primarycontactname")
private String address1Primarycontactname;
/**
* 属性 [OPENREVENUE_DATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "openrevenue_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("openrevenue_date")
private Timestamp openrevenueDate;
/**
* 属性 [ADDRESS2_UTCOFFSET]
*
*/
@JSONField(name = "address2_utcoffset")
@JsonProperty("address2_utcoffset")
private Integer address2Utcoffset;
/**
* 属性 [FAX]
*
*/
@JSONField(name = "fax")
@JsonProperty("fax")
private String fax;
/**
* 属性 [ADDRESS1_COMPOSITE]
*
*/
@JSONField(name = "address1_composite")
@JsonProperty("address1_composite")
private String address1Composite;
/**
* 属性 [ENTITYIMAGE]
*
*/
@JSONField(name = "entityimage")
@JsonProperty("entityimage")
private String entityimage;
/**
* 属性 [EMAILADDRESS1]
*
*/
@JSONField(name = "emailaddress1")
@JsonProperty("emailaddress1")
private String emailaddress1;
/**
* 属性 [OVERRIDDENCREATEDON]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "overriddencreatedon" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("overriddencreatedon")
private Timestamp overriddencreatedon;
/**
* 属性 [ADDRESS1_STATEORPROVINCE]
*
*/
@JSONField(name = "address1_stateorprovince")
@JsonProperty("address1_stateorprovince")
private String address1Stateorprovince;
/**
* 属性 [OPENREVENUE]
*
*/
@JSONField(name = "openrevenue")
@JsonProperty("openrevenue")
private BigDecimal openrevenue;
/**
* 属性 [ADDRESS1_UPSZONE]
*
*/
@JSONField(name = "address1_upszone")
@JsonProperty("address1_upszone")
private String address1Upszone;
/**
* 属性 [FOLLOWEMAIL]
*
*/
@JSONField(name = "followemail")
@JsonProperty("followemail")
private Integer followemail;
/**
* 属性 [MARKETINGONLY]
*
*/
@JSONField(name = "marketingonly")
@JsonProperty("marketingonly")
private Integer marketingonly;
/**
* 属性 [NUMBEROFEMPLOYEES]
*
*/
@JSONField(name = "numberofemployees")
@JsonProperty("numberofemployees")
private Integer numberofemployees;
/**
* 属性 [TELEPHONE1]
*
*/
@JSONField(name = "telephone1")
@JsonProperty("telephone1")
private String telephone1;
/**
* 属性 [AGING60]
*
*/
@JSONField(name = "aging60")
@JsonProperty("aging60")
private BigDecimal aging60;
/**
* 属性 [SHARESOUTSTANDING]
*
*/
@JSONField(name = "sharesoutstanding")
@JsonProperty("sharesoutstanding")
private Integer sharesoutstanding;
/**
* 属性 [ADDRESS2_FREIGHTTERMSCODE]
*
*/
@JSONField(name = "address2_freighttermscode")
@JsonProperty("address2_freighttermscode")
private String address2Freighttermscode;
/**
* 属性 [ENTITYIMAGE_TIMESTAMP]
*
*/
@JSONField(name = "entityimage_timestamp")
@JsonProperty("entityimage_timestamp")
private BigInteger entityimageTimestamp;
/**
* 属性 [REVENUE_BASE]
*
*/
@JSONField(name = "revenue_base")
@JsonProperty("revenue_base")
private BigDecimal revenueBase;
/**
* 属性 [ACCOUNTRATINGCODE]
*
*/
@JSONField(name = "accountratingcode")
@JsonProperty("accountratingcode")
private String accountratingcode;
/**
* 属性 [DONOTBULKEMAIL]
*
*/
@JSONField(name = "donotbulkemail")
@JsonProperty("donotbulkemail")
private Integer donotbulkemail;
/**
* 属性 [AGING30]
*
*/
@JSONField(name = "aging30")
@JsonProperty("aging30")
private BigDecimal aging30;
/**
* 属性 [DONOTBULKPOSTALMAIL]
*
*/
@JSONField(name = "donotbulkpostalmail")
@JsonProperty("donotbulkpostalmail")
private Integer donotbulkpostalmail;
/**
* 属性 [CREDITLIMIT_BASE]
*
*/
@JSONField(name = "creditlimit_base")
@JsonProperty("creditlimit_base")
private BigDecimal creditlimitBase;
/**
* 属性 [TIMEZONERULEVERSIONNUMBER]
*
*/
@JSONField(name = "timezoneruleversionnumber")
@JsonProperty("timezoneruleversionnumber")
private Integer timezoneruleversionnumber;
/**
* 属性 [CUSTOMERTYPECODE]
*
*/
@JSONField(name = "customertypecode")
@JsonProperty("customertypecode")
private String customertypecode;
/**
* 属性 [ADDRESS2_LONGITUDE]
*
*/
@JSONField(name = "address2_longitude")
@JsonProperty("address2_longitude")
private Double address2Longitude;
/**
* 属性 [ACCOUNTNAME]
*
*/
@JSONField(name = "accountname")
@JsonProperty("accountname")
private String accountname;
/**
* 属性 [PARTICIPATESINWORKFLOW]
*
*/
@JSONField(name = "participatesinworkflow")
@JsonProperty("participatesinworkflow")
private Integer participatesinworkflow;
/**
* 属性 [PREFERREDCONTACTMETHODCODE]
*
*/
@JSONField(name = "preferredcontactmethodcode")
@JsonProperty("preferredcontactmethodcode")
private String preferredcontactmethodcode;
/**
* 属性 [PREFERREDAPPOINTMENTDAYCODE]
*
*/
@JSONField(name = "preferredappointmentdaycode")
@JsonProperty("preferredappointmentdaycode")
private String preferredappointmentdaycode;
/**
* 属性 [MARKETCAP]
*
*/
@JSONField(name = "marketcap")
@JsonProperty("marketcap")
private BigDecimal marketcap;
/**
* 属性 [ADDRESS2_TELEPHONE1]
*
*/
@JSONField(name = "address2_telephone1")
@JsonProperty("address2_telephone1")
private String address2Telephone1;
/**
* 属性 [BUSINESSTYPECODE]
*
*/
@JSONField(name = "businesstypecode")
@JsonProperty("businesstypecode")
private String businesstypecode;
/**
* 属性 [ENTITYIMAGEID]
*
*/
@JSONField(name = "entityimageid")
@JsonProperty("entityimageid")
private String entityimageid;
/**
* 属性 [ADDRESS2_CITY]
*
*/
@JSONField(name = "address2_city")
@JsonProperty("address2_city")
private String address2City;
/**
* 属性 [OWNERSHIPCODE]
*
*/
@JSONField(name = "ownershipcode")
@JsonProperty("ownershipcode")
private String ownershipcode;
/**
* 属性 [UTCCONVERSIONTIMEZONECODE]
*
*/
@JSONField(name = "utcconversiontimezonecode")
@JsonProperty("utcconversiontimezonecode")
private Integer utcconversiontimezonecode;
/**
* 属性 [ACCOUNTNUMBER]
*
*/
@JSONField(name = "accountnumber")
@JsonProperty("accountnumber")
private String accountnumber;
/**
* 属性 [ADDRESS1_TELEPHONE2]
*
*/
@JSONField(name = "address1_telephone2")
@JsonProperty("address1_telephone2")
private String address1Telephone2;
/**
* 属性 [ADDRESS1_LINE1]
*
*/
@JSONField(name = "address1_line1")
@JsonProperty("address1_line1")
private String address1Line1;
/**
* 属性 [DONOTPHONE]
*
*/
@JSONField(name = "donotphone")
@JsonProperty("donotphone")
private Integer donotphone;
/**
* 属性 [ADDRESS1_TELEPHONE3]
*
*/
@JSONField(name = "address1_telephone3")
@JsonProperty("address1_telephone3")
private String address1Telephone3;
/**
* 属性 [EXCHANGERATE]
*
*/
@JSONField(name = "exchangerate")
@JsonProperty("exchangerate")
private BigDecimal exchangerate;
/**
* 属性 [ADDRESS2_LINE2]
*
*/
@JSONField(name = "address2_line2")
@JsonProperty("address2_line2")
private String address2Line2;
/**
* 属性 [ADDRESS2_TELEPHONE3]
*
*/
@JSONField(name = "address2_telephone3")
@JsonProperty("address2_telephone3")
private String address2Telephone3;
/**
* 属性 [ADDRESS1_TELEPHONE1]
*
*/
@JSONField(name = "address1_telephone1")
@JsonProperty("address1_telephone1")
private String address1Telephone1;
/**
* 属性 [ADDRESS1_FAX]
*
*/
@JSONField(name = "address1_fax")
@JsonProperty("address1_fax")
private String address1Fax;
/**
* 属性 [ADDRESS1_FREIGHTTERMSCODE]
*
*/
@JSONField(name = "address1_freighttermscode")
@JsonProperty("address1_freighttermscode")
private String address1Freighttermscode;
/**
* 属性 [DESCRIPTION]
*
*/
@JSONField(name = "description")
@JsonProperty("description")
private String description;
/**
* 属性 [MERGED]
*
*/
@JSONField(name = "merged")
@JsonProperty("merged")
private Integer merged;
/**
* 属性 [ADDRESS1_SHIPPINGMETHODCODE]
*
*/
@JSONField(name = "address1_shippingmethodcode")
@JsonProperty("address1_shippingmethodcode")
private String address1Shippingmethodcode;
/**
* 属性 [ADDRESS1_NAME]
*
*/
@JSONField(name = "address1_name")
@JsonProperty("address1_name")
private String address1Name;
/**
* 属性 [AGING30_BASE]
*
*/
@JSONField(name = "aging30_base")
@JsonProperty("aging30_base")
private BigDecimal aging30Base;
/**
* 属性 [ADDRESS2_TELEPHONE2]
*
*/
@JSONField(name = "address2_telephone2")
@JsonProperty("address2_telephone2")
private String address2Telephone2;
/**
* 属性 [ACCOUNTID]
*
*/
@JSONField(name = "accountid")
@JsonProperty("accountid")
private String accountid;
/**
* 属性 [PRIMARYTWITTERID]
*
*/
@JSONField(name = "primarytwitterid")
@JsonProperty("primarytwitterid")
private String primarytwitterid;
/**
* 属性 [TICKERSYMBOL]
*
*/
@JSONField(name = "tickersymbol")
@JsonProperty("tickersymbol")
private String tickersymbol;
/**
* 属性 [STOCKEXCHANGE]
*
*/
@JSONField(name = "stockexchange")
@JsonProperty("stockexchange")
private String stockexchange;
/**
* 属性 [ADDRESS2_STATEORPROVINCE]
*
*/
@JSONField(name = "address2_stateorprovince")
@JsonProperty("address2_stateorprovince")
private String address2Stateorprovince;
/**
* 属性 [FTPSITEURL]
*
*/
@JSONField(name = "ftpsiteurl")
@JsonProperty("ftpsiteurl")
private String ftpsiteurl;
/**
* 属性 [STATUSCODE]
*
*/
@JSONField(name = "statuscode")
@JsonProperty("statuscode")
private Integer statuscode;
/**
* 属性 [WEBSITEURL]
*
*/
@JSONField(name = "websiteurl")
@JsonProperty("websiteurl")
private String websiteurl;
/**
* 属性 [DONOTPOSTALMAIL]
*
*/
@JSONField(name = "donotpostalmail")
@JsonProperty("donotpostalmail")
private Integer donotpostalmail;
/**
* 属性 [ADDRESS1_CITY]
*
*/
@JSONField(name = "address1_city")
@JsonProperty("address1_city")
private String address1City;
/**
* 属性 [ADDRESS2_FAX]
*
*/
@JSONField(name = "address2_fax")
@JsonProperty("address2_fax")
private String address2Fax;
/**
* 属性 [AGING90_BASE]
*
*/
@JSONField(name = "aging90_base")
@JsonProperty("aging90_base")
private BigDecimal aging90Base;
/**
* 属性 [OPENDEALS_DATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "opendeals_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("opendeals_date")
private Timestamp opendealsDate;
/**
* 属性 [TRAVERSEDPATH]
*
*/
@JSONField(name = "traversedpath")
@JsonProperty("traversedpath")
private String traversedpath;
/**
* 属性 [SHIPPINGMETHODCODE]
*
*/
@JSONField(name = "shippingmethodcode")
@JsonProperty("shippingmethodcode")
private String shippingmethodcode;
/**
* 属性 [ADDRESS1_LINE2]
*
*/
@JSONField(name = "address1_line2")
@JsonProperty("address1_line2")
private String address1Line2;
/**
* 属性 [OPENREVENUE_BASE]
*
*/
@JSONField(name = "openrevenue_base")
@JsonProperty("openrevenue_base")
private BigDecimal openrevenueBase;
/**
* 属性 [UPDATEDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "updatedate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate")
private Timestamp updatedate;
/**
* 属性 [PREFERREDSYSTEMUSERIDYOMINAME]
*
*/
@JSONField(name = "preferredsystemuseridyominame")
@JsonProperty("preferredsystemuseridyominame")
private String preferredsystemuseridyominame;
/**
* 属性 [ADDRESS2_LINE3]
*
*/
@JSONField(name = "address2_line3")
@JsonProperty("address2_line3")
private String address2Line3;
/**
* 属性 [ADDRESS1_POSTALCODE]
*
*/
@JSONField(name = "address1_postalcode")
@JsonProperty("address1_postalcode")
private String address1Postalcode;
/**
* 属性 [ADDRESS2_LATITUDE]
*
*/
@JSONField(name = "address2_latitude")
@JsonProperty("address2_latitude")
private Double address2Latitude;
/**
* 属性 [PRIVATE]
*
*/
@JSONField(name = "ibizprivate")
@JsonProperty("ibizprivate")
private Integer ibizprivate;
/**
* 属性 [TERRITORYCODE]
*
*/
@JSONField(name = "territorycode")
@JsonProperty("territorycode")
private String territorycode;
/**
* 属性 [TEAMSFOLLOWED]
*
*/
@JSONField(name = "teamsfollowed")
@JsonProperty("teamsfollowed")
private Integer teamsfollowed;
/**
* 属性 [YOMINAME]
*
*/
@JSONField(name = "yominame")
@JsonProperty("yominame")
private String yominame;
/**
* 属性 [ADDRESS1_LATITUDE]
*
*/
@JSONField(name = "address1_latitude")
@JsonProperty("address1_latitude")
private Double address1Latitude;
/**
* 属性 [TELEPHONE3]
*
*/
@JSONField(name = "telephone3")
@JsonProperty("telephone3")
private String telephone3;
/**
* 属性 [OWNERID]
*
*/
@JSONField(name = "ownerid")
@JsonProperty("ownerid")
private String ownerid;
/**
* 属性 [ADDRESS2_COUNTRY]
*
*/
@JSONField(name = "address2_country")
@JsonProperty("address2_country")
private String address2Country;
/**
* 属性 [MASTERACCOUNTIDYOMINAME]
*
*/
@JSONField(name = "masteraccountidyominame")
@JsonProperty("masteraccountidyominame")
private String masteraccountidyominame;
/**
* 属性 [INDUSTRYCODE]
*
*/
@JSONField(name = "industrycode")
@JsonProperty("industrycode")
private String industrycode;
/**
* 属性 [LASTONHOLDTIME]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "lastonholdtime" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("lastonholdtime")
private Timestamp lastonholdtime;
/**
* 属性 [ADDRESS2_ADDRESSID]
*
*/
@JSONField(name = "address2_addressid")
@JsonProperty("address2_addressid")
private String address2Addressid;
/**
* 属性 [ONHOLDTIME]
*
*/
@JSONField(name = "onholdtime")
@JsonProperty("onholdtime")
private Integer onholdtime;
/**
* 属性 [ACCOUNTCLASSIFICATIONCODE]
*
*/
@JSONField(name = "accountclassificationcode")
@JsonProperty("accountclassificationcode")
private String accountclassificationcode;
/**
* 属性 [ADDRESS1_COUNTRY]
*
*/
@JSONField(name = "address1_country")
@JsonProperty("address1_country")
private String address1Country;
/**
* 属性 [ADDRESS1_ADDRESSTYPECODE]
*
*/
@JSONField(name = "address1_addresstypecode")
@JsonProperty("address1_addresstypecode")
private String address1Addresstypecode;
/**
* 属性 [STATECODE]
*
*/
@JSONField(name = "statecode")
@JsonProperty("statecode")
private Integer statecode;
/**
* 属性 [ADDRESS2_ADDRESSTYPECODE]
*
*/
@JSONField(name = "address2_addresstypecode")
@JsonProperty("address2_addresstypecode")
private String address2Addresstypecode;
/**
* 属性 [ACCOUNTCATEGORYCODE]
*
*/
@JSONField(name = "accountcategorycode")
@JsonProperty("accountcategorycode")
private String accountcategorycode;
/**
* 属性 [EMAILADDRESS2]
*
*/
@JSONField(name = "emailaddress2")
@JsonProperty("emailaddress2")
private String emailaddress2;
/**
* 属性 [ADDRESS2_SHIPPINGMETHODCODE]
*
*/
@JSONField(name = "address2_shippingmethodcode")
@JsonProperty("address2_shippingmethodcode")
private String address2Shippingmethodcode;
/**
* 属性 [IMPORTSEQUENCENUMBER]
*
*/
@JSONField(name = "importsequencenumber")
@JsonProperty("importsequencenumber")
private Integer importsequencenumber;
/**
* 属性 [PRIMARYSATORIID]
*
*/
@JSONField(name = "primarysatoriid")
@JsonProperty("primarysatoriid")
private String primarysatoriid;
/**
* 属性 [CUSTOMERSIZECODE]
*
*/
@JSONField(name = "customersizecode")
@JsonProperty("customersizecode")
private String customersizecode;
/**
* 属性 [OPENDEALS]
*
*/
@JSONField(name = "opendeals")
@JsonProperty("opendeals")
private Integer opendeals;
/**
* 属性 [DONOTSENDMM]
*
*/
@JSONField(name = "donotsendmm")
@JsonProperty("donotsendmm")
private Integer donotsendmm;
/**
* 属性 [PROCESSID]
*
*/
@JSONField(name = "processid")
@JsonProperty("processid")
private String processid;
/**
* 属性 [PAYMENTTERMSCODE]
*
*/
@JSONField(name = "paymenttermscode")
@JsonProperty("paymenttermscode")
private String paymenttermscode;
/**
* 属性 [SIC]
*
*/
@JSONField(name = "sic")
@JsonProperty("sic")
private String sic;
/**
* 属性 [ADDRESS2_PRIMARYCONTACTNAME]
*
*/
@JSONField(name = "address2_primarycontactname")
@JsonProperty("address2_primarycontactname")
private String address2Primarycontactname;
/**
* 属性 [ADDRESS1_UTCOFFSET]
*
*/
@JSONField(name = "address1_utcoffset")
@JsonProperty("address1_utcoffset")
private Integer address1Utcoffset;
/**
* 属性 [OWNERIDYOMINAME]
*
*/
@JSONField(name = "owneridyominame")
@JsonProperty("owneridyominame")
private String owneridyominame;
/**
* 属性 [LASTUSEDINCAMPAIGN]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "lastusedincampaign" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("lastusedincampaign")
private Timestamp lastusedincampaign;
/**
* 属性 [AGING60_BASE]
*
*/
@JSONField(name = "aging60_base")
@JsonProperty("aging60_base")
private BigDecimal aging60Base;
/**
* 属性 [DONOTFAX]
*
*/
@JSONField(name = "donotfax")
@JsonProperty("donotfax")
private Integer donotfax;
/**
* 属性 [UPDATEMAN]
*
*/
@JSONField(name = "updateman")
@JsonProperty("updateman")
private String updateman;
/**
* 属性 [OPENREVENUE_STATE]
*
*/
@JSONField(name = "openrevenue_state")
@JsonProperty("openrevenue_state")
private Integer openrevenueState;
/**
* 属性 [OPENDEALS_STATE]
*
*/
@JSONField(name = "opendeals_state")
@JsonProperty("opendeals_state")
private Integer opendealsState;
/**
* 属性 [VERSIONNUMBER]
*
*/
@JSONField(name = "versionnumber")
@JsonProperty("versionnumber")
private BigInteger versionnumber;
/**
* 属性 [ADDRESS1_LONGITUDE]
*
*/
@JSONField(name = "address1_longitude")
@JsonProperty("address1_longitude")
private Double address1Longitude;
/**
* 属性 [AGING90]
*
*/
@JSONField(name = "aging90")
@JsonProperty("aging90")
private BigDecimal aging90;
/**
* 属性 [ENTITYIMAGE_URL]
*
*/
@JSONField(name = "entityimage_url")
@JsonProperty("entityimage_url")
private String entityimageUrl;
/**
* 属性 [CREDITLIMIT]
*
*/
@JSONField(name = "creditlimit")
@JsonProperty("creditlimit")
private BigDecimal creditlimit;
/**
* 属性 [PREFERREDSYSTEMUSERID]
*
*/
@JSONField(name = "preferredsystemuserid")
@JsonProperty("preferredsystemuserid")
private String preferredsystemuserid;
/**
* 属性 [REVENUE]
*
*/
@JSONField(name = "revenue")
@JsonProperty("revenue")
private BigDecimal revenue;
/**
* 属性 [ADDRESS1_COUNTY]
*
*/
@JSONField(name = "address1_county")
@JsonProperty("address1_county")
private String address1County;
/**
* 属性 [ADDRESS1_LINE3]
*
*/
@JSONField(name = "address1_line3")
@JsonProperty("address1_line3")
private String address1Line3;
/**
* 属性 [STAGEID]
*
*/
@JSONField(name = "stageid")
@JsonProperty("stageid")
private String stageid;
/**
* 属性 [DONOTEMAIL]
*
*/
@JSONField(name = "donotemail")
@JsonProperty("donotemail")
private Integer donotemail;
/**
* 属性 [ADDRESS2_POSTALCODE]
*
*/
@JSONField(name = "address2_postalcode")
@JsonProperty("address2_postalcode")
private String address2Postalcode;
/**
* 属性 [PREFERREDAPPOINTMENTTIMECODE]
*
*/
@JSONField(name = "preferredappointmenttimecode")
@JsonProperty("preferredappointmenttimecode")
private String preferredappointmenttimecode;
/**
* 属性 [ADDRESS2_UPSZONE]
*
*/
@JSONField(name = "address2_upszone")
@JsonProperty("address2_upszone")
private String address2Upszone;
/**
* 属性 [CREATEDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "createdate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate")
private Timestamp createdate;
/**
* 属性 [ADDRESS2_COUNTY]
*
*/
@JSONField(name = "address2_county")
@JsonProperty("address2_county")
private String address2County;
/**
* 属性 [OWNERIDTYPE]
*
*/
@JSONField(name = "owneridtype")
@JsonProperty("owneridtype")
private String owneridtype;
/**
* 属性 [ADDRESS2_COMPOSITE]
*
*/
@JSONField(name = "address2_composite")
@JsonProperty("address2_composite")
private String address2Composite;
/**
* 属性 [ADDRESS2_NAME]
*
*/
@JSONField(name = "address2_name")
@JsonProperty("address2_name")
private String address2Name;
/**
* 属性 [ADDRESS2_LINE1]
*
*/
@JSONField(name = "address2_line1")
@JsonProperty("address2_line1")
private String address2Line1;
/**
* 属性 [MARKETCAP_BASE]
*
*/
@JSONField(name = "marketcap_base")
@JsonProperty("marketcap_base")
private BigDecimal marketcapBase;
/**
* 属性 [EMAILADDRESS3]
*
*/
@JSONField(name = "emailaddress3")
@JsonProperty("emailaddress3")
private String emailaddress3;
/**
* 属性 [TELEPHONE2]
*
*/
@JSONField(name = "telephone2")
@JsonProperty("telephone2")
private String telephone2;
/**
* 属性 [CREATEMAN]
*
*/
@JSONField(name = "createman")
@JsonProperty("createman")
private String createman;
/**
* 属性 [ADDRESS1_POSTOFFICEBOX]
*
*/
@JSONField(name = "address1_postofficebox")
@JsonProperty("address1_postofficebox")
private String address1Postofficebox;
/**
* 属性 [CREDITONHOLD]
*
*/
@JSONField(name = "creditonhold")
@JsonProperty("creditonhold")
private Integer creditonhold;
/**
* 属性 [ADDRESS1_ADDRESSID]
*
*/
@JSONField(name = "address1_addressid")
@JsonProperty("address1_addressid")
private String address1Addressid;
/**
* 属性 [ADDRESS2_POSTOFFICEBOX]
*
*/
@JSONField(name = "address2_postofficebox")
@JsonProperty("address2_postofficebox")
private String address2Postofficebox;
/**
* 属性 [SLANAME]
*
*/
@JSONField(name = "slaname")
@JsonProperty("slaname")
private String slaname;
/**
* 属性 [ORIGINATINGLEADID]
*
*/
@JSONField(name = "originatingleadid")
@JsonProperty("originatingleadid")
private String originatingleadid;
/**
* 属性 [TRANSACTIONCURRENCYID]
*
*/
@JSONField(name = "transactioncurrencyid")
@JsonProperty("transactioncurrencyid")
private String transactioncurrencyid;
/**
* 属性 [DEFAULTPRICELEVELID]
*
*/
@JSONField(name = "defaultpricelevelid")
@JsonProperty("defaultpricelevelid")
private String defaultpricelevelid;
/**
* 属性 [PARENTACCOUNTID]
*
*/
@JSONField(name = "parentaccountid")
@JsonProperty("parentaccountid")
private String parentaccountid;
/**
* 属性 [PREFERREDEQUIPMENTID]
*
*/
@JSONField(name = "preferredequipmentid")
@JsonProperty("preferredequipmentid")
private String preferredequipmentid;
/**
* 属性 [TERRITORYID]
*
*/
@JSONField(name = "territoryid")
@JsonProperty("territoryid")
private String territoryid;
/**
* 属性 [PRIMARYCONTACTID]
*
*/
@JSONField(name = "primarycontactid")
@JsonProperty("primarycontactid")
private String primarycontactid;
/**
* 属性 [SLAID]
*
*/
@JSONField(name = "slaid")
@JsonProperty("slaid")
private String slaid;
/**
* 属性 [PREFERREDSERVICEID]
*
*/
@JSONField(name = "preferredserviceid")
@JsonProperty("preferredserviceid")
private String preferredserviceid;
/**
* 属性 [ORIGINATINGLEADNAME]
*
*/
@JSONField(name = "originatingleadname")
@JsonProperty("originatingleadname")
private String originatingleadname;
/**
* 属性 [DEFAULTPRICELEVELNAME]
*
*/
@JSONField(name = "defaultpricelevelname")
@JsonProperty("defaultpricelevelname")
private String defaultpricelevelname;
/**
* 属性 [TERRITORYNAME]
*
*/
@JSONField(name = "territoryname")
@JsonProperty("territoryname")
private String territoryname;
/**
* 属性 [PARENTACCOUNTNAME]
*
*/
@JSONField(name = "parentaccountname")
@JsonProperty("parentaccountname")
private String parentaccountname;
/**
* 属性 [PREFERREDEQUIPMENTNAME]
*
*/
@JSONField(name = "preferredequipmentname")
@JsonProperty("preferredequipmentname")
private String preferredequipmentname;
/**
* 属性 [PREFERREDSERVICENAME]
*
*/
@JSONField(name = "preferredservicename")
@JsonProperty("preferredservicename")
private String preferredservicename;
/**
* 属性 [PRIMARYCONTACTNAME]
*
*/
@JSONField(name = "primarycontactname")
@JsonProperty("primarycontactname")
private String primarycontactname;
/**
* 属性 [TRANSACTIONCURRENCYNAME]
*
*/
@JSONField(name = "transactioncurrencyname")
@JsonProperty("transactioncurrencyname")
private String transactioncurrencyname;
/**
* 属性 [CHILDACCOUNTCOUNT]
*
*/
@JSONField(name = "childaccountcount")
@JsonProperty("childaccountcount")
private Integer childaccountcount;
/**
* 设置 [ADDRESS1_PRIMARYCONTACTNAME]
*/
public void setAddress1Primarycontactname(String address1Primarycontactname){
this.address1Primarycontactname = address1Primarycontactname ;
this.modify("address1_primarycontactname",address1Primarycontactname);
}
/**
* 设置 [OPENREVENUE_DATE]
*/
public void setOpenrevenueDate(Timestamp openrevenueDate){
this.openrevenueDate = openrevenueDate ;
this.modify("openrevenue_date",openrevenueDate);
}
/**
* 设置 [ADDRESS2_UTCOFFSET]
*/
public void setAddress2Utcoffset(Integer address2Utcoffset){
this.address2Utcoffset = address2Utcoffset ;
this.modify("address2_utcoffset",address2Utcoffset);
}
/**
* 设置 [FAX]
*/
public void setFax(String fax){
this.fax = fax ;
this.modify("fax",fax);
}
/**
* 设置 [ADDRESS1_COMPOSITE]
*/
public void setAddress1Composite(String address1Composite){
this.address1Composite = address1Composite ;
this.modify("address1_composite",address1Composite);
}
/**
* 设置 [ENTITYIMAGE]
*/
public void setEntityimage(String entityimage){
this.entityimage = entityimage ;
this.modify("entityimage",entityimage);
}
/**
* 设置 [EMAILADDRESS1]
*/
public void setEmailaddress1(String emailaddress1){
this.emailaddress1 = emailaddress1 ;
this.modify("emailaddress1",emailaddress1);
}
/**
* 设置 [OVERRIDDENCREATEDON]
*/
public void setOverriddencreatedon(Timestamp overriddencreatedon){
this.overriddencreatedon = overriddencreatedon ;
this.modify("overriddencreatedon",overriddencreatedon);
}
/**
* 设置 [ADDRESS1_STATEORPROVINCE]
*/
public void setAddress1Stateorprovince(String address1Stateorprovince){
this.address1Stateorprovince = address1Stateorprovince ;
this.modify("address1_stateorprovince",address1Stateorprovince);
}
/**
* 设置 [OPENREVENUE]
*/
public void setOpenrevenue(BigDecimal openrevenue){
this.openrevenue = openrevenue ;
this.modify("openrevenue",openrevenue);
}
/**
* 设置 [ADDRESS1_UPSZONE]
*/
public void setAddress1Upszone(String address1Upszone){
this.address1Upszone = address1Upszone ;
this.modify("address1_upszone",address1Upszone);
}
/**
* 设置 [FOLLOWEMAIL]
*/
public void setFollowemail(Integer followemail){
this.followemail = followemail ;
this.modify("followemail",followemail);
}
/**
* 设置 [MARKETINGONLY]
*/
public void setMarketingonly(Integer marketingonly){
this.marketingonly = marketingonly ;
this.modify("marketingonly",marketingonly);
}
/**
* 设置 [NUMBEROFEMPLOYEES]
*/
public void setNumberofemployees(Integer numberofemployees){
this.numberofemployees = numberofemployees ;
this.modify("numberofemployees",numberofemployees);
}
/**
* 设置 [TELEPHONE1]
*/
public void setTelephone1(String telephone1){
this.telephone1 = telephone1 ;
this.modify("telephone1",telephone1);
}
/**
* 设置 [AGING60]
*/
public void setAging60(BigDecimal aging60){
this.aging60 = aging60 ;
this.modify("aging60",aging60);
}
/**
* 设置 [SHARESOUTSTANDING]
*/
public void setSharesoutstanding(Integer sharesoutstanding){
this.sharesoutstanding = sharesoutstanding ;
this.modify("sharesoutstanding",sharesoutstanding);
}
/**
* 设置 [ADDRESS2_FREIGHTTERMSCODE]
*/
public void setAddress2Freighttermscode(String address2Freighttermscode){
this.address2Freighttermscode = address2Freighttermscode ;
this.modify("address2_freighttermscode",address2Freighttermscode);
}
/**
* 设置 [ENTITYIMAGE_TIMESTAMP]
*/
public void setEntityimageTimestamp(BigInteger entityimageTimestamp){
this.entityimageTimestamp = entityimageTimestamp ;
this.modify("entityimage_timestamp",entityimageTimestamp);
}
/**
* 设置 [REVENUE_BASE]
*/
public void setRevenueBase(BigDecimal revenueBase){
this.revenueBase = revenueBase ;
this.modify("revenue_base",revenueBase);
}
/**
* 设置 [ACCOUNTRATINGCODE]
*/
public void setAccountratingcode(String accountratingcode){
this.accountratingcode = accountratingcode ;
this.modify("accountratingcode",accountratingcode);
}
/**
* 设置 [DONOTBULKEMAIL]
*/
public void setDonotbulkemail(Integer donotbulkemail){
this.donotbulkemail = donotbulkemail ;
this.modify("donotbulkemail",donotbulkemail);
}
/**
* 设置 [AGING30]
*/
public void setAging30(BigDecimal aging30){
this.aging30 = aging30 ;
this.modify("aging30",aging30);
}
/**
* 设置 [DONOTBULKPOSTALMAIL]
*/
public void setDonotbulkpostalmail(Integer donotbulkpostalmail){
this.donotbulkpostalmail = donotbulkpostalmail ;
this.modify("donotbulkpostalmail",donotbulkpostalmail);
}
/**
* 设置 [CREDITLIMIT_BASE]
*/
public void setCreditlimitBase(BigDecimal creditlimitBase){
this.creditlimitBase = creditlimitBase ;
this.modify("creditlimit_base",creditlimitBase);
}
/**
* 设置 [TIMEZONERULEVERSIONNUMBER]
*/
public void setTimezoneruleversionnumber(Integer timezoneruleversionnumber){
this.timezoneruleversionnumber = timezoneruleversionnumber ;
this.modify("timezoneruleversionnumber",timezoneruleversionnumber);
}
/**
* 设置 [CUSTOMERTYPECODE]
*/
public void setCustomertypecode(String customertypecode){
this.customertypecode = customertypecode ;
this.modify("customertypecode",customertypecode);
}
/**
* 设置 [ADDRESS2_LONGITUDE]
*/
public void setAddress2Longitude(Double address2Longitude){
this.address2Longitude = address2Longitude ;
this.modify("address2_longitude",address2Longitude);
}
/**
* 设置 [ACCOUNTNAME]
*/
public void setAccountname(String accountname){
this.accountname = accountname ;
this.modify("accountname",accountname);
}
/**
* 设置 [PARTICIPATESINWORKFLOW]
*/
public void setParticipatesinworkflow(Integer participatesinworkflow){
this.participatesinworkflow = participatesinworkflow ;
this.modify("participatesinworkflow",participatesinworkflow);
}
/**
* 设置 [PREFERREDCONTACTMETHODCODE]
*/
public void setPreferredcontactmethodcode(String preferredcontactmethodcode){
this.preferredcontactmethodcode = preferredcontactmethodcode ;
this.modify("preferredcontactmethodcode",preferredcontactmethodcode);
}
/**
* 设置 [PREFERREDAPPOINTMENTDAYCODE]
*/
public void setPreferredappointmentdaycode(String preferredappointmentdaycode){
this.preferredappointmentdaycode = preferredappointmentdaycode ;
this.modify("preferredappointmentdaycode",preferredappointmentdaycode);
}
/**
* 设置 [MARKETCAP]
*/
public void setMarketcap(BigDecimal marketcap){
this.marketcap = marketcap ;
this.modify("marketcap",marketcap);
}
/**
* 设置 [ADDRESS2_TELEPHONE1]
*/
public void setAddress2Telephone1(String address2Telephone1){
this.address2Telephone1 = address2Telephone1 ;
this.modify("address2_telephone1",address2Telephone1);
}
/**
* 设置 [BUSINESSTYPECODE]
*/
public void setBusinesstypecode(String businesstypecode){
this.businesstypecode = businesstypecode ;
this.modify("businesstypecode",businesstypecode);
}
/**
* 设置 [ENTITYIMAGEID]
*/
public void setEntityimageid(String entityimageid){
this.entityimageid = entityimageid ;
this.modify("entityimageid",entityimageid);
}
/**
* 设置 [ADDRESS2_CITY]
*/
public void setAddress2City(String address2City){
this.address2City = address2City ;
this.modify("address2_city",address2City);
}
/**
* 设置 [OWNERSHIPCODE]
*/
public void setOwnershipcode(String ownershipcode){
this.ownershipcode = ownershipcode ;
this.modify("ownershipcode",ownershipcode);
}
/**
* 设置 [UTCCONVERSIONTIMEZONECODE]
*/
public void setUtcconversiontimezonecode(Integer utcconversiontimezonecode){
this.utcconversiontimezonecode = utcconversiontimezonecode ;
this.modify("utcconversiontimezonecode",utcconversiontimezonecode);
}
/**
* 设置 [ACCOUNTNUMBER]
*/
public void setAccountnumber(String accountnumber){
this.accountnumber = accountnumber ;
this.modify("accountnumber",accountnumber);
}
/**
* 设置 [ADDRESS1_TELEPHONE2]
*/
public void setAddress1Telephone2(String address1Telephone2){
this.address1Telephone2 = address1Telephone2 ;
this.modify("address1_telephone2",address1Telephone2);
}
/**
* 设置 [ADDRESS1_LINE1]
*/
public void setAddress1Line1(String address1Line1){
this.address1Line1 = address1Line1 ;
this.modify("address1_line1",address1Line1);
}
/**
* 设置 [DONOTPHONE]
*/
public void setDonotphone(Integer donotphone){
this.donotphone = donotphone ;
this.modify("donotphone",donotphone);
}
/**
* 设置 [ADDRESS1_TELEPHONE3]
*/
public void setAddress1Telephone3(String address1Telephone3){
this.address1Telephone3 = address1Telephone3 ;
this.modify("address1_telephone3",address1Telephone3);
}
/**
* 设置 [EXCHANGERATE]
*/
public void setExchangerate(BigDecimal exchangerate){
this.exchangerate = exchangerate ;
this.modify("exchangerate",exchangerate);
}
/**
* 设置 [ADDRESS2_LINE2]
*/
public void setAddress2Line2(String address2Line2){
this.address2Line2 = address2Line2 ;
this.modify("address2_line2",address2Line2);
}
/**
* 设置 [ADDRESS2_TELEPHONE3]
*/
public void setAddress2Telephone3(String address2Telephone3){
this.address2Telephone3 = address2Telephone3 ;
this.modify("address2_telephone3",address2Telephone3);
}
/**
* 设置 [ADDRESS1_TELEPHONE1]
*/
public void setAddress1Telephone1(String address1Telephone1){
this.address1Telephone1 = address1Telephone1 ;
this.modify("address1_telephone1",address1Telephone1);
}
/**
* 设置 [ADDRESS1_FAX]
*/
public void setAddress1Fax(String address1Fax){
this.address1Fax = address1Fax ;
this.modify("address1_fax",address1Fax);
}
/**
* 设置 [ADDRESS1_FREIGHTTERMSCODE]
*/
public void setAddress1Freighttermscode(String address1Freighttermscode){
this.address1Freighttermscode = address1Freighttermscode ;
this.modify("address1_freighttermscode",address1Freighttermscode);
}
/**
* 设置 [DESCRIPTION]
*/
public void setDescription(String description){
this.description = description ;
this.modify("description",description);
}
/**
* 设置 [MERGED]
*/
public void setMerged(Integer merged){
this.merged = merged ;
this.modify("merged",merged);
}
/**
* 设置 [ADDRESS1_SHIPPINGMETHODCODE]
*/
public void setAddress1Shippingmethodcode(String address1Shippingmethodcode){
this.address1Shippingmethodcode = address1Shippingmethodcode ;
this.modify("address1_shippingmethodcode",address1Shippingmethodcode);
}
/**
* 设置 [ADDRESS1_NAME]
*/
public void setAddress1Name(String address1Name){
this.address1Name = address1Name ;
this.modify("address1_name",address1Name);
}
/**
* 设置 [AGING30_BASE]
*/
public void setAging30Base(BigDecimal aging30Base){
this.aging30Base = aging30Base ;
this.modify("aging30_base",aging30Base);
}
/**
* 设置 [ADDRESS2_TELEPHONE2]
*/
public void setAddress2Telephone2(String address2Telephone2){
this.address2Telephone2 = address2Telephone2 ;
this.modify("address2_telephone2",address2Telephone2);
}
/**
* 设置 [PRIMARYTWITTERID]
*/
public void setPrimarytwitterid(String primarytwitterid){
this.primarytwitterid = primarytwitterid ;
this.modify("primarytwitterid",primarytwitterid);
}
/**
* 设置 [TICKERSYMBOL]
*/
public void setTickersymbol(String tickersymbol){
this.tickersymbol = tickersymbol ;
this.modify("tickersymbol",tickersymbol);
}
/**
* 设置 [STOCKEXCHANGE]
*/
public void setStockexchange(String stockexchange){
this.stockexchange = stockexchange ;
this.modify("stockexchange",stockexchange);
}
/**
* 设置 [ADDRESS2_STATEORPROVINCE]
*/
public void setAddress2Stateorprovince(String address2Stateorprovince){
this.address2Stateorprovince = address2Stateorprovince ;
this.modify("address2_stateorprovince",address2Stateorprovince);
}
/**
* 设置 [FTPSITEURL]
*/
public void setFtpsiteurl(String ftpsiteurl){
this.ftpsiteurl = ftpsiteurl ;
this.modify("ftpsiteurl",ftpsiteurl);
}
/**
* 设置 [STATUSCODE]
*/
public void setStatuscode(Integer statuscode){
this.statuscode = statuscode ;
this.modify("statuscode",statuscode);
}
/**
* 设置 [WEBSITEURL]
*/
public void setWebsiteurl(String websiteurl){
this.websiteurl = websiteurl ;
this.modify("websiteurl",websiteurl);
}
/**
* 设置 [DONOTPOSTALMAIL]
*/
public void setDonotpostalmail(Integer donotpostalmail){
this.donotpostalmail = donotpostalmail ;
this.modify("donotpostalmail",donotpostalmail);
}
/**
* 设置 [ADDRESS1_CITY]
*/
public void setAddress1City(String address1City){
this.address1City = address1City ;
this.modify("address1_city",address1City);
}
/**
* 设置 [ADDRESS2_FAX]
*/
public void setAddress2Fax(String address2Fax){
this.address2Fax = address2Fax ;
this.modify("address2_fax",address2Fax);
}
/**
* 设置 [AGING90_BASE]
*/
public void setAging90Base(BigDecimal aging90Base){
this.aging90Base = aging90Base ;
this.modify("aging90_base",aging90Base);
}
/**
* 设置 [OPENDEALS_DATE]
*/
public void setOpendealsDate(Timestamp opendealsDate){
this.opendealsDate = opendealsDate ;
this.modify("opendeals_date",opendealsDate);
}
/**
* 设置 [TRAVERSEDPATH]
*/
public void setTraversedpath(String traversedpath){
this.traversedpath = traversedpath ;
this.modify("traversedpath",traversedpath);
}
/**
* 设置 [SHIPPINGMETHODCODE]
*/
public void setShippingmethodcode(String shippingmethodcode){
this.shippingmethodcode = shippingmethodcode ;
this.modify("shippingmethodcode",shippingmethodcode);
}
/**
* 设置 [ADDRESS1_LINE2]
*/
public void setAddress1Line2(String address1Line2){
this.address1Line2 = address1Line2 ;
this.modify("address1_line2",address1Line2);
}
/**
* 设置 [OPENREVENUE_BASE]
*/
public void setOpenrevenueBase(BigDecimal openrevenueBase){
this.openrevenueBase = openrevenueBase ;
this.modify("openrevenue_base",openrevenueBase);
}
/**
* 设置 [PREFERREDSYSTEMUSERIDYOMINAME]
*/
public void setPreferredsystemuseridyominame(String preferredsystemuseridyominame){
this.preferredsystemuseridyominame = preferredsystemuseridyominame ;
this.modify("preferredsystemuseridyominame",preferredsystemuseridyominame);
}
/**
* 设置 [ADDRESS2_LINE3]
*/
public void setAddress2Line3(String address2Line3){
this.address2Line3 = address2Line3 ;
this.modify("address2_line3",address2Line3);
}
/**
* 设置 [ADDRESS1_POSTALCODE]
*/
public void setAddress1Postalcode(String address1Postalcode){
this.address1Postalcode = address1Postalcode ;
this.modify("address1_postalcode",address1Postalcode);
}
/**
* 设置 [ADDRESS2_LATITUDE]
*/
public void setAddress2Latitude(Double address2Latitude){
this.address2Latitude = address2Latitude ;
this.modify("address2_latitude",address2Latitude);
}
/**
* 设置 [PRIVATE]
*/
public void setIbizprivate(Integer ibizprivate){
this.ibizprivate = ibizprivate ;
this.modify("private",ibizprivate);
}
/**
* 设置 [TERRITORYCODE]
*/
public void setTerritorycode(String territorycode){
this.territorycode = territorycode ;
this.modify("territorycode",territorycode);
}
/**
* 设置 [TEAMSFOLLOWED]
*/
public void setTeamsfollowed(Integer teamsfollowed){
this.teamsfollowed = teamsfollowed ;
this.modify("teamsfollowed",teamsfollowed);
}
/**
* 设置 [YOMINAME]
*/
public void setYominame(String yominame){
this.yominame = yominame ;
this.modify("yominame",yominame);
}
/**
* 设置 [ADDRESS1_LATITUDE]
*/
public void setAddress1Latitude(Double address1Latitude){
this.address1Latitude = address1Latitude ;
this.modify("address1_latitude",address1Latitude);
}
/**
* 设置 [TELEPHONE3]
*/
public void setTelephone3(String telephone3){
this.telephone3 = telephone3 ;
this.modify("telephone3",telephone3);
}
/**
* 设置 [OWNERID]
*/
public void setOwnerid(String ownerid){
this.ownerid = ownerid ;
this.modify("ownerid",ownerid);
}
/**
* 设置 [ADDRESS2_COUNTRY]
*/
public void setAddress2Country(String address2Country){
this.address2Country = address2Country ;
this.modify("address2_country",address2Country);
}
/**
* 设置 [MASTERACCOUNTIDYOMINAME]
*/
public void setMasteraccountidyominame(String masteraccountidyominame){
this.masteraccountidyominame = masteraccountidyominame ;
this.modify("masteraccountidyominame",masteraccountidyominame);
}
/**
* 设置 [INDUSTRYCODE]
*/
public void setIndustrycode(String industrycode){
this.industrycode = industrycode ;
this.modify("industrycode",industrycode);
}
/**
* 设置 [LASTONHOLDTIME]
*/
public void setLastonholdtime(Timestamp lastonholdtime){
this.lastonholdtime = lastonholdtime ;
this.modify("lastonholdtime",lastonholdtime);
}
/**
* 设置 [ADDRESS2_ADDRESSID]
*/
public void setAddress2Addressid(String address2Addressid){
this.address2Addressid = address2Addressid ;
this.modify("address2_addressid",address2Addressid);
}
/**
* 设置 [ONHOLDTIME]
*/
public void setOnholdtime(Integer onholdtime){
this.onholdtime = onholdtime ;
this.modify("onholdtime",onholdtime);
}
/**
* 设置 [ACCOUNTCLASSIFICATIONCODE]
*/
public void setAccountclassificationcode(String accountclassificationcode){
this.accountclassificationcode = accountclassificationcode ;
this.modify("accountclassificationcode",accountclassificationcode);
}
/**
* 设置 [ADDRESS1_COUNTRY]
*/
public void setAddress1Country(String address1Country){
this.address1Country = address1Country ;
this.modify("address1_country",address1Country);
}
/**
* 设置 [ADDRESS1_ADDRESSTYPECODE]
*/
public void setAddress1Addresstypecode(String address1Addresstypecode){
this.address1Addresstypecode = address1Addresstypecode ;
this.modify("address1_addresstypecode",address1Addresstypecode);
}
/**
* 设置 [STATECODE]
*/
public void setStatecode(Integer statecode){
this.statecode = statecode ;
this.modify("statecode",statecode);
}
/**
* 设置 [ADDRESS2_ADDRESSTYPECODE]
*/
public void setAddress2Addresstypecode(String address2Addresstypecode){
this.address2Addresstypecode = address2Addresstypecode ;
this.modify("address2_addresstypecode",address2Addresstypecode);
}
/**
* 设置 [ACCOUNTCATEGORYCODE]
*/
public void setAccountcategorycode(String accountcategorycode){
this.accountcategorycode = accountcategorycode ;
this.modify("accountcategorycode",accountcategorycode);
}
/**
* 设置 [EMAILADDRESS2]
*/
public void setEmailaddress2(String emailaddress2){
this.emailaddress2 = emailaddress2 ;
this.modify("emailaddress2",emailaddress2);
}
/**
* 设置 [ADDRESS2_SHIPPINGMETHODCODE]
*/
public void setAddress2Shippingmethodcode(String address2Shippingmethodcode){
this.address2Shippingmethodcode = address2Shippingmethodcode ;
this.modify("address2_shippingmethodcode",address2Shippingmethodcode);
}
/**
* 设置 [IMPORTSEQUENCENUMBER]
*/
public void setImportsequencenumber(Integer importsequencenumber){
this.importsequencenumber = importsequencenumber ;
this.modify("importsequencenumber",importsequencenumber);
}
/**
* 设置 [PRIMARYSATORIID]
*/
public void setPrimarysatoriid(String primarysatoriid){
this.primarysatoriid = primarysatoriid ;
this.modify("primarysatoriid",primarysatoriid);
}
/**
* 设置 [CUSTOMERSIZECODE]
*/
public void setCustomersizecode(String customersizecode){
this.customersizecode = customersizecode ;
this.modify("customersizecode",customersizecode);
}
/**
* 设置 [OPENDEALS]
*/
public void setOpendeals(Integer opendeals){
this.opendeals = opendeals ;
this.modify("opendeals",opendeals);
}
/**
* 设置 [DONOTSENDMM]
*/
public void setDonotsendmm(Integer donotsendmm){
this.donotsendmm = donotsendmm ;
this.modify("donotsendmm",donotsendmm);
}
/**
* 设置 [PROCESSID]
*/
public void setProcessid(String processid){
this.processid = processid ;
this.modify("processid",processid);
}
/**
* 设置 [PAYMENTTERMSCODE]
*/
public void setPaymenttermscode(String paymenttermscode){
this.paymenttermscode = paymenttermscode ;
this.modify("paymenttermscode",paymenttermscode);
}
/**
* 设置 [SIC]
*/
public void setSic(String sic){
this.sic = sic ;
this.modify("sic",sic);
}
/**
* 设置 [ADDRESS2_PRIMARYCONTACTNAME]
*/
public void setAddress2Primarycontactname(String address2Primarycontactname){
this.address2Primarycontactname = address2Primarycontactname ;
this.modify("address2_primarycontactname",address2Primarycontactname);
}
/**
* 设置 [ADDRESS1_UTCOFFSET]
*/
public void setAddress1Utcoffset(Integer address1Utcoffset){
this.address1Utcoffset = address1Utcoffset ;
this.modify("address1_utcoffset",address1Utcoffset);
}
/**
* 设置 [OWNERIDYOMINAME]
*/
public void setOwneridyominame(String owneridyominame){
this.owneridyominame = owneridyominame ;
this.modify("owneridyominame",owneridyominame);
}
/**
* 设置 [LASTUSEDINCAMPAIGN]
*/
public void setLastusedincampaign(Timestamp lastusedincampaign){
this.lastusedincampaign = lastusedincampaign ;
this.modify("lastusedincampaign",lastusedincampaign);
}
/**
* 设置 [AGING60_BASE]
*/
public void setAging60Base(BigDecimal aging60Base){
this.aging60Base = aging60Base ;
this.modify("aging60_base",aging60Base);
}
/**
* 设置 [DONOTFAX]
*/
public void setDonotfax(Integer donotfax){
this.donotfax = donotfax ;
this.modify("donotfax",donotfax);
}
/**
* 设置 [OPENREVENUE_STATE]
*/
public void setOpenrevenueState(Integer openrevenueState){
this.openrevenueState = openrevenueState ;
this.modify("openrevenue_state",openrevenueState);
}
/**
* 设置 [OPENDEALS_STATE]
*/
public void setOpendealsState(Integer opendealsState){
this.opendealsState = opendealsState ;
this.modify("opendeals_state",opendealsState);
}
/**
* 设置 [VERSIONNUMBER]
*/
public void setVersionnumber(BigInteger versionnumber){
this.versionnumber = versionnumber ;
this.modify("versionnumber",versionnumber);
}
/**
* 设置 [ADDRESS1_LONGITUDE]
*/
public void setAddress1Longitude(Double address1Longitude){
this.address1Longitude = address1Longitude ;
this.modify("address1_longitude",address1Longitude);
}
/**
* 设置 [AGING90]
*/
public void setAging90(BigDecimal aging90){
this.aging90 = aging90 ;
this.modify("aging90",aging90);
}
/**
* 设置 [ENTITYIMAGE_URL]
*/
public void setEntityimageUrl(String entityimageUrl){
this.entityimageUrl = entityimageUrl ;
this.modify("entityimage_url",entityimageUrl);
}
/**
* 设置 [CREDITLIMIT]
*/
public void setCreditlimit(BigDecimal creditlimit){
this.creditlimit = creditlimit ;
this.modify("creditlimit",creditlimit);
}
/**
* 设置 [PREFERREDSYSTEMUSERID]
*/
public void setPreferredsystemuserid(String preferredsystemuserid){
this.preferredsystemuserid = preferredsystemuserid ;
this.modify("preferredsystemuserid",preferredsystemuserid);
}
/**
* 设置 [REVENUE]
*/
public void setRevenue(BigDecimal revenue){
this.revenue = revenue ;
this.modify("revenue",revenue);
}
/**
* 设置 [ADDRESS1_COUNTY]
*/
public void setAddress1County(String address1County){
this.address1County = address1County ;
this.modify("address1_county",address1County);
}
/**
* 设置 [ADDRESS1_LINE3]
*/
public void setAddress1Line3(String address1Line3){
this.address1Line3 = address1Line3 ;
this.modify("address1_line3",address1Line3);
}
/**
* 设置 [STAGEID]
*/
public void setStageid(String stageid){
this.stageid = stageid ;
this.modify("stageid",stageid);
}
/**
* 设置 [DONOTEMAIL]
*/
public void setDonotemail(Integer donotemail){
this.donotemail = donotemail ;
this.modify("donotemail",donotemail);
}
/**
* 设置 [ADDRESS2_POSTALCODE]
*/
public void setAddress2Postalcode(String address2Postalcode){
this.address2Postalcode = address2Postalcode ;
this.modify("address2_postalcode",address2Postalcode);
}
/**
* 设置 [PREFERREDAPPOINTMENTTIMECODE]
*/
public void setPreferredappointmenttimecode(String preferredappointmenttimecode){
this.preferredappointmenttimecode = preferredappointmenttimecode ;
this.modify("preferredappointmenttimecode",preferredappointmenttimecode);
}
/**
* 设置 [ADDRESS2_UPSZONE]
*/
public void setAddress2Upszone(String address2Upszone){
this.address2Upszone = address2Upszone ;
this.modify("address2_upszone",address2Upszone);
}
/**
* 设置 [ADDRESS2_COUNTY]
*/
public void setAddress2County(String address2County){
this.address2County = address2County ;
this.modify("address2_county",address2County);
}
/**
* 设置 [OWNERIDTYPE]
*/
public void setOwneridtype(String owneridtype){
this.owneridtype = owneridtype ;
this.modify("owneridtype",owneridtype);
}
/**
* 设置 [ADDRESS2_COMPOSITE]
*/
public void setAddress2Composite(String address2Composite){
this.address2Composite = address2Composite ;
this.modify("address2_composite",address2Composite);
}
/**
* 设置 [ADDRESS2_NAME]
*/
public void setAddress2Name(String address2Name){
this.address2Name = address2Name ;
this.modify("address2_name",address2Name);
}
/**
* 设置 [ADDRESS2_LINE1]
*/
public void setAddress2Line1(String address2Line1){
this.address2Line1 = address2Line1 ;
this.modify("address2_line1",address2Line1);
}
/**
* 设置 [MARKETCAP_BASE]
*/
public void setMarketcapBase(BigDecimal marketcapBase){
this.marketcapBase = marketcapBase ;
this.modify("marketcap_base",marketcapBase);
}
/**
* 设置 [EMAILADDRESS3]
*/
public void setEmailaddress3(String emailaddress3){
this.emailaddress3 = emailaddress3 ;
this.modify("emailaddress3",emailaddress3);
}
/**
* 设置 [TELEPHONE2]
*/
public void setTelephone2(String telephone2){
this.telephone2 = telephone2 ;
this.modify("telephone2",telephone2);
}
/**
* 设置 [ADDRESS1_POSTOFFICEBOX]
*/
public void setAddress1Postofficebox(String address1Postofficebox){
this.address1Postofficebox = address1Postofficebox ;
this.modify("address1_postofficebox",address1Postofficebox);
}
/**
* 设置 [CREDITONHOLD]
*/
public void setCreditonhold(Integer creditonhold){
this.creditonhold = creditonhold ;
this.modify("creditonhold",creditonhold);
}
/**
* 设置 [ADDRESS1_ADDRESSID]
*/
public void setAddress1Addressid(String address1Addressid){
this.address1Addressid = address1Addressid ;
this.modify("address1_addressid",address1Addressid);
}
/**
* 设置 [ADDRESS2_POSTOFFICEBOX]
*/
public void setAddress2Postofficebox(String address2Postofficebox){
this.address2Postofficebox = address2Postofficebox ;
this.modify("address2_postofficebox",address2Postofficebox);
}
/**
* 设置 [SLANAME]
*/
public void setSlaname(String slaname){
this.slaname = slaname ;
this.modify("slaname",slaname);
}
/**
* 设置 [ORIGINATINGLEADID]
*/
public void setOriginatingleadid(String originatingleadid){
this.originatingleadid = originatingleadid ;
this.modify("originatingleadid",originatingleadid);
}
/**
* 设置 [TRANSACTIONCURRENCYID]
*/
public void setTransactioncurrencyid(String transactioncurrencyid){
this.transactioncurrencyid = transactioncurrencyid ;
this.modify("transactioncurrencyid",transactioncurrencyid);
}
/**
* 设置 [DEFAULTPRICELEVELID]
*/
public void setDefaultpricelevelid(String defaultpricelevelid){
this.defaultpricelevelid = defaultpricelevelid ;
this.modify("defaultpricelevelid",defaultpricelevelid);
}
/**
* 设置 [PARENTACCOUNTID]
*/
public void setParentaccountid(String parentaccountid){
this.parentaccountid = parentaccountid ;
this.modify("parentaccountid",parentaccountid);
}
/**
* 设置 [PREFERREDEQUIPMENTID]
*/
public void setPreferredequipmentid(String preferredequipmentid){
this.preferredequipmentid = preferredequipmentid ;
this.modify("preferredequipmentid",preferredequipmentid);
}
/**
* 设置 [TERRITORYID]
*/
public void setTerritoryid(String territoryid){
this.territoryid = territoryid ;
this.modify("territoryid",territoryid);
}
/**
* 设置 [PRIMARYCONTACTID]
*/
public void setPrimarycontactid(String primarycontactid){
this.primarycontactid = primarycontactid ;
this.modify("primarycontactid",primarycontactid);
}
/**
* 设置 [SLAID]
*/
public void setSlaid(String slaid){
this.slaid = slaid ;
this.modify("slaid",slaid);
}
/**
* 设置 [PREFERREDSERVICEID]
*/
public void setPreferredserviceid(String preferredserviceid){
this.preferredserviceid = preferredserviceid ;
this.modify("preferredserviceid",preferredserviceid);
}
/**
* 设置 [ORIGINATINGLEADNAME]
*/
public void setOriginatingleadname(String originatingleadname){
this.originatingleadname = originatingleadname ;
this.modify("originatingleadname",originatingleadname);
}
/**
* 设置 [DEFAULTPRICELEVELNAME]
*/
public void setDefaultpricelevelname(String defaultpricelevelname){
this.defaultpricelevelname = defaultpricelevelname ;
this.modify("defaultpricelevelname",defaultpricelevelname);
}
/**
* 设置 [TERRITORYNAME]
*/
public void setTerritoryname(String territoryname){
this.territoryname = territoryname ;
this.modify("territoryname",territoryname);
}
/**
* 设置 [PARENTACCOUNTNAME]
*/
public void setParentaccountname(String parentaccountname){
this.parentaccountname = parentaccountname ;
this.modify("parentaccountname",parentaccountname);
}
/**
* 设置 [PREFERREDEQUIPMENTNAME]
*/
public void setPreferredequipmentname(String preferredequipmentname){
this.preferredequipmentname = preferredequipmentname ;
this.modify("preferredequipmentname",preferredequipmentname);
}
/**
* 设置 [PREFERREDSERVICENAME]
*/
public void setPreferredservicename(String preferredservicename){
this.preferredservicename = preferredservicename ;
this.modify("preferredservicename",preferredservicename);
}
/**
* 设置 [PRIMARYCONTACTNAME]
*/
public void setPrimarycontactname(String primarycontactname){
this.primarycontactname = primarycontactname ;
this.modify("primarycontactname",primarycontactname);
}
/**
* 设置 [TRANSACTIONCURRENCYNAME]
*/
public void setTransactioncurrencyname(String transactioncurrencyname){
this.transactioncurrencyname = transactioncurrencyname ;
this.modify("transactioncurrencyname",transactioncurrencyname);
}
/**
* 设置 [CHILDACCOUNTCOUNT]
*/
public void setChildaccountcount(Integer childaccountcount){
this.childaccountcount = childaccountcount ;
this.modify("childaccountcount",childaccountcount);
}
}
package cn.ibizlab.businesscentral.centralapi.dto;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.fastjson.annotation.JSONField;
import cn.ibizlab.businesscentral.util.domain.DTOBase;
import lombok.Data;
/**
* 服务DTO对象[QuoteDetailDTO]
*/
@Data
public class QuoteDetailDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 属性 [OWNERIDTYPE]
*
*/
@JSONField(name = "owneridtype")
@JsonProperty("owneridtype")
private String owneridtype;
/**
* 属性 [BASEAMOUNT_BASE]
*
*/
@JSONField(name = "baseamount_base")
@JsonProperty("baseamount_base")
private BigDecimal baseamountBase;
/**
* 属性 [SHIPTO_FAX]
*
*/
@JSONField(name = "shipto_fax")
@JsonProperty("shipto_fax")
private String shiptoFax;
/**
* 属性 [SHIPTO_COUNTRY]
*
*/
@JSONField(name = "shipto_country")
@JsonProperty("shipto_country")
private String shiptoCountry;
/**
* 属性 [SHIPTO_NAME]
*
*/
@JSONField(name = "shipto_name")
@JsonProperty("shipto_name")
private String shiptoName;
/**
* 属性 [SHIPTO_LINE1]
*
*/
@JSONField(name = "shipto_line1")
@JsonProperty("shipto_line1")
private String shiptoLine1;
/**
* 属性 [WILLCALL]
*
*/
@JSONField(name = "willcall")
@JsonProperty("willcall")
private Integer willcall;
/**
* 属性 [SALESREPIDYOMINAME]
*
*/
@JSONField(name = "salesrepidyominame")
@JsonProperty("salesrepidyominame")
private String salesrepidyominame;
/**
* 属性 [EXTENDEDAMOUNT_BASE]
*
*/
@JSONField(name = "extendedamount_base")
@JsonProperty("extendedamount_base")
private BigDecimal extendedamountBase;
/**
* 属性 [LINEITEMNUMBER]
*
*/
@JSONField(name = "lineitemnumber")
@JsonProperty("lineitemnumber")
private Integer lineitemnumber;
/**
* 属性 [DESCRIPTION]
*
*/
@JSONField(name = "description")
@JsonProperty("description")
private String description;
/**
* 属性 [SHIPTO_CONTACTNAME]
*
*/
@JSONField(name = "shipto_contactname")
@JsonProperty("shipto_contactname")
private String shiptoContactname;
/**
* 属性 [UPDATEDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "updatedate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate")
private Timestamp updatedate;
/**
* 属性 [QUOTEDETAILID]
*
*/
@JSONField(name = "quotedetailid")
@JsonProperty("quotedetailid")
private String quotedetailid;
/**
* 属性 [IMPORTSEQUENCENUMBER]
*
*/
@JSONField(name = "importsequencenumber")
@JsonProperty("importsequencenumber")
private Integer importsequencenumber;
/**
* 属性 [SHIPTO_TELEPHONE]
*
*/
@JSONField(name = "shipto_telephone")
@JsonProperty("shipto_telephone")
private String shiptoTelephone;
/**
* 属性 [MANUALDISCOUNTAMOUNT_BASE]
*
*/
@JSONField(name = "manualdiscountamount_base")
@JsonProperty("manualdiscountamount_base")
private BigDecimal manualdiscountamountBase;
/**
* 属性 [VOLUMEDISCOUNTAMOUNT_BASE]
*
*/
@JSONField(name = "volumediscountamount_base")
@JsonProperty("volumediscountamount_base")
private BigDecimal volumediscountamountBase;
/**
* 属性 [MANUALDISCOUNTAMOUNT]
*
*/
@JSONField(name = "manualdiscountamount")
@JsonProperty("manualdiscountamount")
private BigDecimal manualdiscountamount;
/**
* 属性 [SHIPTO_FREIGHTTERMSCODE]
*
*/
@JSONField(name = "shipto_freighttermscode")
@JsonProperty("shipto_freighttermscode")
private String shiptoFreighttermscode;
/**
* 属性 [SHIPTO_CITY]
*
*/
@JSONField(name = "shipto_city")
@JsonProperty("shipto_city")
private String shiptoCity;
/**
* 属性 [CREATEDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "createdate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate")
private Timestamp createdate;
/**
* 属性 [PRICINGERRORCODE]
*
*/
@JSONField(name = "pricingerrorcode")
@JsonProperty("pricingerrorcode")
private String pricingerrorcode;
/**
* 属性 [EXCHANGERATE]
*
*/
@JSONField(name = "exchangerate")
@JsonProperty("exchangerate")
private BigDecimal exchangerate;
/**
* 属性 [SHIPTO_STATEORPROVINCE]
*
*/
@JSONField(name = "shipto_stateorprovince")
@JsonProperty("shipto_stateorprovince")
private String shiptoStateorprovince;
/**
* 属性 [SHIPTO_LINE2]
*
*/
@JSONField(name = "shipto_line2")
@JsonProperty("shipto_line2")
private String shiptoLine2;
/**
* 属性 [OVERRIDDENCREATEDON]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "overriddencreatedon" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("overriddencreatedon")
private Timestamp overriddencreatedon;
/**
* 属性 [CREATEMAN]
*
*/
@JSONField(name = "createman")
@JsonProperty("createman")
private String createman;
/**
* 属性 [QUANTITY]
*
*/
@JSONField(name = "quantity")
@JsonProperty("quantity")
private BigDecimal quantity;
/**
* 属性 [QUOTESTATECODE]
*
*/
@JSONField(name = "quotestatecode")
@JsonProperty("quotestatecode")
private String quotestatecode;
/**
* 属性 [SHIPTO_LINE3]
*
*/
@JSONField(name = "shipto_line3")
@JsonProperty("shipto_line3")
private String shiptoLine3;
/**
* 属性 [OWNERID]
*
*/
@JSONField(name = "ownerid")
@JsonProperty("ownerid")
private String ownerid;
/**
* 属性 [PRICEPERUNIT_BASE]
*
*/
@JSONField(name = "priceperunit_base")
@JsonProperty("priceperunit_base")
private BigDecimal priceperunitBase;
/**
* 属性 [PRODUCTDESCRIPTION]
*
*/
@JSONField(name = "productdescription")
@JsonProperty("productdescription")
private String productdescription;
/**
* 属性 [PRICEPERUNIT]
*
*/
@JSONField(name = "priceperunit")
@JsonProperty("priceperunit")
private BigDecimal priceperunit;
/**
* 属性 [UPDATEMAN]
*
*/
@JSONField(name = "updateman")
@JsonProperty("updateman")
private String updateman;
/**
* 属性 [TAX_BASE]
*
*/
@JSONField(name = "tax_base")
@JsonProperty("tax_base")
private BigDecimal taxBase;
/**
* 属性 [PRICEOVERRIDDEN]
*
*/
@JSONField(name = "priceoverridden")
@JsonProperty("priceoverridden")
private Integer priceoverridden;
/**
* 属性 [UTCCONVERSIONTIMEZONECODE]
*
*/
@JSONField(name = "utcconversiontimezonecode")
@JsonProperty("utcconversiontimezonecode")
private Integer utcconversiontimezonecode;
/**
* 属性 [PARENTBUNDLEID]
*
*/
@JSONField(name = "parentbundleid")
@JsonProperty("parentbundleid")
private String parentbundleid;
/**
* 属性 [QUOTEDETAILNAME]
*
*/
@JSONField(name = "quotedetailname")
@JsonProperty("quotedetailname")
private String quotedetailname;
/**
* 属性 [PRODUCTOVERRIDDEN]
*
*/
@JSONField(name = "productoverridden")
@JsonProperty("productoverridden")
private Integer productoverridden;
/**
* 属性 [PRODUCTNAME]
*
*/
@JSONField(name = "productname")
@JsonProperty("productname")
private String productname;
/**
* 属性 [TIMEZONERULEVERSIONNUMBER]
*
*/
@JSONField(name = "timezoneruleversionnumber")
@JsonProperty("timezoneruleversionnumber")
private Integer timezoneruleversionnumber;
/**
* 属性 [SHIPTO_POSTALCODE]
*
*/
@JSONField(name = "shipto_postalcode")
@JsonProperty("shipto_postalcode")
private String shiptoPostalcode;
/**
* 属性 [SHIPTO_ADDRESSID]
*
*/
@JSONField(name = "shipto_addressid")
@JsonProperty("shipto_addressid")
private String shiptoAddressid;
/**
* 属性 [PROPERTYCONFIGURATIONSTATUS]
*
*/
@JSONField(name = "propertyconfigurationstatus")
@JsonProperty("propertyconfigurationstatus")
private String propertyconfigurationstatus;
/**
* 属性 [TAX]
*
*/
@JSONField(name = "tax")
@JsonProperty("tax")
private BigDecimal tax;
/**
* 属性 [REQUESTDELIVERYBY]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "requestdeliveryby" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("requestdeliveryby")
private Timestamp requestdeliveryby;
/**
* 属性 [PRODUCTTYPECODE]
*
*/
@JSONField(name = "producttypecode")
@JsonProperty("producttypecode")
private String producttypecode;
/**
* 属性 [OWNERIDYOMINAME]
*
*/
@JSONField(name = "owneridyominame")
@JsonProperty("owneridyominame")
private String owneridyominame;
/**
* 属性 [BASEAMOUNT]
*
*/
@JSONField(name = "baseamount")
@JsonProperty("baseamount")
private BigDecimal baseamount;
/**
* 属性 [EXTENDEDAMOUNT]
*
*/
@JSONField(name = "extendedamount")
@JsonProperty("extendedamount")
private BigDecimal extendedamount;
/**
* 属性 [VOLUMEDISCOUNTAMOUNT]
*
*/
@JSONField(name = "volumediscountamount")
@JsonProperty("volumediscountamount")
private BigDecimal volumediscountamount;
/**
* 属性 [SKIPPRICECALCULATION]
*
*/
@JSONField(name = "skippricecalculation")
@JsonProperty("skippricecalculation")
private String skippricecalculation;
/**
* 属性 [PRODUCTASSOCIATIONID]
*
*/
@JSONField(name = "productassociationid")
@JsonProperty("productassociationid")
private String productassociationid;
/**
* 属性 [VERSIONNUMBER]
*
*/
@JSONField(name = "versionnumber")
@JsonProperty("versionnumber")
private BigInteger versionnumber;
/**
* 属性 [SALESREPID]
*
*/
@JSONField(name = "salesrepid")
@JsonProperty("salesrepid")
private String salesrepid;
/**
* 属性 [SEQUENCENUMBER]
*
*/
@JSONField(name = "sequencenumber")
@JsonProperty("sequencenumber")
private Integer sequencenumber;
/**
* 属性 [PARENTBUNDLEIDREF]
*
*/
@JSONField(name = "parentbundleidref")
@JsonProperty("parentbundleidref")
private String parentbundleidref;
/**
* 属性 [QUOTEID]
*
*/
@JSONField(name = "quoteid")
@JsonProperty("quoteid")
private String quoteid;
/**
* 属性 [PRODUCTID]
*
*/
@JSONField(name = "productid")
@JsonProperty("productid")
private String productid;
/**
* 属性 [TRANSACTIONCURRENCYID]
*
*/
@JSONField(name = "transactioncurrencyid")
@JsonProperty("transactioncurrencyid")
private String transactioncurrencyid;
/**
* 属性 [UOMID]
*
*/
@JSONField(name = "uomid")
@JsonProperty("uomid")
private String uomid;
/**
* 设置 [OWNERIDTYPE]
*/
public void setOwneridtype(String owneridtype){
this.owneridtype = owneridtype ;
this.modify("owneridtype",owneridtype);
}
/**
* 设置 [BASEAMOUNT_BASE]
*/
public void setBaseamountBase(BigDecimal baseamountBase){
this.baseamountBase = baseamountBase ;
this.modify("baseamount_base",baseamountBase);
}
/**
* 设置 [SHIPTO_FAX]
*/
public void setShiptoFax(String shiptoFax){
this.shiptoFax = shiptoFax ;
this.modify("shipto_fax",shiptoFax);
}
/**
* 设置 [SHIPTO_COUNTRY]
*/
public void setShiptoCountry(String shiptoCountry){
this.shiptoCountry = shiptoCountry ;
this.modify("shipto_country",shiptoCountry);
}
/**
* 设置 [SHIPTO_NAME]
*/
public void setShiptoName(String shiptoName){
this.shiptoName = shiptoName ;
this.modify("shipto_name",shiptoName);
}
/**
* 设置 [SHIPTO_LINE1]
*/
public void setShiptoLine1(String shiptoLine1){
this.shiptoLine1 = shiptoLine1 ;
this.modify("shipto_line1",shiptoLine1);
}
/**
* 设置 [WILLCALL]
*/
public void setWillcall(Integer willcall){
this.willcall = willcall ;
this.modify("willcall",willcall);
}
/**
* 设置 [SALESREPIDYOMINAME]
*/
public void setSalesrepidyominame(String salesrepidyominame){
this.salesrepidyominame = salesrepidyominame ;
this.modify("salesrepidyominame",salesrepidyominame);
}
/**
* 设置 [EXTENDEDAMOUNT_BASE]
*/
public void setExtendedamountBase(BigDecimal extendedamountBase){
this.extendedamountBase = extendedamountBase ;
this.modify("extendedamount_base",extendedamountBase);
}
/**
* 设置 [LINEITEMNUMBER]
*/
public void setLineitemnumber(Integer lineitemnumber){
this.lineitemnumber = lineitemnumber ;
this.modify("lineitemnumber",lineitemnumber);
}
/**
* 设置 [DESCRIPTION]
*/
public void setDescription(String description){
this.description = description ;
this.modify("description",description);
}
/**
* 设置 [SHIPTO_CONTACTNAME]
*/
public void setShiptoContactname(String shiptoContactname){
this.shiptoContactname = shiptoContactname ;
this.modify("shipto_contactname",shiptoContactname);
}
/**
* 设置 [IMPORTSEQUENCENUMBER]
*/
public void setImportsequencenumber(Integer importsequencenumber){
this.importsequencenumber = importsequencenumber ;
this.modify("importsequencenumber",importsequencenumber);
}
/**
* 设置 [SHIPTO_TELEPHONE]
*/
public void setShiptoTelephone(String shiptoTelephone){
this.shiptoTelephone = shiptoTelephone ;
this.modify("shipto_telephone",shiptoTelephone);
}
/**
* 设置 [MANUALDISCOUNTAMOUNT_BASE]
*/
public void setManualdiscountamountBase(BigDecimal manualdiscountamountBase){
this.manualdiscountamountBase = manualdiscountamountBase ;
this.modify("manualdiscountamount_base",manualdiscountamountBase);
}
/**
* 设置 [VOLUMEDISCOUNTAMOUNT_BASE]
*/
public void setVolumediscountamountBase(BigDecimal volumediscountamountBase){
this.volumediscountamountBase = volumediscountamountBase ;
this.modify("volumediscountamount_base",volumediscountamountBase);
}
/**
* 设置 [MANUALDISCOUNTAMOUNT]
*/
public void setManualdiscountamount(BigDecimal manualdiscountamount){
this.manualdiscountamount = manualdiscountamount ;
this.modify("manualdiscountamount",manualdiscountamount);
}
/**
* 设置 [SHIPTO_FREIGHTTERMSCODE]
*/
public void setShiptoFreighttermscode(String shiptoFreighttermscode){
this.shiptoFreighttermscode = shiptoFreighttermscode ;
this.modify("shipto_freighttermscode",shiptoFreighttermscode);
}
/**
* 设置 [SHIPTO_CITY]
*/
public void setShiptoCity(String shiptoCity){
this.shiptoCity = shiptoCity ;
this.modify("shipto_city",shiptoCity);
}
/**
* 设置 [PRICINGERRORCODE]
*/
public void setPricingerrorcode(String pricingerrorcode){
this.pricingerrorcode = pricingerrorcode ;
this.modify("pricingerrorcode",pricingerrorcode);
}
/**
* 设置 [EXCHANGERATE]
*/
public void setExchangerate(BigDecimal exchangerate){
this.exchangerate = exchangerate ;
this.modify("exchangerate",exchangerate);
}
/**
* 设置 [SHIPTO_STATEORPROVINCE]
*/
public void setShiptoStateorprovince(String shiptoStateorprovince){
this.shiptoStateorprovince = shiptoStateorprovince ;
this.modify("shipto_stateorprovince",shiptoStateorprovince);
}
/**
* 设置 [SHIPTO_LINE2]
*/
public void setShiptoLine2(String shiptoLine2){
this.shiptoLine2 = shiptoLine2 ;
this.modify("shipto_line2",shiptoLine2);
}
/**
* 设置 [OVERRIDDENCREATEDON]
*/
public void setOverriddencreatedon(Timestamp overriddencreatedon){
this.overriddencreatedon = overriddencreatedon ;
this.modify("overriddencreatedon",overriddencreatedon);
}
/**
* 设置 [QUANTITY]
*/
public void setQuantity(BigDecimal quantity){
this.quantity = quantity ;
this.modify("quantity",quantity);
}
/**
* 设置 [QUOTESTATECODE]
*/
public void setQuotestatecode(String quotestatecode){
this.quotestatecode = quotestatecode ;
this.modify("quotestatecode",quotestatecode);
}
/**
* 设置 [SHIPTO_LINE3]
*/
public void setShiptoLine3(String shiptoLine3){
this.shiptoLine3 = shiptoLine3 ;
this.modify("shipto_line3",shiptoLine3);
}
/**
* 设置 [OWNERID]
*/
public void setOwnerid(String ownerid){
this.ownerid = ownerid ;
this.modify("ownerid",ownerid);
}
/**
* 设置 [PRICEPERUNIT_BASE]
*/
public void setPriceperunitBase(BigDecimal priceperunitBase){
this.priceperunitBase = priceperunitBase ;
this.modify("priceperunit_base",priceperunitBase);
}
/**
* 设置 [PRODUCTDESCRIPTION]
*/
public void setProductdescription(String productdescription){
this.productdescription = productdescription ;
this.modify("productdescription",productdescription);
}
/**
* 设置 [PRICEPERUNIT]
*/
public void setPriceperunit(BigDecimal priceperunit){
this.priceperunit = priceperunit ;
this.modify("priceperunit",priceperunit);
}
/**
* 设置 [TAX_BASE]
*/
public void setTaxBase(BigDecimal taxBase){
this.taxBase = taxBase ;
this.modify("tax_base",taxBase);
}
/**
* 设置 [PRICEOVERRIDDEN]
*/
public void setPriceoverridden(Integer priceoverridden){
this.priceoverridden = priceoverridden ;
this.modify("priceoverridden",priceoverridden);
}
/**
* 设置 [UTCCONVERSIONTIMEZONECODE]
*/
public void setUtcconversiontimezonecode(Integer utcconversiontimezonecode){
this.utcconversiontimezonecode = utcconversiontimezonecode ;
this.modify("utcconversiontimezonecode",utcconversiontimezonecode);
}
/**
* 设置 [PARENTBUNDLEID]
*/
public void setParentbundleid(String parentbundleid){
this.parentbundleid = parentbundleid ;
this.modify("parentbundleid",parentbundleid);
}
/**
* 设置 [QUOTEDETAILNAME]
*/
public void setQuotedetailname(String quotedetailname){
this.quotedetailname = quotedetailname ;
this.modify("quotedetailname",quotedetailname);
}
/**
* 设置 [PRODUCTOVERRIDDEN]
*/
public void setProductoverridden(Integer productoverridden){
this.productoverridden = productoverridden ;
this.modify("productoverridden",productoverridden);
}
/**
* 设置 [PRODUCTNAME]
*/
public void setProductname(String productname){
this.productname = productname ;
this.modify("productname",productname);
}
/**
* 设置 [TIMEZONERULEVERSIONNUMBER]
*/
public void setTimezoneruleversionnumber(Integer timezoneruleversionnumber){
this.timezoneruleversionnumber = timezoneruleversionnumber ;
this.modify("timezoneruleversionnumber",timezoneruleversionnumber);
}
/**
* 设置 [SHIPTO_POSTALCODE]
*/
public void setShiptoPostalcode(String shiptoPostalcode){
this.shiptoPostalcode = shiptoPostalcode ;
this.modify("shipto_postalcode",shiptoPostalcode);
}
/**
* 设置 [SHIPTO_ADDRESSID]
*/
public void setShiptoAddressid(String shiptoAddressid){
this.shiptoAddressid = shiptoAddressid ;
this.modify("shipto_addressid",shiptoAddressid);
}
/**
* 设置 [PROPERTYCONFIGURATIONSTATUS]
*/
public void setPropertyconfigurationstatus(String propertyconfigurationstatus){
this.propertyconfigurationstatus = propertyconfigurationstatus ;
this.modify("propertyconfigurationstatus",propertyconfigurationstatus);
}
/**
* 设置 [TAX]
*/
public void setTax(BigDecimal tax){
this.tax = tax ;
this.modify("tax",tax);
}
/**
* 设置 [REQUESTDELIVERYBY]
*/
public void setRequestdeliveryby(Timestamp requestdeliveryby){
this.requestdeliveryby = requestdeliveryby ;
this.modify("requestdeliveryby",requestdeliveryby);
}
/**
* 设置 [PRODUCTTYPECODE]
*/
public void setProducttypecode(String producttypecode){
this.producttypecode = producttypecode ;
this.modify("producttypecode",producttypecode);
}
/**
* 设置 [OWNERIDYOMINAME]
*/
public void setOwneridyominame(String owneridyominame){
this.owneridyominame = owneridyominame ;
this.modify("owneridyominame",owneridyominame);
}
/**
* 设置 [BASEAMOUNT]
*/
public void setBaseamount(BigDecimal baseamount){
this.baseamount = baseamount ;
this.modify("baseamount",baseamount);
}
/**
* 设置 [EXTENDEDAMOUNT]
*/
public void setExtendedamount(BigDecimal extendedamount){
this.extendedamount = extendedamount ;
this.modify("extendedamount",extendedamount);
}
/**
* 设置 [VOLUMEDISCOUNTAMOUNT]
*/
public void setVolumediscountamount(BigDecimal volumediscountamount){
this.volumediscountamount = volumediscountamount ;
this.modify("volumediscountamount",volumediscountamount);
}
/**
* 设置 [SKIPPRICECALCULATION]
*/
public void setSkippricecalculation(String skippricecalculation){
this.skippricecalculation = skippricecalculation ;
this.modify("skippricecalculation",skippricecalculation);
}
/**
* 设置 [PRODUCTASSOCIATIONID]
*/
public void setProductassociationid(String productassociationid){
this.productassociationid = productassociationid ;
this.modify("productassociationid",productassociationid);
}
/**
* 设置 [VERSIONNUMBER]
*/
public void setVersionnumber(BigInteger versionnumber){
this.versionnumber = versionnumber ;
this.modify("versionnumber",versionnumber);
}
/**
* 设置 [SALESREPID]
*/
public void setSalesrepid(String salesrepid){
this.salesrepid = salesrepid ;
this.modify("salesrepid",salesrepid);
}
/**
* 设置 [SEQUENCENUMBER]
*/
public void setSequencenumber(Integer sequencenumber){
this.sequencenumber = sequencenumber ;
this.modify("sequencenumber",sequencenumber);
}
/**
* 设置 [PARENTBUNDLEIDREF]
*/
public void setParentbundleidref(String parentbundleidref){
this.parentbundleidref = parentbundleidref ;
this.modify("parentbundleidref",parentbundleidref);
}
/**
* 设置 [QUOTEID]
*/
public void setQuoteid(String quoteid){
this.quoteid = quoteid ;
this.modify("quoteid",quoteid);
}
/**
* 设置 [PRODUCTID]
*/
public void setProductid(String productid){
this.productid = productid ;
this.modify("productid",productid);
}
/**
* 设置 [TRANSACTIONCURRENCYID]
*/
public void setTransactioncurrencyid(String transactioncurrencyid){
this.transactioncurrencyid = transactioncurrencyid ;
this.modify("transactioncurrencyid",transactioncurrencyid);
}
/**
* 设置 [UOMID]
*/
public void setUomid(String uomid){
this.uomid = uomid ;
this.modify("uomid",uomid);
}
}
package cn.ibizlab.businesscentral.centralapi.mapping;
import org.mapstruct.*;
import cn.ibizlab.businesscentral.core.base.domain.Account;
import cn.ibizlab.businesscentral.centralapi.dto.ParentAccountDTO;
import cn.ibizlab.businesscentral.util.domain.MappingBase;
import org.mapstruct.factory.Mappers;
@Mapper(componentModel = "spring", uses = {},
nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE,
nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface ParentAccountMapping extends MappingBase<ParentAccountDTO, Account> {
}
package cn.ibizlab.businesscentral.centralapi.mapping;
import org.mapstruct.*;
import cn.ibizlab.businesscentral.core.sales.domain.QuoteDetail;
import cn.ibizlab.businesscentral.centralapi.dto.QuoteDetailDTO;
import cn.ibizlab.businesscentral.util.domain.MappingBase;
import org.mapstruct.factory.Mappers;
@Mapper(componentModel = "spring", uses = {},
nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE,
nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface QuoteDetailMapping extends MappingBase<QuoteDetailDTO, QuoteDetail> {
}
......@@ -179,5 +179,160 @@ public class AccountResource {
return ResponseEntity.status(HttpStatus.OK)
.body(new PageImpl(accountMapping.toDto(domains.getContent()), context.getPageable(), domains.getTotalElements()));
}
@PreAuthorize("hasPermission(this.accountMapping.toDomain(#accountdto),'iBizBusinessCentral-Account-Create')")
@ApiOperation(value = "根据客户建立客户", tags = {"客户" }, notes = "根据客户建立客户")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts")
@Transactional
public ResponseEntity<AccountDTO> createByAccount(@PathVariable("account_id") String account_id, @RequestBody AccountDTO accountdto) {
Account domain = accountMapping.toDomain(accountdto);
domain.setParentaccountid(account_id);
accountService.create(domain);
AccountDTO dto = accountMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto);
}
@PreAuthorize("hasPermission(this.accountMapping.toDomain(#accountdtos),'iBizBusinessCentral-Account-Create')")
@ApiOperation(value = "根据客户批量建立客户", tags = {"客户" }, notes = "根据客户批量建立客户")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/batch")
public ResponseEntity<Boolean> createBatchByAccount(@PathVariable("account_id") String account_id, @RequestBody List<AccountDTO> accountdtos) {
List<Account> domainlist=accountMapping.toDomain(accountdtos);
for(Account domain:domainlist){
domain.setParentaccountid(account_id);
}
accountService.createBatch(domainlist);
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@PreAuthorize("hasPermission(this.accountService.get(#account_id),'iBizBusinessCentral-Account-Update')")
@ApiOperation(value = "根据客户更新客户", tags = {"客户" }, notes = "根据客户更新客户")
@RequestMapping(method = RequestMethod.PUT, value = "/parentaccounts/{account_id}/accounts/{account_id}")
@Transactional
public ResponseEntity<AccountDTO> updateByAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @RequestBody AccountDTO accountdto) {
Account domain = accountMapping.toDomain(accountdto);
domain.setParentaccountid(account_id);
domain.setAccountid(account_id);
accountService.update(domain);
AccountDTO dto = accountMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto);
}
@PreAuthorize("hasPermission(this.accountService.getAccountByEntities(this.accountMapping.toDomain(#accountdtos)),'iBizBusinessCentral-Account-Update')")
@ApiOperation(value = "根据客户批量更新客户", tags = {"客户" }, notes = "根据客户批量更新客户")
@RequestMapping(method = RequestMethod.PUT, value = "/parentaccounts/{account_id}/accounts/batch")
public ResponseEntity<Boolean> updateBatchByAccount(@PathVariable("account_id") String account_id, @RequestBody List<AccountDTO> accountdtos) {
List<Account> domainlist=accountMapping.toDomain(accountdtos);
for(Account domain:domainlist){
domain.setParentaccountid(account_id);
}
accountService.updateBatch(domainlist);
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@PreAuthorize("hasPermission(this.accountService.get(#account_id),'iBizBusinessCentral-Account-Remove')")
@ApiOperation(value = "根据客户删除客户", tags = {"客户" }, notes = "根据客户删除客户")
@RequestMapping(method = RequestMethod.DELETE, value = "/parentaccounts/{account_id}/accounts/{account_id}")
@Transactional
public ResponseEntity<Boolean> removeByAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id) {
return ResponseEntity.status(HttpStatus.OK).body(accountService.remove(account_id));
}
@PreAuthorize("hasPermission(this.accountService.getAccountByIds(#ids),'iBizBusinessCentral-Account-Remove')")
@ApiOperation(value = "根据客户批量删除客户", tags = {"客户" }, notes = "根据客户批量删除客户")
@RequestMapping(method = RequestMethod.DELETE, value = "/parentaccounts/{account_id}/accounts/batch")
public ResponseEntity<Boolean> removeBatchByAccount(@RequestBody List<String> ids) {
accountService.removeBatch(ids);
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@PreAuthorize("hasPermission(this.accountMapping.toDomain(#accountdto),'iBizBusinessCentral-Account-Save')")
@ApiOperation(value = "根据客户保存客户", tags = {"客户" }, notes = "根据客户保存客户")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/save")
public ResponseEntity<Boolean> saveByAccount(@PathVariable("account_id") String account_id, @RequestBody AccountDTO accountdto) {
Account domain = accountMapping.toDomain(accountdto);
domain.setParentaccountid(account_id);
return ResponseEntity.status(HttpStatus.OK).body(accountService.save(domain));
}
@PreAuthorize("hasPermission(this.accountMapping.toDomain(#accountdtos),'iBizBusinessCentral-Account-Save')")
@ApiOperation(value = "根据客户批量保存客户", tags = {"客户" }, notes = "根据客户批量保存客户")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/savebatch")
public ResponseEntity<Boolean> saveBatchByAccount(@PathVariable("account_id") String account_id, @RequestBody List<AccountDTO> accountdtos) {
List<Account> domainlist=accountMapping.toDomain(accountdtos);
for(Account domain:domainlist){
domain.setParentaccountid(account_id);
}
accountService.saveBatch(domainlist);
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@ApiOperation(value = "根据客户检查客户", tags = {"客户" }, notes = "根据客户检查客户")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/checkkey")
public ResponseEntity<Boolean> checkKeyByAccount(@PathVariable("account_id") String account_id, @RequestBody AccountDTO accountdto) {
return ResponseEntity.status(HttpStatus.OK).body(accountService.checkKey(accountMapping.toDomain(accountdto)));
}
@PostAuthorize("hasPermission(this.accountMapping.toDomain(returnObject.body),'iBizBusinessCentral-Account-Get')")
@ApiOperation(value = "根据客户获取客户", tags = {"客户" }, notes = "根据客户获取客户")
@RequestMapping(method = RequestMethod.GET, value = "/parentaccounts/{account_id}/accounts/{account_id}")
public ResponseEntity<AccountDTO> getByAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id) {
Account domain = accountService.get(account_id);
AccountDTO dto = accountMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto);
}
@ApiOperation(value = "根据客户获取客户草稿", tags = {"客户" }, notes = "根据客户获取客户草稿")
@RequestMapping(method = RequestMethod.GET, value = "/parentaccounts/{account_id}/accounts/getdraft")
public ResponseEntity<AccountDTO> getDraftByAccount(@PathVariable("account_id") String account_id) {
Account domain = new Account();
domain.setParentaccountid(account_id);
return ResponseEntity.status(HttpStatus.OK).body(accountMapping.toDto(accountService.getDraft(domain)));
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Account-Root-all')")
@ApiOperation(value = "根据客户获取Root", tags = {"客户" } ,notes = "根据客户获取Root")
@RequestMapping(method= RequestMethod.GET , value="/parentaccounts/{account_id}/accounts/fetchroot")
public ResponseEntity<List<AccountDTO>> fetchAccountRootByAccount(@PathVariable("account_id") String account_id,AccountSearchContext context) {
context.setN_parentaccountid_eq(account_id);
Page<Account> domains = accountService.searchRoot(context) ;
List<AccountDTO> list = accountMapping.toDto(domains.getContent());
return ResponseEntity.status(HttpStatus.OK)
.header("x-page", String.valueOf(context.getPageable().getPageNumber()))
.header("x-per-page", String.valueOf(context.getPageable().getPageSize()))
.header("x-total", String.valueOf(domains.getTotalElements()))
.body(list);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Account-Root-all')")
@ApiOperation(value = "根据客户查询Root", tags = {"客户" } ,notes = "根据客户查询Root")
@RequestMapping(method= RequestMethod.POST , value="/parentaccounts/{account_id}/accounts/searchroot")
public ResponseEntity<Page<AccountDTO>> searchAccountRootByAccount(@PathVariable("account_id") String account_id, @RequestBody AccountSearchContext context) {
context.setN_parentaccountid_eq(account_id);
Page<Account> domains = accountService.searchRoot(context) ;
return ResponseEntity.status(HttpStatus.OK)
.body(new PageImpl(accountMapping.toDto(domains.getContent()), context.getPageable(), domains.getTotalElements()));
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Account-Default-all')")
@ApiOperation(value = "根据客户获取DEFAULT", tags = {"客户" } ,notes = "根据客户获取DEFAULT")
@RequestMapping(method= RequestMethod.GET , value="/parentaccounts/{account_id}/accounts/fetchdefault")
public ResponseEntity<List<AccountDTO>> fetchAccountDefaultByAccount(@PathVariable("account_id") String account_id,AccountSearchContext context) {
context.setN_parentaccountid_eq(account_id);
Page<Account> domains = accountService.searchDefault(context) ;
List<AccountDTO> list = accountMapping.toDto(domains.getContent());
return ResponseEntity.status(HttpStatus.OK)
.header("x-page", String.valueOf(context.getPageable().getPageNumber()))
.header("x-per-page", String.valueOf(context.getPageable().getPageSize()))
.header("x-total", String.valueOf(domains.getTotalElements()))
.body(list);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Account-Default-all')")
@ApiOperation(value = "根据客户查询DEFAULT", tags = {"客户" } ,notes = "根据客户查询DEFAULT")
@RequestMapping(method= RequestMethod.POST , value="/parentaccounts/{account_id}/accounts/searchdefault")
public ResponseEntity<Page<AccountDTO>> searchAccountDefaultByAccount(@PathVariable("account_id") String account_id, @RequestBody AccountSearchContext context) {
context.setN_parentaccountid_eq(account_id);
Page<Account> domains = accountService.searchDefault(context) ;
return ResponseEntity.status(HttpStatus.OK)
.body(new PageImpl(accountMapping.toDto(domains.getContent()), context.getPageable(), domains.getTotalElements()));
}
}
......@@ -291,14 +291,14 @@ public class ContactResource {
.body(new PageImpl(contactMapping.toDto(domains.getContent()), context.getPageable(), domains.getTotalElements()));
}
@ApiOperation(value = "根据客户客户检查联系人", tags = {"联系人" }, notes = "根据客户客户检查联系人")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/checkkey")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/checkkey")
public ResponseEntity<Boolean> checkKeyByAccountAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @RequestBody ContactDTO contactdto) {
return ResponseEntity.status(HttpStatus.OK).body(contactService.checkKey(contactMapping.toDomain(contactdto)));
}
@PreAuthorize("hasPermission(this.contactService.get(#contact_id),'iBizBusinessCentral-Contact-Remove')")
@ApiOperation(value = "根据客户客户删除联系人", tags = {"联系人" }, notes = "根据客户客户删除联系人")
@RequestMapping(method = RequestMethod.DELETE, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}")
@RequestMapping(method = RequestMethod.DELETE, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}")
@Transactional
public ResponseEntity<Boolean> removeByAccountAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id) {
return ResponseEntity.status(HttpStatus.OK).body(contactService.remove(contact_id));
......@@ -306,7 +306,7 @@ public class ContactResource {
@PreAuthorize("hasPermission(this.contactService.getContactByIds(#ids),'iBizBusinessCentral-Contact-Remove')")
@ApiOperation(value = "根据客户客户批量删除联系人", tags = {"联系人" }, notes = "根据客户客户批量删除联系人")
@RequestMapping(method = RequestMethod.DELETE, value = "/accounts/{account_id}/accounts/{account_id}/contacts/batch")
@RequestMapping(method = RequestMethod.DELETE, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/batch")
public ResponseEntity<Boolean> removeBatchByAccountAccount(@RequestBody List<String> ids) {
contactService.removeBatch(ids);
return ResponseEntity.status(HttpStatus.OK).body(true);
......@@ -314,7 +314,7 @@ public class ContactResource {
@PostAuthorize("hasPermission(this.contactMapping.toDomain(returnObject.body),'iBizBusinessCentral-Contact-Get')")
@ApiOperation(value = "根据客户客户获取联系人", tags = {"联系人" }, notes = "根据客户客户获取联系人")
@RequestMapping(method = RequestMethod.GET, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}")
@RequestMapping(method = RequestMethod.GET, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}")
public ResponseEntity<ContactDTO> getByAccountAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id) {
Contact domain = contactService.get(contact_id);
ContactDTO dto = contactMapping.toDto(domain);
......@@ -323,7 +323,7 @@ public class ContactResource {
@PreAuthorize("hasPermission(this.contactMapping.toDomain(#contactdto),'iBizBusinessCentral-Contact-Save')")
@ApiOperation(value = "根据客户客户保存联系人", tags = {"联系人" }, notes = "根据客户客户保存联系人")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/save")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/save")
public ResponseEntity<Boolean> saveByAccountAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @RequestBody ContactDTO contactdto) {
Contact domain = contactMapping.toDomain(contactdto);
domain.setCustomerid(account_id);
......@@ -332,7 +332,7 @@ public class ContactResource {
@PreAuthorize("hasPermission(this.contactMapping.toDomain(#contactdtos),'iBizBusinessCentral-Contact-Save')")
@ApiOperation(value = "根据客户客户批量保存联系人", tags = {"联系人" }, notes = "根据客户客户批量保存联系人")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/savebatch")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/savebatch")
public ResponseEntity<Boolean> saveBatchByAccountAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @RequestBody List<ContactDTO> contactdtos) {
List<Contact> domainlist=contactMapping.toDomain(contactdtos);
for(Contact domain:domainlist){
......@@ -344,7 +344,7 @@ public class ContactResource {
@PreAuthorize("hasPermission(this.contactService.get(#contact_id),'iBizBusinessCentral-Contact-Update')")
@ApiOperation(value = "根据客户客户更新联系人", tags = {"联系人" }, notes = "根据客户客户更新联系人")
@RequestMapping(method = RequestMethod.PUT, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}")
@RequestMapping(method = RequestMethod.PUT, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}")
@Transactional
public ResponseEntity<ContactDTO> updateByAccountAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @RequestBody ContactDTO contactdto) {
Contact domain = contactMapping.toDomain(contactdto);
......@@ -357,7 +357,7 @@ public class ContactResource {
@PreAuthorize("hasPermission(this.contactService.getContactByEntities(this.contactMapping.toDomain(#contactdtos)),'iBizBusinessCentral-Contact-Update')")
@ApiOperation(value = "根据客户客户批量更新联系人", tags = {"联系人" }, notes = "根据客户客户批量更新联系人")
@RequestMapping(method = RequestMethod.PUT, value = "/accounts/{account_id}/accounts/{account_id}/contacts/batch")
@RequestMapping(method = RequestMethod.PUT, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/batch")
public ResponseEntity<Boolean> updateBatchByAccountAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @RequestBody List<ContactDTO> contactdtos) {
List<Contact> domainlist=contactMapping.toDomain(contactdtos);
for(Contact domain:domainlist){
......@@ -368,7 +368,7 @@ public class ContactResource {
}
@ApiOperation(value = "根据客户客户获取联系人草稿", tags = {"联系人" }, notes = "根据客户客户获取联系人草稿")
@RequestMapping(method = RequestMethod.GET, value = "/accounts/{account_id}/accounts/{account_id}/contacts/getdraft")
@RequestMapping(method = RequestMethod.GET, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/getdraft")
public ResponseEntity<ContactDTO> getDraftByAccountAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id) {
Contact domain = new Contact();
domain.setCustomerid(account_id);
......@@ -377,7 +377,7 @@ public class ContactResource {
@PreAuthorize("hasPermission(this.contactMapping.toDomain(#contactdto),'iBizBusinessCentral-Contact-Create')")
@ApiOperation(value = "根据客户客户建立联系人", tags = {"联系人" }, notes = "根据客户客户建立联系人")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts")
@Transactional
public ResponseEntity<ContactDTO> createByAccountAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @RequestBody ContactDTO contactdto) {
Contact domain = contactMapping.toDomain(contactdto);
......@@ -389,7 +389,7 @@ public class ContactResource {
@PreAuthorize("hasPermission(this.contactMapping.toDomain(#contactdtos),'iBizBusinessCentral-Contact-Create')")
@ApiOperation(value = "根据客户客户批量建立联系人", tags = {"联系人" }, notes = "根据客户客户批量建立联系人")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/batch")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/batch")
public ResponseEntity<Boolean> createBatchByAccountAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @RequestBody List<ContactDTO> contactdtos) {
List<Contact> domainlist=contactMapping.toDomain(contactdtos);
for(Contact domain:domainlist){
......@@ -401,7 +401,7 @@ public class ContactResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Contact-Default-all')")
@ApiOperation(value = "根据客户客户获取DEFAULT", tags = {"联系人" } ,notes = "根据客户客户获取DEFAULT")
@RequestMapping(method= RequestMethod.GET , value="/accounts/{account_id}/accounts/{account_id}/contacts/fetchdefault")
@RequestMapping(method= RequestMethod.GET , value="/parentaccounts/{account_id}/accounts/{account_id}/contacts/fetchdefault")
public ResponseEntity<List<ContactDTO>> fetchContactDefaultByAccountAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id,ContactSearchContext context) {
context.setN_customerid_eq(account_id);
Page<Contact> domains = contactService.searchDefault(context) ;
......@@ -415,7 +415,7 @@ public class ContactResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Contact-Default-all')")
@ApiOperation(value = "根据客户客户查询DEFAULT", tags = {"联系人" } ,notes = "根据客户客户查询DEFAULT")
@RequestMapping(method= RequestMethod.POST , value="/accounts/{account_id}/accounts/{account_id}/contacts/searchdefault")
@RequestMapping(method= RequestMethod.POST , value="/parentaccounts/{account_id}/accounts/{account_id}/contacts/searchdefault")
public ResponseEntity<Page<ContactDTO>> searchContactDefaultByAccountAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @RequestBody ContactSearchContext context) {
context.setN_customerid_eq(account_id);
Page<Contact> domains = contactService.searchDefault(context) ;
......
......@@ -652,7 +652,7 @@ public class LeadResource {
}
@PreAuthorize("hasPermission(this.leadService.get(#lead_id),'iBizBusinessCentral-Lead-Update')")
@ApiOperation(value = "根据客户客户联系人更新潜在顾客", tags = {"潜在顾客" }, notes = "根据客户客户联系人更新潜在顾客")
@RequestMapping(method = RequestMethod.PUT, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}")
@RequestMapping(method = RequestMethod.PUT, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}")
@Transactional
public ResponseEntity<LeadDTO> updateByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("lead_id") String lead_id, @RequestBody LeadDTO leaddto) {
Lead domain = leadMapping.toDomain(leaddto);
......@@ -665,7 +665,7 @@ public class LeadResource {
@PreAuthorize("hasPermission(this.leadService.getLeadByEntities(this.leadMapping.toDomain(#leaddtos)),'iBizBusinessCentral-Lead-Update')")
@ApiOperation(value = "根据客户客户联系人批量更新潜在顾客", tags = {"潜在顾客" }, notes = "根据客户客户联系人批量更新潜在顾客")
@RequestMapping(method = RequestMethod.PUT, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/batch")
@RequestMapping(method = RequestMethod.PUT, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/batch")
public ResponseEntity<Boolean> updateBatchByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @RequestBody List<LeadDTO> leaddtos) {
List<Lead> domainlist=leadMapping.toDomain(leaddtos);
for(Lead domain:domainlist){
......@@ -676,7 +676,7 @@ public class LeadResource {
}
@ApiOperation(value = "根据客户客户联系人获取潜在顾客草稿", tags = {"潜在顾客" }, notes = "根据客户客户联系人获取潜在顾客草稿")
@RequestMapping(method = RequestMethod.GET, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/getdraft")
@RequestMapping(method = RequestMethod.GET, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/getdraft")
public ResponseEntity<LeadDTO> getDraftByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id) {
Lead domain = new Lead();
domain.setParentcontactid(contact_id);
......@@ -685,7 +685,7 @@ public class LeadResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Lead-DisQualification-all')")
@ApiOperation(value = "根据客户客户联系人潜在顾客", tags = {"潜在顾客" }, notes = "根据客户客户联系人潜在顾客")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/disqualification")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/disqualification")
@Transactional
public ResponseEntity<LeadDTO> disQualificationByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("lead_id") String lead_id, @RequestBody LeadDTO leaddto) {
Lead domain = leadMapping.toDomain(leaddto);
......@@ -696,14 +696,14 @@ public class LeadResource {
}
@ApiOperation(value = "根据客户客户联系人检查潜在顾客", tags = {"潜在顾客" }, notes = "根据客户客户联系人检查潜在顾客")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/checkkey")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/checkkey")
public ResponseEntity<Boolean> checkKeyByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @RequestBody LeadDTO leaddto) {
return ResponseEntity.status(HttpStatus.OK).body(leadService.checkKey(leadMapping.toDomain(leaddto)));
}
@PostAuthorize("hasPermission(this.leadMapping.toDomain(returnObject.body),'iBizBusinessCentral-Lead-Get')")
@ApiOperation(value = "根据客户客户联系人获取潜在顾客", tags = {"潜在顾客" }, notes = "根据客户客户联系人获取潜在顾客")
@RequestMapping(method = RequestMethod.GET, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}")
@RequestMapping(method = RequestMethod.GET, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}")
public ResponseEntity<LeadDTO> getByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("lead_id") String lead_id) {
Lead domain = leadService.get(lead_id);
LeadDTO dto = leadMapping.toDto(domain);
......@@ -712,7 +712,7 @@ public class LeadResource {
@PreAuthorize("hasPermission(this.leadMapping.toDomain(#leaddto),'iBizBusinessCentral-Lead-Save')")
@ApiOperation(value = "根据客户客户联系人保存潜在顾客", tags = {"潜在顾客" }, notes = "根据客户客户联系人保存潜在顾客")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/save")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/save")
public ResponseEntity<Boolean> saveByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @RequestBody LeadDTO leaddto) {
Lead domain = leadMapping.toDomain(leaddto);
domain.setParentcontactid(contact_id);
......@@ -721,7 +721,7 @@ public class LeadResource {
@PreAuthorize("hasPermission(this.leadMapping.toDomain(#leaddtos),'iBizBusinessCentral-Lead-Save')")
@ApiOperation(value = "根据客户客户联系人批量保存潜在顾客", tags = {"潜在顾客" }, notes = "根据客户客户联系人批量保存潜在顾客")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/savebatch")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/savebatch")
public ResponseEntity<Boolean> saveBatchByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @RequestBody List<LeadDTO> leaddtos) {
List<Lead> domainlist=leadMapping.toDomain(leaddtos);
for(Lead domain:domainlist){
......@@ -733,7 +733,7 @@ public class LeadResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Lead-Qualification-all')")
@ApiOperation(value = "根据客户客户联系人潜在顾客", tags = {"潜在顾客" }, notes = "根据客户客户联系人潜在顾客")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/qualification")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/qualification")
@Transactional
public ResponseEntity<LeadDTO> qualificationByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("lead_id") String lead_id, @RequestBody LeadDTO leaddto) {
Lead domain = leadMapping.toDomain(leaddto);
......@@ -745,7 +745,7 @@ public class LeadResource {
@PreAuthorize("hasPermission(this.leadMapping.toDomain(#leaddto),'iBizBusinessCentral-Lead-Create')")
@ApiOperation(value = "根据客户客户联系人建立潜在顾客", tags = {"潜在顾客" }, notes = "根据客户客户联系人建立潜在顾客")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads")
@Transactional
public ResponseEntity<LeadDTO> createByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @RequestBody LeadDTO leaddto) {
Lead domain = leadMapping.toDomain(leaddto);
......@@ -757,7 +757,7 @@ public class LeadResource {
@PreAuthorize("hasPermission(this.leadMapping.toDomain(#leaddtos),'iBizBusinessCentral-Lead-Create')")
@ApiOperation(value = "根据客户客户联系人批量建立潜在顾客", tags = {"潜在顾客" }, notes = "根据客户客户联系人批量建立潜在顾客")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/batch")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/batch")
public ResponseEntity<Boolean> createBatchByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @RequestBody List<LeadDTO> leaddtos) {
List<Lead> domainlist=leadMapping.toDomain(leaddtos);
for(Lead domain:domainlist){
......@@ -769,7 +769,7 @@ public class LeadResource {
@PreAuthorize("hasPermission(this.leadService.get(#lead_id),'iBizBusinessCentral-Lead-Remove')")
@ApiOperation(value = "根据客户客户联系人删除潜在顾客", tags = {"潜在顾客" }, notes = "根据客户客户联系人删除潜在顾客")
@RequestMapping(method = RequestMethod.DELETE, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}")
@RequestMapping(method = RequestMethod.DELETE, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}")
@Transactional
public ResponseEntity<Boolean> removeByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("lead_id") String lead_id) {
return ResponseEntity.status(HttpStatus.OK).body(leadService.remove(lead_id));
......@@ -777,7 +777,7 @@ public class LeadResource {
@PreAuthorize("hasPermission(this.leadService.getLeadByIds(#ids),'iBizBusinessCentral-Lead-Remove')")
@ApiOperation(value = "根据客户客户联系人批量删除潜在顾客", tags = {"潜在顾客" }, notes = "根据客户客户联系人批量删除潜在顾客")
@RequestMapping(method = RequestMethod.DELETE, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/batch")
@RequestMapping(method = RequestMethod.DELETE, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/batch")
public ResponseEntity<Boolean> removeBatchByAccountAccountContact(@RequestBody List<String> ids) {
leadService.removeBatch(ids);
return ResponseEntity.status(HttpStatus.OK).body(true);
......@@ -785,7 +785,7 @@ public class LeadResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Lead-Default-all')")
@ApiOperation(value = "根据客户客户联系人获取DEFAULT", tags = {"潜在顾客" } ,notes = "根据客户客户联系人获取DEFAULT")
@RequestMapping(method= RequestMethod.GET , value="/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/fetchdefault")
@RequestMapping(method= RequestMethod.GET , value="/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/fetchdefault")
public ResponseEntity<List<LeadDTO>> fetchLeadDefaultByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id,LeadSearchContext context) {
context.setN_parentcontactid_eq(contact_id);
Page<Lead> domains = leadService.searchDefault(context) ;
......@@ -799,7 +799,7 @@ public class LeadResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Lead-Default-all')")
@ApiOperation(value = "根据客户客户联系人查询DEFAULT", tags = {"潜在顾客" } ,notes = "根据客户客户联系人查询DEFAULT")
@RequestMapping(method= RequestMethod.POST , value="/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/searchdefault")
@RequestMapping(method= RequestMethod.POST , value="/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/searchdefault")
public ResponseEntity<Page<LeadDTO>> searchLeadDefaultByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @RequestBody LeadSearchContext context) {
context.setN_parentcontactid_eq(contact_id);
Page<Lead> domains = leadService.searchDefault(context) ;
......
......@@ -423,14 +423,14 @@ public class ListAccountResource {
.body(new PageImpl(listaccountMapping.toDto(domains.getContent()), context.getPageable(), domains.getTotalElements()));
}
@ApiOperation(value = "根据客户客户检查营销列表-账户", tags = {"营销列表-账户" }, notes = "根据客户客户检查营销列表-账户")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/listaccounts/checkkey")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/listaccounts/checkkey")
public ResponseEntity<Boolean> checkKeyByAccountAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @RequestBody ListAccountDTO listaccountdto) {
return ResponseEntity.status(HttpStatus.OK).body(listaccountService.checkKey(listaccountMapping.toDomain(listaccountdto)));
}
@PreAuthorize("hasPermission(this.listaccountService.get(#listaccount_id),'iBizBusinessCentral-ListAccount-Remove')")
@ApiOperation(value = "根据客户客户删除营销列表-账户", tags = {"营销列表-账户" }, notes = "根据客户客户删除营销列表-账户")
@RequestMapping(method = RequestMethod.DELETE, value = "/accounts/{account_id}/accounts/{account_id}/listaccounts/{listaccount_id}")
@RequestMapping(method = RequestMethod.DELETE, value = "/parentaccounts/{account_id}/accounts/{account_id}/listaccounts/{listaccount_id}")
@Transactional
public ResponseEntity<Boolean> removeByAccountAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("listaccount_id") String listaccount_id) {
return ResponseEntity.status(HttpStatus.OK).body(listaccountService.remove(listaccount_id));
......@@ -438,7 +438,7 @@ public class ListAccountResource {
@PreAuthorize("hasPermission(this.listaccountService.getListaccountByIds(#ids),'iBizBusinessCentral-ListAccount-Remove')")
@ApiOperation(value = "根据客户客户批量删除营销列表-账户", tags = {"营销列表-账户" }, notes = "根据客户客户批量删除营销列表-账户")
@RequestMapping(method = RequestMethod.DELETE, value = "/accounts/{account_id}/accounts/{account_id}/listaccounts/batch")
@RequestMapping(method = RequestMethod.DELETE, value = "/parentaccounts/{account_id}/accounts/{account_id}/listaccounts/batch")
public ResponseEntity<Boolean> removeBatchByAccountAccount(@RequestBody List<String> ids) {
listaccountService.removeBatch(ids);
return ResponseEntity.status(HttpStatus.OK).body(true);
......@@ -446,7 +446,7 @@ public class ListAccountResource {
@PreAuthorize("hasPermission(this.listaccountMapping.toDomain(#listaccountdto),'iBizBusinessCentral-ListAccount-Save')")
@ApiOperation(value = "根据客户客户保存营销列表-账户", tags = {"营销列表-账户" }, notes = "根据客户客户保存营销列表-账户")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/listaccounts/save")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/listaccounts/save")
public ResponseEntity<Boolean> saveByAccountAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @RequestBody ListAccountDTO listaccountdto) {
ListAccount domain = listaccountMapping.toDomain(listaccountdto);
domain.setEntity2id(account_id);
......@@ -455,7 +455,7 @@ public class ListAccountResource {
@PreAuthorize("hasPermission(this.listaccountMapping.toDomain(#listaccountdtos),'iBizBusinessCentral-ListAccount-Save')")
@ApiOperation(value = "根据客户客户批量保存营销列表-账户", tags = {"营销列表-账户" }, notes = "根据客户客户批量保存营销列表-账户")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/listaccounts/savebatch")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/listaccounts/savebatch")
public ResponseEntity<Boolean> saveBatchByAccountAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @RequestBody List<ListAccountDTO> listaccountdtos) {
List<ListAccount> domainlist=listaccountMapping.toDomain(listaccountdtos);
for(ListAccount domain:domainlist){
......@@ -466,7 +466,7 @@ public class ListAccountResource {
}
@ApiOperation(value = "根据客户客户获取营销列表-账户草稿", tags = {"营销列表-账户" }, notes = "根据客户客户获取营销列表-账户草稿")
@RequestMapping(method = RequestMethod.GET, value = "/accounts/{account_id}/accounts/{account_id}/listaccounts/getdraft")
@RequestMapping(method = RequestMethod.GET, value = "/parentaccounts/{account_id}/accounts/{account_id}/listaccounts/getdraft")
public ResponseEntity<ListAccountDTO> getDraftByAccountAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id) {
ListAccount domain = new ListAccount();
domain.setEntity2id(account_id);
......@@ -475,7 +475,7 @@ public class ListAccountResource {
@PreAuthorize("hasPermission(this.listaccountService.get(#listaccount_id),'iBizBusinessCentral-ListAccount-Update')")
@ApiOperation(value = "根据客户客户更新营销列表-账户", tags = {"营销列表-账户" }, notes = "根据客户客户更新营销列表-账户")
@RequestMapping(method = RequestMethod.PUT, value = "/accounts/{account_id}/accounts/{account_id}/listaccounts/{listaccount_id}")
@RequestMapping(method = RequestMethod.PUT, value = "/parentaccounts/{account_id}/accounts/{account_id}/listaccounts/{listaccount_id}")
@Transactional
public ResponseEntity<ListAccountDTO> updateByAccountAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("listaccount_id") String listaccount_id, @RequestBody ListAccountDTO listaccountdto) {
ListAccount domain = listaccountMapping.toDomain(listaccountdto);
......@@ -488,7 +488,7 @@ public class ListAccountResource {
@PreAuthorize("hasPermission(this.listaccountService.getListaccountByEntities(this.listaccountMapping.toDomain(#listaccountdtos)),'iBizBusinessCentral-ListAccount-Update')")
@ApiOperation(value = "根据客户客户批量更新营销列表-账户", tags = {"营销列表-账户" }, notes = "根据客户客户批量更新营销列表-账户")
@RequestMapping(method = RequestMethod.PUT, value = "/accounts/{account_id}/accounts/{account_id}/listaccounts/batch")
@RequestMapping(method = RequestMethod.PUT, value = "/parentaccounts/{account_id}/accounts/{account_id}/listaccounts/batch")
public ResponseEntity<Boolean> updateBatchByAccountAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @RequestBody List<ListAccountDTO> listaccountdtos) {
List<ListAccount> domainlist=listaccountMapping.toDomain(listaccountdtos);
for(ListAccount domain:domainlist){
......@@ -500,7 +500,7 @@ public class ListAccountResource {
@PostAuthorize("hasPermission(this.listaccountMapping.toDomain(returnObject.body),'iBizBusinessCentral-ListAccount-Get')")
@ApiOperation(value = "根据客户客户获取营销列表-账户", tags = {"营销列表-账户" }, notes = "根据客户客户获取营销列表-账户")
@RequestMapping(method = RequestMethod.GET, value = "/accounts/{account_id}/accounts/{account_id}/listaccounts/{listaccount_id}")
@RequestMapping(method = RequestMethod.GET, value = "/parentaccounts/{account_id}/accounts/{account_id}/listaccounts/{listaccount_id}")
public ResponseEntity<ListAccountDTO> getByAccountAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("listaccount_id") String listaccount_id) {
ListAccount domain = listaccountService.get(listaccount_id);
ListAccountDTO dto = listaccountMapping.toDto(domain);
......@@ -509,7 +509,7 @@ public class ListAccountResource {
@PreAuthorize("hasPermission(this.listaccountMapping.toDomain(#listaccountdto),'iBizBusinessCentral-ListAccount-Create')")
@ApiOperation(value = "根据客户客户建立营销列表-账户", tags = {"营销列表-账户" }, notes = "根据客户客户建立营销列表-账户")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/listaccounts")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/listaccounts")
@Transactional
public ResponseEntity<ListAccountDTO> createByAccountAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @RequestBody ListAccountDTO listaccountdto) {
ListAccount domain = listaccountMapping.toDomain(listaccountdto);
......@@ -521,7 +521,7 @@ public class ListAccountResource {
@PreAuthorize("hasPermission(this.listaccountMapping.toDomain(#listaccountdtos),'iBizBusinessCentral-ListAccount-Create')")
@ApiOperation(value = "根据客户客户批量建立营销列表-账户", tags = {"营销列表-账户" }, notes = "根据客户客户批量建立营销列表-账户")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/listaccounts/batch")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/listaccounts/batch")
public ResponseEntity<Boolean> createBatchByAccountAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @RequestBody List<ListAccountDTO> listaccountdtos) {
List<ListAccount> domainlist=listaccountMapping.toDomain(listaccountdtos);
for(ListAccount domain:domainlist){
......@@ -533,7 +533,7 @@ public class ListAccountResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-ListAccount-Default-all')")
@ApiOperation(value = "根据客户客户获取DEFAULT", tags = {"营销列表-账户" } ,notes = "根据客户客户获取DEFAULT")
@RequestMapping(method= RequestMethod.GET , value="/accounts/{account_id}/accounts/{account_id}/listaccounts/fetchdefault")
@RequestMapping(method= RequestMethod.GET , value="/parentaccounts/{account_id}/accounts/{account_id}/listaccounts/fetchdefault")
public ResponseEntity<List<ListAccountDTO>> fetchListAccountDefaultByAccountAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id,ListAccountSearchContext context) {
context.setN_entity2id_eq(account_id);
Page<ListAccount> domains = listaccountService.searchDefault(context) ;
......@@ -547,7 +547,7 @@ public class ListAccountResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-ListAccount-Default-all')")
@ApiOperation(value = "根据客户客户查询DEFAULT", tags = {"营销列表-账户" } ,notes = "根据客户客户查询DEFAULT")
@RequestMapping(method= RequestMethod.POST , value="/accounts/{account_id}/accounts/{account_id}/listaccounts/searchdefault")
@RequestMapping(method= RequestMethod.POST , value="/parentaccounts/{account_id}/accounts/{account_id}/listaccounts/searchdefault")
public ResponseEntity<Page<ListAccountDTO>> searchListAccountDefaultByAccountAccount(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @RequestBody ListAccountSearchContext context) {
context.setN_entity2id_eq(account_id);
Page<ListAccount> domains = listaccountService.searchDefault(context) ;
......
......@@ -555,7 +555,7 @@ public class ListContactResource {
.body(new PageImpl(listcontactMapping.toDto(domains.getContent()), context.getPageable(), domains.getTotalElements()));
}
@ApiOperation(value = "根据客户客户联系人获取营销列表-联系人草稿", tags = {"营销列表-联系人" }, notes = "根据客户客户联系人获取营销列表-联系人草稿")
@RequestMapping(method = RequestMethod.GET, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts/getdraft")
@RequestMapping(method = RequestMethod.GET, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts/getdraft")
public ResponseEntity<ListContactDTO> getDraftByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id) {
ListContact domain = new ListContact();
domain.setEntity2id(contact_id);
......@@ -563,14 +563,14 @@ public class ListContactResource {
}
@ApiOperation(value = "根据客户客户联系人检查营销列表-联系人", tags = {"营销列表-联系人" }, notes = "根据客户客户联系人检查营销列表-联系人")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts/checkkey")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts/checkkey")
public ResponseEntity<Boolean> checkKeyByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @RequestBody ListContactDTO listcontactdto) {
return ResponseEntity.status(HttpStatus.OK).body(listcontactService.checkKey(listcontactMapping.toDomain(listcontactdto)));
}
@PreAuthorize("hasPermission(this.listcontactService.get(#listcontact_id),'iBizBusinessCentral-ListContact-Remove')")
@ApiOperation(value = "根据客户客户联系人删除营销列表-联系人", tags = {"营销列表-联系人" }, notes = "根据客户客户联系人删除营销列表-联系人")
@RequestMapping(method = RequestMethod.DELETE, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts/{listcontact_id}")
@RequestMapping(method = RequestMethod.DELETE, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts/{listcontact_id}")
@Transactional
public ResponseEntity<Boolean> removeByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("listcontact_id") String listcontact_id) {
return ResponseEntity.status(HttpStatus.OK).body(listcontactService.remove(listcontact_id));
......@@ -578,7 +578,7 @@ public class ListContactResource {
@PreAuthorize("hasPermission(this.listcontactService.getListcontactByIds(#ids),'iBizBusinessCentral-ListContact-Remove')")
@ApiOperation(value = "根据客户客户联系人批量删除营销列表-联系人", tags = {"营销列表-联系人" }, notes = "根据客户客户联系人批量删除营销列表-联系人")
@RequestMapping(method = RequestMethod.DELETE, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts/batch")
@RequestMapping(method = RequestMethod.DELETE, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts/batch")
public ResponseEntity<Boolean> removeBatchByAccountAccountContact(@RequestBody List<String> ids) {
listcontactService.removeBatch(ids);
return ResponseEntity.status(HttpStatus.OK).body(true);
......@@ -586,7 +586,7 @@ public class ListContactResource {
@PreAuthorize("hasPermission(this.listcontactService.get(#listcontact_id),'iBizBusinessCentral-ListContact-Update')")
@ApiOperation(value = "根据客户客户联系人更新营销列表-联系人", tags = {"营销列表-联系人" }, notes = "根据客户客户联系人更新营销列表-联系人")
@RequestMapping(method = RequestMethod.PUT, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts/{listcontact_id}")
@RequestMapping(method = RequestMethod.PUT, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts/{listcontact_id}")
@Transactional
public ResponseEntity<ListContactDTO> updateByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("listcontact_id") String listcontact_id, @RequestBody ListContactDTO listcontactdto) {
ListContact domain = listcontactMapping.toDomain(listcontactdto);
......@@ -599,7 +599,7 @@ public class ListContactResource {
@PreAuthorize("hasPermission(this.listcontactService.getListcontactByEntities(this.listcontactMapping.toDomain(#listcontactdtos)),'iBizBusinessCentral-ListContact-Update')")
@ApiOperation(value = "根据客户客户联系人批量更新营销列表-联系人", tags = {"营销列表-联系人" }, notes = "根据客户客户联系人批量更新营销列表-联系人")
@RequestMapping(method = RequestMethod.PUT, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts/batch")
@RequestMapping(method = RequestMethod.PUT, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts/batch")
public ResponseEntity<Boolean> updateBatchByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @RequestBody List<ListContactDTO> listcontactdtos) {
List<ListContact> domainlist=listcontactMapping.toDomain(listcontactdtos);
for(ListContact domain:domainlist){
......@@ -611,7 +611,7 @@ public class ListContactResource {
@PreAuthorize("hasPermission(this.listcontactMapping.toDomain(#listcontactdto),'iBizBusinessCentral-ListContact-Save')")
@ApiOperation(value = "根据客户客户联系人保存营销列表-联系人", tags = {"营销列表-联系人" }, notes = "根据客户客户联系人保存营销列表-联系人")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts/save")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts/save")
public ResponseEntity<Boolean> saveByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @RequestBody ListContactDTO listcontactdto) {
ListContact domain = listcontactMapping.toDomain(listcontactdto);
domain.setEntity2id(contact_id);
......@@ -620,7 +620,7 @@ public class ListContactResource {
@PreAuthorize("hasPermission(this.listcontactMapping.toDomain(#listcontactdtos),'iBizBusinessCentral-ListContact-Save')")
@ApiOperation(value = "根据客户客户联系人批量保存营销列表-联系人", tags = {"营销列表-联系人" }, notes = "根据客户客户联系人批量保存营销列表-联系人")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts/savebatch")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts/savebatch")
public ResponseEntity<Boolean> saveBatchByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @RequestBody List<ListContactDTO> listcontactdtos) {
List<ListContact> domainlist=listcontactMapping.toDomain(listcontactdtos);
for(ListContact domain:domainlist){
......@@ -632,7 +632,7 @@ public class ListContactResource {
@PostAuthorize("hasPermission(this.listcontactMapping.toDomain(returnObject.body),'iBizBusinessCentral-ListContact-Get')")
@ApiOperation(value = "根据客户客户联系人获取营销列表-联系人", tags = {"营销列表-联系人" }, notes = "根据客户客户联系人获取营销列表-联系人")
@RequestMapping(method = RequestMethod.GET, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts/{listcontact_id}")
@RequestMapping(method = RequestMethod.GET, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts/{listcontact_id}")
public ResponseEntity<ListContactDTO> getByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("listcontact_id") String listcontact_id) {
ListContact domain = listcontactService.get(listcontact_id);
ListContactDTO dto = listcontactMapping.toDto(domain);
......@@ -641,7 +641,7 @@ public class ListContactResource {
@PreAuthorize("hasPermission(this.listcontactMapping.toDomain(#listcontactdto),'iBizBusinessCentral-ListContact-Create')")
@ApiOperation(value = "根据客户客户联系人建立营销列表-联系人", tags = {"营销列表-联系人" }, notes = "根据客户客户联系人建立营销列表-联系人")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts")
@Transactional
public ResponseEntity<ListContactDTO> createByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @RequestBody ListContactDTO listcontactdto) {
ListContact domain = listcontactMapping.toDomain(listcontactdto);
......@@ -653,7 +653,7 @@ public class ListContactResource {
@PreAuthorize("hasPermission(this.listcontactMapping.toDomain(#listcontactdtos),'iBizBusinessCentral-ListContact-Create')")
@ApiOperation(value = "根据客户客户联系人批量建立营销列表-联系人", tags = {"营销列表-联系人" }, notes = "根据客户客户联系人批量建立营销列表-联系人")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts/batch")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts/batch")
public ResponseEntity<Boolean> createBatchByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @RequestBody List<ListContactDTO> listcontactdtos) {
List<ListContact> domainlist=listcontactMapping.toDomain(listcontactdtos);
for(ListContact domain:domainlist){
......@@ -665,7 +665,7 @@ public class ListContactResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-ListContact-Default-all')")
@ApiOperation(value = "根据客户客户联系人获取DEFAULT", tags = {"营销列表-联系人" } ,notes = "根据客户客户联系人获取DEFAULT")
@RequestMapping(method= RequestMethod.GET , value="/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts/fetchdefault")
@RequestMapping(method= RequestMethod.GET , value="/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts/fetchdefault")
public ResponseEntity<List<ListContactDTO>> fetchListContactDefaultByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id,ListContactSearchContext context) {
context.setN_entity2id_eq(contact_id);
Page<ListContact> domains = listcontactService.searchDefault(context) ;
......@@ -679,7 +679,7 @@ public class ListContactResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-ListContact-Default-all')")
@ApiOperation(value = "根据客户客户联系人查询DEFAULT", tags = {"营销列表-联系人" } ,notes = "根据客户客户联系人查询DEFAULT")
@RequestMapping(method= RequestMethod.POST , value="/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts/searchdefault")
@RequestMapping(method= RequestMethod.POST , value="/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/listcontacts/searchdefault")
public ResponseEntity<Page<ListContactDTO>> searchListContactDefaultByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @RequestBody ListContactSearchContext context) {
context.setN_entity2id_eq(contact_id);
Page<ListContact> domains = listcontactService.searchDefault(context) ;
......
......@@ -819,14 +819,14 @@ public class ListLeadResource {
.body(new PageImpl(listleadMapping.toDto(domains.getContent()), context.getPageable(), domains.getTotalElements()));
}
@ApiOperation(value = "根据客户客户联系人潜在顾客检查营销列表-潜在客户", tags = {"营销列表-潜在客户" }, notes = "根据客户客户联系人潜在顾客检查营销列表-潜在客户")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads/checkkey")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads/checkkey")
public ResponseEntity<Boolean> checkKeyByAccountAccountContactLead(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("lead_id") String lead_id, @RequestBody ListLeadDTO listleaddto) {
return ResponseEntity.status(HttpStatus.OK).body(listleadService.checkKey(listleadMapping.toDomain(listleaddto)));
}
@PreAuthorize("hasPermission(this.listleadService.get(#listlead_id),'iBizBusinessCentral-ListLead-Remove')")
@ApiOperation(value = "根据客户客户联系人潜在顾客删除营销列表-潜在客户", tags = {"营销列表-潜在客户" }, notes = "根据客户客户联系人潜在顾客删除营销列表-潜在客户")
@RequestMapping(method = RequestMethod.DELETE, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads/{listlead_id}")
@RequestMapping(method = RequestMethod.DELETE, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads/{listlead_id}")
@Transactional
public ResponseEntity<Boolean> removeByAccountAccountContactLead(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("lead_id") String lead_id, @PathVariable("listlead_id") String listlead_id) {
return ResponseEntity.status(HttpStatus.OK).body(listleadService.remove(listlead_id));
......@@ -834,7 +834,7 @@ public class ListLeadResource {
@PreAuthorize("hasPermission(this.listleadService.getListleadByIds(#ids),'iBizBusinessCentral-ListLead-Remove')")
@ApiOperation(value = "根据客户客户联系人潜在顾客批量删除营销列表-潜在客户", tags = {"营销列表-潜在客户" }, notes = "根据客户客户联系人潜在顾客批量删除营销列表-潜在客户")
@RequestMapping(method = RequestMethod.DELETE, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads/batch")
@RequestMapping(method = RequestMethod.DELETE, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads/batch")
public ResponseEntity<Boolean> removeBatchByAccountAccountContactLead(@RequestBody List<String> ids) {
listleadService.removeBatch(ids);
return ResponseEntity.status(HttpStatus.OK).body(true);
......@@ -842,7 +842,7 @@ public class ListLeadResource {
@PreAuthorize("hasPermission(this.listleadMapping.toDomain(#listleaddto),'iBizBusinessCentral-ListLead-Create')")
@ApiOperation(value = "根据客户客户联系人潜在顾客建立营销列表-潜在客户", tags = {"营销列表-潜在客户" }, notes = "根据客户客户联系人潜在顾客建立营销列表-潜在客户")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads")
@Transactional
public ResponseEntity<ListLeadDTO> createByAccountAccountContactLead(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("lead_id") String lead_id, @RequestBody ListLeadDTO listleaddto) {
ListLead domain = listleadMapping.toDomain(listleaddto);
......@@ -854,7 +854,7 @@ public class ListLeadResource {
@PreAuthorize("hasPermission(this.listleadMapping.toDomain(#listleaddtos),'iBizBusinessCentral-ListLead-Create')")
@ApiOperation(value = "根据客户客户联系人潜在顾客批量建立营销列表-潜在客户", tags = {"营销列表-潜在客户" }, notes = "根据客户客户联系人潜在顾客批量建立营销列表-潜在客户")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads/batch")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads/batch")
public ResponseEntity<Boolean> createBatchByAccountAccountContactLead(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("lead_id") String lead_id, @RequestBody List<ListLeadDTO> listleaddtos) {
List<ListLead> domainlist=listleadMapping.toDomain(listleaddtos);
for(ListLead domain:domainlist){
......@@ -866,7 +866,7 @@ public class ListLeadResource {
@PreAuthorize("hasPermission(this.listleadService.get(#listlead_id),'iBizBusinessCentral-ListLead-Update')")
@ApiOperation(value = "根据客户客户联系人潜在顾客更新营销列表-潜在客户", tags = {"营销列表-潜在客户" }, notes = "根据客户客户联系人潜在顾客更新营销列表-潜在客户")
@RequestMapping(method = RequestMethod.PUT, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads/{listlead_id}")
@RequestMapping(method = RequestMethod.PUT, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads/{listlead_id}")
@Transactional
public ResponseEntity<ListLeadDTO> updateByAccountAccountContactLead(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("lead_id") String lead_id, @PathVariable("listlead_id") String listlead_id, @RequestBody ListLeadDTO listleaddto) {
ListLead domain = listleadMapping.toDomain(listleaddto);
......@@ -879,7 +879,7 @@ public class ListLeadResource {
@PreAuthorize("hasPermission(this.listleadService.getListleadByEntities(this.listleadMapping.toDomain(#listleaddtos)),'iBizBusinessCentral-ListLead-Update')")
@ApiOperation(value = "根据客户客户联系人潜在顾客批量更新营销列表-潜在客户", tags = {"营销列表-潜在客户" }, notes = "根据客户客户联系人潜在顾客批量更新营销列表-潜在客户")
@RequestMapping(method = RequestMethod.PUT, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads/batch")
@RequestMapping(method = RequestMethod.PUT, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads/batch")
public ResponseEntity<Boolean> updateBatchByAccountAccountContactLead(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("lead_id") String lead_id, @RequestBody List<ListLeadDTO> listleaddtos) {
List<ListLead> domainlist=listleadMapping.toDomain(listleaddtos);
for(ListLead domain:domainlist){
......@@ -891,7 +891,7 @@ public class ListLeadResource {
@PreAuthorize("hasPermission(this.listleadMapping.toDomain(#listleaddto),'iBizBusinessCentral-ListLead-Save')")
@ApiOperation(value = "根据客户客户联系人潜在顾客保存营销列表-潜在客户", tags = {"营销列表-潜在客户" }, notes = "根据客户客户联系人潜在顾客保存营销列表-潜在客户")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads/save")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads/save")
public ResponseEntity<Boolean> saveByAccountAccountContactLead(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("lead_id") String lead_id, @RequestBody ListLeadDTO listleaddto) {
ListLead domain = listleadMapping.toDomain(listleaddto);
domain.setEntity2id(lead_id);
......@@ -900,7 +900,7 @@ public class ListLeadResource {
@PreAuthorize("hasPermission(this.listleadMapping.toDomain(#listleaddtos),'iBizBusinessCentral-ListLead-Save')")
@ApiOperation(value = "根据客户客户联系人潜在顾客批量保存营销列表-潜在客户", tags = {"营销列表-潜在客户" }, notes = "根据客户客户联系人潜在顾客批量保存营销列表-潜在客户")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads/savebatch")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads/savebatch")
public ResponseEntity<Boolean> saveBatchByAccountAccountContactLead(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("lead_id") String lead_id, @RequestBody List<ListLeadDTO> listleaddtos) {
List<ListLead> domainlist=listleadMapping.toDomain(listleaddtos);
for(ListLead domain:domainlist){
......@@ -912,7 +912,7 @@ public class ListLeadResource {
@PostAuthorize("hasPermission(this.listleadMapping.toDomain(returnObject.body),'iBizBusinessCentral-ListLead-Get')")
@ApiOperation(value = "根据客户客户联系人潜在顾客获取营销列表-潜在客户", tags = {"营销列表-潜在客户" }, notes = "根据客户客户联系人潜在顾客获取营销列表-潜在客户")
@RequestMapping(method = RequestMethod.GET, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads/{listlead_id}")
@RequestMapping(method = RequestMethod.GET, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads/{listlead_id}")
public ResponseEntity<ListLeadDTO> getByAccountAccountContactLead(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("lead_id") String lead_id, @PathVariable("listlead_id") String listlead_id) {
ListLead domain = listleadService.get(listlead_id);
ListLeadDTO dto = listleadMapping.toDto(domain);
......@@ -920,7 +920,7 @@ public class ListLeadResource {
}
@ApiOperation(value = "根据客户客户联系人潜在顾客获取营销列表-潜在客户草稿", tags = {"营销列表-潜在客户" }, notes = "根据客户客户联系人潜在顾客获取营销列表-潜在客户草稿")
@RequestMapping(method = RequestMethod.GET, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads/getdraft")
@RequestMapping(method = RequestMethod.GET, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads/getdraft")
public ResponseEntity<ListLeadDTO> getDraftByAccountAccountContactLead(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("lead_id") String lead_id) {
ListLead domain = new ListLead();
domain.setEntity2id(lead_id);
......@@ -929,7 +929,7 @@ public class ListLeadResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-ListLead-Default-all')")
@ApiOperation(value = "根据客户客户联系人潜在顾客获取DEFAULT", tags = {"营销列表-潜在客户" } ,notes = "根据客户客户联系人潜在顾客获取DEFAULT")
@RequestMapping(method= RequestMethod.GET , value="/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads/fetchdefault")
@RequestMapping(method= RequestMethod.GET , value="/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads/fetchdefault")
public ResponseEntity<List<ListLeadDTO>> fetchListLeadDefaultByAccountAccountContactLead(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("lead_id") String lead_id,ListLeadSearchContext context) {
context.setN_entity2id_eq(lead_id);
Page<ListLead> domains = listleadService.searchDefault(context) ;
......@@ -943,7 +943,7 @@ public class ListLeadResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-ListLead-Default-all')")
@ApiOperation(value = "根据客户客户联系人潜在顾客查询DEFAULT", tags = {"营销列表-潜在客户" } ,notes = "根据客户客户联系人潜在顾客查询DEFAULT")
@RequestMapping(method= RequestMethod.POST , value="/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads/searchdefault")
@RequestMapping(method= RequestMethod.POST , value="/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/leads/{lead_id}/listleads/searchdefault")
public ResponseEntity<Page<ListLeadDTO>> searchListLeadDefaultByAccountAccountContactLead(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("lead_id") String lead_id, @RequestBody ListLeadSearchContext context) {
context.setN_entity2id_eq(lead_id);
Page<ListLead> domains = listleadService.searchDefault(context) ;
......
......@@ -688,7 +688,7 @@ public class OpportunityCompetitorResource {
}
@PostAuthorize("hasPermission(this.opportunitycompetitorMapping.toDomain(returnObject.body),'iBizBusinessCentral-OpportunityCompetitor-Get')")
@ApiOperation(value = "根据客户客户联系人商机获取商机对手", tags = {"商机对手" }, notes = "根据客户客户联系人商机获取商机对手")
@RequestMapping(method = RequestMethod.GET, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors/{opportunitycompetitor_id}")
@RequestMapping(method = RequestMethod.GET, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors/{opportunitycompetitor_id}")
public ResponseEntity<OpportunityCompetitorDTO> getByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @PathVariable("opportunitycompetitor_id") String opportunitycompetitor_id) {
OpportunityCompetitor domain = opportunitycompetitorService.get(opportunitycompetitor_id);
OpportunityCompetitorDTO dto = opportunitycompetitorMapping.toDto(domain);
......@@ -697,7 +697,7 @@ public class OpportunityCompetitorResource {
@PreAuthorize("hasPermission(this.opportunitycompetitorService.get(#opportunitycompetitor_id),'iBizBusinessCentral-OpportunityCompetitor-Remove')")
@ApiOperation(value = "根据客户客户联系人商机删除商机对手", tags = {"商机对手" }, notes = "根据客户客户联系人商机删除商机对手")
@RequestMapping(method = RequestMethod.DELETE, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors/{opportunitycompetitor_id}")
@RequestMapping(method = RequestMethod.DELETE, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors/{opportunitycompetitor_id}")
@Transactional
public ResponseEntity<Boolean> removeByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @PathVariable("opportunitycompetitor_id") String opportunitycompetitor_id) {
return ResponseEntity.status(HttpStatus.OK).body(opportunitycompetitorService.remove(opportunitycompetitor_id));
......@@ -705,14 +705,14 @@ public class OpportunityCompetitorResource {
@PreAuthorize("hasPermission(this.opportunitycompetitorService.getOpportunitycompetitorByIds(#ids),'iBizBusinessCentral-OpportunityCompetitor-Remove')")
@ApiOperation(value = "根据客户客户联系人商机批量删除商机对手", tags = {"商机对手" }, notes = "根据客户客户联系人商机批量删除商机对手")
@RequestMapping(method = RequestMethod.DELETE, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors/batch")
@RequestMapping(method = RequestMethod.DELETE, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors/batch")
public ResponseEntity<Boolean> removeBatchByAccountAccountContactOpportunity(@RequestBody List<String> ids) {
opportunitycompetitorService.removeBatch(ids);
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@ApiOperation(value = "根据客户客户联系人商机获取商机对手草稿", tags = {"商机对手" }, notes = "根据客户客户联系人商机获取商机对手草稿")
@RequestMapping(method = RequestMethod.GET, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors/getdraft")
@RequestMapping(method = RequestMethod.GET, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors/getdraft")
public ResponseEntity<OpportunityCompetitorDTO> getDraftByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id) {
OpportunityCompetitor domain = new OpportunityCompetitor();
domain.setEntityid(opportunity_id);
......@@ -721,7 +721,7 @@ public class OpportunityCompetitorResource {
@PreAuthorize("hasPermission(this.opportunitycompetitorMapping.toDomain(#opportunitycompetitordto),'iBizBusinessCentral-OpportunityCompetitor-Save')")
@ApiOperation(value = "根据客户客户联系人商机保存商机对手", tags = {"商机对手" }, notes = "根据客户客户联系人商机保存商机对手")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors/save")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors/save")
public ResponseEntity<Boolean> saveByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @RequestBody OpportunityCompetitorDTO opportunitycompetitordto) {
OpportunityCompetitor domain = opportunitycompetitorMapping.toDomain(opportunitycompetitordto);
domain.setEntityid(opportunity_id);
......@@ -730,7 +730,7 @@ public class OpportunityCompetitorResource {
@PreAuthorize("hasPermission(this.opportunitycompetitorMapping.toDomain(#opportunitycompetitordtos),'iBizBusinessCentral-OpportunityCompetitor-Save')")
@ApiOperation(value = "根据客户客户联系人商机批量保存商机对手", tags = {"商机对手" }, notes = "根据客户客户联系人商机批量保存商机对手")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors/savebatch")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors/savebatch")
public ResponseEntity<Boolean> saveBatchByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @RequestBody List<OpportunityCompetitorDTO> opportunitycompetitordtos) {
List<OpportunityCompetitor> domainlist=opportunitycompetitorMapping.toDomain(opportunitycompetitordtos);
for(OpportunityCompetitor domain:domainlist){
......@@ -742,7 +742,7 @@ public class OpportunityCompetitorResource {
@PreAuthorize("hasPermission(this.opportunitycompetitorMapping.toDomain(#opportunitycompetitordto),'iBizBusinessCentral-OpportunityCompetitor-Create')")
@ApiOperation(value = "根据客户客户联系人商机建立商机对手", tags = {"商机对手" }, notes = "根据客户客户联系人商机建立商机对手")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors")
@Transactional
public ResponseEntity<OpportunityCompetitorDTO> createByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @RequestBody OpportunityCompetitorDTO opportunitycompetitordto) {
OpportunityCompetitor domain = opportunitycompetitorMapping.toDomain(opportunitycompetitordto);
......@@ -754,7 +754,7 @@ public class OpportunityCompetitorResource {
@PreAuthorize("hasPermission(this.opportunitycompetitorMapping.toDomain(#opportunitycompetitordtos),'iBizBusinessCentral-OpportunityCompetitor-Create')")
@ApiOperation(value = "根据客户客户联系人商机批量建立商机对手", tags = {"商机对手" }, notes = "根据客户客户联系人商机批量建立商机对手")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors/batch")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors/batch")
public ResponseEntity<Boolean> createBatchByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @RequestBody List<OpportunityCompetitorDTO> opportunitycompetitordtos) {
List<OpportunityCompetitor> domainlist=opportunitycompetitorMapping.toDomain(opportunitycompetitordtos);
for(OpportunityCompetitor domain:domainlist){
......@@ -765,14 +765,14 @@ public class OpportunityCompetitorResource {
}
@ApiOperation(value = "根据客户客户联系人商机检查商机对手", tags = {"商机对手" }, notes = "根据客户客户联系人商机检查商机对手")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors/checkkey")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors/checkkey")
public ResponseEntity<Boolean> checkKeyByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @RequestBody OpportunityCompetitorDTO opportunitycompetitordto) {
return ResponseEntity.status(HttpStatus.OK).body(opportunitycompetitorService.checkKey(opportunitycompetitorMapping.toDomain(opportunitycompetitordto)));
}
@PreAuthorize("hasPermission(this.opportunitycompetitorService.get(#opportunitycompetitor_id),'iBizBusinessCentral-OpportunityCompetitor-Update')")
@ApiOperation(value = "根据客户客户联系人商机更新商机对手", tags = {"商机对手" }, notes = "根据客户客户联系人商机更新商机对手")
@RequestMapping(method = RequestMethod.PUT, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors/{opportunitycompetitor_id}")
@RequestMapping(method = RequestMethod.PUT, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors/{opportunitycompetitor_id}")
@Transactional
public ResponseEntity<OpportunityCompetitorDTO> updateByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @PathVariable("opportunitycompetitor_id") String opportunitycompetitor_id, @RequestBody OpportunityCompetitorDTO opportunitycompetitordto) {
OpportunityCompetitor domain = opportunitycompetitorMapping.toDomain(opportunitycompetitordto);
......@@ -785,7 +785,7 @@ public class OpportunityCompetitorResource {
@PreAuthorize("hasPermission(this.opportunitycompetitorService.getOpportunitycompetitorByEntities(this.opportunitycompetitorMapping.toDomain(#opportunitycompetitordtos)),'iBizBusinessCentral-OpportunityCompetitor-Update')")
@ApiOperation(value = "根据客户客户联系人商机批量更新商机对手", tags = {"商机对手" }, notes = "根据客户客户联系人商机批量更新商机对手")
@RequestMapping(method = RequestMethod.PUT, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors/batch")
@RequestMapping(method = RequestMethod.PUT, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors/batch")
public ResponseEntity<Boolean> updateBatchByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @RequestBody List<OpportunityCompetitorDTO> opportunitycompetitordtos) {
List<OpportunityCompetitor> domainlist=opportunitycompetitorMapping.toDomain(opportunitycompetitordtos);
for(OpportunityCompetitor domain:domainlist){
......@@ -797,7 +797,7 @@ public class OpportunityCompetitorResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-OpportunityCompetitor-Default-all')")
@ApiOperation(value = "根据客户客户联系人商机获取DEFAULT", tags = {"商机对手" } ,notes = "根据客户客户联系人商机获取DEFAULT")
@RequestMapping(method= RequestMethod.GET , value="/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors/fetchdefault")
@RequestMapping(method= RequestMethod.GET , value="/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors/fetchdefault")
public ResponseEntity<List<OpportunityCompetitorDTO>> fetchOpportunityCompetitorDefaultByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id,OpportunityCompetitorSearchContext context) {
context.setN_entityid_eq(opportunity_id);
Page<OpportunityCompetitor> domains = opportunitycompetitorService.searchDefault(context) ;
......@@ -811,7 +811,7 @@ public class OpportunityCompetitorResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-OpportunityCompetitor-Default-all')")
@ApiOperation(value = "根据客户客户联系人商机查询DEFAULT", tags = {"商机对手" } ,notes = "根据客户客户联系人商机查询DEFAULT")
@RequestMapping(method= RequestMethod.POST , value="/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors/searchdefault")
@RequestMapping(method= RequestMethod.POST , value="/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunitycompetitors/searchdefault")
public ResponseEntity<Page<OpportunityCompetitorDTO>> searchOpportunityCompetitorDefaultByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @RequestBody OpportunityCompetitorSearchContext context) {
context.setN_entityid_eq(opportunity_id);
Page<OpportunityCompetitor> domains = opportunitycompetitorService.searchDefault(context) ;
......
......@@ -555,7 +555,7 @@ public class OpportunityProductResource {
.body(new PageImpl(opportunityproductMapping.toDto(domains.getContent()), context.getPageable(), domains.getTotalElements()));
}
@ApiOperation(value = "根据客户客户联系人商机获取商机产品草稿", tags = {"商机产品" }, notes = "根据客户客户联系人商机获取商机产品草稿")
@RequestMapping(method = RequestMethod.GET, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts/getdraft")
@RequestMapping(method = RequestMethod.GET, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts/getdraft")
public ResponseEntity<OpportunityProductDTO> getDraftByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id) {
OpportunityProduct domain = new OpportunityProduct();
domain.setOpportunityid(opportunity_id);
......@@ -564,7 +564,7 @@ public class OpportunityProductResource {
@PreAuthorize("hasPermission(this.opportunityproductMapping.toDomain(#opportunityproductdto),'iBizBusinessCentral-OpportunityProduct-Save')")
@ApiOperation(value = "根据客户客户联系人商机保存商机产品", tags = {"商机产品" }, notes = "根据客户客户联系人商机保存商机产品")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts/save")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts/save")
public ResponseEntity<Boolean> saveByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @RequestBody OpportunityProductDTO opportunityproductdto) {
OpportunityProduct domain = opportunityproductMapping.toDomain(opportunityproductdto);
domain.setOpportunityid(opportunity_id);
......@@ -573,7 +573,7 @@ public class OpportunityProductResource {
@PreAuthorize("hasPermission(this.opportunityproductMapping.toDomain(#opportunityproductdtos),'iBizBusinessCentral-OpportunityProduct-Save')")
@ApiOperation(value = "根据客户客户联系人商机批量保存商机产品", tags = {"商机产品" }, notes = "根据客户客户联系人商机批量保存商机产品")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts/savebatch")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts/savebatch")
public ResponseEntity<Boolean> saveBatchByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @RequestBody List<OpportunityProductDTO> opportunityproductdtos) {
List<OpportunityProduct> domainlist=opportunityproductMapping.toDomain(opportunityproductdtos);
for(OpportunityProduct domain:domainlist){
......@@ -584,14 +584,14 @@ public class OpportunityProductResource {
}
@ApiOperation(value = "根据客户客户联系人商机检查商机产品", tags = {"商机产品" }, notes = "根据客户客户联系人商机检查商机产品")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts/checkkey")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts/checkkey")
public ResponseEntity<Boolean> checkKeyByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @RequestBody OpportunityProductDTO opportunityproductdto) {
return ResponseEntity.status(HttpStatus.OK).body(opportunityproductService.checkKey(opportunityproductMapping.toDomain(opportunityproductdto)));
}
@PreAuthorize("hasPermission(this.opportunityproductService.get(#opportunityproduct_id),'iBizBusinessCentral-OpportunityProduct-Remove')")
@ApiOperation(value = "根据客户客户联系人商机删除商机产品", tags = {"商机产品" }, notes = "根据客户客户联系人商机删除商机产品")
@RequestMapping(method = RequestMethod.DELETE, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts/{opportunityproduct_id}")
@RequestMapping(method = RequestMethod.DELETE, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts/{opportunityproduct_id}")
@Transactional
public ResponseEntity<Boolean> removeByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @PathVariable("opportunityproduct_id") String opportunityproduct_id) {
return ResponseEntity.status(HttpStatus.OK).body(opportunityproductService.remove(opportunityproduct_id));
......@@ -599,7 +599,7 @@ public class OpportunityProductResource {
@PreAuthorize("hasPermission(this.opportunityproductService.getOpportunityproductByIds(#ids),'iBizBusinessCentral-OpportunityProduct-Remove')")
@ApiOperation(value = "根据客户客户联系人商机批量删除商机产品", tags = {"商机产品" }, notes = "根据客户客户联系人商机批量删除商机产品")
@RequestMapping(method = RequestMethod.DELETE, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts/batch")
@RequestMapping(method = RequestMethod.DELETE, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts/batch")
public ResponseEntity<Boolean> removeBatchByAccountAccountContactOpportunity(@RequestBody List<String> ids) {
opportunityproductService.removeBatch(ids);
return ResponseEntity.status(HttpStatus.OK).body(true);
......@@ -607,7 +607,7 @@ public class OpportunityProductResource {
@PreAuthorize("hasPermission(this.opportunityproductService.get(#opportunityproduct_id),'iBizBusinessCentral-OpportunityProduct-Update')")
@ApiOperation(value = "根据客户客户联系人商机更新商机产品", tags = {"商机产品" }, notes = "根据客户客户联系人商机更新商机产品")
@RequestMapping(method = RequestMethod.PUT, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts/{opportunityproduct_id}")
@RequestMapping(method = RequestMethod.PUT, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts/{opportunityproduct_id}")
@Transactional
public ResponseEntity<OpportunityProductDTO> updateByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @PathVariable("opportunityproduct_id") String opportunityproduct_id, @RequestBody OpportunityProductDTO opportunityproductdto) {
OpportunityProduct domain = opportunityproductMapping.toDomain(opportunityproductdto);
......@@ -620,7 +620,7 @@ public class OpportunityProductResource {
@PreAuthorize("hasPermission(this.opportunityproductService.getOpportunityproductByEntities(this.opportunityproductMapping.toDomain(#opportunityproductdtos)),'iBizBusinessCentral-OpportunityProduct-Update')")
@ApiOperation(value = "根据客户客户联系人商机批量更新商机产品", tags = {"商机产品" }, notes = "根据客户客户联系人商机批量更新商机产品")
@RequestMapping(method = RequestMethod.PUT, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts/batch")
@RequestMapping(method = RequestMethod.PUT, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts/batch")
public ResponseEntity<Boolean> updateBatchByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @RequestBody List<OpportunityProductDTO> opportunityproductdtos) {
List<OpportunityProduct> domainlist=opportunityproductMapping.toDomain(opportunityproductdtos);
for(OpportunityProduct domain:domainlist){
......@@ -632,7 +632,7 @@ public class OpportunityProductResource {
@PreAuthorize("hasPermission(this.opportunityproductMapping.toDomain(#opportunityproductdto),'iBizBusinessCentral-OpportunityProduct-Create')")
@ApiOperation(value = "根据客户客户联系人商机建立商机产品", tags = {"商机产品" }, notes = "根据客户客户联系人商机建立商机产品")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts")
@Transactional
public ResponseEntity<OpportunityProductDTO> createByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @RequestBody OpportunityProductDTO opportunityproductdto) {
OpportunityProduct domain = opportunityproductMapping.toDomain(opportunityproductdto);
......@@ -644,7 +644,7 @@ public class OpportunityProductResource {
@PreAuthorize("hasPermission(this.opportunityproductMapping.toDomain(#opportunityproductdtos),'iBizBusinessCentral-OpportunityProduct-Create')")
@ApiOperation(value = "根据客户客户联系人商机批量建立商机产品", tags = {"商机产品" }, notes = "根据客户客户联系人商机批量建立商机产品")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts/batch")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts/batch")
public ResponseEntity<Boolean> createBatchByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @RequestBody List<OpportunityProductDTO> opportunityproductdtos) {
List<OpportunityProduct> domainlist=opportunityproductMapping.toDomain(opportunityproductdtos);
for(OpportunityProduct domain:domainlist){
......@@ -656,7 +656,7 @@ public class OpportunityProductResource {
@PostAuthorize("hasPermission(this.opportunityproductMapping.toDomain(returnObject.body),'iBizBusinessCentral-OpportunityProduct-Get')")
@ApiOperation(value = "根据客户客户联系人商机获取商机产品", tags = {"商机产品" }, notes = "根据客户客户联系人商机获取商机产品")
@RequestMapping(method = RequestMethod.GET, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts/{opportunityproduct_id}")
@RequestMapping(method = RequestMethod.GET, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts/{opportunityproduct_id}")
public ResponseEntity<OpportunityProductDTO> getByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @PathVariable("opportunityproduct_id") String opportunityproduct_id) {
OpportunityProduct domain = opportunityproductService.get(opportunityproduct_id);
OpportunityProductDTO dto = opportunityproductMapping.toDto(domain);
......@@ -665,7 +665,7 @@ public class OpportunityProductResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-OpportunityProduct-Default-all')")
@ApiOperation(value = "根据客户客户联系人商机获取DEFAULT", tags = {"商机产品" } ,notes = "根据客户客户联系人商机获取DEFAULT")
@RequestMapping(method= RequestMethod.GET , value="/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts/fetchdefault")
@RequestMapping(method= RequestMethod.GET , value="/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts/fetchdefault")
public ResponseEntity<List<OpportunityProductDTO>> fetchOpportunityProductDefaultByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id,OpportunityProductSearchContext context) {
context.setN_opportunityid_eq(opportunity_id);
Page<OpportunityProduct> domains = opportunityproductService.searchDefault(context) ;
......@@ -679,7 +679,7 @@ public class OpportunityProductResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-OpportunityProduct-Default-all')")
@ApiOperation(value = "根据客户客户联系人商机查询DEFAULT", tags = {"商机产品" } ,notes = "根据客户客户联系人商机查询DEFAULT")
@RequestMapping(method= RequestMethod.POST , value="/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts/searchdefault")
@RequestMapping(method= RequestMethod.POST , value="/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/opportunityproducts/searchdefault")
public ResponseEntity<Page<OpportunityProductDTO>> searchOpportunityProductDefaultByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @RequestBody OpportunityProductSearchContext context) {
context.setN_opportunityid_eq(opportunity_id);
Page<OpportunityProduct> domains = opportunityproductService.searchDefault(context) ;
......
......@@ -496,7 +496,7 @@ public class OpportunityResource {
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Opportunity-Win-all')")
@ApiOperation(value = "根据客户客户联系人商机", tags = {"商机" }, notes = "根据客户客户联系人商机")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/win")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/win")
@Transactional
public ResponseEntity<OpportunityDTO> winByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @RequestBody OpportunityDTO opportunitydto) {
Opportunity domain = opportunityMapping.toDomain(opportunitydto);
......@@ -508,7 +508,7 @@ public class OpportunityResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Opportunity-Lose-all')")
@ApiOperation(value = "根据客户客户联系人商机", tags = {"商机" }, notes = "根据客户客户联系人商机")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/lose")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/lose")
@Transactional
public ResponseEntity<OpportunityDTO> loseByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @RequestBody OpportunityDTO opportunitydto) {
Opportunity domain = opportunityMapping.toDomain(opportunitydto);
......@@ -520,7 +520,7 @@ public class OpportunityResource {
@PostAuthorize("hasPermission(this.opportunityMapping.toDomain(returnObject.body),'iBizBusinessCentral-Opportunity-Get')")
@ApiOperation(value = "根据客户客户联系人获取商机", tags = {"商机" }, notes = "根据客户客户联系人获取商机")
@RequestMapping(method = RequestMethod.GET, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}")
@RequestMapping(method = RequestMethod.GET, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}")
public ResponseEntity<OpportunityDTO> getByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id) {
Opportunity domain = opportunityService.get(opportunity_id);
OpportunityDTO dto = opportunityMapping.toDto(domain);
......@@ -528,7 +528,7 @@ public class OpportunityResource {
}
@ApiOperation(value = "根据客户客户联系人获取商机草稿", tags = {"商机" }, notes = "根据客户客户联系人获取商机草稿")
@RequestMapping(method = RequestMethod.GET, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/getdraft")
@RequestMapping(method = RequestMethod.GET, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/getdraft")
public ResponseEntity<OpportunityDTO> getDraftByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id) {
Opportunity domain = new Opportunity();
domain.setParentcontactid(contact_id);
......@@ -537,7 +537,7 @@ public class OpportunityResource {
@PreAuthorize("hasPermission(this.opportunityMapping.toDomain(#opportunitydto),'iBizBusinessCentral-Opportunity-Create')")
@ApiOperation(value = "根据客户客户联系人建立商机", tags = {"商机" }, notes = "根据客户客户联系人建立商机")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities")
@Transactional
public ResponseEntity<OpportunityDTO> createByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @RequestBody OpportunityDTO opportunitydto) {
Opportunity domain = opportunityMapping.toDomain(opportunitydto);
......@@ -549,7 +549,7 @@ public class OpportunityResource {
@PreAuthorize("hasPermission(this.opportunityMapping.toDomain(#opportunitydtos),'iBizBusinessCentral-Opportunity-Create')")
@ApiOperation(value = "根据客户客户联系人批量建立商机", tags = {"商机" }, notes = "根据客户客户联系人批量建立商机")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/batch")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/batch")
public ResponseEntity<Boolean> createBatchByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @RequestBody List<OpportunityDTO> opportunitydtos) {
List<Opportunity> domainlist=opportunityMapping.toDomain(opportunitydtos);
for(Opportunity domain:domainlist){
......@@ -561,7 +561,7 @@ public class OpportunityResource {
@PreAuthorize("hasPermission(this.opportunityService.get(#opportunity_id),'iBizBusinessCentral-Opportunity-Remove')")
@ApiOperation(value = "根据客户客户联系人删除商机", tags = {"商机" }, notes = "根据客户客户联系人删除商机")
@RequestMapping(method = RequestMethod.DELETE, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}")
@RequestMapping(method = RequestMethod.DELETE, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}")
@Transactional
public ResponseEntity<Boolean> removeByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id) {
return ResponseEntity.status(HttpStatus.OK).body(opportunityService.remove(opportunity_id));
......@@ -569,7 +569,7 @@ public class OpportunityResource {
@PreAuthorize("hasPermission(this.opportunityService.getOpportunityByIds(#ids),'iBizBusinessCentral-Opportunity-Remove')")
@ApiOperation(value = "根据客户客户联系人批量删除商机", tags = {"商机" }, notes = "根据客户客户联系人批量删除商机")
@RequestMapping(method = RequestMethod.DELETE, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/batch")
@RequestMapping(method = RequestMethod.DELETE, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/batch")
public ResponseEntity<Boolean> removeBatchByAccountAccountContact(@RequestBody List<String> ids) {
opportunityService.removeBatch(ids);
return ResponseEntity.status(HttpStatus.OK).body(true);
......@@ -577,7 +577,7 @@ public class OpportunityResource {
@PreAuthorize("hasPermission(this.opportunityService.get(#opportunity_id),'iBizBusinessCentral-Opportunity-Update')")
@ApiOperation(value = "根据客户客户联系人更新商机", tags = {"商机" }, notes = "根据客户客户联系人更新商机")
@RequestMapping(method = RequestMethod.PUT, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}")
@RequestMapping(method = RequestMethod.PUT, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}")
@Transactional
public ResponseEntity<OpportunityDTO> updateByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @RequestBody OpportunityDTO opportunitydto) {
Opportunity domain = opportunityMapping.toDomain(opportunitydto);
......@@ -590,7 +590,7 @@ public class OpportunityResource {
@PreAuthorize("hasPermission(this.opportunityService.getOpportunityByEntities(this.opportunityMapping.toDomain(#opportunitydtos)),'iBizBusinessCentral-Opportunity-Update')")
@ApiOperation(value = "根据客户客户联系人批量更新商机", tags = {"商机" }, notes = "根据客户客户联系人批量更新商机")
@RequestMapping(method = RequestMethod.PUT, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/batch")
@RequestMapping(method = RequestMethod.PUT, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/batch")
public ResponseEntity<Boolean> updateBatchByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @RequestBody List<OpportunityDTO> opportunitydtos) {
List<Opportunity> domainlist=opportunityMapping.toDomain(opportunitydtos);
for(Opportunity domain:domainlist){
......@@ -601,14 +601,14 @@ public class OpportunityResource {
}
@ApiOperation(value = "根据客户客户联系人检查商机", tags = {"商机" }, notes = "根据客户客户联系人检查商机")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/checkkey")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/checkkey")
public ResponseEntity<Boolean> checkKeyByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @RequestBody OpportunityDTO opportunitydto) {
return ResponseEntity.status(HttpStatus.OK).body(opportunityService.checkKey(opportunityMapping.toDomain(opportunitydto)));
}
@PreAuthorize("hasPermission(this.opportunityMapping.toDomain(#opportunitydto),'iBizBusinessCentral-Opportunity-Save')")
@ApiOperation(value = "根据客户客户联系人保存商机", tags = {"商机" }, notes = "根据客户客户联系人保存商机")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/save")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/save")
public ResponseEntity<Boolean> saveByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @RequestBody OpportunityDTO opportunitydto) {
Opportunity domain = opportunityMapping.toDomain(opportunitydto);
domain.setParentcontactid(contact_id);
......@@ -617,7 +617,7 @@ public class OpportunityResource {
@PreAuthorize("hasPermission(this.opportunityMapping.toDomain(#opportunitydtos),'iBizBusinessCentral-Opportunity-Save')")
@ApiOperation(value = "根据客户客户联系人批量保存商机", tags = {"商机" }, notes = "根据客户客户联系人批量保存商机")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/savebatch")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/savebatch")
public ResponseEntity<Boolean> saveBatchByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @RequestBody List<OpportunityDTO> opportunitydtos) {
List<Opportunity> domainlist=opportunityMapping.toDomain(opportunitydtos);
for(Opportunity domain:domainlist){
......@@ -629,7 +629,7 @@ public class OpportunityResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Opportunity-Default-all')")
@ApiOperation(value = "根据客户客户联系人获取DEFAULT", tags = {"商机" } ,notes = "根据客户客户联系人获取DEFAULT")
@RequestMapping(method= RequestMethod.GET , value="/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/fetchdefault")
@RequestMapping(method= RequestMethod.GET , value="/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/fetchdefault")
public ResponseEntity<List<OpportunityDTO>> fetchOpportunityDefaultByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id,OpportunitySearchContext context) {
context.setN_parentcontactid_eq(contact_id);
Page<Opportunity> domains = opportunityService.searchDefault(context) ;
......@@ -643,7 +643,7 @@ public class OpportunityResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Opportunity-Default-all')")
@ApiOperation(value = "根据客户客户联系人查询DEFAULT", tags = {"商机" } ,notes = "根据客户客户联系人查询DEFAULT")
@RequestMapping(method= RequestMethod.POST , value="/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/searchdefault")
@RequestMapping(method= RequestMethod.POST , value="/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/searchdefault")
public ResponseEntity<Page<OpportunityDTO>> searchOpportunityDefaultByAccountAccountContact(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @RequestBody OpportunitySearchContext context) {
context.setN_parentcontactid_eq(contact_id);
Page<Opportunity> domains = opportunityService.searchDefault(context) ;
......
package cn.ibizlab.businesscentral.centralapi.rest;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSONObject;
import javax.servlet.ServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.http.HttpStatus;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.util.StringUtils;
import org.springframework.context.annotation.Lazy;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.security.access.prepost.PostAuthorize;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import cn.ibizlab.businesscentral.centralapi.dto.*;
import cn.ibizlab.businesscentral.centralapi.mapping.*;
import cn.ibizlab.businesscentral.core.base.domain.Account;
import cn.ibizlab.businesscentral.core.base.service.IAccountService;
import cn.ibizlab.businesscentral.core.base.filter.AccountSearchContext;
@Slf4j
@Api(tags = {"客户" })
@RestController("CentralApi-parentaccount")
@RequestMapping("")
public class ParentAccountResource {
@Autowired
public IAccountService accountService;
@Autowired
@Lazy
public ParentAccountMapping parentaccountMapping;
@PreAuthorize("hasPermission(this.parentaccountMapping.toDomain(#parentaccountdto),'iBizBusinessCentral-Account-Create')")
@ApiOperation(value = "新建客户", tags = {"客户" }, notes = "新建客户")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts")
@Transactional
public ResponseEntity<ParentAccountDTO> create(@RequestBody ParentAccountDTO parentaccountdto) {
Account domain = parentaccountMapping.toDomain(parentaccountdto);
accountService.create(domain);
ParentAccountDTO dto = parentaccountMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto);
}
@PreAuthorize("hasPermission(this.parentaccountMapping.toDomain(#parentaccountdtos),'iBizBusinessCentral-Account-Create')")
@ApiOperation(value = "批量新建客户", tags = {"客户" }, notes = "批量新建客户")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/batch")
public ResponseEntity<Boolean> createBatch(@RequestBody List<ParentAccountDTO> parentaccountdtos) {
accountService.createBatch(parentaccountMapping.toDomain(parentaccountdtos));
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@PreAuthorize("hasPermission(this.accountService.get(#parentaccount_id),'iBizBusinessCentral-Account-Update')")
@ApiOperation(value = "更新客户", tags = {"客户" }, notes = "更新客户")
@RequestMapping(method = RequestMethod.PUT, value = "/parentaccounts/{parentaccount_id}")
@Transactional
public ResponseEntity<ParentAccountDTO> update(@PathVariable("parentaccount_id") String parentaccount_id, @RequestBody ParentAccountDTO parentaccountdto) {
Account domain = parentaccountMapping.toDomain(parentaccountdto);
domain .setAccountid(parentaccount_id);
accountService.update(domain );
ParentAccountDTO dto = parentaccountMapping.toDto(domain );
return ResponseEntity.status(HttpStatus.OK).body(dto);
}
@PreAuthorize("hasPermission(this.accountService.getAccountByEntities(this.parentaccountMapping.toDomain(#parentaccountdtos)),'iBizBusinessCentral-Account-Update')")
@ApiOperation(value = "批量更新客户", tags = {"客户" }, notes = "批量更新客户")
@RequestMapping(method = RequestMethod.PUT, value = "/parentaccounts/batch")
public ResponseEntity<Boolean> updateBatch(@RequestBody List<ParentAccountDTO> parentaccountdtos) {
accountService.updateBatch(parentaccountMapping.toDomain(parentaccountdtos));
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@PreAuthorize("hasPermission(this.accountService.get(#parentaccount_id),'iBizBusinessCentral-Account-Remove')")
@ApiOperation(value = "删除客户", tags = {"客户" }, notes = "删除客户")
@RequestMapping(method = RequestMethod.DELETE, value = "/parentaccounts/{parentaccount_id}")
@Transactional
public ResponseEntity<Boolean> remove(@PathVariable("parentaccount_id") String parentaccount_id) {
return ResponseEntity.status(HttpStatus.OK).body(accountService.remove(parentaccount_id));
}
@PreAuthorize("hasPermission(this.accountService.getAccountByIds(#ids),'iBizBusinessCentral-Account-Remove')")
@ApiOperation(value = "批量删除客户", tags = {"客户" }, notes = "批量删除客户")
@RequestMapping(method = RequestMethod.DELETE, value = "/parentaccounts/batch")
public ResponseEntity<Boolean> removeBatch(@RequestBody List<String> ids) {
accountService.removeBatch(ids);
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@PreAuthorize("hasPermission(this.parentaccountMapping.toDomain(#parentaccountdto),'iBizBusinessCentral-Account-Save')")
@ApiOperation(value = "保存客户", tags = {"客户" }, notes = "保存客户")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/save")
public ResponseEntity<Boolean> save(@RequestBody ParentAccountDTO parentaccountdto) {
return ResponseEntity.status(HttpStatus.OK).body(accountService.save(parentaccountMapping.toDomain(parentaccountdto)));
}
@PreAuthorize("hasPermission(this.parentaccountMapping.toDomain(#parentaccountdtos),'iBizBusinessCentral-Account-Save')")
@ApiOperation(value = "批量保存客户", tags = {"客户" }, notes = "批量保存客户")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/savebatch")
public ResponseEntity<Boolean> saveBatch(@RequestBody List<ParentAccountDTO> parentaccountdtos) {
accountService.saveBatch(parentaccountMapping.toDomain(parentaccountdtos));
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@ApiOperation(value = "检查客户", tags = {"客户" }, notes = "检查客户")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/checkkey")
public ResponseEntity<Boolean> checkKey(@RequestBody ParentAccountDTO parentaccountdto) {
return ResponseEntity.status(HttpStatus.OK).body(accountService.checkKey(parentaccountMapping.toDomain(parentaccountdto)));
}
@PostAuthorize("hasPermission(this.parentaccountMapping.toDomain(returnObject.body),'iBizBusinessCentral-Account-Get')")
@ApiOperation(value = "获取客户", tags = {"客户" }, notes = "获取客户")
@RequestMapping(method = RequestMethod.GET, value = "/parentaccounts/{parentaccount_id}")
public ResponseEntity<ParentAccountDTO> get(@PathVariable("parentaccount_id") String parentaccount_id) {
Account domain = accountService.get(parentaccount_id);
ParentAccountDTO dto = parentaccountMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto);
}
@ApiOperation(value = "获取客户草稿", tags = {"客户" }, notes = "获取客户草稿")
@RequestMapping(method = RequestMethod.GET, value = "/parentaccounts/getdraft")
public ResponseEntity<ParentAccountDTO> getDraft() {
return ResponseEntity.status(HttpStatus.OK).body(parentaccountMapping.toDto(accountService.getDraft(new Account())));
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Account-Root-all')")
@ApiOperation(value = "获取Root", tags = {"客户" } ,notes = "获取Root")
@RequestMapping(method= RequestMethod.GET , value="/parentaccounts/fetchroot")
public ResponseEntity<List<ParentAccountDTO>> fetchRoot(AccountSearchContext context) {
Page<Account> domains = accountService.searchRoot(context) ;
List<ParentAccountDTO> list = parentaccountMapping.toDto(domains.getContent());
return ResponseEntity.status(HttpStatus.OK)
.header("x-page", String.valueOf(context.getPageable().getPageNumber()))
.header("x-per-page", String.valueOf(context.getPageable().getPageSize()))
.header("x-total", String.valueOf(domains.getTotalElements()))
.body(list);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Account-Root-all')")
@ApiOperation(value = "查询Root", tags = {"客户" } ,notes = "查询Root")
@RequestMapping(method= RequestMethod.POST , value="/parentaccounts/searchroot")
public ResponseEntity<Page<ParentAccountDTO>> searchRoot(@RequestBody AccountSearchContext context) {
Page<Account> domains = accountService.searchRoot(context) ;
return ResponseEntity.status(HttpStatus.OK)
.body(new PageImpl(parentaccountMapping.toDto(domains.getContent()), context.getPageable(), domains.getTotalElements()));
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Account-Default-all')")
@ApiOperation(value = "获取DEFAULT", tags = {"客户" } ,notes = "获取DEFAULT")
@RequestMapping(method= RequestMethod.GET , value="/parentaccounts/fetchdefault")
public ResponseEntity<List<ParentAccountDTO>> fetchDefault(AccountSearchContext context) {
Page<Account> domains = accountService.searchDefault(context) ;
List<ParentAccountDTO> list = parentaccountMapping.toDto(domains.getContent());
return ResponseEntity.status(HttpStatus.OK)
.header("x-page", String.valueOf(context.getPageable().getPageNumber()))
.header("x-per-page", String.valueOf(context.getPageable().getPageSize()))
.header("x-total", String.valueOf(domains.getTotalElements()))
.body(list);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Account-Default-all')")
@ApiOperation(value = "查询DEFAULT", tags = {"客户" } ,notes = "查询DEFAULT")
@RequestMapping(method= RequestMethod.POST , value="/parentaccounts/searchdefault")
public ResponseEntity<Page<ParentAccountDTO>> searchDefault(@RequestBody AccountSearchContext context) {
Page<Account> domains = accountService.searchDefault(context) ;
return ResponseEntity.status(HttpStatus.OK)
.body(new PageImpl(parentaccountMapping.toDto(domains.getContent()), context.getPageable(), domains.getTotalElements()));
}
}
package cn.ibizlab.businesscentral.centralapi.rest;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSONObject;
import javax.servlet.ServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.http.HttpStatus;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.util.StringUtils;
import org.springframework.context.annotation.Lazy;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.security.access.prepost.PostAuthorize;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import cn.ibizlab.businesscentral.centralapi.dto.*;
import cn.ibizlab.businesscentral.centralapi.mapping.*;
import cn.ibizlab.businesscentral.core.sales.domain.QuoteDetail;
import cn.ibizlab.businesscentral.core.sales.service.IQuoteDetailService;
import cn.ibizlab.businesscentral.core.sales.filter.QuoteDetailSearchContext;
@Slf4j
@Api(tags = {"报价单产品" })
@RestController("CentralApi-quotedetail")
@RequestMapping("")
public class QuoteDetailResource {
@Autowired
public IQuoteDetailService quotedetailService;
@Autowired
@Lazy
public QuoteDetailMapping quotedetailMapping;
@ApiOperation(value = "获取报价单产品草稿", tags = {"报价单产品" }, notes = "获取报价单产品草稿")
@RequestMapping(method = RequestMethod.GET, value = "/quotedetails/getdraft")
public ResponseEntity<QuoteDetailDTO> getDraft() {
return ResponseEntity.status(HttpStatus.OK).body(quotedetailMapping.toDto(quotedetailService.getDraft(new QuoteDetail())));
}
@PreAuthorize("hasPermission(this.quotedetailService.get(#quotedetail_id),'iBizBusinessCentral-QuoteDetail-Update')")
@ApiOperation(value = "更新报价单产品", tags = {"报价单产品" }, notes = "更新报价单产品")
@RequestMapping(method = RequestMethod.PUT, value = "/quotedetails/{quotedetail_id}")
@Transactional
public ResponseEntity<QuoteDetailDTO> update(@PathVariable("quotedetail_id") String quotedetail_id, @RequestBody QuoteDetailDTO quotedetaildto) {
QuoteDetail domain = quotedetailMapping.toDomain(quotedetaildto);
domain .setQuotedetailid(quotedetail_id);
quotedetailService.update(domain );
QuoteDetailDTO dto = quotedetailMapping.toDto(domain );
return ResponseEntity.status(HttpStatus.OK).body(dto);
}
@PreAuthorize("hasPermission(this.quotedetailService.getQuotedetailByEntities(this.quotedetailMapping.toDomain(#quotedetaildtos)),'iBizBusinessCentral-QuoteDetail-Update')")
@ApiOperation(value = "批量更新报价单产品", tags = {"报价单产品" }, notes = "批量更新报价单产品")
@RequestMapping(method = RequestMethod.PUT, value = "/quotedetails/batch")
public ResponseEntity<Boolean> updateBatch(@RequestBody List<QuoteDetailDTO> quotedetaildtos) {
quotedetailService.updateBatch(quotedetailMapping.toDomain(quotedetaildtos));
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@PreAuthorize("hasPermission(this.quotedetailMapping.toDomain(#quotedetaildto),'iBizBusinessCentral-QuoteDetail-Save')")
@ApiOperation(value = "保存报价单产品", tags = {"报价单产品" }, notes = "保存报价单产品")
@RequestMapping(method = RequestMethod.POST, value = "/quotedetails/save")
public ResponseEntity<Boolean> save(@RequestBody QuoteDetailDTO quotedetaildto) {
return ResponseEntity.status(HttpStatus.OK).body(quotedetailService.save(quotedetailMapping.toDomain(quotedetaildto)));
}
@PreAuthorize("hasPermission(this.quotedetailMapping.toDomain(#quotedetaildtos),'iBizBusinessCentral-QuoteDetail-Save')")
@ApiOperation(value = "批量保存报价单产品", tags = {"报价单产品" }, notes = "批量保存报价单产品")
@RequestMapping(method = RequestMethod.POST, value = "/quotedetails/savebatch")
public ResponseEntity<Boolean> saveBatch(@RequestBody List<QuoteDetailDTO> quotedetaildtos) {
quotedetailService.saveBatch(quotedetailMapping.toDomain(quotedetaildtos));
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@PreAuthorize("hasPermission(this.quotedetailService.get(#quotedetail_id),'iBizBusinessCentral-QuoteDetail-Remove')")
@ApiOperation(value = "删除报价单产品", tags = {"报价单产品" }, notes = "删除报价单产品")
@RequestMapping(method = RequestMethod.DELETE, value = "/quotedetails/{quotedetail_id}")
@Transactional
public ResponseEntity<Boolean> remove(@PathVariable("quotedetail_id") String quotedetail_id) {
return ResponseEntity.status(HttpStatus.OK).body(quotedetailService.remove(quotedetail_id));
}
@PreAuthorize("hasPermission(this.quotedetailService.getQuotedetailByIds(#ids),'iBizBusinessCentral-QuoteDetail-Remove')")
@ApiOperation(value = "批量删除报价单产品", tags = {"报价单产品" }, notes = "批量删除报价单产品")
@RequestMapping(method = RequestMethod.DELETE, value = "/quotedetails/batch")
public ResponseEntity<Boolean> removeBatch(@RequestBody List<String> ids) {
quotedetailService.removeBatch(ids);
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@ApiOperation(value = "检查报价单产品", tags = {"报价单产品" }, notes = "检查报价单产品")
@RequestMapping(method = RequestMethod.POST, value = "/quotedetails/checkkey")
public ResponseEntity<Boolean> checkKey(@RequestBody QuoteDetailDTO quotedetaildto) {
return ResponseEntity.status(HttpStatus.OK).body(quotedetailService.checkKey(quotedetailMapping.toDomain(quotedetaildto)));
}
@PostAuthorize("hasPermission(this.quotedetailMapping.toDomain(returnObject.body),'iBizBusinessCentral-QuoteDetail-Get')")
@ApiOperation(value = "获取报价单产品", tags = {"报价单产品" }, notes = "获取报价单产品")
@RequestMapping(method = RequestMethod.GET, value = "/quotedetails/{quotedetail_id}")
public ResponseEntity<QuoteDetailDTO> get(@PathVariable("quotedetail_id") String quotedetail_id) {
QuoteDetail domain = quotedetailService.get(quotedetail_id);
QuoteDetailDTO dto = quotedetailMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto);
}
@PreAuthorize("hasPermission(this.quotedetailMapping.toDomain(#quotedetaildto),'iBizBusinessCentral-QuoteDetail-Create')")
@ApiOperation(value = "新建报价单产品", tags = {"报价单产品" }, notes = "新建报价单产品")
@RequestMapping(method = RequestMethod.POST, value = "/quotedetails")
@Transactional
public ResponseEntity<QuoteDetailDTO> create(@RequestBody QuoteDetailDTO quotedetaildto) {
QuoteDetail domain = quotedetailMapping.toDomain(quotedetaildto);
quotedetailService.create(domain);
QuoteDetailDTO dto = quotedetailMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto);
}
@PreAuthorize("hasPermission(this.quotedetailMapping.toDomain(#quotedetaildtos),'iBizBusinessCentral-QuoteDetail-Create')")
@ApiOperation(value = "批量新建报价单产品", tags = {"报价单产品" }, notes = "批量新建报价单产品")
@RequestMapping(method = RequestMethod.POST, value = "/quotedetails/batch")
public ResponseEntity<Boolean> createBatch(@RequestBody List<QuoteDetailDTO> quotedetaildtos) {
quotedetailService.createBatch(quotedetailMapping.toDomain(quotedetaildtos));
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-QuoteDetail-Default-all')")
@ApiOperation(value = "获取DEFAULT", tags = {"报价单产品" } ,notes = "获取DEFAULT")
@RequestMapping(method= RequestMethod.GET , value="/quotedetails/fetchdefault")
public ResponseEntity<List<QuoteDetailDTO>> fetchDefault(QuoteDetailSearchContext context) {
Page<QuoteDetail> domains = quotedetailService.searchDefault(context) ;
List<QuoteDetailDTO> list = quotedetailMapping.toDto(domains.getContent());
return ResponseEntity.status(HttpStatus.OK)
.header("x-page", String.valueOf(context.getPageable().getPageNumber()))
.header("x-per-page", String.valueOf(context.getPageable().getPageSize()))
.header("x-total", String.valueOf(domains.getTotalElements()))
.body(list);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-QuoteDetail-Default-all')")
@ApiOperation(value = "查询DEFAULT", tags = {"报价单产品" } ,notes = "查询DEFAULT")
@RequestMapping(method= RequestMethod.POST , value="/quotedetails/searchdefault")
public ResponseEntity<Page<QuoteDetailDTO>> searchDefault(@RequestBody QuoteDetailSearchContext context) {
Page<QuoteDetail> domains = quotedetailService.searchDefault(context) ;
return ResponseEntity.status(HttpStatus.OK)
.body(new PageImpl(quotedetailMapping.toDto(domains.getContent()), context.getPageable(), domains.getTotalElements()));
}
}
......@@ -556,7 +556,7 @@ public class QuoteResource {
}
@PreAuthorize("hasPermission(this.quoteMapping.toDomain(#quotedto),'iBizBusinessCentral-Quote-Create')")
@ApiOperation(value = "根据客户客户联系人商机建立报价单", tags = {"报价单" }, notes = "根据客户客户联系人商机建立报价单")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes")
@Transactional
public ResponseEntity<QuoteDTO> createByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @RequestBody QuoteDTO quotedto) {
Quote domain = quoteMapping.toDomain(quotedto);
......@@ -568,7 +568,7 @@ public class QuoteResource {
@PreAuthorize("hasPermission(this.quoteMapping.toDomain(#quotedtos),'iBizBusinessCentral-Quote-Create')")
@ApiOperation(value = "根据客户客户联系人商机批量建立报价单", tags = {"报价单" }, notes = "根据客户客户联系人商机批量建立报价单")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes/batch")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes/batch")
public ResponseEntity<Boolean> createBatchByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @RequestBody List<QuoteDTO> quotedtos) {
List<Quote> domainlist=quoteMapping.toDomain(quotedtos);
for(Quote domain:domainlist){
......@@ -580,7 +580,7 @@ public class QuoteResource {
@PreAuthorize("hasPermission(this.quoteMapping.toDomain(#quotedto),'iBizBusinessCentral-Quote-Save')")
@ApiOperation(value = "根据客户客户联系人商机保存报价单", tags = {"报价单" }, notes = "根据客户客户联系人商机保存报价单")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes/save")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes/save")
public ResponseEntity<Boolean> saveByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @RequestBody QuoteDTO quotedto) {
Quote domain = quoteMapping.toDomain(quotedto);
domain.setOpportunityid(opportunity_id);
......@@ -589,7 +589,7 @@ public class QuoteResource {
@PreAuthorize("hasPermission(this.quoteMapping.toDomain(#quotedtos),'iBizBusinessCentral-Quote-Save')")
@ApiOperation(value = "根据客户客户联系人商机批量保存报价单", tags = {"报价单" }, notes = "根据客户客户联系人商机批量保存报价单")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes/savebatch")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes/savebatch")
public ResponseEntity<Boolean> saveBatchByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @RequestBody List<QuoteDTO> quotedtos) {
List<Quote> domainlist=quoteMapping.toDomain(quotedtos);
for(Quote domain:domainlist){
......@@ -601,7 +601,7 @@ public class QuoteResource {
@PreAuthorize("hasPermission(this.quoteService.get(#quote_id),'iBizBusinessCentral-Quote-Remove')")
@ApiOperation(value = "根据客户客户联系人商机删除报价单", tags = {"报价单" }, notes = "根据客户客户联系人商机删除报价单")
@RequestMapping(method = RequestMethod.DELETE, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes/{quote_id}")
@RequestMapping(method = RequestMethod.DELETE, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes/{quote_id}")
@Transactional
public ResponseEntity<Boolean> removeByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @PathVariable("quote_id") String quote_id) {
return ResponseEntity.status(HttpStatus.OK).body(quoteService.remove(quote_id));
......@@ -609,7 +609,7 @@ public class QuoteResource {
@PreAuthorize("hasPermission(this.quoteService.getQuoteByIds(#ids),'iBizBusinessCentral-Quote-Remove')")
@ApiOperation(value = "根据客户客户联系人商机批量删除报价单", tags = {"报价单" }, notes = "根据客户客户联系人商机批量删除报价单")
@RequestMapping(method = RequestMethod.DELETE, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes/batch")
@RequestMapping(method = RequestMethod.DELETE, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes/batch")
public ResponseEntity<Boolean> removeBatchByAccountAccountContactOpportunity(@RequestBody List<String> ids) {
quoteService.removeBatch(ids);
return ResponseEntity.status(HttpStatus.OK).body(true);
......@@ -617,7 +617,7 @@ public class QuoteResource {
@PreAuthorize("hasPermission(this.quoteService.get(#quote_id),'iBizBusinessCentral-Quote-Update')")
@ApiOperation(value = "根据客户客户联系人商机更新报价单", tags = {"报价单" }, notes = "根据客户客户联系人商机更新报价单")
@RequestMapping(method = RequestMethod.PUT, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes/{quote_id}")
@RequestMapping(method = RequestMethod.PUT, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes/{quote_id}")
@Transactional
public ResponseEntity<QuoteDTO> updateByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @PathVariable("quote_id") String quote_id, @RequestBody QuoteDTO quotedto) {
Quote domain = quoteMapping.toDomain(quotedto);
......@@ -630,7 +630,7 @@ public class QuoteResource {
@PreAuthorize("hasPermission(this.quoteService.getQuoteByEntities(this.quoteMapping.toDomain(#quotedtos)),'iBizBusinessCentral-Quote-Update')")
@ApiOperation(value = "根据客户客户联系人商机批量更新报价单", tags = {"报价单" }, notes = "根据客户客户联系人商机批量更新报价单")
@RequestMapping(method = RequestMethod.PUT, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes/batch")
@RequestMapping(method = RequestMethod.PUT, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes/batch")
public ResponseEntity<Boolean> updateBatchByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @RequestBody List<QuoteDTO> quotedtos) {
List<Quote> domainlist=quoteMapping.toDomain(quotedtos);
for(Quote domain:domainlist){
......@@ -642,7 +642,7 @@ public class QuoteResource {
@PostAuthorize("hasPermission(this.quoteMapping.toDomain(returnObject.body),'iBizBusinessCentral-Quote-Get')")
@ApiOperation(value = "根据客户客户联系人商机获取报价单", tags = {"报价单" }, notes = "根据客户客户联系人商机获取报价单")
@RequestMapping(method = RequestMethod.GET, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes/{quote_id}")
@RequestMapping(method = RequestMethod.GET, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes/{quote_id}")
public ResponseEntity<QuoteDTO> getByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @PathVariable("quote_id") String quote_id) {
Quote domain = quoteService.get(quote_id);
QuoteDTO dto = quoteMapping.toDto(domain);
......@@ -650,13 +650,13 @@ public class QuoteResource {
}
@ApiOperation(value = "根据客户客户联系人商机检查报价单", tags = {"报价单" }, notes = "根据客户客户联系人商机检查报价单")
@RequestMapping(method = RequestMethod.POST, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes/checkkey")
@RequestMapping(method = RequestMethod.POST, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes/checkkey")
public ResponseEntity<Boolean> checkKeyByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @RequestBody QuoteDTO quotedto) {
return ResponseEntity.status(HttpStatus.OK).body(quoteService.checkKey(quoteMapping.toDomain(quotedto)));
}
@ApiOperation(value = "根据客户客户联系人商机获取报价单草稿", tags = {"报价单" }, notes = "根据客户客户联系人商机获取报价单草稿")
@RequestMapping(method = RequestMethod.GET, value = "/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes/getdraft")
@RequestMapping(method = RequestMethod.GET, value = "/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes/getdraft")
public ResponseEntity<QuoteDTO> getDraftByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id) {
Quote domain = new Quote();
domain.setOpportunityid(opportunity_id);
......@@ -665,7 +665,7 @@ public class QuoteResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Quote-Default-all')")
@ApiOperation(value = "根据客户客户联系人商机获取DEFAULT", tags = {"报价单" } ,notes = "根据客户客户联系人商机获取DEFAULT")
@RequestMapping(method= RequestMethod.GET , value="/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes/fetchdefault")
@RequestMapping(method= RequestMethod.GET , value="/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes/fetchdefault")
public ResponseEntity<List<QuoteDTO>> fetchQuoteDefaultByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id,QuoteSearchContext context) {
context.setN_opportunityid_eq(opportunity_id);
Page<Quote> domains = quoteService.searchDefault(context) ;
......@@ -679,7 +679,7 @@ public class QuoteResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Quote-Default-all')")
@ApiOperation(value = "根据客户客户联系人商机查询DEFAULT", tags = {"报价单" } ,notes = "根据客户客户联系人商机查询DEFAULT")
@RequestMapping(method= RequestMethod.POST , value="/accounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes/searchdefault")
@RequestMapping(method= RequestMethod.POST , value="/parentaccounts/{account_id}/accounts/{account_id}/contacts/{contact_id}/opportunities/{opportunity_id}/quotes/searchdefault")
public ResponseEntity<Page<QuoteDTO>> searchQuoteDefaultByAccountAccountContactOpportunity(@PathVariable("account_id") String account_id, @PathVariable("account_id") String account_id, @PathVariable("contact_id") String contact_id, @PathVariable("opportunity_id") String opportunity_id, @RequestBody QuoteSearchContext context) {
context.setN_opportunityid_eq(opportunity_id);
Page<Quote> domains = quoteService.searchDefault(context) ;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册