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

xignzi006 部署微服务接口

上级 9748790c
......@@ -473,13 +473,6 @@ public class Invoice extends EntityMP implements Serializable {
@JSONField(name = "importsequencenumber")
@JsonProperty("importsequencenumber")
private Integer importsequencenumber;
/**
* SLAName
*/
@TableField(value = "slaname")
@JSONField(name = "slaname")
@JsonProperty("slaname")
private String slaname;
/**
* 客户类型
*/
......@@ -666,6 +659,13 @@ public class Invoice extends EntityMP implements Serializable {
@JSONField(name = "billto_fax")
@JsonProperty("billto_fax")
private String billtoFax;
/**
* SLA
*/
@TableField(value = "slaname")
@JSONField(name = "slaname")
@JsonProperty("slaname")
private String slaname;
/**
* 货币
*/
......@@ -701,6 +701,34 @@ public class Invoice extends EntityMP implements Serializable {
@JSONField(name = "slaid")
@JsonProperty("slaid")
private String slaid;
/**
* 货币
*/
@TableField(value = "transactioncurrencyname")
@JSONField(name = "transactioncurrencyname")
@JsonProperty("transactioncurrencyname")
private String transactioncurrencyname;
/**
* 价目表
*/
@TableField(value = "pricelevelname")
@JSONField(name = "pricelevelname")
@JsonProperty("pricelevelname")
private String pricelevelname;
/**
* 订单
*/
@TableField(value = "salesordername")
@JSONField(name = "salesordername")
@JsonProperty("salesordername")
private String salesordername;
/**
* 商机
*/
@TableField(value = "opportunityname")
@JSONField(name = "opportunityname")
@JsonProperty("opportunityname")
private String opportunityname;
/**
*
......@@ -1200,14 +1228,6 @@ public class Invoice extends EntityMP implements Serializable {
this.modify("importsequencenumber",importsequencenumber);
}
/**
* 设置 [SLAName]
*/
public void setSlaname(String slaname){
this.slaname = slaname ;
this.modify("slaname",slaname);
}
/**
* 设置 [客户类型]
*/
......@@ -1418,6 +1438,14 @@ public class Invoice extends EntityMP implements Serializable {
this.modify("billto_fax",billtoFax);
}
/**
* 设置 [SLA]
*/
public void setSlaname(String slaname){
this.slaname = slaname ;
this.modify("slaname",slaname);
}
/**
* 设置 [货币]
*/
......@@ -1458,6 +1486,38 @@ public class Invoice extends EntityMP implements Serializable {
this.modify("slaid",slaid);
}
/**
* 设置 [货币]
*/
public void setTransactioncurrencyname(String transactioncurrencyname){
this.transactioncurrencyname = transactioncurrencyname ;
this.modify("transactioncurrencyname",transactioncurrencyname);
}
/**
* 设置 [价目表]
*/
public void setPricelevelname(String pricelevelname){
this.pricelevelname = pricelevelname ;
this.modify("pricelevelname",pricelevelname);
}
/**
* 设置 [订单]
*/
public void setSalesordername(String salesordername){
this.salesordername = salesordername ;
this.modify("salesordername",salesordername);
}
/**
* 设置 [商机]
*/
public void setOpportunityname(String opportunityname){
this.opportunityname = opportunityname ;
this.modify("opportunityname",opportunityname);
}
}
......
......@@ -118,6 +118,62 @@ public class InvoiceSearchContext extends QueryWrapperContext<Invoice> {
this.getSearchCond().eq("slaid", n_slaid_eq);
}
}
private String n_transactioncurrencyname_eq;//[货币]
public void setN_transactioncurrencyname_eq(String n_transactioncurrencyname_eq) {
this.n_transactioncurrencyname_eq = n_transactioncurrencyname_eq;
if(!ObjectUtils.isEmpty(this.n_transactioncurrencyname_eq)){
this.getSearchCond().eq("transactioncurrencyname", n_transactioncurrencyname_eq);
}
}
private String n_transactioncurrencyname_like;//[货币]
public void setN_transactioncurrencyname_like(String n_transactioncurrencyname_like) {
this.n_transactioncurrencyname_like = n_transactioncurrencyname_like;
if(!ObjectUtils.isEmpty(this.n_transactioncurrencyname_like)){
this.getSearchCond().like("transactioncurrencyname", n_transactioncurrencyname_like);
}
}
private String n_pricelevelname_eq;//[价目表]
public void setN_pricelevelname_eq(String n_pricelevelname_eq) {
this.n_pricelevelname_eq = n_pricelevelname_eq;
if(!ObjectUtils.isEmpty(this.n_pricelevelname_eq)){
this.getSearchCond().eq("pricelevelname", n_pricelevelname_eq);
}
}
private String n_pricelevelname_like;//[价目表]
public void setN_pricelevelname_like(String n_pricelevelname_like) {
this.n_pricelevelname_like = n_pricelevelname_like;
if(!ObjectUtils.isEmpty(this.n_pricelevelname_like)){
this.getSearchCond().like("pricelevelname", n_pricelevelname_like);
}
}
private String n_salesordername_eq;//[订单]
public void setN_salesordername_eq(String n_salesordername_eq) {
this.n_salesordername_eq = n_salesordername_eq;
if(!ObjectUtils.isEmpty(this.n_salesordername_eq)){
this.getSearchCond().eq("salesordername", n_salesordername_eq);
}
}
private String n_salesordername_like;//[订单]
public void setN_salesordername_like(String n_salesordername_like) {
this.n_salesordername_like = n_salesordername_like;
if(!ObjectUtils.isEmpty(this.n_salesordername_like)){
this.getSearchCond().like("salesordername", n_salesordername_like);
}
}
private String n_opportunityname_eq;//[商机]
public void setN_opportunityname_eq(String n_opportunityname_eq) {
this.n_opportunityname_eq = n_opportunityname_eq;
if(!ObjectUtils.isEmpty(this.n_opportunityname_eq)){
this.getSearchCond().eq("opportunityname", n_opportunityname_eq);
}
}
private String n_opportunityname_like;//[商机]
public void setN_opportunityname_like(String n_opportunityname_like) {
this.n_opportunityname_like = n_opportunityname_like;
if(!ObjectUtils.isEmpty(this.n_opportunityname_like)){
this.getSearchCond().like("opportunityname", n_opportunityname_like);
}
}
/**
* 启用快速搜索
......
......@@ -68,6 +68,7 @@ public class InvoiceServiceImpl extends ServiceImpl<InvoiceMapper, Invoice> impl
@Override
@Transactional
public boolean create(Invoice et) {
fillParentData(et);
if(!this.retBool(this.baseMapper.insert(et)))
return false;
CachedBeanCopier.copy(get(et.getInvoiceid()),et);
......@@ -76,17 +77,20 @@ public class InvoiceServiceImpl extends ServiceImpl<InvoiceMapper, Invoice> impl
@Override
public void createBatch(List<Invoice> list) {
list.forEach(item->fillParentData(item));
this.saveBatch(list,batchSize);
}
@Override
public Invoice getDraft(Invoice et) {
fillParentData(et);
return et;
}
@Override
@Transactional
public boolean update(Invoice et) {
fillParentData(et);
if(!update(et,(Wrapper) et.getUpdateWrapper(true).eq("invoiceid",et.getInvoiceid())))
return false;
CachedBeanCopier.copy(get(et.getInvoiceid()),et);
......@@ -95,6 +99,7 @@ public class InvoiceServiceImpl extends ServiceImpl<InvoiceMapper, Invoice> impl
@Override
public void updateBatch(List<Invoice> list) {
list.forEach(item->fillParentData(item));
updateBatchById(list,batchSize);
}
......@@ -136,12 +141,14 @@ public class InvoiceServiceImpl extends ServiceImpl<InvoiceMapper, Invoice> impl
@Override
public boolean saveBatch(Collection<Invoice> list) {
list.forEach(item->fillParentData(item));
saveOrUpdateBatch(list,batchSize);
return true;
}
@Override
public void saveBatch(List<Invoice> list) {
list.forEach(item->fillParentData(item));
saveOrUpdateBatch(list,batchSize);
}
......@@ -221,6 +228,62 @@ public class InvoiceServiceImpl extends ServiceImpl<InvoiceMapper, Invoice> impl
/**
* 为当前实体填充父数据(外键值文本、外键值附加数据)
* @param et
*/
private void fillParentData(Invoice et){
//实体关系[DER1N_INVOICE__OPPORTUNITY__OPPORTUNITYID]
if(!ObjectUtils.isEmpty(et.getOpportunityid())){
cn.ibizlab.businesscentral.core.sales.domain.Opportunity opportunity=et.getOpportunity();
if(ObjectUtils.isEmpty(opportunity)){
cn.ibizlab.businesscentral.core.sales.domain.Opportunity majorEntity=opportunityService.get(et.getOpportunityid());
et.setOpportunity(majorEntity);
opportunity=majorEntity;
}
et.setOpportunityname(opportunity.getOpportunityname());
}
//实体关系[DER1N_INVOICE__PRICELEVEL__PRICELEVELID]
if(!ObjectUtils.isEmpty(et.getPricelevelid())){
cn.ibizlab.businesscentral.core.product.domain.PriceLevel pricelevel=et.getPricelevel();
if(ObjectUtils.isEmpty(pricelevel)){
cn.ibizlab.businesscentral.core.product.domain.PriceLevel majorEntity=pricelevelService.get(et.getPricelevelid());
et.setPricelevel(majorEntity);
pricelevel=majorEntity;
}
et.setPricelevelname(pricelevel.getPricelevelname());
}
//实体关系[DER1N_INVOICE__SALESORDER__SALESORDERID]
if(!ObjectUtils.isEmpty(et.getSalesorderid())){
cn.ibizlab.businesscentral.core.sales.domain.SalesOrder salesorder=et.getSalesorder();
if(ObjectUtils.isEmpty(salesorder)){
cn.ibizlab.businesscentral.core.sales.domain.SalesOrder majorEntity=salesorderService.get(et.getSalesorderid());
et.setSalesorder(majorEntity);
salesorder=majorEntity;
}
et.setSalesordername(salesorder.getSalesordername());
}
//实体关系[DER1N_INVOICE__SLA__SLAID]
if(!ObjectUtils.isEmpty(et.getSlaid())){
cn.ibizlab.businesscentral.core.base.domain.Sla sla=et.getSla();
if(ObjectUtils.isEmpty(sla)){
cn.ibizlab.businesscentral.core.base.domain.Sla majorEntity=slaService.get(et.getSlaid());
et.setSla(majorEntity);
sla=majorEntity;
}
et.setSlaname(sla.getSlaname());
}
//实体关系[DER1N_INVOICE__TRANSACTIONCURRENCY__TRANSACTIONCURRENCYID]
if(!ObjectUtils.isEmpty(et.getTransactioncurrencyid())){
cn.ibizlab.businesscentral.core.base.domain.TransactionCurrency transactioncurrency=et.getTransactioncurrency();
if(ObjectUtils.isEmpty(transactioncurrency)){
cn.ibizlab.businesscentral.core.base.domain.TransactionCurrency majorEntity=transactioncurrencyService.get(et.getTransactioncurrencyid());
et.setTransactioncurrency(majorEntity);
transactioncurrency=majorEntity;
}
et.setTransactioncurrencyname(transactioncurrency.getCurrencyname());
}
}
@Override
......
......@@ -435,6 +435,48 @@ public class Product extends EntityMP implements Serializable {
@JSONField(name = "subjectid")
@JsonProperty("subjectid")
private String subjectid;
/**
* 父级
*/
@TableField(value = "parentproductname")
@JSONField(name = "parentproductname")
@JsonProperty("parentproductname")
private String parentproductname;
/**
* 货币
*/
@TableField(value = "transactioncurrencyname")
@JSONField(name = "transactioncurrencyname")
@JsonProperty("transactioncurrencyname")
private String transactioncurrencyname;
/**
* 默认价目表
*/
@TableField(value = "pricelevelname")
@JSONField(name = "pricelevelname")
@JsonProperty("pricelevelname")
private String pricelevelname;
/**
* 默认计价单位
*/
@TableField(value = "defaultuomname")
@JSONField(name = "defaultuomname")
@JsonProperty("defaultuomname")
private String defaultuomname;
/**
* 计价单位组
*/
@TableField(value = "defaultuomschedulename")
@JSONField(name = "defaultuomschedulename")
@JsonProperty("defaultuomschedulename")
private String defaultuomschedulename;
/**
* 主题
*/
@TableField(value = "subject")
@JSONField(name = "subject")
@JsonProperty("subject")
private String subject;
/**
*
......@@ -908,6 +950,54 @@ public class Product extends EntityMP implements Serializable {
this.modify("subjectid",subjectid);
}
/**
* 设置 [父级]
*/
public void setParentproductname(String parentproductname){
this.parentproductname = parentproductname ;
this.modify("parentproductname",parentproductname);
}
/**
* 设置 [货币]
*/
public void setTransactioncurrencyname(String transactioncurrencyname){
this.transactioncurrencyname = transactioncurrencyname ;
this.modify("transactioncurrencyname",transactioncurrencyname);
}
/**
* 设置 [默认价目表]
*/
public void setPricelevelname(String pricelevelname){
this.pricelevelname = pricelevelname ;
this.modify("pricelevelname",pricelevelname);
}
/**
* 设置 [默认计价单位]
*/
public void setDefaultuomname(String defaultuomname){
this.defaultuomname = defaultuomname ;
this.modify("defaultuomname",defaultuomname);
}
/**
* 设置 [计价单位组]
*/
public void setDefaultuomschedulename(String defaultuomschedulename){
this.defaultuomschedulename = defaultuomschedulename ;
this.modify("defaultuomschedulename",defaultuomschedulename);
}
/**
* 设置 [主题]
*/
public void setSubject(String subject){
this.subject = subject ;
this.modify("subject",subject);
}
}
......
......@@ -104,6 +104,90 @@ public class ProductSearchContext extends QueryWrapperContext<Product> {
this.getSearchCond().eq("subjectid", n_subjectid_eq);
}
}
private String n_parentproductname_eq;//[父级]
public void setN_parentproductname_eq(String n_parentproductname_eq) {
this.n_parentproductname_eq = n_parentproductname_eq;
if(!ObjectUtils.isEmpty(this.n_parentproductname_eq)){
this.getSearchCond().eq("parentproductname", n_parentproductname_eq);
}
}
private String n_parentproductname_like;//[父级]
public void setN_parentproductname_like(String n_parentproductname_like) {
this.n_parentproductname_like = n_parentproductname_like;
if(!ObjectUtils.isEmpty(this.n_parentproductname_like)){
this.getSearchCond().like("parentproductname", n_parentproductname_like);
}
}
private String n_transactioncurrencyname_eq;//[货币]
public void setN_transactioncurrencyname_eq(String n_transactioncurrencyname_eq) {
this.n_transactioncurrencyname_eq = n_transactioncurrencyname_eq;
if(!ObjectUtils.isEmpty(this.n_transactioncurrencyname_eq)){
this.getSearchCond().eq("transactioncurrencyname", n_transactioncurrencyname_eq);
}
}
private String n_transactioncurrencyname_like;//[货币]
public void setN_transactioncurrencyname_like(String n_transactioncurrencyname_like) {
this.n_transactioncurrencyname_like = n_transactioncurrencyname_like;
if(!ObjectUtils.isEmpty(this.n_transactioncurrencyname_like)){
this.getSearchCond().like("transactioncurrencyname", n_transactioncurrencyname_like);
}
}
private String n_pricelevelname_eq;//[默认价目表]
public void setN_pricelevelname_eq(String n_pricelevelname_eq) {
this.n_pricelevelname_eq = n_pricelevelname_eq;
if(!ObjectUtils.isEmpty(this.n_pricelevelname_eq)){
this.getSearchCond().eq("pricelevelname", n_pricelevelname_eq);
}
}
private String n_pricelevelname_like;//[默认价目表]
public void setN_pricelevelname_like(String n_pricelevelname_like) {
this.n_pricelevelname_like = n_pricelevelname_like;
if(!ObjectUtils.isEmpty(this.n_pricelevelname_like)){
this.getSearchCond().like("pricelevelname", n_pricelevelname_like);
}
}
private String n_defaultuomname_eq;//[默认计价单位]
public void setN_defaultuomname_eq(String n_defaultuomname_eq) {
this.n_defaultuomname_eq = n_defaultuomname_eq;
if(!ObjectUtils.isEmpty(this.n_defaultuomname_eq)){
this.getSearchCond().eq("defaultuomname", n_defaultuomname_eq);
}
}
private String n_defaultuomname_like;//[默认计价单位]
public void setN_defaultuomname_like(String n_defaultuomname_like) {
this.n_defaultuomname_like = n_defaultuomname_like;
if(!ObjectUtils.isEmpty(this.n_defaultuomname_like)){
this.getSearchCond().like("defaultuomname", n_defaultuomname_like);
}
}
private String n_defaultuomschedulename_eq;//[计价单位组]
public void setN_defaultuomschedulename_eq(String n_defaultuomschedulename_eq) {
this.n_defaultuomschedulename_eq = n_defaultuomschedulename_eq;
if(!ObjectUtils.isEmpty(this.n_defaultuomschedulename_eq)){
this.getSearchCond().eq("defaultuomschedulename", n_defaultuomschedulename_eq);
}
}
private String n_defaultuomschedulename_like;//[计价单位组]
public void setN_defaultuomschedulename_like(String n_defaultuomschedulename_like) {
this.n_defaultuomschedulename_like = n_defaultuomschedulename_like;
if(!ObjectUtils.isEmpty(this.n_defaultuomschedulename_like)){
this.getSearchCond().like("defaultuomschedulename", n_defaultuomschedulename_like);
}
}
private String n_subject_eq;//[主题]
public void setN_subject_eq(String n_subject_eq) {
this.n_subject_eq = n_subject_eq;
if(!ObjectUtils.isEmpty(this.n_subject_eq)){
this.getSearchCond().eq("subject", n_subject_eq);
}
}
private String n_subject_like;//[主题]
public void setN_subject_like(String n_subject_like) {
this.n_subject_like = n_subject_like;
if(!ObjectUtils.isEmpty(this.n_subject_like)){
this.getSearchCond().like("subject", n_subject_like);
}
}
/**
* 启用快速搜索
......
......@@ -117,18 +117,21 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
@Override
public boolean saveBatch(Collection<Product> list) {
list.forEach(item->fillParentData(item));
saveOrUpdateBatch(list,batchSize);
return true;
}
@Override
public void saveBatch(List<Product> list) {
list.forEach(item->fillParentData(item));
saveOrUpdateBatch(list,batchSize);
}
@Override
@Transactional
public boolean create(Product et) {
fillParentData(et);
if(!this.retBool(this.baseMapper.insert(et)))
return false;
CachedBeanCopier.copy(get(et.getProductid()),et);
......@@ -137,12 +140,14 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
@Override
public void createBatch(List<Product> list) {
list.forEach(item->fillParentData(item));
this.saveBatch(list,batchSize);
}
@Override
@Transactional
public boolean update(Product et) {
fillParentData(et);
if(!update(et,(Wrapper) et.getUpdateWrapper(true).eq("productid",et.getProductid())))
return false;
CachedBeanCopier.copy(get(et.getProductid()),et);
......@@ -151,6 +156,7 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
@Override
public void updateBatch(List<Product> list) {
list.forEach(item->fillParentData(item));
updateBatchById(list,batchSize);
}
......@@ -168,6 +174,7 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
@Override
public Product getDraft(Product et) {
fillParentData(et);
return et;
}
......@@ -257,6 +264,72 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
/**
* 为当前实体填充父数据(外键值文本、外键值附加数据)
* @param et
*/
private void fillParentData(Product et){
//实体关系[DER1N_PRODUCT__PRICELEVEL__PRICELEVELID]
if(!ObjectUtils.isEmpty(et.getPricelevelid())){
cn.ibizlab.businesscentral.core.product.domain.PriceLevel pricelevel=et.getPricelevel();
if(ObjectUtils.isEmpty(pricelevel)){
cn.ibizlab.businesscentral.core.product.domain.PriceLevel majorEntity=pricelevelService.get(et.getPricelevelid());
et.setPricelevel(majorEntity);
pricelevel=majorEntity;
}
et.setPricelevelname(pricelevel.getPricelevelname());
}
//实体关系[DER1N_PRODUCT__PRODUCT__PARENTPRODUCTID]
if(!ObjectUtils.isEmpty(et.getParentproductid())){
cn.ibizlab.businesscentral.core.product.domain.Product parentproduct=et.getParentproduct();
if(ObjectUtils.isEmpty(parentproduct)){
cn.ibizlab.businesscentral.core.product.domain.Product majorEntity=productService.get(et.getParentproductid());
et.setParentproduct(majorEntity);
parentproduct=majorEntity;
}
et.setParentproductname(parentproduct.getProductname());
}
//实体关系[DER1N_PRODUCT__SUBJECT__SUBJECTID]
if(!ObjectUtils.isEmpty(et.getSubjectid())){
cn.ibizlab.businesscentral.core.base.domain.Subject subject=et.getSubject();
if(ObjectUtils.isEmpty(subject)){
cn.ibizlab.businesscentral.core.base.domain.Subject majorEntity=subjectService.get(et.getSubjectid());
et.setSubject(majorEntity);
subject=majorEntity;
}
et.setSubject(subject.getTitle());
}
//实体关系[DER1N_PRODUCT__TRANSACTIONCURRENCY__TRANSACTIONCURRENCYID]
if(!ObjectUtils.isEmpty(et.getTransactioncurrencyid())){
cn.ibizlab.businesscentral.core.base.domain.TransactionCurrency transactioncurrency=et.getTransactioncurrency();
if(ObjectUtils.isEmpty(transactioncurrency)){
cn.ibizlab.businesscentral.core.base.domain.TransactionCurrency majorEntity=transactioncurrencyService.get(et.getTransactioncurrencyid());
et.setTransactioncurrency(majorEntity);
transactioncurrency=majorEntity;
}
et.setTransactioncurrencyname(transactioncurrency.getCurrencyname());
}
//实体关系[DER1N_PRODUCT__UOMSCHEDULE__DEFAULTUOMSCHEDULEID]
if(!ObjectUtils.isEmpty(et.getDefaultuomscheduleid())){
cn.ibizlab.businesscentral.core.base.domain.UomSchedule defaultuomschedule=et.getDefaultuomschedule();
if(ObjectUtils.isEmpty(defaultuomschedule)){
cn.ibizlab.businesscentral.core.base.domain.UomSchedule majorEntity=uomscheduleService.get(et.getDefaultuomscheduleid());
et.setDefaultuomschedule(majorEntity);
defaultuomschedule=majorEntity;
}
et.setDefaultuomschedulename(defaultuomschedule.getUomschedulename());
}
//实体关系[DER1N_PRODUCT__UOM__DEFAULTUOMID]
if(!ObjectUtils.isEmpty(et.getDefaultuomid())){
cn.ibizlab.businesscentral.core.base.domain.Uom defaultuom=et.getDefaultuom();
if(ObjectUtils.isEmpty(defaultuom)){
cn.ibizlab.businesscentral.core.base.domain.Uom majorEntity=uomService.get(et.getDefaultuomid());
et.setDefaultuom(majorEntity);
defaultuom=majorEntity;
}
et.setDefaultuomname(defaultuom.getUomname());
}
}
@Override
......
......@@ -654,6 +654,13 @@ public class Competitor extends EntityMP implements Serializable {
@JSONField(name = "transactioncurrencyid")
@JsonProperty("transactioncurrencyid")
private String transactioncurrencyid;
/**
* 货币
*/
@TableField(value = "transactioncurrencyname")
@JSONField(name = "transactioncurrencyname")
@JsonProperty("transactioncurrencyname")
private String transactioncurrencyname;
/**
*
......@@ -1275,6 +1282,14 @@ public class Competitor extends EntityMP implements Serializable {
this.modify("transactioncurrencyid",transactioncurrencyid);
}
/**
* 设置 [货币]
*/
public void setTransactioncurrencyname(String transactioncurrencyname){
this.transactioncurrencyname = transactioncurrencyname ;
this.modify("transactioncurrencyname",transactioncurrencyname);
}
}
......
......@@ -55,13 +55,6 @@ public class Lead extends EntityMP implements Serializable {
@JSONField(name = "address2_utcoffset")
@JsonProperty("address2_utcoffset")
private Integer address2Utcoffset;
/**
* SLAName
*/
@TableField(value = "slaname")
@JSONField(name = "slaname")
@JsonProperty("slaname")
private String slaname;
/**
* 职务
*/
......@@ -198,13 +191,6 @@ public class Lead extends EntityMP implements Serializable {
@JSONField(name = "createman")
@JsonProperty("createman")
private String createman;
/**
* ParentContactIdYomiName
*/
@TableField(value = "parentcontactidyominame")
@JSONField(name = "parentcontactidyominame")
@JsonProperty("parentcontactidyominame")
private String parentcontactidyominame;
/**
* 地址 2: 省/市/自治区
*/
......@@ -537,13 +523,6 @@ public class Lead extends EntityMP implements Serializable {
@JSONField(name = "stageid")
@JsonProperty("stageid")
private String stageid;
/**
* ParentAccountIdYomiName
*/
@TableField(value = "parentaccountidyominame")
@JSONField(name = "parentaccountidyominame")
@JsonProperty("parentaccountidyominame")
private String parentaccountidyominame;
/**
* 地址 1: 送货方式
*/
......@@ -666,13 +645,6 @@ public class Lead extends EntityMP implements Serializable {
@JSONField(name = "customeridyominame")
@JsonProperty("customeridyominame")
private String customeridyominame;
/**
* AccountIdYomiName
*/
@TableField(value = "accountidyominame")
@JSONField(name = "accountidyominame")
@JsonProperty("accountidyominame")
private String accountidyominame;
/**
* 年收入 (Base)
*/
......@@ -1118,6 +1090,13 @@ public class Lead extends EntityMP implements Serializable {
@JSONField(name = "address1_upszone")
@JsonProperty("address1_upszone")
private String address1Upszone;
/**
* SLA
*/
@TableField(value = "slaname")
@JSONField(name = "slaname")
@JsonProperty("slaname")
private String slaname;
/**
* 授予商机资格
*/
......@@ -1174,6 +1153,55 @@ public class Lead extends EntityMP implements Serializable {
@JSONField(name = "parentcontactid")
@JsonProperty("parentcontactid")
private String parentcontactid;
/**
* 原始案例
*/
@TableField(value = "originatingcasename")
@JSONField(name = "originatingcasename")
@JsonProperty("originatingcasename")
private String originatingcasename;
/**
* 授予商机资格
*/
@TableField(value = "qualifyingopportunityname")
@JSONField(name = "qualifyingopportunityname")
@JsonProperty("qualifyingopportunityname")
private String qualifyingopportunityname;
/**
* 源市场活动
*/
@TableField(value = "campaignname")
@JSONField(name = "campaignname")
@JsonProperty("campaignname")
private String campaignname;
/**
* 潜在顾客的上司
*/
@TableField(value = "parentcontactname")
@JSONField(name = "parentcontactname")
@JsonProperty("parentcontactname")
private String parentcontactname;
/**
* 潜在顾客的上级单位
*/
@TableField(value = "parentaccountname")
@JSONField(name = "parentaccountname")
@JsonProperty("parentaccountname")
private String parentaccountname;
/**
* 相关市场活动响应
*/
@TableField(value = "relatedobjectname")
@JSONField(name = "relatedobjectname")
@JsonProperty("relatedobjectname")
private String relatedobjectname;
/**
* 货币
*/
@TableField(value = "transactioncurrencyname")
@JSONField(name = "transactioncurrencyname")
@JsonProperty("transactioncurrencyname")
private String transactioncurrencyname;
/**
*
......@@ -1257,14 +1285,6 @@ public class Lead extends EntityMP implements Serializable {
this.modify("address2_utcoffset",address2Utcoffset);
}
/**
* 设置 [SLAName]
*/
public void setSlaname(String slaname){
this.slaname = slaname ;
this.modify("slaname",slaname);
}
/**
* 设置 [职务]
*/
......@@ -1393,14 +1413,6 @@ public class Lead extends EntityMP implements Serializable {
this.modify("entityimage_url",entityimageUrl);
}
/**
* 设置 [ParentContactIdYomiName]
*/
public void setParentcontactidyominame(String parentcontactidyominame){
this.parentcontactidyominame = parentcontactidyominame ;
this.modify("parentcontactidyominame",parentcontactidyominame);
}
/**
* 设置 [地址 2: 省/市/自治区]
*/
......@@ -1745,14 +1757,6 @@ public class Lead extends EntityMP implements Serializable {
this.modify("stageid",stageid);
}
/**
* 设置 [ParentAccountIdYomiName]
*/
public void setParentaccountidyominame(String parentaccountidyominame){
this.parentaccountidyominame = parentaccountidyominame ;
this.modify("parentaccountidyominame",parentaccountidyominame);
}
/**
* 设置 [地址 1: 送货方式]
*/
......@@ -1883,14 +1887,6 @@ public class Lead extends EntityMP implements Serializable {
this.modify("customeridyominame",customeridyominame);
}
/**
* 设置 [AccountIdYomiName]
*/
public void setAccountidyominame(String accountidyominame){
this.accountidyominame = accountidyominame ;
this.modify("accountidyominame",accountidyominame);
}
/**
* 设置 [年收入 (Base)]
*/
......@@ -2405,6 +2401,14 @@ public class Lead extends EntityMP implements Serializable {
this.modify("address1_upszone",address1Upszone);
}
/**
* 设置 [SLA]
*/
public void setSlaname(String slaname){
this.slaname = slaname ;
this.modify("slaname",slaname);
}
/**
* 设置 [授予商机资格]
*/
......@@ -2469,6 +2473,62 @@ public class Lead extends EntityMP implements Serializable {
this.modify("parentcontactid",parentcontactid);
}
/**
* 设置 [原始案例]
*/
public void setOriginatingcasename(String originatingcasename){
this.originatingcasename = originatingcasename ;
this.modify("originatingcasename",originatingcasename);
}
/**
* 设置 [授予商机资格]
*/
public void setQualifyingopportunityname(String qualifyingopportunityname){
this.qualifyingopportunityname = qualifyingopportunityname ;
this.modify("qualifyingopportunityname",qualifyingopportunityname);
}
/**
* 设置 [源市场活动]
*/
public void setCampaignname(String campaignname){
this.campaignname = campaignname ;
this.modify("campaignname",campaignname);
}
/**
* 设置 [潜在顾客的上司]
*/
public void setParentcontactname(String parentcontactname){
this.parentcontactname = parentcontactname ;
this.modify("parentcontactname",parentcontactname);
}
/**
* 设置 [潜在顾客的上级单位]
*/
public void setParentaccountname(String parentaccountname){
this.parentaccountname = parentaccountname ;
this.modify("parentaccountname",parentaccountname);
}
/**
* 设置 [相关市场活动响应]
*/
public void setRelatedobjectname(String relatedobjectname){
this.relatedobjectname = relatedobjectname ;
this.modify("relatedobjectname",relatedobjectname);
}
/**
* 设置 [货币]
*/
public void setTransactioncurrencyname(String transactioncurrencyname){
this.transactioncurrencyname = transactioncurrencyname ;
this.modify("transactioncurrencyname",transactioncurrencyname);
}
}
......
......@@ -113,13 +113,6 @@ public class Opportunity extends EntityMP implements Serializable {
@JSONField(name = "estimatedvalue_base")
@JsonProperty("estimatedvalue_base")
private BigDecimal estimatedvalueBase;
/**
* ParentContactIdYomiName
*/
@TableField(value = "parentcontactidyominame")
@JSONField(name = "parentcontactidyominame")
@JsonProperty("parentcontactidyominame")
private String parentcontactidyominame;
/**
* 提供最终建议
*/
......@@ -543,13 +536,6 @@ public class Opportunity extends EntityMP implements Serializable {
@JSONField(name = "completefinalproposal")
@JsonProperty("completefinalproposal")
private Integer completefinalproposal;
/**
* OriginatingLeadIdYomiName
*/
@TableField(value = "originatingleadidyominame")
@JSONField(name = "originatingleadidyominame")
@JsonProperty("originatingleadidyominame")
private String originatingleadidyominame;
/**
* 商机折扣额
*/
......@@ -756,13 +742,6 @@ public class Opportunity extends EntityMP implements Serializable {
@JSONField(name = "quotecomments")
@JsonProperty("quotecomments")
private String quotecomments;
/**
* ParentAccountIdYomiName
*/
@TableField(value = "parentaccountidyominame")
@JSONField(name = "parentaccountidyominame")
@JsonProperty("parentaccountidyominame")
private String parentaccountidyominame;
/**
* 潜在客户类型
*/
......@@ -770,13 +749,6 @@ public class Opportunity extends EntityMP implements Serializable {
@JSONField(name = "customeridtype")
@JsonProperty("customeridtype")
private String customeridtype;
/**
* SLAName
*/
@TableField(value = "slaname")
@JSONField(name = "slaname")
@JsonProperty("slaname")
private String slaname;
/**
* Record Created On
*/
......@@ -792,6 +764,13 @@ public class Opportunity extends EntityMP implements Serializable {
@JSONField(name = "ownerid")
@JsonProperty("ownerid")
private String ownerid;
/**
* SLA
*/
@TableField(value = "slaname")
@JSONField(name = "slaname")
@JsonProperty("slaname")
private String slaname;
/**
* 联系人
*/
......@@ -841,6 +820,48 @@ public class Opportunity extends EntityMP implements Serializable {
@JSONField(name = "slaid")
@JsonProperty("slaid")
private String slaid;
/**
* 价目表
*/
@TableField(value = "pricelevel")
@JSONField(name = "pricelevel")
@JsonProperty("pricelevel")
private String pricelevel;
/**
* 原始潜在顾客
*/
@TableField(value = "originatingleadname")
@JSONField(name = "originatingleadname")
@JsonProperty("originatingleadname")
private String originatingleadname;
/**
* 帐户
*/
@TableField(value = "parentaccountname")
@JSONField(name = "parentaccountname")
@JsonProperty("parentaccountname")
private String parentaccountname;
/**
* 源市场活动
*/
@TableField(value = "campaignname")
@JSONField(name = "campaignname")
@JsonProperty("campaignname")
private String campaignname;
/**
* 联系人
*/
@TableField(value = "parentcontactname")
@JSONField(name = "parentcontactname")
@JsonProperty("parentcontactname")
private String parentcontactname;
/**
* 货币
*/
@TableField(value = "transactioncurrencyname")
@JSONField(name = "transactioncurrencyname")
@JsonProperty("transactioncurrencyname")
private String transactioncurrencyname;
/**
*
......@@ -972,14 +993,6 @@ public class Opportunity extends EntityMP implements Serializable {
this.modify("estimatedvalue_base",estimatedvalueBase);
}
/**
* 设置 [ParentContactIdYomiName]
*/
public void setParentcontactidyominame(String parentcontactidyominame){
this.parentcontactidyominame = parentcontactidyominame ;
this.modify("parentcontactidyominame",parentcontactidyominame);
}
/**
* 设置 [提供最终建议]
*/
......@@ -1462,14 +1475,6 @@ public class Opportunity extends EntityMP implements Serializable {
this.modify("completefinalproposal",completefinalproposal);
}
/**
* 设置 [OriginatingLeadIdYomiName]
*/
public void setOriginatingleadidyominame(String originatingleadidyominame){
this.originatingleadidyominame = originatingleadidyominame ;
this.modify("originatingleadidyominame",originatingleadidyominame);
}
/**
* 设置 [商机折扣额]
*/
......@@ -1698,14 +1703,6 @@ public class Opportunity extends EntityMP implements Serializable {
this.modify("quotecomments",quotecomments);
}
/**
* 设置 [ParentAccountIdYomiName]
*/
public void setParentaccountidyominame(String parentaccountidyominame){
this.parentaccountidyominame = parentaccountidyominame ;
this.modify("parentaccountidyominame",parentaccountidyominame);
}
/**
* 设置 [潜在客户类型]
*/
......@@ -1714,14 +1711,6 @@ public class Opportunity extends EntityMP implements Serializable {
this.modify("customeridtype",customeridtype);
}
/**
* 设置 [SLAName]
*/
public void setSlaname(String slaname){
this.slaname = slaname ;
this.modify("slaname",slaname);
}
/**
* 设置 [Record Created On]
*/
......@@ -1748,6 +1737,14 @@ public class Opportunity extends EntityMP implements Serializable {
this.modify("ownerid",ownerid);
}
/**
* 设置 [SLA]
*/
public void setSlaname(String slaname){
this.slaname = slaname ;
this.modify("slaname",slaname);
}
/**
* 设置 [联系人]
*/
......@@ -1804,6 +1801,54 @@ public class Opportunity extends EntityMP implements Serializable {
this.modify("slaid",slaid);
}
/**
* 设置 [价目表]
*/
public void setPricelevel(String pricelevel){
this.pricelevel = pricelevel ;
this.modify("pricelevel",pricelevel);
}
/**
* 设置 [原始潜在顾客]
*/
public void setOriginatingleadname(String originatingleadname){
this.originatingleadname = originatingleadname ;
this.modify("originatingleadname",originatingleadname);
}
/**
* 设置 [帐户]
*/
public void setParentaccountname(String parentaccountname){
this.parentaccountname = parentaccountname ;
this.modify("parentaccountname",parentaccountname);
}
/**
* 设置 [源市场活动]
*/
public void setCampaignname(String campaignname){
this.campaignname = campaignname ;
this.modify("campaignname",campaignname);
}
/**
* 设置 [联系人]
*/
public void setParentcontactname(String parentcontactname){
this.parentcontactname = parentcontactname ;
this.modify("parentcontactname",parentcontactname);
}
/**
* 设置 [货币]
*/
public void setTransactioncurrencyname(String transactioncurrencyname){
this.transactioncurrencyname = transactioncurrencyname ;
this.modify("transactioncurrencyname",transactioncurrencyname);
}
}
......
......@@ -524,13 +524,6 @@ public class Quote extends EntityMP implements Serializable {
@JSONField(name = "billto_name")
@JsonProperty("billto_name")
private String billtoName;
/**
* SLAName
*/
@TableField(value = "slaname")
@JSONField(name = "slaname")
@JsonProperty("slaname")
private String slaname;
/**
* 帐单寄往街道 1
*/
......@@ -690,6 +683,13 @@ public class Quote extends EntityMP implements Serializable {
@JSONField(name = "freightamount")
@JsonProperty("freightamount")
private BigDecimal freightamount;
/**
* SLA
*/
@TableField(value = "slaname")
@JSONField(name = "slaname")
@JsonProperty("slaname")
private String slaname;
/**
* 价目表
*/
......@@ -725,6 +725,34 @@ public class Quote extends EntityMP implements Serializable {
@JSONField(name = "campaignid")
@JsonProperty("campaignid")
private String campaignid;
/**
* 价目表
*/
@TableField(value = "pricelevelname")
@JSONField(name = "pricelevelname")
@JsonProperty("pricelevelname")
private String pricelevelname;
/**
* 商机
*/
@TableField(value = "opportunityname")
@JSONField(name = "opportunityname")
@JsonProperty("opportunityname")
private String opportunityname;
/**
* 货币
*/
@TableField(value = "transactioncurrencyname")
@JSONField(name = "transactioncurrencyname")
@JsonProperty("transactioncurrencyname")
private String transactioncurrencyname;
/**
* 源市场活动
*/
@TableField(value = "campaignname")
@JSONField(name = "campaignname")
@JsonProperty("campaignname")
private String campaignname;
/**
*
......@@ -1300,14 +1328,6 @@ public class Quote extends EntityMP implements Serializable {
this.modify("billto_name",billtoName);
}
/**
* 设置 [SLAName]
*/
public void setSlaname(String slaname){
this.slaname = slaname ;
this.modify("slaname",slaname);
}
/**
* 设置 [帐单寄往街道 1]
*/
......@@ -1486,6 +1506,14 @@ public class Quote extends EntityMP implements Serializable {
this.modify("freightamount",freightamount);
}
/**
* 设置 [SLA]
*/
public void setSlaname(String slaname){
this.slaname = slaname ;
this.modify("slaname",slaname);
}
/**
* 设置 [价目表]
*/
......@@ -1526,6 +1554,38 @@ public class Quote extends EntityMP implements Serializable {
this.modify("campaignid",campaignid);
}
/**
* 设置 [价目表]
*/
public void setPricelevelname(String pricelevelname){
this.pricelevelname = pricelevelname ;
this.modify("pricelevelname",pricelevelname);
}
/**
* 设置 [商机]
*/
public void setOpportunityname(String opportunityname){
this.opportunityname = opportunityname ;
this.modify("opportunityname",opportunityname);
}
/**
* 设置 [货币]
*/
public void setTransactioncurrencyname(String transactioncurrencyname){
this.transactioncurrencyname = transactioncurrencyname ;
this.modify("transactioncurrencyname",transactioncurrencyname);
}
/**
* 设置 [源市场活动]
*/
public void setCampaignname(String campaignname){
this.campaignname = campaignname ;
this.modify("campaignname",campaignname);
}
}
......
......@@ -255,6 +255,20 @@ public class SalesLiterature extends EntityMP implements Serializable {
@JSONField(name = "subjectid")
@JsonProperty("subjectid")
private String subjectid;
/**
* 货币
*/
@TableField(value = "transactioncurrencyname")
@JSONField(name = "transactioncurrencyname")
@JsonProperty("transactioncurrencyname")
private String transactioncurrencyname;
/**
* 主题
*/
@TableField(value = "subjectname")
@JSONField(name = "subjectname")
@JsonProperty("subjectname")
private String subjectname;
/**
*
......@@ -486,6 +500,22 @@ public class SalesLiterature extends EntityMP implements Serializable {
this.modify("subjectid",subjectid);
}
/**
* 设置 [货币]
*/
public void setTransactioncurrencyname(String transactioncurrencyname){
this.transactioncurrencyname = transactioncurrencyname ;
this.modify("transactioncurrencyname",transactioncurrencyname);
}
/**
* 设置 [主题]
*/
public void setSubjectname(String subjectname){
this.subjectname = subjectname ;
this.modify("subjectname",subjectname);
}
}
......
......@@ -346,13 +346,6 @@ public class SalesOrder extends EntityMP implements Serializable {
@JSONField(name = "shipto_addressid")
@JsonProperty("shipto_addressid")
private String shiptoAddressid;
/**
* SLAName
*/
@TableField(value = "slaname")
@JSONField(name = "slaname")
@JsonProperty("slaname")
private String slaname;
/**
* 付款条件
*/
......@@ -727,6 +720,13 @@ public class SalesOrder extends EntityMP implements Serializable {
@JSONField(name = "description")
@JsonProperty("description")
private String description;
/**
* SLA
*/
@TableField(value = "slaname")
@JSONField(name = "slaname")
@JsonProperty("slaname")
private String slaname;
/**
* 报价单
*/
......@@ -769,6 +769,41 @@ public class SalesOrder extends EntityMP implements Serializable {
@JSONField(name = "campaignid")
@JsonProperty("campaignid")
private String campaignid;
/**
* 报价单
*/
@TableField(value = "quotename")
@JSONField(name = "quotename")
@JsonProperty("quotename")
private String quotename;
/**
* 货币
*/
@TableField(value = "transactioncurrencyname")
@JSONField(name = "transactioncurrencyname")
@JsonProperty("transactioncurrencyname")
private String transactioncurrencyname;
/**
* 商机
*/
@TableField(value = "opportunityname")
@JSONField(name = "opportunityname")
@JsonProperty("opportunityname")
private String opportunityname;
/**
* 价目表
*/
@TableField(value = "pricelevelname")
@JSONField(name = "pricelevelname")
@JsonProperty("pricelevelname")
private String pricelevelname;
/**
* 源市场活动
*/
@TableField(value = "campaignname")
@JSONField(name = "campaignname")
@JsonProperty("campaignname")
private String campaignname;
/**
*
......@@ -1152,14 +1187,6 @@ public class SalesOrder extends EntityMP implements Serializable {
this.modify("shipto_addressid",shiptoAddressid);
}
/**
* 设置 [SLAName]
*/
public void setSlaname(String slaname){
this.slaname = slaname ;
this.modify("slaname",slaname);
}
/**
* 设置 [付款条件]
*/
......@@ -1568,6 +1595,14 @@ public class SalesOrder extends EntityMP implements Serializable {
this.modify("description",description);
}
/**
* 设置 [SLA]
*/
public void setSlaname(String slaname){
this.slaname = slaname ;
this.modify("slaname",slaname);
}
/**
* 设置 [报价单]
*/
......@@ -1616,6 +1651,46 @@ public class SalesOrder extends EntityMP implements Serializable {
this.modify("campaignid",campaignid);
}
/**
* 设置 [报价单]
*/
public void setQuotename(String quotename){
this.quotename = quotename ;
this.modify("quotename",quotename);
}
/**
* 设置 [货币]
*/
public void setTransactioncurrencyname(String transactioncurrencyname){
this.transactioncurrencyname = transactioncurrencyname ;
this.modify("transactioncurrencyname",transactioncurrencyname);
}
/**
* 设置 [商机]
*/
public void setOpportunityname(String opportunityname){
this.opportunityname = opportunityname ;
this.modify("opportunityname",opportunityname);
}
/**
* 设置 [价目表]
*/
public void setPricelevelname(String pricelevelname){
this.pricelevelname = pricelevelname ;
this.modify("pricelevelname",pricelevelname);
}
/**
* 设置 [源市场活动]
*/
public void setCampaignname(String campaignname){
this.campaignname = campaignname ;
this.modify("campaignname",campaignname);
}
}
......
......@@ -69,6 +69,20 @@ public class CompetitorSearchContext extends QueryWrapperContext<Competitor> {
this.getSearchCond().eq("transactioncurrencyid", n_transactioncurrencyid_eq);
}
}
private String n_transactioncurrencyname_eq;//[货币]
public void setN_transactioncurrencyname_eq(String n_transactioncurrencyname_eq) {
this.n_transactioncurrencyname_eq = n_transactioncurrencyname_eq;
if(!ObjectUtils.isEmpty(this.n_transactioncurrencyname_eq)){
this.getSearchCond().eq("transactioncurrencyname", n_transactioncurrencyname_eq);
}
}
private String n_transactioncurrencyname_like;//[货币]
public void setN_transactioncurrencyname_like(String n_transactioncurrencyname_like) {
this.n_transactioncurrencyname_like = n_transactioncurrencyname_like;
if(!ObjectUtils.isEmpty(this.n_transactioncurrencyname_like)){
this.getSearchCond().like("transactioncurrencyname", n_transactioncurrencyname_like);
}
}
/**
* 启用快速搜索
......
......@@ -216,6 +216,104 @@ public class LeadSearchContext extends QueryWrapperContext<Lead> {
this.getSearchCond().eq("parentcontactid", n_parentcontactid_eq);
}
}
private String n_originatingcasename_eq;//[原始案例]
public void setN_originatingcasename_eq(String n_originatingcasename_eq) {
this.n_originatingcasename_eq = n_originatingcasename_eq;
if(!ObjectUtils.isEmpty(this.n_originatingcasename_eq)){
this.getSearchCond().eq("originatingcasename", n_originatingcasename_eq);
}
}
private String n_originatingcasename_like;//[原始案例]
public void setN_originatingcasename_like(String n_originatingcasename_like) {
this.n_originatingcasename_like = n_originatingcasename_like;
if(!ObjectUtils.isEmpty(this.n_originatingcasename_like)){
this.getSearchCond().like("originatingcasename", n_originatingcasename_like);
}
}
private String n_qualifyingopportunityname_eq;//[授予商机资格]
public void setN_qualifyingopportunityname_eq(String n_qualifyingopportunityname_eq) {
this.n_qualifyingopportunityname_eq = n_qualifyingopportunityname_eq;
if(!ObjectUtils.isEmpty(this.n_qualifyingopportunityname_eq)){
this.getSearchCond().eq("qualifyingopportunityname", n_qualifyingopportunityname_eq);
}
}
private String n_qualifyingopportunityname_like;//[授予商机资格]
public void setN_qualifyingopportunityname_like(String n_qualifyingopportunityname_like) {
this.n_qualifyingopportunityname_like = n_qualifyingopportunityname_like;
if(!ObjectUtils.isEmpty(this.n_qualifyingopportunityname_like)){
this.getSearchCond().like("qualifyingopportunityname", n_qualifyingopportunityname_like);
}
}
private String n_campaignname_eq;//[源市场活动]
public void setN_campaignname_eq(String n_campaignname_eq) {
this.n_campaignname_eq = n_campaignname_eq;
if(!ObjectUtils.isEmpty(this.n_campaignname_eq)){
this.getSearchCond().eq("campaignname", n_campaignname_eq);
}
}
private String n_campaignname_like;//[源市场活动]
public void setN_campaignname_like(String n_campaignname_like) {
this.n_campaignname_like = n_campaignname_like;
if(!ObjectUtils.isEmpty(this.n_campaignname_like)){
this.getSearchCond().like("campaignname", n_campaignname_like);
}
}
private String n_parentcontactname_eq;//[潜在顾客的上司]
public void setN_parentcontactname_eq(String n_parentcontactname_eq) {
this.n_parentcontactname_eq = n_parentcontactname_eq;
if(!ObjectUtils.isEmpty(this.n_parentcontactname_eq)){
this.getSearchCond().eq("parentcontactname", n_parentcontactname_eq);
}
}
private String n_parentcontactname_like;//[潜在顾客的上司]
public void setN_parentcontactname_like(String n_parentcontactname_like) {
this.n_parentcontactname_like = n_parentcontactname_like;
if(!ObjectUtils.isEmpty(this.n_parentcontactname_like)){
this.getSearchCond().like("parentcontactname", n_parentcontactname_like);
}
}
private String n_parentaccountname_eq;//[潜在顾客的上级单位]
public void setN_parentaccountname_eq(String n_parentaccountname_eq) {
this.n_parentaccountname_eq = n_parentaccountname_eq;
if(!ObjectUtils.isEmpty(this.n_parentaccountname_eq)){
this.getSearchCond().eq("parentaccountname", n_parentaccountname_eq);
}
}
private String n_parentaccountname_like;//[潜在顾客的上级单位]
public void setN_parentaccountname_like(String n_parentaccountname_like) {
this.n_parentaccountname_like = n_parentaccountname_like;
if(!ObjectUtils.isEmpty(this.n_parentaccountname_like)){
this.getSearchCond().like("parentaccountname", n_parentaccountname_like);
}
}
private String n_relatedobjectname_eq;//[相关市场活动响应]
public void setN_relatedobjectname_eq(String n_relatedobjectname_eq) {
this.n_relatedobjectname_eq = n_relatedobjectname_eq;
if(!ObjectUtils.isEmpty(this.n_relatedobjectname_eq)){
this.getSearchCond().eq("relatedobjectname", n_relatedobjectname_eq);
}
}
private String n_relatedobjectname_like;//[相关市场活动响应]
public void setN_relatedobjectname_like(String n_relatedobjectname_like) {
this.n_relatedobjectname_like = n_relatedobjectname_like;
if(!ObjectUtils.isEmpty(this.n_relatedobjectname_like)){
this.getSearchCond().like("relatedobjectname", n_relatedobjectname_like);
}
}
private String n_transactioncurrencyname_eq;//[货币]
public void setN_transactioncurrencyname_eq(String n_transactioncurrencyname_eq) {
this.n_transactioncurrencyname_eq = n_transactioncurrencyname_eq;
if(!ObjectUtils.isEmpty(this.n_transactioncurrencyname_eq)){
this.getSearchCond().eq("transactioncurrencyname", n_transactioncurrencyname_eq);
}
}
private String n_transactioncurrencyname_like;//[货币]
public void setN_transactioncurrencyname_like(String n_transactioncurrencyname_like) {
this.n_transactioncurrencyname_like = n_transactioncurrencyname_like;
if(!ObjectUtils.isEmpty(this.n_transactioncurrencyname_like)){
this.getSearchCond().like("transactioncurrencyname", n_transactioncurrencyname_like);
}
}
/**
* 启用快速搜索
......
......@@ -174,6 +174,90 @@ public class OpportunitySearchContext extends QueryWrapperContext<Opportunity> {
this.getSearchCond().eq("slaid", n_slaid_eq);
}
}
private String n_pricelevel_eq;//[价目表]
public void setN_pricelevel_eq(String n_pricelevel_eq) {
this.n_pricelevel_eq = n_pricelevel_eq;
if(!ObjectUtils.isEmpty(this.n_pricelevel_eq)){
this.getSearchCond().eq("pricelevel", n_pricelevel_eq);
}
}
private String n_pricelevel_like;//[价目表]
public void setN_pricelevel_like(String n_pricelevel_like) {
this.n_pricelevel_like = n_pricelevel_like;
if(!ObjectUtils.isEmpty(this.n_pricelevel_like)){
this.getSearchCond().like("pricelevel", n_pricelevel_like);
}
}
private String n_originatingleadname_eq;//[原始潜在顾客]
public void setN_originatingleadname_eq(String n_originatingleadname_eq) {
this.n_originatingleadname_eq = n_originatingleadname_eq;
if(!ObjectUtils.isEmpty(this.n_originatingleadname_eq)){
this.getSearchCond().eq("originatingleadname", n_originatingleadname_eq);
}
}
private String n_originatingleadname_like;//[原始潜在顾客]
public void setN_originatingleadname_like(String n_originatingleadname_like) {
this.n_originatingleadname_like = n_originatingleadname_like;
if(!ObjectUtils.isEmpty(this.n_originatingleadname_like)){
this.getSearchCond().like("originatingleadname", n_originatingleadname_like);
}
}
private String n_parentaccountname_eq;//[帐户]
public void setN_parentaccountname_eq(String n_parentaccountname_eq) {
this.n_parentaccountname_eq = n_parentaccountname_eq;
if(!ObjectUtils.isEmpty(this.n_parentaccountname_eq)){
this.getSearchCond().eq("parentaccountname", n_parentaccountname_eq);
}
}
private String n_parentaccountname_like;//[帐户]
public void setN_parentaccountname_like(String n_parentaccountname_like) {
this.n_parentaccountname_like = n_parentaccountname_like;
if(!ObjectUtils.isEmpty(this.n_parentaccountname_like)){
this.getSearchCond().like("parentaccountname", n_parentaccountname_like);
}
}
private String n_campaignname_eq;//[源市场活动]
public void setN_campaignname_eq(String n_campaignname_eq) {
this.n_campaignname_eq = n_campaignname_eq;
if(!ObjectUtils.isEmpty(this.n_campaignname_eq)){
this.getSearchCond().eq("campaignname", n_campaignname_eq);
}
}
private String n_campaignname_like;//[源市场活动]
public void setN_campaignname_like(String n_campaignname_like) {
this.n_campaignname_like = n_campaignname_like;
if(!ObjectUtils.isEmpty(this.n_campaignname_like)){
this.getSearchCond().like("campaignname", n_campaignname_like);
}
}
private String n_parentcontactname_eq;//[联系人]
public void setN_parentcontactname_eq(String n_parentcontactname_eq) {
this.n_parentcontactname_eq = n_parentcontactname_eq;
if(!ObjectUtils.isEmpty(this.n_parentcontactname_eq)){
this.getSearchCond().eq("parentcontactname", n_parentcontactname_eq);
}
}
private String n_parentcontactname_like;//[联系人]
public void setN_parentcontactname_like(String n_parentcontactname_like) {
this.n_parentcontactname_like = n_parentcontactname_like;
if(!ObjectUtils.isEmpty(this.n_parentcontactname_like)){
this.getSearchCond().like("parentcontactname", n_parentcontactname_like);
}
}
private String n_transactioncurrencyname_eq;//[货币]
public void setN_transactioncurrencyname_eq(String n_transactioncurrencyname_eq) {
this.n_transactioncurrencyname_eq = n_transactioncurrencyname_eq;
if(!ObjectUtils.isEmpty(this.n_transactioncurrencyname_eq)){
this.getSearchCond().eq("transactioncurrencyname", n_transactioncurrencyname_eq);
}
}
private String n_transactioncurrencyname_like;//[货币]
public void setN_transactioncurrencyname_like(String n_transactioncurrencyname_like) {
this.n_transactioncurrencyname_like = n_transactioncurrencyname_like;
if(!ObjectUtils.isEmpty(this.n_transactioncurrencyname_like)){
this.getSearchCond().like("transactioncurrencyname", n_transactioncurrencyname_like);
}
}
/**
* 启用快速搜索
......
......@@ -118,6 +118,62 @@ public class QuoteSearchContext extends QueryWrapperContext<Quote> {
this.getSearchCond().eq("campaignid", n_campaignid_eq);
}
}
private String n_pricelevelname_eq;//[价目表]
public void setN_pricelevelname_eq(String n_pricelevelname_eq) {
this.n_pricelevelname_eq = n_pricelevelname_eq;
if(!ObjectUtils.isEmpty(this.n_pricelevelname_eq)){
this.getSearchCond().eq("pricelevelname", n_pricelevelname_eq);
}
}
private String n_pricelevelname_like;//[价目表]
public void setN_pricelevelname_like(String n_pricelevelname_like) {
this.n_pricelevelname_like = n_pricelevelname_like;
if(!ObjectUtils.isEmpty(this.n_pricelevelname_like)){
this.getSearchCond().like("pricelevelname", n_pricelevelname_like);
}
}
private String n_opportunityname_eq;//[商机]
public void setN_opportunityname_eq(String n_opportunityname_eq) {
this.n_opportunityname_eq = n_opportunityname_eq;
if(!ObjectUtils.isEmpty(this.n_opportunityname_eq)){
this.getSearchCond().eq("opportunityname", n_opportunityname_eq);
}
}
private String n_opportunityname_like;//[商机]
public void setN_opportunityname_like(String n_opportunityname_like) {
this.n_opportunityname_like = n_opportunityname_like;
if(!ObjectUtils.isEmpty(this.n_opportunityname_like)){
this.getSearchCond().like("opportunityname", n_opportunityname_like);
}
}
private String n_transactioncurrencyname_eq;//[货币]
public void setN_transactioncurrencyname_eq(String n_transactioncurrencyname_eq) {
this.n_transactioncurrencyname_eq = n_transactioncurrencyname_eq;
if(!ObjectUtils.isEmpty(this.n_transactioncurrencyname_eq)){
this.getSearchCond().eq("transactioncurrencyname", n_transactioncurrencyname_eq);
}
}
private String n_transactioncurrencyname_like;//[货币]
public void setN_transactioncurrencyname_like(String n_transactioncurrencyname_like) {
this.n_transactioncurrencyname_like = n_transactioncurrencyname_like;
if(!ObjectUtils.isEmpty(this.n_transactioncurrencyname_like)){
this.getSearchCond().like("transactioncurrencyname", n_transactioncurrencyname_like);
}
}
private String n_campaignname_eq;//[源市场活动]
public void setN_campaignname_eq(String n_campaignname_eq) {
this.n_campaignname_eq = n_campaignname_eq;
if(!ObjectUtils.isEmpty(this.n_campaignname_eq)){
this.getSearchCond().eq("campaignname", n_campaignname_eq);
}
}
private String n_campaignname_like;//[源市场活动]
public void setN_campaignname_like(String n_campaignname_like) {
this.n_campaignname_like = n_campaignname_like;
if(!ObjectUtils.isEmpty(this.n_campaignname_like)){
this.getSearchCond().like("campaignname", n_campaignname_like);
}
}
/**
* 启用快速搜索
......
......@@ -55,6 +55,34 @@ public class SalesLiteratureSearchContext extends QueryWrapperContext<SalesLiter
this.getSearchCond().eq("subjectid", n_subjectid_eq);
}
}
private String n_transactioncurrencyname_eq;//[货币]
public void setN_transactioncurrencyname_eq(String n_transactioncurrencyname_eq) {
this.n_transactioncurrencyname_eq = n_transactioncurrencyname_eq;
if(!ObjectUtils.isEmpty(this.n_transactioncurrencyname_eq)){
this.getSearchCond().eq("transactioncurrencyname", n_transactioncurrencyname_eq);
}
}
private String n_transactioncurrencyname_like;//[货币]
public void setN_transactioncurrencyname_like(String n_transactioncurrencyname_like) {
this.n_transactioncurrencyname_like = n_transactioncurrencyname_like;
if(!ObjectUtils.isEmpty(this.n_transactioncurrencyname_like)){
this.getSearchCond().like("transactioncurrencyname", n_transactioncurrencyname_like);
}
}
private String n_subjectname_eq;//[主题]
public void setN_subjectname_eq(String n_subjectname_eq) {
this.n_subjectname_eq = n_subjectname_eq;
if(!ObjectUtils.isEmpty(this.n_subjectname_eq)){
this.getSearchCond().eq("subjectname", n_subjectname_eq);
}
}
private String n_subjectname_like;//[主题]
public void setN_subjectname_like(String n_subjectname_like) {
this.n_subjectname_like = n_subjectname_like;
if(!ObjectUtils.isEmpty(this.n_subjectname_like)){
this.getSearchCond().like("subjectname", n_subjectname_like);
}
}
/**
* 启用快速搜索
......
......@@ -132,6 +132,76 @@ public class SalesOrderSearchContext extends QueryWrapperContext<SalesOrder> {
this.getSearchCond().eq("campaignid", n_campaignid_eq);
}
}
private String n_quotename_eq;//[报价单]
public void setN_quotename_eq(String n_quotename_eq) {
this.n_quotename_eq = n_quotename_eq;
if(!ObjectUtils.isEmpty(this.n_quotename_eq)){
this.getSearchCond().eq("quotename", n_quotename_eq);
}
}
private String n_quotename_like;//[报价单]
public void setN_quotename_like(String n_quotename_like) {
this.n_quotename_like = n_quotename_like;
if(!ObjectUtils.isEmpty(this.n_quotename_like)){
this.getSearchCond().like("quotename", n_quotename_like);
}
}
private String n_transactioncurrencyname_eq;//[货币]
public void setN_transactioncurrencyname_eq(String n_transactioncurrencyname_eq) {
this.n_transactioncurrencyname_eq = n_transactioncurrencyname_eq;
if(!ObjectUtils.isEmpty(this.n_transactioncurrencyname_eq)){
this.getSearchCond().eq("transactioncurrencyname", n_transactioncurrencyname_eq);
}
}
private String n_transactioncurrencyname_like;//[货币]
public void setN_transactioncurrencyname_like(String n_transactioncurrencyname_like) {
this.n_transactioncurrencyname_like = n_transactioncurrencyname_like;
if(!ObjectUtils.isEmpty(this.n_transactioncurrencyname_like)){
this.getSearchCond().like("transactioncurrencyname", n_transactioncurrencyname_like);
}
}
private String n_opportunityname_eq;//[商机]
public void setN_opportunityname_eq(String n_opportunityname_eq) {
this.n_opportunityname_eq = n_opportunityname_eq;
if(!ObjectUtils.isEmpty(this.n_opportunityname_eq)){
this.getSearchCond().eq("opportunityname", n_opportunityname_eq);
}
}
private String n_opportunityname_like;//[商机]
public void setN_opportunityname_like(String n_opportunityname_like) {
this.n_opportunityname_like = n_opportunityname_like;
if(!ObjectUtils.isEmpty(this.n_opportunityname_like)){
this.getSearchCond().like("opportunityname", n_opportunityname_like);
}
}
private String n_pricelevelname_eq;//[价目表]
public void setN_pricelevelname_eq(String n_pricelevelname_eq) {
this.n_pricelevelname_eq = n_pricelevelname_eq;
if(!ObjectUtils.isEmpty(this.n_pricelevelname_eq)){
this.getSearchCond().eq("pricelevelname", n_pricelevelname_eq);
}
}
private String n_pricelevelname_like;//[价目表]
public void setN_pricelevelname_like(String n_pricelevelname_like) {
this.n_pricelevelname_like = n_pricelevelname_like;
if(!ObjectUtils.isEmpty(this.n_pricelevelname_like)){
this.getSearchCond().like("pricelevelname", n_pricelevelname_like);
}
}
private String n_campaignname_eq;//[源市场活动]
public void setN_campaignname_eq(String n_campaignname_eq) {
this.n_campaignname_eq = n_campaignname_eq;
if(!ObjectUtils.isEmpty(this.n_campaignname_eq)){
this.getSearchCond().eq("campaignname", n_campaignname_eq);
}
}
private String n_campaignname_like;//[源市场活动]
public void setN_campaignname_like(String n_campaignname_like) {
this.n_campaignname_like = n_campaignname_like;
if(!ObjectUtils.isEmpty(this.n_campaignname_like)){
this.getSearchCond().like("campaignname", n_campaignname_like);
}
}
/**
* 启用快速搜索
......
......@@ -68,6 +68,7 @@ public class CompetitorServiceImpl extends ServiceImpl<CompetitorMapper, Competi
@Override
@Transactional
public boolean update(Competitor et) {
fillParentData(et);
if(!update(et,(Wrapper) et.getUpdateWrapper(true).eq("competitorid",et.getCompetitorid())))
return false;
CachedBeanCopier.copy(get(et.getCompetitorid()),et);
......@@ -76,6 +77,7 @@ public class CompetitorServiceImpl extends ServiceImpl<CompetitorMapper, Competi
@Override
public void updateBatch(List<Competitor> list) {
list.forEach(item->fillParentData(item));
updateBatchById(list,batchSize);
}
......@@ -101,12 +103,14 @@ public class CompetitorServiceImpl extends ServiceImpl<CompetitorMapper, Competi
@Override
public boolean saveBatch(Collection<Competitor> list) {
list.forEach(item->fillParentData(item));
saveOrUpdateBatch(list,batchSize);
return true;
}
@Override
public void saveBatch(List<Competitor> list) {
list.forEach(item->fillParentData(item));
saveOrUpdateBatch(list,batchSize);
}
......@@ -126,6 +130,7 @@ public class CompetitorServiceImpl extends ServiceImpl<CompetitorMapper, Competi
@Override
@Transactional
public boolean create(Competitor et) {
fillParentData(et);
if(!this.retBool(this.baseMapper.insert(et)))
return false;
CachedBeanCopier.copy(get(et.getCompetitorid()),et);
......@@ -134,6 +139,7 @@ public class CompetitorServiceImpl extends ServiceImpl<CompetitorMapper, Competi
@Override
public void createBatch(List<Competitor> list) {
list.forEach(item->fillParentData(item));
this.saveBatch(list,batchSize);
}
......@@ -143,6 +149,7 @@ public class CompetitorServiceImpl extends ServiceImpl<CompetitorMapper, Competi
}
@Override
public Competitor getDraft(Competitor et) {
fillParentData(et);
return et;
}
......@@ -169,6 +176,22 @@ public class CompetitorServiceImpl extends ServiceImpl<CompetitorMapper, Competi
/**
* 为当前实体填充父数据(外键值文本、外键值附加数据)
* @param et
*/
private void fillParentData(Competitor et){
//实体关系[DER1N_COMPETITOR__TRANSACTIONCURRENCY__TRANSACTIONCURRENCYID]
if(!ObjectUtils.isEmpty(et.getTransactioncurrencyid())){
cn.ibizlab.businesscentral.core.base.domain.TransactionCurrency transactioncurrency=et.getTransactioncurrency();
if(ObjectUtils.isEmpty(transactioncurrency)){
cn.ibizlab.businesscentral.core.base.domain.TransactionCurrency majorEntity=transactioncurrencyService.get(et.getTransactioncurrencyid());
et.setTransactioncurrency(majorEntity);
transactioncurrency=majorEntity;
}
et.setTransactioncurrencyname(transactioncurrency.getCurrencyname());
}
}
@Override
......
......@@ -77,6 +77,7 @@ public class LeadServiceImpl extends ServiceImpl<LeadMapper, Lead> implements IL
@Override
@Transactional
public boolean update(Lead et) {
fillParentData(et);
if(!update(et,(Wrapper) et.getUpdateWrapper(true).eq("leadid",et.getLeadid())))
return false;
CachedBeanCopier.copy(get(et.getLeadid()),et);
......@@ -85,11 +86,13 @@ public class LeadServiceImpl extends ServiceImpl<LeadMapper, Lead> implements IL
@Override
public void updateBatch(List<Lead> list) {
list.forEach(item->fillParentData(item));
updateBatchById(list,batchSize);
}
@Override
public Lead getDraft(Lead et) {
fillParentData(et);
return et;
}
......@@ -132,18 +135,21 @@ public class LeadServiceImpl extends ServiceImpl<LeadMapper, Lead> implements IL
@Override
public boolean saveBatch(Collection<Lead> list) {
list.forEach(item->fillParentData(item));
saveOrUpdateBatch(list,batchSize);
return true;
}
@Override
public void saveBatch(List<Lead> list) {
list.forEach(item->fillParentData(item));
saveOrUpdateBatch(list,batchSize);
}
@Override
@Transactional
public boolean create(Lead et) {
fillParentData(et);
if(!this.retBool(this.baseMapper.insert(et)))
return false;
CachedBeanCopier.copy(get(et.getLeadid()),et);
......@@ -152,6 +158,7 @@ public class LeadServiceImpl extends ServiceImpl<LeadMapper, Lead> implements IL
@Override
public void createBatch(List<Lead> list) {
list.forEach(item->fillParentData(item));
this.saveBatch(list,batchSize);
}
......@@ -260,6 +267,92 @@ public class LeadServiceImpl extends ServiceImpl<LeadMapper, Lead> implements IL
/**
* 为当前实体填充父数据(外键值文本、外键值附加数据)
* @param et
*/
private void fillParentData(Lead et){
//实体关系[DER1N_LEAD__ACCOUNT__PARENTACCOUNTID]
if(!ObjectUtils.isEmpty(et.getParentaccountid())){
cn.ibizlab.businesscentral.core.base.domain.Account parentaccount=et.getParentaccount();
if(ObjectUtils.isEmpty(parentaccount)){
cn.ibizlab.businesscentral.core.base.domain.Account majorEntity=accountService.get(et.getParentaccountid());
et.setParentaccount(majorEntity);
parentaccount=majorEntity;
}
et.setParentaccountname(parentaccount.getAccountname());
}
//实体关系[DER1N_LEAD__CAMPAIGNRESPONSE__RELATEDOBJECTID]
if(!ObjectUtils.isEmpty(et.getRelatedobjectid())){
cn.ibizlab.businesscentral.core.marketing.domain.CampaignResponse relatedobject=et.getRelatedobject();
if(ObjectUtils.isEmpty(relatedobject)){
cn.ibizlab.businesscentral.core.marketing.domain.CampaignResponse majorEntity=campaignresponseService.get(et.getRelatedobjectid());
et.setRelatedobject(majorEntity);
relatedobject=majorEntity;
}
et.setRelatedobjectname(relatedobject.getSubject());
}
//实体关系[DER1N_LEAD__CAMPAIGN__CAMPAIGNID]
if(!ObjectUtils.isEmpty(et.getCampaignid())){
cn.ibizlab.businesscentral.core.marketing.domain.Campaign campaign=et.getCampaign();
if(ObjectUtils.isEmpty(campaign)){
cn.ibizlab.businesscentral.core.marketing.domain.Campaign majorEntity=campaignService.get(et.getCampaignid());
et.setCampaign(majorEntity);
campaign=majorEntity;
}
et.setCampaignname(campaign.getCampaignname());
}
//实体关系[DER1N_LEAD__CONTACT__PARENTCONTACTID]
if(!ObjectUtils.isEmpty(et.getParentcontactid())){
cn.ibizlab.businesscentral.core.base.domain.Contact parentcontact=et.getParentcontact();
if(ObjectUtils.isEmpty(parentcontact)){
cn.ibizlab.businesscentral.core.base.domain.Contact majorEntity=contactService.get(et.getParentcontactid());
et.setParentcontact(majorEntity);
parentcontact=majorEntity;
}
et.setParentcontactname(parentcontact.getFullname());
}
//实体关系[DER1N_LEAD__INCIDENT__ORIGINATINGCASEID]
if(!ObjectUtils.isEmpty(et.getOriginatingcaseid())){
cn.ibizlab.businesscentral.core.service.domain.Incident originatingcase=et.getOriginatingcase();
if(ObjectUtils.isEmpty(originatingcase)){
cn.ibizlab.businesscentral.core.service.domain.Incident majorEntity=incidentService.get(et.getOriginatingcaseid());
et.setOriginatingcase(majorEntity);
originatingcase=majorEntity;
}
et.setOriginatingcasename(originatingcase.getTitle());
}
//实体关系[DER1N_LEAD__OPPORTUNITY__QUALIFYINGOPPORTUNITYID]
if(!ObjectUtils.isEmpty(et.getQualifyingopportunityid())){
cn.ibizlab.businesscentral.core.sales.domain.Opportunity qualifyingopportunity=et.getQualifyingopportunity();
if(ObjectUtils.isEmpty(qualifyingopportunity)){
cn.ibizlab.businesscentral.core.sales.domain.Opportunity majorEntity=opportunityService.get(et.getQualifyingopportunityid());
et.setQualifyingopportunity(majorEntity);
qualifyingopportunity=majorEntity;
}
et.setQualifyingopportunityname(qualifyingopportunity.getOpportunityname());
}
//实体关系[DER1N_LEAD__SLA__SLAID]
if(!ObjectUtils.isEmpty(et.getSlaid())){
cn.ibizlab.businesscentral.core.base.domain.Sla sla=et.getSla();
if(ObjectUtils.isEmpty(sla)){
cn.ibizlab.businesscentral.core.base.domain.Sla majorEntity=slaService.get(et.getSlaid());
et.setSla(majorEntity);
sla=majorEntity;
}
et.setSlaname(sla.getSlaname());
}
//实体关系[DER1N_LEAD__TRANSACTIONCURRENCY__TRANSACTIONCURRENCYID]
if(!ObjectUtils.isEmpty(et.getTransactioncurrencyid())){
cn.ibizlab.businesscentral.core.base.domain.TransactionCurrency transactioncurrency=et.getTransactioncurrency();
if(ObjectUtils.isEmpty(transactioncurrency)){
cn.ibizlab.businesscentral.core.base.domain.TransactionCurrency majorEntity=transactioncurrencyService.get(et.getTransactioncurrencyid());
et.setTransactioncurrency(majorEntity);
transactioncurrency=majorEntity;
}
et.setTransactioncurrencyname(transactioncurrency.getCurrencyname());
}
}
@Override
......
......@@ -98,12 +98,14 @@ public class OpportunityServiceImpl extends ServiceImpl<OpportunityMapper, Oppor
@Override
public Opportunity getDraft(Opportunity et) {
fillParentData(et);
return et;
}
@Override
@Transactional
public boolean create(Opportunity et) {
fillParentData(et);
if(!this.retBool(this.baseMapper.insert(et)))
return false;
CachedBeanCopier.copy(get(et.getOpportunityid()),et);
......@@ -112,6 +114,7 @@ public class OpportunityServiceImpl extends ServiceImpl<OpportunityMapper, Oppor
@Override
public void createBatch(List<Opportunity> list) {
list.forEach(item->fillParentData(item));
this.saveBatch(list,batchSize);
}
......@@ -130,6 +133,7 @@ public class OpportunityServiceImpl extends ServiceImpl<OpportunityMapper, Oppor
@Override
@Transactional
public boolean update(Opportunity et) {
fillParentData(et);
if(!update(et,(Wrapper) et.getUpdateWrapper(true).eq("opportunityid",et.getOpportunityid())))
return false;
CachedBeanCopier.copy(get(et.getOpportunityid()),et);
......@@ -138,6 +142,7 @@ public class OpportunityServiceImpl extends ServiceImpl<OpportunityMapper, Oppor
@Override
public void updateBatch(List<Opportunity> list) {
list.forEach(item->fillParentData(item));
updateBatchById(list,batchSize);
}
......@@ -167,12 +172,14 @@ public class OpportunityServiceImpl extends ServiceImpl<OpportunityMapper, Oppor
@Override
public boolean saveBatch(Collection<Opportunity> list) {
list.forEach(item->fillParentData(item));
saveOrUpdateBatch(list,batchSize);
return true;
}
@Override
public void saveBatch(List<Opportunity> list) {
list.forEach(item->fillParentData(item));
saveOrUpdateBatch(list,batchSize);
}
......@@ -259,6 +266,82 @@ public class OpportunityServiceImpl extends ServiceImpl<OpportunityMapper, Oppor
/**
* 为当前实体填充父数据(外键值文本、外键值附加数据)
* @param et
*/
private void fillParentData(Opportunity et){
//实体关系[DER1N_OPPORTUNITY__ACCOUNT__PARENTACCOUNTID]
if(!ObjectUtils.isEmpty(et.getParentaccountid())){
cn.ibizlab.businesscentral.core.base.domain.Account parentaccount=et.getParentaccount();
if(ObjectUtils.isEmpty(parentaccount)){
cn.ibizlab.businesscentral.core.base.domain.Account majorEntity=accountService.get(et.getParentaccountid());
et.setParentaccount(majorEntity);
parentaccount=majorEntity;
}
et.setParentaccountname(parentaccount.getAccountname());
}
//实体关系[DER1N_OPPORTUNITY__CAMPAIGN__CAMPAIGNID]
if(!ObjectUtils.isEmpty(et.getCampaignid())){
cn.ibizlab.businesscentral.core.marketing.domain.Campaign campaign=et.getCampaign();
if(ObjectUtils.isEmpty(campaign)){
cn.ibizlab.businesscentral.core.marketing.domain.Campaign majorEntity=campaignService.get(et.getCampaignid());
et.setCampaign(majorEntity);
campaign=majorEntity;
}
et.setCampaignname(campaign.getCampaignname());
}
//实体关系[DER1N_OPPORTUNITY__CONTACT__PARENTCONTACTID]
if(!ObjectUtils.isEmpty(et.getParentcontactid())){
cn.ibizlab.businesscentral.core.base.domain.Contact parentcontact=et.getParentcontact();
if(ObjectUtils.isEmpty(parentcontact)){
cn.ibizlab.businesscentral.core.base.domain.Contact majorEntity=contactService.get(et.getParentcontactid());
et.setParentcontact(majorEntity);
parentcontact=majorEntity;
}
et.setParentcontactname(parentcontact.getFullname());
}
//实体关系[DER1N_OPPORTUNITY__LEAD__ORIGINATINGLEADID]
if(!ObjectUtils.isEmpty(et.getOriginatingleadid())){
cn.ibizlab.businesscentral.core.sales.domain.Lead originatinglead=et.getOriginatinglead();
if(ObjectUtils.isEmpty(originatinglead)){
cn.ibizlab.businesscentral.core.sales.domain.Lead majorEntity=leadService.get(et.getOriginatingleadid());
et.setOriginatinglead(majorEntity);
originatinglead=majorEntity;
}
et.setOriginatingleadname(originatinglead.getFullname());
}
//实体关系[DER1N_OPPORTUNITY__PRICELEVEL__PRICELEVELID]
if(!ObjectUtils.isEmpty(et.getPricelevelid())){
cn.ibizlab.businesscentral.core.product.domain.PriceLevel pricelevel=et.getPricelevel();
if(ObjectUtils.isEmpty(pricelevel)){
cn.ibizlab.businesscentral.core.product.domain.PriceLevel majorEntity=pricelevelService.get(et.getPricelevelid());
et.setPricelevel(majorEntity);
pricelevel=majorEntity;
}
et.setPricelevel(pricelevel.getPricelevelname());
}
//实体关系[DER1N_OPPORTUNITY__SLA__SLAID]
if(!ObjectUtils.isEmpty(et.getSlaid())){
cn.ibizlab.businesscentral.core.base.domain.Sla sla=et.getSla();
if(ObjectUtils.isEmpty(sla)){
cn.ibizlab.businesscentral.core.base.domain.Sla majorEntity=slaService.get(et.getSlaid());
et.setSla(majorEntity);
sla=majorEntity;
}
et.setSlaname(sla.getSlaname());
}
//实体关系[DER1N_OPPORTUNITY__TRANSACTIONCURRENCY__TRANSACTIONCURRENCYID]
if(!ObjectUtils.isEmpty(et.getTransactioncurrencyid())){
cn.ibizlab.businesscentral.core.base.domain.TransactionCurrency transactioncurrency=et.getTransactioncurrency();
if(ObjectUtils.isEmpty(transactioncurrency)){
cn.ibizlab.businesscentral.core.base.domain.TransactionCurrency majorEntity=transactioncurrencyService.get(et.getTransactioncurrencyid());
et.setTransactioncurrency(majorEntity);
transactioncurrency=majorEntity;
}
et.setTransactioncurrencyname(transactioncurrency.getCurrencyname());
}
}
@Override
......
......@@ -74,6 +74,7 @@ public class QuoteServiceImpl extends ServiceImpl<QuoteMapper, Quote> implements
@Override
@Transactional
public boolean create(Quote et) {
fillParentData(et);
if(!this.retBool(this.baseMapper.insert(et)))
return false;
CachedBeanCopier.copy(get(et.getQuoteid()),et);
......@@ -82,6 +83,7 @@ public class QuoteServiceImpl extends ServiceImpl<QuoteMapper, Quote> implements
@Override
public void createBatch(List<Quote> list) {
list.forEach(item->fillParentData(item));
this.saveBatch(list,batchSize);
}
......@@ -107,12 +109,14 @@ public class QuoteServiceImpl extends ServiceImpl<QuoteMapper, Quote> implements
@Override
public boolean saveBatch(Collection<Quote> list) {
list.forEach(item->fillParentData(item));
saveOrUpdateBatch(list,batchSize);
return true;
}
@Override
public void saveBatch(List<Quote> list) {
list.forEach(item->fillParentData(item));
saveOrUpdateBatch(list,batchSize);
}
......@@ -131,6 +135,7 @@ public class QuoteServiceImpl extends ServiceImpl<QuoteMapper, Quote> implements
@Override
@Transactional
public boolean update(Quote et) {
fillParentData(et);
if(!update(et,(Wrapper) et.getUpdateWrapper(true).eq("quoteid",et.getQuoteid())))
return false;
CachedBeanCopier.copy(get(et.getQuoteid()),et);
......@@ -139,6 +144,7 @@ public class QuoteServiceImpl extends ServiceImpl<QuoteMapper, Quote> implements
@Override
public void updateBatch(List<Quote> list) {
list.forEach(item->fillParentData(item));
updateBatchById(list,batchSize);
}
......@@ -161,6 +167,7 @@ public class QuoteServiceImpl extends ServiceImpl<QuoteMapper, Quote> implements
}
@Override
public Quote getDraft(Quote et) {
fillParentData(et);
return et;
}
......@@ -227,6 +234,62 @@ public class QuoteServiceImpl extends ServiceImpl<QuoteMapper, Quote> implements
/**
* 为当前实体填充父数据(外键值文本、外键值附加数据)
* @param et
*/
private void fillParentData(Quote et){
//实体关系[DER1N_QUOTE__CAMPAIGN__CAMPAIGNID]
if(!ObjectUtils.isEmpty(et.getCampaignid())){
cn.ibizlab.businesscentral.core.marketing.domain.Campaign campaign=et.getCampaign();
if(ObjectUtils.isEmpty(campaign)){
cn.ibizlab.businesscentral.core.marketing.domain.Campaign majorEntity=campaignService.get(et.getCampaignid());
et.setCampaign(majorEntity);
campaign=majorEntity;
}
et.setCampaignname(campaign.getCampaignname());
}
//实体关系[DER1N_QUOTE__OPPORTUNITY__OPPORTUNITYID]
if(!ObjectUtils.isEmpty(et.getOpportunityid())){
cn.ibizlab.businesscentral.core.sales.domain.Opportunity opportunity=et.getOpportunity();
if(ObjectUtils.isEmpty(opportunity)){
cn.ibizlab.businesscentral.core.sales.domain.Opportunity majorEntity=opportunityService.get(et.getOpportunityid());
et.setOpportunity(majorEntity);
opportunity=majorEntity;
}
et.setOpportunityname(opportunity.getOpportunityname());
}
//实体关系[DER1N_QUOTE__PRICELEVEL__PRICELEVELID]
if(!ObjectUtils.isEmpty(et.getPricelevelid())){
cn.ibizlab.businesscentral.core.product.domain.PriceLevel pricelevel=et.getPricelevel();
if(ObjectUtils.isEmpty(pricelevel)){
cn.ibizlab.businesscentral.core.product.domain.PriceLevel majorEntity=pricelevelService.get(et.getPricelevelid());
et.setPricelevel(majorEntity);
pricelevel=majorEntity;
}
et.setPricelevelname(pricelevel.getPricelevelname());
}
//实体关系[DER1N_QUOTE__SLA__SLAID]
if(!ObjectUtils.isEmpty(et.getSlaid())){
cn.ibizlab.businesscentral.core.base.domain.Sla sla=et.getSla();
if(ObjectUtils.isEmpty(sla)){
cn.ibizlab.businesscentral.core.base.domain.Sla majorEntity=slaService.get(et.getSlaid());
et.setSla(majorEntity);
sla=majorEntity;
}
et.setSlaname(sla.getSlaname());
}
//实体关系[DER1N_QUOTE__TRANSACTIONCURRENCY__TRANSACTIONCURRENCYID]
if(!ObjectUtils.isEmpty(et.getTransactioncurrencyid())){
cn.ibizlab.businesscentral.core.base.domain.TransactionCurrency transactioncurrency=et.getTransactioncurrency();
if(ObjectUtils.isEmpty(transactioncurrency)){
cn.ibizlab.businesscentral.core.base.domain.TransactionCurrency majorEntity=transactioncurrencyService.get(et.getTransactioncurrencyid());
et.setTransactioncurrency(majorEntity);
transactioncurrency=majorEntity;
}
et.setTransactioncurrencyname(transactioncurrency.getCurrencyname());
}
}
@Override
......
......@@ -91,18 +91,21 @@ public class SalesLiteratureServiceImpl extends ServiceImpl<SalesLiteratureMappe
@Override
public boolean saveBatch(Collection<SalesLiterature> list) {
list.forEach(item->fillParentData(item));
saveOrUpdateBatch(list,batchSize);
return true;
}
@Override
public void saveBatch(List<SalesLiterature> list) {
list.forEach(item->fillParentData(item));
saveOrUpdateBatch(list,batchSize);
}
@Override
@Transactional
public boolean create(SalesLiterature et) {
fillParentData(et);
if(!this.retBool(this.baseMapper.insert(et)))
return false;
CachedBeanCopier.copy(get(et.getSalesliteratureid()),et);
......@@ -111,6 +114,7 @@ public class SalesLiteratureServiceImpl extends ServiceImpl<SalesLiteratureMappe
@Override
public void createBatch(List<SalesLiterature> list) {
list.forEach(item->fillParentData(item));
this.saveBatch(list,batchSize);
}
......@@ -133,6 +137,7 @@ public class SalesLiteratureServiceImpl extends ServiceImpl<SalesLiteratureMappe
@Override
@Transactional
public boolean update(SalesLiterature et) {
fillParentData(et);
if(!update(et,(Wrapper) et.getUpdateWrapper(true).eq("salesliteratureid",et.getSalesliteratureid())))
return false;
CachedBeanCopier.copy(get(et.getSalesliteratureid()),et);
......@@ -141,11 +146,13 @@ public class SalesLiteratureServiceImpl extends ServiceImpl<SalesLiteratureMappe
@Override
public void updateBatch(List<SalesLiterature> list) {
list.forEach(item->fillParentData(item));
updateBatchById(list,batchSize);
}
@Override
public SalesLiterature getDraft(SalesLiterature et) {
fillParentData(et);
return et;
}
......@@ -182,6 +189,32 @@ public class SalesLiteratureServiceImpl extends ServiceImpl<SalesLiteratureMappe
/**
* 为当前实体填充父数据(外键值文本、外键值附加数据)
* @param et
*/
private void fillParentData(SalesLiterature et){
//实体关系[DER1N_SALESLITERATURE__SUBJECT__SUBJECTID]
if(!ObjectUtils.isEmpty(et.getSubjectid())){
cn.ibizlab.businesscentral.core.base.domain.Subject subject=et.getSubject();
if(ObjectUtils.isEmpty(subject)){
cn.ibizlab.businesscentral.core.base.domain.Subject majorEntity=subjectService.get(et.getSubjectid());
et.setSubject(majorEntity);
subject=majorEntity;
}
et.setSubjectname(subject.getTitle());
}
//实体关系[DER1N_SALESLITERATURE__TRANSACTIONCURRENCY__TRANSACTIONCURRENCYID]
if(!ObjectUtils.isEmpty(et.getTransactioncurrencyid())){
cn.ibizlab.businesscentral.core.base.domain.TransactionCurrency transactioncurrency=et.getTransactioncurrency();
if(ObjectUtils.isEmpty(transactioncurrency)){
cn.ibizlab.businesscentral.core.base.domain.TransactionCurrency majorEntity=transactioncurrencyService.get(et.getTransactioncurrencyid());
et.setTransactioncurrency(majorEntity);
transactioncurrency=majorEntity;
}
et.setTransactioncurrencyname(transactioncurrency.getCurrencyname());
}
}
@Override
......
......@@ -80,6 +80,7 @@ public class SalesOrderServiceImpl extends ServiceImpl<SalesOrderMapper, SalesOr
}
@Override
public SalesOrder getDraft(SalesOrder et) {
fillParentData(et);
return et;
}
......@@ -118,12 +119,14 @@ public class SalesOrderServiceImpl extends ServiceImpl<SalesOrderMapper, SalesOr
@Override
public boolean saveBatch(Collection<SalesOrder> list) {
list.forEach(item->fillParentData(item));
saveOrUpdateBatch(list,batchSize);
return true;
}
@Override
public void saveBatch(List<SalesOrder> list) {
list.forEach(item->fillParentData(item));
saveOrUpdateBatch(list,batchSize);
}
......@@ -142,6 +145,7 @@ public class SalesOrderServiceImpl extends ServiceImpl<SalesOrderMapper, SalesOr
@Override
@Transactional
public boolean update(SalesOrder et) {
fillParentData(et);
if(!update(et,(Wrapper) et.getUpdateWrapper(true).eq("salesorderid",et.getSalesorderid())))
return false;
CachedBeanCopier.copy(get(et.getSalesorderid()),et);
......@@ -150,12 +154,14 @@ public class SalesOrderServiceImpl extends ServiceImpl<SalesOrderMapper, SalesOr
@Override
public void updateBatch(List<SalesOrder> list) {
list.forEach(item->fillParentData(item));
updateBatchById(list,batchSize);
}
@Override
@Transactional
public boolean create(SalesOrder et) {
fillParentData(et);
if(!this.retBool(this.baseMapper.insert(et)))
return false;
CachedBeanCopier.copy(get(et.getSalesorderid()),et);
......@@ -164,6 +170,7 @@ public class SalesOrderServiceImpl extends ServiceImpl<SalesOrderMapper, SalesOr
@Override
public void createBatch(List<SalesOrder> list) {
list.forEach(item->fillParentData(item));
this.saveBatch(list,batchSize);
}
......@@ -240,6 +247,72 @@ public class SalesOrderServiceImpl extends ServiceImpl<SalesOrderMapper, SalesOr
/**
* 为当前实体填充父数据(外键值文本、外键值附加数据)
* @param et
*/
private void fillParentData(SalesOrder et){
//实体关系[DER1N_SALESORDER__CAMPAIGN__CAMPAIGNID]
if(!ObjectUtils.isEmpty(et.getCampaignid())){
cn.ibizlab.businesscentral.core.marketing.domain.Campaign campaign=et.getCampaign();
if(ObjectUtils.isEmpty(campaign)){
cn.ibizlab.businesscentral.core.marketing.domain.Campaign majorEntity=campaignService.get(et.getCampaignid());
et.setCampaign(majorEntity);
campaign=majorEntity;
}
et.setCampaignname(campaign.getCampaignname());
}
//实体关系[DER1N_SALESORDER__OPPORTUNITY__OPPORTUNITYID]
if(!ObjectUtils.isEmpty(et.getOpportunityid())){
cn.ibizlab.businesscentral.core.sales.domain.Opportunity opportunity=et.getOpportunity();
if(ObjectUtils.isEmpty(opportunity)){
cn.ibizlab.businesscentral.core.sales.domain.Opportunity majorEntity=opportunityService.get(et.getOpportunityid());
et.setOpportunity(majorEntity);
opportunity=majorEntity;
}
et.setOpportunityname(opportunity.getOpportunityname());
}
//实体关系[DER1N_SALESORDER__PRICELEVEL__PRICELEVELID]
if(!ObjectUtils.isEmpty(et.getPricelevelid())){
cn.ibizlab.businesscentral.core.product.domain.PriceLevel pricelevel=et.getPricelevel();
if(ObjectUtils.isEmpty(pricelevel)){
cn.ibizlab.businesscentral.core.product.domain.PriceLevel majorEntity=pricelevelService.get(et.getPricelevelid());
et.setPricelevel(majorEntity);
pricelevel=majorEntity;
}
et.setPricelevelname(pricelevel.getPricelevelname());
}
//实体关系[DER1N_SALESORDER__QUOTE__QUOTEID]
if(!ObjectUtils.isEmpty(et.getQuoteid())){
cn.ibizlab.businesscentral.core.sales.domain.Quote quote=et.getQuote();
if(ObjectUtils.isEmpty(quote)){
cn.ibizlab.businesscentral.core.sales.domain.Quote majorEntity=quoteService.get(et.getQuoteid());
et.setQuote(majorEntity);
quote=majorEntity;
}
et.setQuotename(quote.getQuotename());
}
//实体关系[DER1N_SALESORDER__SLA__SLAID]
if(!ObjectUtils.isEmpty(et.getSlaid())){
cn.ibizlab.businesscentral.core.base.domain.Sla sla=et.getSla();
if(ObjectUtils.isEmpty(sla)){
cn.ibizlab.businesscentral.core.base.domain.Sla majorEntity=slaService.get(et.getSlaid());
et.setSla(majorEntity);
sla=majorEntity;
}
et.setSlaname(sla.getSlaname());
}
//实体关系[DER1N_SALESORDER__TRANSACTIONCURRENCY__TRANSACTIONCURRENCYID]
if(!ObjectUtils.isEmpty(et.getTransactioncurrencyid())){
cn.ibizlab.businesscentral.core.base.domain.TransactionCurrency transactioncurrency=et.getTransactioncurrency();
if(ObjectUtils.isEmpty(transactioncurrency)){
cn.ibizlab.businesscentral.core.base.domain.TransactionCurrency majorEntity=transactioncurrencyService.get(et.getTransactioncurrencyid());
et.setTransactioncurrency(majorEntity);
transactioncurrency=majorEntity;
}
et.setTransactioncurrencyname(transactioncurrency.getCurrencyname());
}
}
@Override
......
......@@ -2418,7 +2418,7 @@
<!--输出实体[INVOICE]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-invoice-1-33">
<changeSet author="a_LAB01_e85d8801c" id="tab-invoice-6-33">
<createTable tableName="INVOICE">
<column name="BILLTO_LINE1" remarks="" type="VARCHAR(250)">
</column>
......@@ -2535,8 +2535,6 @@
</column>
<column name="IMPORTSEQUENCENUMBER" remarks="" type="INT">
</column>
<column name="SLANAME" remarks="" type="VARCHAR(100)">
</column>
<column name="CUSTOMERIDTYPE" remarks="" type="VARCHAR(100)">
</column>
<column name="SHIPTO_FAX" remarks="" type="VARCHAR(50)">
......@@ -2587,6 +2585,8 @@
</column>
<column name="BILLTO_FAX" remarks="" type="VARCHAR(50)">
</column>
<column name="SLANAME" remarks="" type="VARCHAR(100)">
</column>
<column name="TRANSACTIONCURRENCYID" remarks="" type="VARCHAR(60)">
</column>
<column name="PRICELEVELID" remarks="" type="VARCHAR(60)">
......@@ -2597,6 +2597,14 @@
</column>
<column name="SLAID" remarks="" type="VARCHAR(60)">
</column>
<column name="TRANSACTIONCURRENCYNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="PRICELEVELNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="SALESORDERNAME" remarks="" type="VARCHAR(300)">
</column>
<column name="OPPORTUNITYNAME" remarks="" type="VARCHAR(300)">
</column>
</createTable>
</changeSet>
......@@ -3144,7 +3152,7 @@
<!--输出实体[CONTACT]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-contact-10-42">
<changeSet author="a_LAB01_e85d8801c" id="tab-contact-12-42">
<createTable tableName="CONTACT">
<column name="ADDRESS1_FREIGHTTERMSCODE" remarks="" type="VARCHAR(30)">
</column>
......@@ -3666,7 +3674,7 @@
<!--输出实体[QUOTE]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-quote-1-45">
<changeSet author="a_LAB01_e85d8801c" id="tab-quote-6-45">
<createTable tableName="QUOTE">
<column name="BILLTO_COUNTRY" remarks="" type="VARCHAR(80)">
</column>
......@@ -3797,8 +3805,6 @@
</column>
<column name="BILLTO_NAME" remarks="" type="VARCHAR(200)">
</column>
<column name="SLANAME" remarks="" type="VARCHAR(100)">
</column>
<column name="BILLTO_LINE1" remarks="" type="VARCHAR(250)">
</column>
<column name="REVISIONNUMBER" remarks="" type="INT">
......@@ -3841,6 +3847,8 @@
</column>
<column name="FREIGHTAMOUNT" remarks="" type="VARCHAR">
</column>
<column name="SLANAME" remarks="" type="VARCHAR(100)">
</column>
<column name="PRICELEVELID" remarks="" type="VARCHAR(60)">
</column>
<column name="SLAID" remarks="" type="VARCHAR(60)">
......@@ -3851,6 +3859,14 @@
</column>
<column name="CAMPAIGNID" remarks="" type="VARCHAR(60)">
</column>
<column name="PRICELEVELNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="OPPORTUNITYNAME" remarks="" type="VARCHAR(300)">
</column>
<column name="TRANSACTIONCURRENCYNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="CAMPAIGNNAME" remarks="" type="VARCHAR(128)">
</column>
</createTable>
</changeSet>
......@@ -4464,7 +4480,7 @@
<!--输出实体[ACCOUNT]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-account-28-53">
<changeSet author="a_LAB01_e85d8801c" id="tab-account-35-53">
<createTable tableName="ACCOUNT">
<column name="ADDRESS1_PRIMARYCONTACTNAME" remarks="" type="VARCHAR(100)">
</column>
......@@ -6264,7 +6280,7 @@
<!--输出实体[SALESLITERATURE]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-salesliterature-1-70">
<changeSet author="a_LAB01_e85d8801c" id="tab-salesliterature-3-70">
<createTable tableName="SALESLITERATURE">
<column name="IMPORTSEQUENCENUMBER" remarks="" type="INT">
</column>
......@@ -6325,6 +6341,10 @@
</column>
<column name="SUBJECTID" remarks="" type="VARCHAR(60)">
</column>
<column name="TRANSACTIONCURRENCYNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="SUBJECTNAME" remarks="" type="VARCHAR(500)">
</column>
</createTable>
</changeSet>
......@@ -6372,14 +6392,12 @@
<!--输出实体[LEAD]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-lead-2-72">
<changeSet author="a_LAB01_e85d8801c" id="tab-lead-17-72">
<createTable tableName="LEAD">
<column name="ADDRESS1_FAX" remarks="" type="VARCHAR(50)">
</column>
<column name="ADDRESS2_UTCOFFSET" remarks="" type="INT">
</column>
<column name="SLANAME" remarks="" type="VARCHAR(100)">
</column>
<column name="JOBTITLE" remarks="" type="VARCHAR(100)">
</column>
<column name="ADDRESS2_COUNTRY" remarks="" type="VARCHAR(80)">
......@@ -6417,8 +6435,6 @@
</column>
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
<column name="PARENTCONTACTIDYOMINAME" remarks="" type="VARCHAR(100)">
</column>
<column name="ADDRESS2_STATEORPROVINCE" remarks="" type="VARCHAR(50)">
</column>
<column name="DESCRIPTION" remarks="" type="VARCHAR(2000)">
......@@ -6507,8 +6523,6 @@
</column>
<column name="STAGEID" remarks="" type="VARCHAR(60)">
</column>
<column name="PARENTACCOUNTIDYOMINAME" remarks="" type="VARCHAR(100)">
</column>
<column name="ADDRESS1_SHIPPINGMETHODCODE" remarks="" type="VARCHAR(30)">
</column>
<column name="ESTIMATEDAMOUNT" remarks="" type="VARCHAR">
......@@ -6541,8 +6555,6 @@
</column>
<column name="CUSTOMERIDYOMINAME" remarks="" type="VARCHAR(450)">
</column>
<column name="ACCOUNTIDYOMINAME" remarks="" type="VARCHAR(100)">
</column>
<column name="REVENUE_BASE" remarks="" type="VARCHAR">
</column>
<column name="OVERRIDDENCREATEDON" remarks="" type="DATETIME">
......@@ -6661,6 +6673,8 @@
</column>
<column name="ADDRESS1_UPSZONE" remarks="" type="VARCHAR(4)">
</column>
<column name="SLANAME" remarks="" type="VARCHAR(100)">
</column>
<column name="QUALIFYINGOPPORTUNITYID" remarks="" type="VARCHAR(60)">
</column>
<column name="SLAID" remarks="" type="VARCHAR(60)">
......@@ -6677,6 +6691,20 @@
</column>
<column name="PARENTCONTACTID" remarks="" type="VARCHAR(60)">
</column>
<column name="ORIGINATINGCASENAME" remarks="" type="VARCHAR(200)">
</column>
<column name="QUALIFYINGOPPORTUNITYNAME" remarks="" type="VARCHAR(300)">
</column>
<column name="CAMPAIGNNAME" remarks="" type="VARCHAR(128)">
</column>
<column name="PARENTCONTACTNAME" remarks="" type="VARCHAR(160)">
</column>
<column name="PARENTACCOUNTNAME" remarks="" type="VARCHAR(160)">
</column>
<column name="RELATEDOBJECTNAME" remarks="" type="VARCHAR(200)">
</column>
<column name="TRANSACTIONCURRENCYNAME" remarks="" type="VARCHAR(100)">
</column>
</createTable>
</changeSet>
......@@ -8012,7 +8040,7 @@
<!--输出实体[COMPETITOR]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-competitor-1-85">
<changeSet author="a_LAB01_e85d8801c" id="tab-competitor-2-85">
<createTable tableName="COMPETITOR">
<column name="ENTITYIMAGE" remarks="" type="VARCHAR(100)">
</column>
......@@ -8175,12 +8203,14 @@
</column>
<column name="TRANSACTIONCURRENCYID" remarks="" type="VARCHAR(60)">
</column>
<column name="TRANSACTIONCURRENCYNAME" remarks="" type="VARCHAR(100)">
</column>
</createTable>
</changeSet>
<!--输出实体[PRODUCT]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-product-1-86">
<changeSet author="a_LAB01_e85d8801c" id="tab-product-7-86">
<createTable tableName="PRODUCT">
<column name="VENDORID" remarks="" type="VARCHAR(100)">
</column>
......@@ -8291,6 +8321,18 @@
</column>
<column name="SUBJECTID" remarks="" type="VARCHAR(60)">
</column>
<column name="PARENTPRODUCTNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="TRANSACTIONCURRENCYNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="PRICELEVELNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="DEFAULTUOMNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="DEFAULTUOMSCHEDULENAME" remarks="" type="VARCHAR(200)">
</column>
<column name="SUBJECT" remarks="" type="VARCHAR(500)">
</column>
</createTable>
</changeSet>
......@@ -8444,7 +8486,7 @@
<!--输出实体[SALESORDER]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-salesorder-1-90">
<changeSet author="a_LAB01_e85d8801c" id="tab-salesorder-8-90">
<createTable tableName="SALESORDER">
<column name="ENTITYIMAGE" remarks="" type="VARCHAR(100)">
</column>
......@@ -8528,8 +8570,6 @@
</column>
<column name="SHIPTO_ADDRESSID" remarks="" type="VARCHAR(60)">
</column>
<column name="SLANAME" remarks="" type="VARCHAR(100)">
</column>
<column name="PAYMENTTERMSCODE" remarks="" type="VARCHAR(30)">
</column>
<column name="BILLTO_POSTALCODE" remarks="" type="VARCHAR(20)">
......@@ -8629,6 +8669,8 @@
</column>
<column name="DESCRIPTION" remarks="" type="VARCHAR(2000)">
</column>
<column name="SLANAME" remarks="" type="VARCHAR(100)">
</column>
<column name="QUOTEID" remarks="" type="VARCHAR(60)">
</column>
<column name="SLAID" remarks="" type="VARCHAR(60)">
......@@ -8641,6 +8683,16 @@
</column>
<column name="CAMPAIGNID" remarks="" type="VARCHAR(60)">
</column>
<column name="QUOTENAME" remarks="" type="VARCHAR(300)">
</column>
<column name="TRANSACTIONCURRENCYNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="OPPORTUNITYNAME" remarks="" type="VARCHAR(300)">
</column>
<column name="PRICELEVELNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="CAMPAIGNNAME" remarks="" type="VARCHAR(128)">
</column>
</createTable>
</changeSet>
......@@ -10294,7 +10346,7 @@
<!--输出实体[OPPORTUNITY]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-opportunity-2-114">
<changeSet author="a_LAB01_e85d8801c" id="tab-opportunity-12-114">
<createTable tableName="OPPORTUNITY">
<column name="DECISIONMAKER" remarks="" type="INT">
</column>
......@@ -10316,8 +10368,6 @@
</column>
<column name="ESTIMATEDVALUE_BASE" remarks="" type="VARCHAR">
</column>
<column name="PARENTCONTACTIDYOMINAME" remarks="" type="VARCHAR(100)">
</column>
<column name="PRESENTFINALPROPOSAL" remarks="" type="INT">
</column>
<column name="DEVELOPPROPOSAL" remarks="" type="INT">
......@@ -10431,8 +10481,6 @@
</column>
<column name="COMPLETEFINALPROPOSAL" remarks="" type="INT">
</column>
<column name="ORIGINATINGLEADIDYOMINAME" remarks="" type="VARCHAR(100)">
</column>
<column name="DISCOUNTAMOUNT" remarks="" type="VARCHAR">
</column>
<column name="CUSTOMERIDYOMINAME" remarks="" type="VARCHAR(450)">
......@@ -10489,16 +10537,14 @@
</column>
<column name="QUOTECOMMENTS" remarks="" type="VARCHAR(2000)">
</column>
<column name="PARENTACCOUNTIDYOMINAME" remarks="" type="VARCHAR(100)">
</column>
<column name="CUSTOMERIDTYPE" remarks="" type="VARCHAR(100)">
</column>
<column name="SLANAME" remarks="" type="VARCHAR(100)">
</column>
<column name="OVERRIDDENCREATEDON" remarks="" type="DATETIME">
</column>
<column name="OWNERID" remarks="" type="VARCHAR(60)">
</column>
<column name="SLANAME" remarks="" type="VARCHAR(100)">
</column>
<column name="PARENTCONTACTID" remarks="" type="VARCHAR(60)">
</column>
<column name="CAMPAIGNID" remarks="" type="VARCHAR(60)">
......@@ -10513,6 +10559,18 @@
</column>
<column name="SLAID" remarks="" type="VARCHAR(60)">
</column>
<column name="PRICELEVEL" remarks="" type="VARCHAR(100)">
</column>
<column name="ORIGINATINGLEADNAME" remarks="" type="VARCHAR(160)">
</column>
<column name="PARENTACCOUNTNAME" remarks="" type="VARCHAR(160)">
</column>
<column name="CAMPAIGNNAME" remarks="" type="VARCHAR(128)">
</column>
<column name="PARENTCONTACTNAME" remarks="" type="VARCHAR(160)">
</column>
<column name="TRANSACTIONCURRENCYNAME" remarks="" type="VARCHAR(100)">
</column>
</createTable>
</changeSet>
......@@ -10834,19 +10892,19 @@
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="SLAKPIINSTANCE" constraintName="DER1N_SLAKPIINSTANCE__TRANSACT" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[INVOICE]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-invoice-1-181">
<changeSet author="a_LAB01_e85d8801c" id="fk-invoice-6-181">
<addForeignKeyConstraint baseColumnNames="OPPORTUNITYID" baseTableName="INVOICE" constraintName="DER1N_INVOICE__OPPORTUNITY__OP" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="OPPORTUNITYID" referencedTableName="OPPORTUNITY" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-invoice-1-182">
<changeSet author="a_LAB01_e85d8801c" id="fk-invoice-6-182">
<addForeignKeyConstraint baseColumnNames="PRICELEVELID" baseTableName="INVOICE" constraintName="DER1N_INVOICE__PRICELEVEL__PRI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRICELEVELID" referencedTableName="PRICELEVEL" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-invoice-1-183">
<changeSet author="a_LAB01_e85d8801c" id="fk-invoice-6-183">
<addForeignKeyConstraint baseColumnNames="SALESORDERID" baseTableName="INVOICE" constraintName="DER1N_INVOICE__SALESORDER__SAL" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SALESORDERID" referencedTableName="SALESORDER" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-invoice-1-184">
<changeSet author="a_LAB01_e85d8801c" id="fk-invoice-6-184">
<addForeignKeyConstraint baseColumnNames="SLAID" baseTableName="INVOICE" constraintName="DER1N_INVOICE__SLA__SLAID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SLAID" referencedTableName="SLA" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-invoice-1-185">
<changeSet author="a_LAB01_e85d8801c" id="fk-invoice-6-185">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="INVOICE" constraintName="DER1N_INVOICE__TRANSACTIONCURR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[TASK]外键关系 -->
......@@ -10915,22 +10973,22 @@
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="MONTHLYFISCALCALENDAR" constraintName="DER1N_MONTHLYFISCALCALENDAR__T" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[CONTACT]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-10-206">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-12-206">
<addForeignKeyConstraint baseColumnNames="PREFERREDEQUIPMENTID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__EQUIPMENT__PREF" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EQUIPMENTID" referencedTableName="EQUIPMENT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-10-207">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-12-207">
<addForeignKeyConstraint baseColumnNames="ORIGINATINGLEADID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__LEAD__ORIGINATI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="LEADID" referencedTableName="LEAD" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-10-208">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-12-208">
<addForeignKeyConstraint baseColumnNames="DEFAULTPRICELEVELID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__PRICELEVEL__DEF" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRICELEVELID" referencedTableName="PRICELEVEL" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-10-209">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-12-209">
<addForeignKeyConstraint baseColumnNames="PREFERREDSERVICEID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__SERVICE__PREFER" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SERVICEID" referencedTableName="SERVICE" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-10-210">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-12-210">
<addForeignKeyConstraint baseColumnNames="SLAID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__SLA__SLAID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SLAID" referencedTableName="SLA" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-10-211">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-12-211">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__TRANSACTIONCURR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[TEAM]外键关系 -->
......@@ -10951,19 +11009,19 @@
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="PRICELEVEL" constraintName="DER1N_PRICELEVEL__TRANSACTIONC" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[QUOTE]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-quote-1-217">
<changeSet author="a_LAB01_e85d8801c" id="fk-quote-6-217">
<addForeignKeyConstraint baseColumnNames="CAMPAIGNID" baseTableName="QUOTE" constraintName="DER1N_QUOTE__CAMPAIGN__CAMPAIG" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CAMPAIGNID" referencedTableName="CAMPAIGN" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-quote-1-218">
<changeSet author="a_LAB01_e85d8801c" id="fk-quote-6-218">
<addForeignKeyConstraint baseColumnNames="OPPORTUNITYID" baseTableName="QUOTE" constraintName="DER1N_QUOTE__OPPORTUNITY__OPPO" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="OPPORTUNITYID" referencedTableName="OPPORTUNITY" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-quote-1-219">
<changeSet author="a_LAB01_e85d8801c" id="fk-quote-6-219">
<addForeignKeyConstraint baseColumnNames="PRICELEVELID" baseTableName="QUOTE" constraintName="DER1N_QUOTE__PRICELEVEL__PRICE" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRICELEVELID" referencedTableName="PRICELEVEL" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-quote-1-220">
<changeSet author="a_LAB01_e85d8801c" id="fk-quote-6-220">
<addForeignKeyConstraint baseColumnNames="SLAID" baseTableName="QUOTE" constraintName="DER1N_QUOTE__SLA__SLAID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SLAID" referencedTableName="SLA" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-quote-1-221">
<changeSet author="a_LAB01_e85d8801c" id="fk-quote-6-221">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="QUOTE" constraintName="DER1N_QUOTE__TRANSACTIONCURREN" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[BULKDELETEOPERATION]外键关系 -->
......@@ -11016,31 +11074,31 @@
<addForeignKeyConstraint baseColumnNames="METRICID" baseTableName="GOAL" constraintName="DER1N_GOAL__METRIC__METRICID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="METRICID" referencedTableName="METRIC" validate="true"/>
</changeSet>
<!--输出实体[ACCOUNT]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-account-28-246">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-35-246">
<addForeignKeyConstraint baseColumnNames="PARENTACCOUNTID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__ACCOUNT__PARENT" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ACCOUNTID" referencedTableName="ACCOUNT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-28-247">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-35-247">
<addForeignKeyConstraint baseColumnNames="PRIMARYCONTACTID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__CONTACT__PRIMAR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CONTACTID" referencedTableName="CONTACT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-28-248">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-35-248">
<addForeignKeyConstraint baseColumnNames="PREFERREDEQUIPMENTID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__EQUIPMENT__PREF" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EQUIPMENTID" referencedTableName="EQUIPMENT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-28-249">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-35-249">
<addForeignKeyConstraint baseColumnNames="ORIGINATINGLEADID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__LEAD__ORIGINATI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="LEADID" referencedTableName="LEAD" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-28-250">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-35-250">
<addForeignKeyConstraint baseColumnNames="DEFAULTPRICELEVELID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__PRICELEVEL__DEF" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRICELEVELID" referencedTableName="PRICELEVEL" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-28-251">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-35-251">
<addForeignKeyConstraint baseColumnNames="PREFERREDSERVICEID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__SERVICE__PREFER" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SERVICEID" referencedTableName="SERVICE" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-28-252">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-35-252">
<addForeignKeyConstraint baseColumnNames="SLAID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__SLA__SLAID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SLAID" referencedTableName="SLA" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-28-253">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-35-253">
<addForeignKeyConstraint baseColumnNames="TERRITORYID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__TERRITORY__TERR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TERRITORYID" referencedTableName="TERRITORY" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-28-254">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-35-254">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__TRANSACTIONCURR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[KNOWLEDGEARTICLEVIEWS]外键关系 -->
......@@ -11177,36 +11235,36 @@
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="RATINGVALUE" constraintName="DER1N_RATINGVALUE__TRANSACTION" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[SALESLITERATURE]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-salesliterature-1-298">
<changeSet author="a_LAB01_e85d8801c" id="fk-salesliterature-3-298">
<addForeignKeyConstraint baseColumnNames="SUBJECTID" baseTableName="SALESLITERATURE" constraintName="DER1N_SALESLITERATURE__SUBJECT" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SUBJECTID" referencedTableName="SUBJECT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-salesliterature-1-299">
<changeSet author="a_LAB01_e85d8801c" id="fk-salesliterature-3-299">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="SALESLITERATURE" constraintName="DER1N_SALESLITERATURE__TRANSAC" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[METRIC]外键关系 -->
<!--输出实体[LEAD]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-lead-2-300">
<changeSet author="a_LAB01_e85d8801c" id="fk-lead-17-300">
<addForeignKeyConstraint baseColumnNames="PARENTACCOUNTID" baseTableName="LEAD" constraintName="DER1N_LEAD__ACCOUNT__PARENTACC" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ACCOUNTID" referencedTableName="ACCOUNT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-lead-2-301">
<changeSet author="a_LAB01_e85d8801c" id="fk-lead-17-301">
<addForeignKeyConstraint baseColumnNames="RELATEDOBJECTID" baseTableName="LEAD" constraintName="DER1N_LEAD__CAMPAIGNRESPONSE__" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ACTIVITYID" referencedTableName="CAMPAIGNRESPONSE" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-lead-2-302">
<changeSet author="a_LAB01_e85d8801c" id="fk-lead-17-302">
<addForeignKeyConstraint baseColumnNames="CAMPAIGNID" baseTableName="LEAD" constraintName="DER1N_LEAD__CAMPAIGN__CAMPAIGN" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CAMPAIGNID" referencedTableName="CAMPAIGN" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-lead-2-303">
<changeSet author="a_LAB01_e85d8801c" id="fk-lead-17-303">
<addForeignKeyConstraint baseColumnNames="PARENTCONTACTID" baseTableName="LEAD" constraintName="DER1N_LEAD__CONTACT__PARENTCON" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CONTACTID" referencedTableName="CONTACT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-lead-2-304">
<changeSet author="a_LAB01_e85d8801c" id="fk-lead-17-304">
<addForeignKeyConstraint baseColumnNames="ORIGINATINGCASEID" baseTableName="LEAD" constraintName="DER1N_LEAD__INCIDENT__ORIGINAT" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="INCIDENTID" referencedTableName="INCIDENT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-lead-2-305">
<changeSet author="a_LAB01_e85d8801c" id="fk-lead-17-305">
<addForeignKeyConstraint baseColumnNames="QUALIFYINGOPPORTUNITYID" baseTableName="LEAD" constraintName="DER1N_LEAD__OPPORTUNITY__QUALI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="OPPORTUNITYID" referencedTableName="OPPORTUNITY" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-lead-2-306">
<changeSet author="a_LAB01_e85d8801c" id="fk-lead-17-306">
<addForeignKeyConstraint baseColumnNames="SLAID" baseTableName="LEAD" constraintName="DER1N_LEAD__SLA__SLAID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SLAID" referencedTableName="SLA" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-lead-2-307">
<changeSet author="a_LAB01_e85d8801c" id="fk-lead-17-307">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="LEAD" constraintName="DER1N_LEAD__TRANSACTIONCURRENC" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[TERRITORY]外键关系 -->
......@@ -11297,26 +11355,26 @@
<addForeignKeyConstraint baseColumnNames="UOMID" baseTableName="CONTRACTDETAIL" constraintName="DER1N_CONTRACTDETAIL__UOM__UOM" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="UOMID" referencedTableName="UOM" validate="true"/>
</changeSet>
<!--输出实体[COMPETITOR]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-competitor-1-337">
<changeSet author="a_LAB01_e85d8801c" id="fk-competitor-2-337">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="COMPETITOR" constraintName="DER1N_COMPETITOR__TRANSACTIONC" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[PRODUCT]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-product-1-338">
<changeSet author="a_LAB01_e85d8801c" id="fk-product-7-338">
<addForeignKeyConstraint baseColumnNames="PRICELEVELID" baseTableName="PRODUCT" constraintName="DER1N_PRODUCT__PRICELEVEL__PRI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRICELEVELID" referencedTableName="PRICELEVEL" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-product-1-339">
<changeSet author="a_LAB01_e85d8801c" id="fk-product-7-339">
<addForeignKeyConstraint baseColumnNames="PARENTPRODUCTID" baseTableName="PRODUCT" constraintName="DER1N_PRODUCT__PRODUCT__PARENT" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRODUCTID" referencedTableName="PRODUCT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-product-1-340">
<changeSet author="a_LAB01_e85d8801c" id="fk-product-7-340">
<addForeignKeyConstraint baseColumnNames="SUBJECTID" baseTableName="PRODUCT" constraintName="DER1N_PRODUCT__SUBJECT__SUBJEC" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SUBJECTID" referencedTableName="SUBJECT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-product-1-341">
<changeSet author="a_LAB01_e85d8801c" id="fk-product-7-341">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="PRODUCT" constraintName="DER1N_PRODUCT__TRANSACTIONCURR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-product-1-342">
<changeSet author="a_LAB01_e85d8801c" id="fk-product-7-342">
<addForeignKeyConstraint baseColumnNames="DEFAULTUOMSCHEDULEID" baseTableName="PRODUCT" constraintName="DER1N_PRODUCT__UOMSCHEDULE__DE" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="UOMSCHEDULEID" referencedTableName="UOMSCHEDULE" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-product-1-343">
<changeSet author="a_LAB01_e85d8801c" id="fk-product-7-343">
<addForeignKeyConstraint baseColumnNames="DEFAULTUOMID" baseTableName="PRODUCT" constraintName="DER1N_PRODUCT__UOM__DEFAULTUOM" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="UOMID" referencedTableName="UOM" validate="true"/>
</changeSet>
<!--输出实体[CHARACTERISTIC]外键关系 -->
......@@ -11332,22 +11390,22 @@
<addForeignKeyConstraint baseColumnNames="RESOURCECATEGORY" baseTableName="BOOKABLERESCATEGORYASSN" constraintName="DER1N_BOOKABLERESCATEGORYASSN_" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="BOOKABLERESCATEGORYID" referencedTableName="BOOKABLERESCATEGORY" validate="true"/>
</changeSet>
<!--输出实体[SALESORDER]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-salesorder-1-349">
<changeSet author="a_LAB01_e85d8801c" id="fk-salesorder-8-349">
<addForeignKeyConstraint baseColumnNames="CAMPAIGNID" baseTableName="SALESORDER" constraintName="DER1N_SALESORDER__CAMPAIGN__CA" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CAMPAIGNID" referencedTableName="CAMPAIGN" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-salesorder-1-350">
<changeSet author="a_LAB01_e85d8801c" id="fk-salesorder-8-350">
<addForeignKeyConstraint baseColumnNames="OPPORTUNITYID" baseTableName="SALESORDER" constraintName="DER1N_SALESORDER__OPPORTUNITY_" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="OPPORTUNITYID" referencedTableName="OPPORTUNITY" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-salesorder-1-351">
<changeSet author="a_LAB01_e85d8801c" id="fk-salesorder-8-351">
<addForeignKeyConstraint baseColumnNames="PRICELEVELID" baseTableName="SALESORDER" constraintName="DER1N_SALESORDER__PRICELEVEL__" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRICELEVELID" referencedTableName="PRICELEVEL" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-salesorder-1-352">
<changeSet author="a_LAB01_e85d8801c" id="fk-salesorder-8-352">
<addForeignKeyConstraint baseColumnNames="QUOTEID" baseTableName="SALESORDER" constraintName="DER1N_SALESORDER__QUOTE__QUOTE" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="QUOTEID" referencedTableName="QUOTE" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-salesorder-1-353">
<changeSet author="a_LAB01_e85d8801c" id="fk-salesorder-8-353">
<addForeignKeyConstraint baseColumnNames="SLAID" baseTableName="SALESORDER" constraintName="DER1N_SALESORDER__SLA__SLAID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SLAID" referencedTableName="SLA" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-salesorder-1-354">
<changeSet author="a_LAB01_e85d8801c" id="fk-salesorder-8-354">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="SALESORDER" constraintName="DER1N_SALESORDER__TRANSACTIONC" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[LEADADDRESS]外键关系 -->
......@@ -11494,25 +11552,25 @@
<!--输出实体[BUSINESSUNITNEWSARTICLE]外键关系 -->
<!--输出实体[CONNECTIONROLE]外键关系 -->
<!--输出实体[OPPORTUNITY]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-2-397">
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-12-397">
<addForeignKeyConstraint baseColumnNames="PARENTACCOUNTID" baseTableName="OPPORTUNITY" constraintName="DER1N_OPPORTUNITY__ACCOUNT__PA" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ACCOUNTID" referencedTableName="ACCOUNT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-2-398">
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-12-398">
<addForeignKeyConstraint baseColumnNames="CAMPAIGNID" baseTableName="OPPORTUNITY" constraintName="DER1N_OPPORTUNITY__CAMPAIGN__C" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CAMPAIGNID" referencedTableName="CAMPAIGN" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-2-399">
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-12-399">
<addForeignKeyConstraint baseColumnNames="PARENTCONTACTID" baseTableName="OPPORTUNITY" constraintName="DER1N_OPPORTUNITY__CONTACT__PA" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CONTACTID" referencedTableName="CONTACT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-2-400">
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-12-400">
<addForeignKeyConstraint baseColumnNames="ORIGINATINGLEADID" baseTableName="OPPORTUNITY" constraintName="DER1N_OPPORTUNITY__LEAD__ORIGI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="LEADID" referencedTableName="LEAD" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-2-401">
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-12-401">
<addForeignKeyConstraint baseColumnNames="PRICELEVELID" baseTableName="OPPORTUNITY" constraintName="DER1N_OPPORTUNITY__PRICELEVEL_" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRICELEVELID" referencedTableName="PRICELEVEL" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-2-402">
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-12-402">
<addForeignKeyConstraint baseColumnNames="SLAID" baseTableName="OPPORTUNITY" constraintName="DER1N_OPPORTUNITY__SLA__SLAID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SLAID" referencedTableName="SLA" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-2-403">
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-12-403">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="OPPORTUNITY" constraintName="DER1N_OPPORTUNITY__TRANSACTION" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[ANNOTATION]外键关系 -->
......
......@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="InvoiceResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`ACCOUNTIDYOMINAME`, t1.`BILLTO_CITY`, t1.`BILLTO_COMPOSITE`, t1.`BILLTO_COUNTRY`, t1.`BILLTO_FAX`, t1.`BILLTO_LINE1`, t1.`BILLTO_LINE2`, t1.`BILLTO_LINE3`, t1.`BILLTO_NAME`, t1.`BILLTO_POSTALCODE`, t1.`BILLTO_STATEORPROVINCE`, t1.`BILLTO_TELEPHONE`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`DATEDELIVERED`, t1.`DESCRIPTION`, t1.`DISCOUNTAMOUNT`, t1.`DISCOUNTAMOUNT_BASE`, t1.`DISCOUNTPERCENTAGE`, t1.`DUEDATE`, t1.`EMAILADDRESS`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`FREIGHTAMOUNT`, t1.`FREIGHTAMOUNT_BASE`, t1.`IMPORTSEQUENCENUMBER`, t1.`INVOICEID`, t1.`INVOICENAME`, t1.`INVOICENUMBER`, t1.`LASTBACKOFFICESUBMIT`, t1.`LASTONHOLDTIME`, t1.`ONHOLDTIME`, t1.`OPPORTUNITYID`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PAYMENTTERMSCODE`, t1.`PRICELEVELID`, t1.`PRICELOCKED`, t1.`PRICINGERRORCODE`, t1.`PRIORITYCODE`, t1.`PROCESSID`, t1.`SALESORDERID`, t1.`SHIPPINGMETHODCODE`, t1.`SHIPTO_CITY`, t1.`SHIPTO_COMPOSITE`, t1.`SHIPTO_COUNTRY`, t1.`SHIPTO_FAX`, t1.`SHIPTO_FREIGHTTERMSCODE`, t1.`SHIPTO_LINE1`, t1.`SHIPTO_LINE2`, t1.`SHIPTO_LINE3`, t1.`SHIPTO_NAME`, t1.`SHIPTO_POSTALCODE`, t1.`SHIPTO_STATEORPROVINCE`, t1.`SHIPTO_TELEPHONE`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TOTALAMOUNT`, t1.`TOTALAMOUNTLESSFREIGHT`, t1.`TOTALAMOUNTLESSFREIGHT_BASE`, t1.`TOTALAMOUNT_BASE`, t1.`TOTALDISCOUNTAMOUNT`, t1.`TOTALDISCOUNTAMOUNT_BASE`, t1.`TOTALLINEITEMAMOUNT`, t1.`TOTALLINEITEMAMOUNT_BASE`, t1.`TOTALLINEITEMDISCOUNTAMOUNT`, t1.`TOTALTAX`, t1.`TOTALTAX_BASE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WILLCALL` FROM `INVOICE` t1 ) t1 where invoiceid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`ACCOUNTIDYOMINAME`, t1.`BILLTO_CITY`, t1.`BILLTO_COMPOSITE`, t1.`BILLTO_COUNTRY`, t1.`BILLTO_FAX`, t1.`BILLTO_LINE1`, t1.`BILLTO_LINE2`, t1.`BILLTO_LINE3`, t1.`BILLTO_NAME`, t1.`BILLTO_POSTALCODE`, t1.`BILLTO_STATEORPROVINCE`, t1.`BILLTO_TELEPHONE`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`DATEDELIVERED`, t1.`DESCRIPTION`, t1.`DISCOUNTAMOUNT`, t1.`DISCOUNTAMOUNT_BASE`, t1.`DISCOUNTPERCENTAGE`, t1.`DUEDATE`, t1.`EMAILADDRESS`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`FREIGHTAMOUNT`, t1.`FREIGHTAMOUNT_BASE`, t1.`IMPORTSEQUENCENUMBER`, t1.`INVOICEID`, t1.`INVOICENAME`, t1.`INVOICENUMBER`, t1.`LASTBACKOFFICESUBMIT`, t1.`LASTONHOLDTIME`, t1.`ONHOLDTIME`, t1.`OPPORTUNITYID`, t1.`OPPORTUNITYNAME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PAYMENTTERMSCODE`, t1.`PRICELEVELID`, t1.`PRICELEVELNAME`, t1.`PRICELOCKED`, t1.`PRICINGERRORCODE`, t1.`PRIORITYCODE`, t1.`PROCESSID`, t1.`SALESORDERID`, t1.`SALESORDERNAME`, t1.`SHIPPINGMETHODCODE`, t1.`SHIPTO_CITY`, t1.`SHIPTO_COMPOSITE`, t1.`SHIPTO_COUNTRY`, t1.`SHIPTO_FAX`, t1.`SHIPTO_FREIGHTTERMSCODE`, t1.`SHIPTO_LINE1`, t1.`SHIPTO_LINE2`, t1.`SHIPTO_LINE3`, t1.`SHIPTO_NAME`, t1.`SHIPTO_POSTALCODE`, t1.`SHIPTO_STATEORPROVINCE`, t1.`SHIPTO_TELEPHONE`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TOTALAMOUNT`, t1.`TOTALAMOUNTLESSFREIGHT`, t1.`TOTALAMOUNTLESSFREIGHT_BASE`, t1.`TOTALAMOUNT_BASE`, t1.`TOTALDISCOUNTAMOUNT`, t1.`TOTALDISCOUNTAMOUNT_BASE`, t1.`TOTALLINEITEMAMOUNT`, t1.`TOTALLINEITEMAMOUNT_BASE`, t1.`TOTALLINEITEMDISCOUNTAMOUNT`, t1.`TOTALTAX`, t1.`TOTALTAX_BASE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WILLCALL` FROM `INVOICE` t1 ) t1 where invoiceid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -109,12 +109,12 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`ACCOUNTIDYOMINAME`, t1.`BILLTO_CITY`, t1.`BILLTO_COMPOSITE`, t1.`BILLTO_COUNTRY`, t1.`BILLTO_FAX`, t1.`BILLTO_LINE1`, t1.`BILLTO_LINE2`, t1.`BILLTO_LINE3`, t1.`BILLTO_NAME`, t1.`BILLTO_POSTALCODE`, t1.`BILLTO_STATEORPROVINCE`, t1.`BILLTO_TELEPHONE`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`DATEDELIVERED`, t1.`DESCRIPTION`, t1.`DISCOUNTAMOUNT`, t1.`DISCOUNTAMOUNT_BASE`, t1.`DISCOUNTPERCENTAGE`, t1.`DUEDATE`, t1.`EMAILADDRESS`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`FREIGHTAMOUNT`, t1.`FREIGHTAMOUNT_BASE`, t1.`IMPORTSEQUENCENUMBER`, t1.`INVOICEID`, t1.`INVOICENAME`, t1.`INVOICENUMBER`, t1.`LASTBACKOFFICESUBMIT`, t1.`LASTONHOLDTIME`, t1.`ONHOLDTIME`, t1.`OPPORTUNITYID`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PAYMENTTERMSCODE`, t1.`PRICELEVELID`, t1.`PRICELOCKED`, t1.`PRICINGERRORCODE`, t1.`PRIORITYCODE`, t1.`PROCESSID`, t1.`SALESORDERID`, t1.`SHIPPINGMETHODCODE`, t1.`SHIPTO_CITY`, t1.`SHIPTO_COMPOSITE`, t1.`SHIPTO_COUNTRY`, t1.`SHIPTO_FAX`, t1.`SHIPTO_FREIGHTTERMSCODE`, t1.`SHIPTO_LINE1`, t1.`SHIPTO_LINE2`, t1.`SHIPTO_LINE3`, t1.`SHIPTO_NAME`, t1.`SHIPTO_POSTALCODE`, t1.`SHIPTO_STATEORPROVINCE`, t1.`SHIPTO_TELEPHONE`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TOTALAMOUNT`, t1.`TOTALAMOUNTLESSFREIGHT`, t1.`TOTALAMOUNTLESSFREIGHT_BASE`, t1.`TOTALAMOUNT_BASE`, t1.`TOTALDISCOUNTAMOUNT`, t1.`TOTALDISCOUNTAMOUNT_BASE`, t1.`TOTALLINEITEMAMOUNT`, t1.`TOTALLINEITEMAMOUNT_BASE`, t1.`TOTALLINEITEMDISCOUNTAMOUNT`, t1.`TOTALTAX`, t1.`TOTALTAX_BASE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WILLCALL` FROM `INVOICE` t1
<![CDATA[ SELECT t1.`ACCOUNTIDYOMINAME`, t1.`BILLTO_CITY`, t1.`BILLTO_COMPOSITE`, t1.`BILLTO_COUNTRY`, t1.`BILLTO_FAX`, t1.`BILLTO_LINE1`, t1.`BILLTO_LINE2`, t1.`BILLTO_LINE3`, t1.`BILLTO_NAME`, t1.`BILLTO_POSTALCODE`, t1.`BILLTO_STATEORPROVINCE`, t1.`BILLTO_TELEPHONE`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`DATEDELIVERED`, t1.`DESCRIPTION`, t1.`DISCOUNTAMOUNT`, t1.`DISCOUNTAMOUNT_BASE`, t1.`DISCOUNTPERCENTAGE`, t1.`DUEDATE`, t1.`EMAILADDRESS`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`FREIGHTAMOUNT`, t1.`FREIGHTAMOUNT_BASE`, t1.`IMPORTSEQUENCENUMBER`, t1.`INVOICEID`, t1.`INVOICENAME`, t1.`INVOICENUMBER`, t1.`LASTBACKOFFICESUBMIT`, t1.`LASTONHOLDTIME`, t1.`ONHOLDTIME`, t1.`OPPORTUNITYID`, t1.`OPPORTUNITYNAME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PAYMENTTERMSCODE`, t1.`PRICELEVELID`, t1.`PRICELEVELNAME`, t1.`PRICELOCKED`, t1.`PRICINGERRORCODE`, t1.`PRIORITYCODE`, t1.`PROCESSID`, t1.`SALESORDERID`, t1.`SALESORDERNAME`, t1.`SHIPPINGMETHODCODE`, t1.`SHIPTO_CITY`, t1.`SHIPTO_COMPOSITE`, t1.`SHIPTO_COUNTRY`, t1.`SHIPTO_FAX`, t1.`SHIPTO_FREIGHTTERMSCODE`, t1.`SHIPTO_LINE1`, t1.`SHIPTO_LINE2`, t1.`SHIPTO_LINE3`, t1.`SHIPTO_NAME`, t1.`SHIPTO_POSTALCODE`, t1.`SHIPTO_STATEORPROVINCE`, t1.`SHIPTO_TELEPHONE`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TOTALAMOUNT`, t1.`TOTALAMOUNTLESSFREIGHT`, t1.`TOTALAMOUNTLESSFREIGHT_BASE`, t1.`TOTALAMOUNT_BASE`, t1.`TOTALDISCOUNTAMOUNT`, t1.`TOTALDISCOUNTAMOUNT_BASE`, t1.`TOTALLINEITEMAMOUNT`, t1.`TOTALLINEITEMAMOUNT_BASE`, t1.`TOTALLINEITEMDISCOUNTAMOUNT`, t1.`TOTALTAX`, t1.`TOTALTAX_BASE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WILLCALL` FROM `INVOICE` t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`ACCOUNTIDYOMINAME`, t1.`BILLTO_CITY`, t1.`BILLTO_COMPOSITE`, t1.`BILLTO_COUNTRY`, t1.`BILLTO_FAX`, t1.`BILLTO_LINE1`, t1.`BILLTO_LINE2`, t1.`BILLTO_LINE3`, t1.`BILLTO_NAME`, t1.`BILLTO_POSTALCODE`, t1.`BILLTO_STATEORPROVINCE`, t1.`BILLTO_TELEPHONE`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`DATEDELIVERED`, t1.`DESCRIPTION`, t1.`DISCOUNTAMOUNT`, t1.`DISCOUNTAMOUNT_BASE`, t1.`DISCOUNTPERCENTAGE`, t1.`DUEDATE`, t1.`EMAILADDRESS`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`FREIGHTAMOUNT`, t1.`FREIGHTAMOUNT_BASE`, t1.`IMPORTSEQUENCENUMBER`, t1.`INVOICEID`, t1.`INVOICENAME`, t1.`INVOICENUMBER`, t1.`LASTBACKOFFICESUBMIT`, t1.`LASTONHOLDTIME`, t1.`ONHOLDTIME`, t1.`OPPORTUNITYID`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PAYMENTTERMSCODE`, t1.`PRICELEVELID`, t1.`PRICELOCKED`, t1.`PRICINGERRORCODE`, t1.`PRIORITYCODE`, t1.`PROCESSID`, t1.`SALESORDERID`, t1.`SHIPPINGMETHODCODE`, t1.`SHIPTO_CITY`, t1.`SHIPTO_COMPOSITE`, t1.`SHIPTO_COUNTRY`, t1.`SHIPTO_FAX`, t1.`SHIPTO_FREIGHTTERMSCODE`, t1.`SHIPTO_LINE1`, t1.`SHIPTO_LINE2`, t1.`SHIPTO_LINE3`, t1.`SHIPTO_NAME`, t1.`SHIPTO_POSTALCODE`, t1.`SHIPTO_STATEORPROVINCE`, t1.`SHIPTO_TELEPHONE`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TOTALAMOUNT`, t1.`TOTALAMOUNTLESSFREIGHT`, t1.`TOTALAMOUNTLESSFREIGHT_BASE`, t1.`TOTALAMOUNT_BASE`, t1.`TOTALDISCOUNTAMOUNT`, t1.`TOTALDISCOUNTAMOUNT_BASE`, t1.`TOTALLINEITEMAMOUNT`, t1.`TOTALLINEITEMAMOUNT_BASE`, t1.`TOTALLINEITEMDISCOUNTAMOUNT`, t1.`TOTALTAX`, t1.`TOTALTAX_BASE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WILLCALL` FROM `INVOICE` t1
<![CDATA[ SELECT t1.`ACCOUNTIDYOMINAME`, t1.`BILLTO_CITY`, t1.`BILLTO_COMPOSITE`, t1.`BILLTO_COUNTRY`, t1.`BILLTO_FAX`, t1.`BILLTO_LINE1`, t1.`BILLTO_LINE2`, t1.`BILLTO_LINE3`, t1.`BILLTO_NAME`, t1.`BILLTO_POSTALCODE`, t1.`BILLTO_STATEORPROVINCE`, t1.`BILLTO_TELEPHONE`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`DATEDELIVERED`, t1.`DESCRIPTION`, t1.`DISCOUNTAMOUNT`, t1.`DISCOUNTAMOUNT_BASE`, t1.`DISCOUNTPERCENTAGE`, t1.`DUEDATE`, t1.`EMAILADDRESS`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`FREIGHTAMOUNT`, t1.`FREIGHTAMOUNT_BASE`, t1.`IMPORTSEQUENCENUMBER`, t1.`INVOICEID`, t1.`INVOICENAME`, t1.`INVOICENUMBER`, t1.`LASTBACKOFFICESUBMIT`, t1.`LASTONHOLDTIME`, t1.`ONHOLDTIME`, t1.`OPPORTUNITYID`, t1.`OPPORTUNITYNAME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PAYMENTTERMSCODE`, t1.`PRICELEVELID`, t1.`PRICELEVELNAME`, t1.`PRICELOCKED`, t1.`PRICINGERRORCODE`, t1.`PRIORITYCODE`, t1.`PROCESSID`, t1.`SALESORDERID`, t1.`SALESORDERNAME`, t1.`SHIPPINGMETHODCODE`, t1.`SHIPTO_CITY`, t1.`SHIPTO_COMPOSITE`, t1.`SHIPTO_COUNTRY`, t1.`SHIPTO_FAX`, t1.`SHIPTO_FREIGHTTERMSCODE`, t1.`SHIPTO_LINE1`, t1.`SHIPTO_LINE2`, t1.`SHIPTO_LINE3`, t1.`SHIPTO_NAME`, t1.`SHIPTO_POSTALCODE`, t1.`SHIPTO_STATEORPROVINCE`, t1.`SHIPTO_TELEPHONE`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TOTALAMOUNT`, t1.`TOTALAMOUNTLESSFREIGHT`, t1.`TOTALAMOUNTLESSFREIGHT_BASE`, t1.`TOTALAMOUNT_BASE`, t1.`TOTALDISCOUNTAMOUNT`, t1.`TOTALDISCOUNTAMOUNT_BASE`, t1.`TOTALLINEITEMAMOUNT`, t1.`TOTALLINEITEMAMOUNT_BASE`, t1.`TOTALLINEITEMDISCOUNTAMOUNT`, t1.`TOTALTAX`, t1.`TOTALTAX_BASE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WILLCALL` FROM `INVOICE` t1
]]>
</sql>
</mapper>
......
......@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="ProductResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CURRENTCOST`, t1.`CURRENTCOST_BASE`, t1.`DEFAULTUOMID`, t1.`DEFAULTUOMSCHEDULEID`, t1.`DESCRIPTION`, t1.`DMTIMPORTSTATE`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`HIERARCHYPATH`, t1.`IMPORTSEQUENCENUMBER`, t1.`KIT`, t1.`OVERRIDDENCREATEDON`, t1.`PARENTPRODUCTID`, t1.`PRICE`, t1.`PRICELEVELID`, t1.`PRICE_BASE`, t1.`PROCESSID`, t1.`PRODUCTID`, t1.`PRODUCTNAME`, t1.`PRODUCTNUMBER`, t1.`PRODUCTSTRUCTURE`, t1.`PRODUCTTYPECODE`, t1.`PRODUCTURL`, t1.`QUANTITYDECIMAL`, t1.`QUANTITYONHAND`, t1.`REPARENTED`, t1.`SIZE`, t1.`STAGEID`, t1.`STANDARDCOST`, t1.`STANDARDCOST_BASE`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`STOCKITEM`, t1.`STOCKVOLUME`, t1.`STOCKWEIGHT`, t1.`SUBJECTID`, t1.`SUPPLIERNAME`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VALIDFROMDATE`, t1.`VALIDTODATE`, t1.`VENDORID`, t1.`VENDORNAME`, t1.`VENDORPARTNUMBER`, t1.`VERSIONNUMBER` FROM `PRODUCT` t1 ) t1 where productid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CURRENTCOST`, t1.`CURRENTCOST_BASE`, t1.`DEFAULTUOMID`, t1.`DEFAULTUOMNAME`, t1.`DEFAULTUOMSCHEDULEID`, t1.`DEFAULTUOMSCHEDULENAME`, t1.`DESCRIPTION`, t1.`DMTIMPORTSTATE`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`HIERARCHYPATH`, t1.`IMPORTSEQUENCENUMBER`, t1.`KIT`, t1.`OVERRIDDENCREATEDON`, t1.`PARENTPRODUCTID`, t1.`PARENTPRODUCTNAME`, t1.`PRICE`, t1.`PRICELEVELID`, t1.`PRICELEVELNAME`, t1.`PRICE_BASE`, t1.`PROCESSID`, t1.`PRODUCTID`, t1.`PRODUCTNAME`, t1.`PRODUCTNUMBER`, t1.`PRODUCTSTRUCTURE`, t1.`PRODUCTTYPECODE`, t1.`PRODUCTURL`, t1.`QUANTITYDECIMAL`, t1.`QUANTITYONHAND`, t1.`REPARENTED`, t1.`SIZE`, t1.`STAGEID`, t1.`STANDARDCOST`, t1.`STANDARDCOST_BASE`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`STOCKITEM`, t1.`STOCKVOLUME`, t1.`STOCKWEIGHT`, t1.`SUBJECT`, t1.`SUBJECTID`, t1.`SUPPLIERNAME`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VALIDFROMDATE`, t1.`VALIDTODATE`, t1.`VENDORID`, t1.`VENDORNAME`, t1.`VENDORPARTNUMBER`, t1.`VERSIONNUMBER` FROM `PRODUCT` t1 ) t1 where productid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -92,12 +92,12 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CURRENTCOST`, t1.`CURRENTCOST_BASE`, t1.`DEFAULTUOMID`, t1.`DEFAULTUOMSCHEDULEID`, t1.`DESCRIPTION`, t1.`DMTIMPORTSTATE`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`HIERARCHYPATH`, t1.`IMPORTSEQUENCENUMBER`, t1.`KIT`, t1.`OVERRIDDENCREATEDON`, t1.`PARENTPRODUCTID`, t1.`PRICE`, t1.`PRICELEVELID`, t1.`PRICE_BASE`, t1.`PROCESSID`, t1.`PRODUCTID`, t1.`PRODUCTNAME`, t1.`PRODUCTNUMBER`, t1.`PRODUCTSTRUCTURE`, t1.`PRODUCTTYPECODE`, t1.`PRODUCTURL`, t1.`QUANTITYDECIMAL`, t1.`QUANTITYONHAND`, t1.`REPARENTED`, t1.`SIZE`, t1.`STAGEID`, t1.`STANDARDCOST`, t1.`STANDARDCOST_BASE`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`STOCKITEM`, t1.`STOCKVOLUME`, t1.`STOCKWEIGHT`, t1.`SUBJECTID`, t1.`SUPPLIERNAME`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VALIDFROMDATE`, t1.`VALIDTODATE`, t1.`VENDORID`, t1.`VENDORNAME`, t1.`VENDORPARTNUMBER`, t1.`VERSIONNUMBER` FROM `PRODUCT` t1
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CURRENTCOST`, t1.`CURRENTCOST_BASE`, t1.`DEFAULTUOMID`, t1.`DEFAULTUOMNAME`, t1.`DEFAULTUOMSCHEDULEID`, t1.`DEFAULTUOMSCHEDULENAME`, t1.`DESCRIPTION`, t1.`DMTIMPORTSTATE`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`HIERARCHYPATH`, t1.`IMPORTSEQUENCENUMBER`, t1.`KIT`, t1.`OVERRIDDENCREATEDON`, t1.`PARENTPRODUCTID`, t1.`PARENTPRODUCTNAME`, t1.`PRICE`, t1.`PRICELEVELID`, t1.`PRICELEVELNAME`, t1.`PRICE_BASE`, t1.`PROCESSID`, t1.`PRODUCTID`, t1.`PRODUCTNAME`, t1.`PRODUCTNUMBER`, t1.`PRODUCTSTRUCTURE`, t1.`PRODUCTTYPECODE`, t1.`PRODUCTURL`, t1.`QUANTITYDECIMAL`, t1.`QUANTITYONHAND`, t1.`REPARENTED`, t1.`SIZE`, t1.`STAGEID`, t1.`STANDARDCOST`, t1.`STANDARDCOST_BASE`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`STOCKITEM`, t1.`STOCKVOLUME`, t1.`STOCKWEIGHT`, t1.`SUBJECT`, t1.`SUBJECTID`, t1.`SUPPLIERNAME`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VALIDFROMDATE`, t1.`VALIDTODATE`, t1.`VENDORID`, t1.`VENDORNAME`, t1.`VENDORPARTNUMBER`, t1.`VERSIONNUMBER` FROM `PRODUCT` t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CURRENTCOST`, t1.`CURRENTCOST_BASE`, t1.`DEFAULTUOMID`, t1.`DEFAULTUOMSCHEDULEID`, t1.`DESCRIPTION`, t1.`DMTIMPORTSTATE`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`HIERARCHYPATH`, t1.`IMPORTSEQUENCENUMBER`, t1.`KIT`, t1.`OVERRIDDENCREATEDON`, t1.`PARENTPRODUCTID`, t1.`PRICE`, t1.`PRICELEVELID`, t1.`PRICE_BASE`, t1.`PROCESSID`, t1.`PRODUCTID`, t1.`PRODUCTNAME`, t1.`PRODUCTNUMBER`, t1.`PRODUCTSTRUCTURE`, t1.`PRODUCTTYPECODE`, t1.`PRODUCTURL`, t1.`QUANTITYDECIMAL`, t1.`QUANTITYONHAND`, t1.`REPARENTED`, t1.`SIZE`, t1.`STAGEID`, t1.`STANDARDCOST`, t1.`STANDARDCOST_BASE`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`STOCKITEM`, t1.`STOCKVOLUME`, t1.`STOCKWEIGHT`, t1.`SUBJECTID`, t1.`SUPPLIERNAME`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VALIDFROMDATE`, t1.`VALIDTODATE`, t1.`VENDORID`, t1.`VENDORNAME`, t1.`VENDORPARTNUMBER`, t1.`VERSIONNUMBER` FROM `PRODUCT` t1
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CURRENTCOST`, t1.`CURRENTCOST_BASE`, t1.`DEFAULTUOMID`, t1.`DEFAULTUOMNAME`, t1.`DEFAULTUOMSCHEDULEID`, t1.`DEFAULTUOMSCHEDULENAME`, t1.`DESCRIPTION`, t1.`DMTIMPORTSTATE`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`HIERARCHYPATH`, t1.`IMPORTSEQUENCENUMBER`, t1.`KIT`, t1.`OVERRIDDENCREATEDON`, t1.`PARENTPRODUCTID`, t1.`PARENTPRODUCTNAME`, t1.`PRICE`, t1.`PRICELEVELID`, t1.`PRICELEVELNAME`, t1.`PRICE_BASE`, t1.`PROCESSID`, t1.`PRODUCTID`, t1.`PRODUCTNAME`, t1.`PRODUCTNUMBER`, t1.`PRODUCTSTRUCTURE`, t1.`PRODUCTTYPECODE`, t1.`PRODUCTURL`, t1.`QUANTITYDECIMAL`, t1.`QUANTITYONHAND`, t1.`REPARENTED`, t1.`SIZE`, t1.`STAGEID`, t1.`STANDARDCOST`, t1.`STANDARDCOST_BASE`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`STOCKITEM`, t1.`STOCKVOLUME`, t1.`STOCKWEIGHT`, t1.`SUBJECT`, t1.`SUBJECTID`, t1.`SUPPLIERNAME`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VALIDFROMDATE`, t1.`VALIDTODATE`, t1.`VENDORID`, t1.`VENDORNAME`, t1.`VENDORPARTNUMBER`, t1.`VERSIONNUMBER` FROM `PRODUCT` t1
]]>
</sql>
</mapper>
......
......@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="CompetitorResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`ADDRESS1_ADDRESSID`, t1.`ADDRESS1_ADDRESSTYPECODE`, t1.`ADDRESS1_CITY`, t1.`ADDRESS1_COMPOSITE`, t1.`ADDRESS1_COUNTRY`, t1.`ADDRESS1_COUNTY`, t1.`ADDRESS1_FAX`, t1.`ADDRESS1_LATITUDE`, t1.`ADDRESS1_LINE1`, t1.`ADDRESS1_LINE2`, t1.`ADDRESS1_LINE3`, t1.`ADDRESS1_LONGITUDE`, t1.`ADDRESS1_NAME`, t1.`ADDRESS1_POSTALCODE`, t1.`ADDRESS1_POSTOFFICEBOX`, t1.`ADDRESS1_SHIPPINGMETHODCODE`, t1.`ADDRESS1_STATEORPROVINCE`, t1.`ADDRESS1_TELEPHONE1`, t1.`ADDRESS1_TELEPHONE2`, t1.`ADDRESS1_TELEPHONE3`, t1.`ADDRESS1_UPSZONE`, t1.`ADDRESS1_UTCOFFSET`, t1.`ADDRESS2_ADDRESSID`, t1.`ADDRESS2_ADDRESSTYPECODE`, t1.`ADDRESS2_CITY`, t1.`ADDRESS2_COMPOSITE`, t1.`ADDRESS2_COUNTRY`, t1.`ADDRESS2_COUNTY`, t1.`ADDRESS2_FAX`, t1.`ADDRESS2_LATITUDE`, t1.`ADDRESS2_LINE1`, t1.`ADDRESS2_LINE2`, t1.`ADDRESS2_LINE3`, t1.`ADDRESS2_LONGITUDE`, t1.`ADDRESS2_NAME`, t1.`ADDRESS2_POSTALCODE`, t1.`ADDRESS2_POSTOFFICEBOX`, t1.`ADDRESS2_SHIPPINGMETHODCODE`, t1.`ADDRESS2_STATEORPROVINCE`, t1.`ADDRESS2_TELEPHONE1`, t1.`ADDRESS2_TELEPHONE2`, t1.`ADDRESS2_TELEPHONE3`, t1.`ADDRESS2_UPSZONE`, t1.`ADDRESS2_UTCOFFSET`, t1.`COMPETITORID`, t1.`COMPETITORNAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`IMPORTSEQUENCENUMBER`, t1.`KEYPRODUCT`, t1.`OPPORTUNITIES`, t1.`OVERRIDDENCREATEDON`, t1.`OVERVIEW`, t1.`PROCESSID`, t1.`REFERENCEINFOURL`, t1.`REPORTEDREVENUE`, t1.`REPORTEDREVENUE_BASE`, t1.`REPORTINGQUARTER`, t1.`REPORTINGYEAR`, t1.`STAGEID`, t1.`STOCKEXCHANGE`, t1.`STRENGTHS`, t1.`THREATS`, t1.`TICKERSYMBOL`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WEAKNESSES`, t1.`WEBSITEURL`, t1.`WINPERCENTAGE`, t1.`YOMINAME` FROM `COMPETITOR` t1 ) t1 where competitorid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`ADDRESS1_ADDRESSID`, t1.`ADDRESS1_ADDRESSTYPECODE`, t1.`ADDRESS1_CITY`, t1.`ADDRESS1_COMPOSITE`, t1.`ADDRESS1_COUNTRY`, t1.`ADDRESS1_COUNTY`, t1.`ADDRESS1_FAX`, t1.`ADDRESS1_LATITUDE`, t1.`ADDRESS1_LINE1`, t1.`ADDRESS1_LINE2`, t1.`ADDRESS1_LINE3`, t1.`ADDRESS1_LONGITUDE`, t1.`ADDRESS1_NAME`, t1.`ADDRESS1_POSTALCODE`, t1.`ADDRESS1_POSTOFFICEBOX`, t1.`ADDRESS1_SHIPPINGMETHODCODE`, t1.`ADDRESS1_STATEORPROVINCE`, t1.`ADDRESS1_TELEPHONE1`, t1.`ADDRESS1_TELEPHONE2`, t1.`ADDRESS1_TELEPHONE3`, t1.`ADDRESS1_UPSZONE`, t1.`ADDRESS1_UTCOFFSET`, t1.`ADDRESS2_ADDRESSID`, t1.`ADDRESS2_ADDRESSTYPECODE`, t1.`ADDRESS2_CITY`, t1.`ADDRESS2_COMPOSITE`, t1.`ADDRESS2_COUNTRY`, t1.`ADDRESS2_COUNTY`, t1.`ADDRESS2_FAX`, t1.`ADDRESS2_LATITUDE`, t1.`ADDRESS2_LINE1`, t1.`ADDRESS2_LINE2`, t1.`ADDRESS2_LINE3`, t1.`ADDRESS2_LONGITUDE`, t1.`ADDRESS2_NAME`, t1.`ADDRESS2_POSTALCODE`, t1.`ADDRESS2_POSTOFFICEBOX`, t1.`ADDRESS2_SHIPPINGMETHODCODE`, t1.`ADDRESS2_STATEORPROVINCE`, t1.`ADDRESS2_TELEPHONE1`, t1.`ADDRESS2_TELEPHONE2`, t1.`ADDRESS2_TELEPHONE3`, t1.`ADDRESS2_UPSZONE`, t1.`ADDRESS2_UTCOFFSET`, t1.`COMPETITORID`, t1.`COMPETITORNAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`IMPORTSEQUENCENUMBER`, t1.`KEYPRODUCT`, t1.`OPPORTUNITIES`, t1.`OVERRIDDENCREATEDON`, t1.`OVERVIEW`, t1.`PROCESSID`, t1.`REFERENCEINFOURL`, t1.`REPORTEDREVENUE`, t1.`REPORTEDREVENUE_BASE`, t1.`REPORTINGQUARTER`, t1.`REPORTINGYEAR`, t1.`STAGEID`, t1.`STOCKEXCHANGE`, t1.`STRENGTHS`, t1.`THREATS`, t1.`TICKERSYMBOL`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WEAKNESSES`, t1.`WEBSITEURL`, t1.`WINPERCENTAGE`, t1.`YOMINAME` FROM `COMPETITOR` t1 ) t1 where competitorid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -84,12 +84,12 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`ADDRESS1_ADDRESSID`, t1.`ADDRESS1_ADDRESSTYPECODE`, t1.`ADDRESS1_CITY`, t1.`ADDRESS1_COMPOSITE`, t1.`ADDRESS1_COUNTRY`, t1.`ADDRESS1_COUNTY`, t1.`ADDRESS1_FAX`, t1.`ADDRESS1_LATITUDE`, t1.`ADDRESS1_LINE1`, t1.`ADDRESS1_LINE2`, t1.`ADDRESS1_LINE3`, t1.`ADDRESS1_LONGITUDE`, t1.`ADDRESS1_NAME`, t1.`ADDRESS1_POSTALCODE`, t1.`ADDRESS1_POSTOFFICEBOX`, t1.`ADDRESS1_SHIPPINGMETHODCODE`, t1.`ADDRESS1_STATEORPROVINCE`, t1.`ADDRESS1_TELEPHONE1`, t1.`ADDRESS1_TELEPHONE2`, t1.`ADDRESS1_TELEPHONE3`, t1.`ADDRESS1_UPSZONE`, t1.`ADDRESS1_UTCOFFSET`, t1.`ADDRESS2_ADDRESSID`, t1.`ADDRESS2_ADDRESSTYPECODE`, t1.`ADDRESS2_CITY`, t1.`ADDRESS2_COMPOSITE`, t1.`ADDRESS2_COUNTRY`, t1.`ADDRESS2_COUNTY`, t1.`ADDRESS2_FAX`, t1.`ADDRESS2_LATITUDE`, t1.`ADDRESS2_LINE1`, t1.`ADDRESS2_LINE2`, t1.`ADDRESS2_LINE3`, t1.`ADDRESS2_LONGITUDE`, t1.`ADDRESS2_NAME`, t1.`ADDRESS2_POSTALCODE`, t1.`ADDRESS2_POSTOFFICEBOX`, t1.`ADDRESS2_SHIPPINGMETHODCODE`, t1.`ADDRESS2_STATEORPROVINCE`, t1.`ADDRESS2_TELEPHONE1`, t1.`ADDRESS2_TELEPHONE2`, t1.`ADDRESS2_TELEPHONE3`, t1.`ADDRESS2_UPSZONE`, t1.`ADDRESS2_UTCOFFSET`, t1.`COMPETITORID`, t1.`COMPETITORNAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`IMPORTSEQUENCENUMBER`, t1.`KEYPRODUCT`, t1.`OPPORTUNITIES`, t1.`OVERRIDDENCREATEDON`, t1.`OVERVIEW`, t1.`PROCESSID`, t1.`REFERENCEINFOURL`, t1.`REPORTEDREVENUE`, t1.`REPORTEDREVENUE_BASE`, t1.`REPORTINGQUARTER`, t1.`REPORTINGYEAR`, t1.`STAGEID`, t1.`STOCKEXCHANGE`, t1.`STRENGTHS`, t1.`THREATS`, t1.`TICKERSYMBOL`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WEAKNESSES`, t1.`WEBSITEURL`, t1.`WINPERCENTAGE`, t1.`YOMINAME` FROM `COMPETITOR` t1
<![CDATA[ SELECT t1.`ADDRESS1_ADDRESSID`, t1.`ADDRESS1_ADDRESSTYPECODE`, t1.`ADDRESS1_CITY`, t1.`ADDRESS1_COMPOSITE`, t1.`ADDRESS1_COUNTRY`, t1.`ADDRESS1_COUNTY`, t1.`ADDRESS1_FAX`, t1.`ADDRESS1_LATITUDE`, t1.`ADDRESS1_LINE1`, t1.`ADDRESS1_LINE2`, t1.`ADDRESS1_LINE3`, t1.`ADDRESS1_LONGITUDE`, t1.`ADDRESS1_NAME`, t1.`ADDRESS1_POSTALCODE`, t1.`ADDRESS1_POSTOFFICEBOX`, t1.`ADDRESS1_SHIPPINGMETHODCODE`, t1.`ADDRESS1_STATEORPROVINCE`, t1.`ADDRESS1_TELEPHONE1`, t1.`ADDRESS1_TELEPHONE2`, t1.`ADDRESS1_TELEPHONE3`, t1.`ADDRESS1_UPSZONE`, t1.`ADDRESS1_UTCOFFSET`, t1.`ADDRESS2_ADDRESSID`, t1.`ADDRESS2_ADDRESSTYPECODE`, t1.`ADDRESS2_CITY`, t1.`ADDRESS2_COMPOSITE`, t1.`ADDRESS2_COUNTRY`, t1.`ADDRESS2_COUNTY`, t1.`ADDRESS2_FAX`, t1.`ADDRESS2_LATITUDE`, t1.`ADDRESS2_LINE1`, t1.`ADDRESS2_LINE2`, t1.`ADDRESS2_LINE3`, t1.`ADDRESS2_LONGITUDE`, t1.`ADDRESS2_NAME`, t1.`ADDRESS2_POSTALCODE`, t1.`ADDRESS2_POSTOFFICEBOX`, t1.`ADDRESS2_SHIPPINGMETHODCODE`, t1.`ADDRESS2_STATEORPROVINCE`, t1.`ADDRESS2_TELEPHONE1`, t1.`ADDRESS2_TELEPHONE2`, t1.`ADDRESS2_TELEPHONE3`, t1.`ADDRESS2_UPSZONE`, t1.`ADDRESS2_UTCOFFSET`, t1.`COMPETITORID`, t1.`COMPETITORNAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`IMPORTSEQUENCENUMBER`, t1.`KEYPRODUCT`, t1.`OPPORTUNITIES`, t1.`OVERRIDDENCREATEDON`, t1.`OVERVIEW`, t1.`PROCESSID`, t1.`REFERENCEINFOURL`, t1.`REPORTEDREVENUE`, t1.`REPORTEDREVENUE_BASE`, t1.`REPORTINGQUARTER`, t1.`REPORTINGYEAR`, t1.`STAGEID`, t1.`STOCKEXCHANGE`, t1.`STRENGTHS`, t1.`THREATS`, t1.`TICKERSYMBOL`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WEAKNESSES`, t1.`WEBSITEURL`, t1.`WINPERCENTAGE`, t1.`YOMINAME` FROM `COMPETITOR` t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`ADDRESS1_ADDRESSID`, t1.`ADDRESS1_ADDRESSTYPECODE`, t1.`ADDRESS1_CITY`, t1.`ADDRESS1_COMPOSITE`, t1.`ADDRESS1_COUNTRY`, t1.`ADDRESS1_COUNTY`, t1.`ADDRESS1_FAX`, t1.`ADDRESS1_LATITUDE`, t1.`ADDRESS1_LINE1`, t1.`ADDRESS1_LINE2`, t1.`ADDRESS1_LINE3`, t1.`ADDRESS1_LONGITUDE`, t1.`ADDRESS1_NAME`, t1.`ADDRESS1_POSTALCODE`, t1.`ADDRESS1_POSTOFFICEBOX`, t1.`ADDRESS1_SHIPPINGMETHODCODE`, t1.`ADDRESS1_STATEORPROVINCE`, t1.`ADDRESS1_TELEPHONE1`, t1.`ADDRESS1_TELEPHONE2`, t1.`ADDRESS1_TELEPHONE3`, t1.`ADDRESS1_UPSZONE`, t1.`ADDRESS1_UTCOFFSET`, t1.`ADDRESS2_ADDRESSID`, t1.`ADDRESS2_ADDRESSTYPECODE`, t1.`ADDRESS2_CITY`, t1.`ADDRESS2_COMPOSITE`, t1.`ADDRESS2_COUNTRY`, t1.`ADDRESS2_COUNTY`, t1.`ADDRESS2_FAX`, t1.`ADDRESS2_LATITUDE`, t1.`ADDRESS2_LINE1`, t1.`ADDRESS2_LINE2`, t1.`ADDRESS2_LINE3`, t1.`ADDRESS2_LONGITUDE`, t1.`ADDRESS2_NAME`, t1.`ADDRESS2_POSTALCODE`, t1.`ADDRESS2_POSTOFFICEBOX`, t1.`ADDRESS2_SHIPPINGMETHODCODE`, t1.`ADDRESS2_STATEORPROVINCE`, t1.`ADDRESS2_TELEPHONE1`, t1.`ADDRESS2_TELEPHONE2`, t1.`ADDRESS2_TELEPHONE3`, t1.`ADDRESS2_UPSZONE`, t1.`ADDRESS2_UTCOFFSET`, t1.`COMPETITORID`, t1.`COMPETITORNAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`IMPORTSEQUENCENUMBER`, t1.`KEYPRODUCT`, t1.`OPPORTUNITIES`, t1.`OVERRIDDENCREATEDON`, t1.`OVERVIEW`, t1.`PROCESSID`, t1.`REFERENCEINFOURL`, t1.`REPORTEDREVENUE`, t1.`REPORTEDREVENUE_BASE`, t1.`REPORTINGQUARTER`, t1.`REPORTINGYEAR`, t1.`STAGEID`, t1.`STOCKEXCHANGE`, t1.`STRENGTHS`, t1.`THREATS`, t1.`TICKERSYMBOL`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WEAKNESSES`, t1.`WEBSITEURL`, t1.`WINPERCENTAGE`, t1.`YOMINAME` FROM `COMPETITOR` t1
<![CDATA[ SELECT t1.`ADDRESS1_ADDRESSID`, t1.`ADDRESS1_ADDRESSTYPECODE`, t1.`ADDRESS1_CITY`, t1.`ADDRESS1_COMPOSITE`, t1.`ADDRESS1_COUNTRY`, t1.`ADDRESS1_COUNTY`, t1.`ADDRESS1_FAX`, t1.`ADDRESS1_LATITUDE`, t1.`ADDRESS1_LINE1`, t1.`ADDRESS1_LINE2`, t1.`ADDRESS1_LINE3`, t1.`ADDRESS1_LONGITUDE`, t1.`ADDRESS1_NAME`, t1.`ADDRESS1_POSTALCODE`, t1.`ADDRESS1_POSTOFFICEBOX`, t1.`ADDRESS1_SHIPPINGMETHODCODE`, t1.`ADDRESS1_STATEORPROVINCE`, t1.`ADDRESS1_TELEPHONE1`, t1.`ADDRESS1_TELEPHONE2`, t1.`ADDRESS1_TELEPHONE3`, t1.`ADDRESS1_UPSZONE`, t1.`ADDRESS1_UTCOFFSET`, t1.`ADDRESS2_ADDRESSID`, t1.`ADDRESS2_ADDRESSTYPECODE`, t1.`ADDRESS2_CITY`, t1.`ADDRESS2_COMPOSITE`, t1.`ADDRESS2_COUNTRY`, t1.`ADDRESS2_COUNTY`, t1.`ADDRESS2_FAX`, t1.`ADDRESS2_LATITUDE`, t1.`ADDRESS2_LINE1`, t1.`ADDRESS2_LINE2`, t1.`ADDRESS2_LINE3`, t1.`ADDRESS2_LONGITUDE`, t1.`ADDRESS2_NAME`, t1.`ADDRESS2_POSTALCODE`, t1.`ADDRESS2_POSTOFFICEBOX`, t1.`ADDRESS2_SHIPPINGMETHODCODE`, t1.`ADDRESS2_STATEORPROVINCE`, t1.`ADDRESS2_TELEPHONE1`, t1.`ADDRESS2_TELEPHONE2`, t1.`ADDRESS2_TELEPHONE3`, t1.`ADDRESS2_UPSZONE`, t1.`ADDRESS2_UTCOFFSET`, t1.`COMPETITORID`, t1.`COMPETITORNAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`IMPORTSEQUENCENUMBER`, t1.`KEYPRODUCT`, t1.`OPPORTUNITIES`, t1.`OVERRIDDENCREATEDON`, t1.`OVERVIEW`, t1.`PROCESSID`, t1.`REFERENCEINFOURL`, t1.`REPORTEDREVENUE`, t1.`REPORTEDREVENUE_BASE`, t1.`REPORTINGQUARTER`, t1.`REPORTINGYEAR`, t1.`STAGEID`, t1.`STOCKEXCHANGE`, t1.`STRENGTHS`, t1.`THREATS`, t1.`TICKERSYMBOL`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WEAKNESSES`, t1.`WEBSITEURL`, t1.`WINPERCENTAGE`, t1.`YOMINAME` FROM `COMPETITOR` t1
]]>
</sql>
</mapper>
......
......@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="LeadResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`ACCOUNTIDYOMINAME`, t1.`ADDRESS1_ADDRESSID`, t1.`ADDRESS1_ADDRESSTYPECODE`, t1.`ADDRESS1_CITY`, t1.`ADDRESS1_COMPOSITE`, t1.`ADDRESS1_COUNTRY`, t1.`ADDRESS1_COUNTY`, t1.`ADDRESS1_FAX`, t1.`ADDRESS1_LATITUDE`, t1.`ADDRESS1_LINE1`, t1.`ADDRESS1_LINE2`, t1.`ADDRESS1_LINE3`, t1.`ADDRESS1_LONGITUDE`, t1.`ADDRESS1_NAME`, t1.`ADDRESS1_POSTALCODE`, t1.`ADDRESS1_POSTOFFICEBOX`, t1.`ADDRESS1_SHIPPINGMETHODCODE`, t1.`ADDRESS1_STATEORPROVINCE`, t1.`ADDRESS1_TELEPHONE1`, t1.`ADDRESS1_TELEPHONE2`, t1.`ADDRESS1_TELEPHONE3`, t1.`ADDRESS1_UPSZONE`, t1.`ADDRESS1_UTCOFFSET`, t1.`ADDRESS2_ADDRESSID`, t1.`ADDRESS2_ADDRESSTYPECODE`, t1.`ADDRESS2_CITY`, t1.`ADDRESS2_COMPOSITE`, t1.`ADDRESS2_COUNTRY`, t1.`ADDRESS2_COUNTY`, t1.`ADDRESS2_FAX`, t1.`ADDRESS2_LATITUDE`, t1.`ADDRESS2_LINE1`, t1.`ADDRESS2_LINE2`, t1.`ADDRESS2_LINE3`, t1.`ADDRESS2_LONGITUDE`, t1.`ADDRESS2_NAME`, t1.`ADDRESS2_POSTALCODE`, t1.`ADDRESS2_POSTOFFICEBOX`, t1.`ADDRESS2_SHIPPINGMETHODCODE`, t1.`ADDRESS2_STATEORPROVINCE`, t1.`ADDRESS2_TELEPHONE1`, t1.`ADDRESS2_TELEPHONE2`, t1.`ADDRESS2_TELEPHONE3`, t1.`ADDRESS2_UPSZONE`, t1.`ADDRESS2_UTCOFFSET`, t1.`AUTOCREATE`, t1.`BUDGETAMOUNT`, t1.`BUDGETAMOUNT_BASE`, t1.`BUDGETSTATUS`, t1.`CAMPAIGNID`, t1.`COMPANYNAME`, t1.`CONFIRMINTEREST`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`DECISIONMAKER`, t1.`DESCRIPTION`, t1.`DONOTBULKEMAIL`, t1.`DONOTEMAIL`, t1.`DONOTFAX`, t1.`DONOTPHONE`, t1.`DONOTPOSTALMAIL`, t1.`DONOTSENDMM`, t1.`EMAILADDRESS1`, t1.`EMAILADDRESS2`, t1.`EMAILADDRESS3`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`ESTIMATEDAMOUNT`, t1.`ESTIMATEDAMOUNT_BASE`, t1.`ESTIMATEDCLOSEDATE`, t1.`ESTIMATEDVALUE`, t1.`EVALUATEFIT`, t1.`EXCHANGERATE`, t1.`FAX`, t1.`FIRSTNAME`, t1.`FOLLOWEMAIL`, t1.`FULLNAME`, t1.`IMPORTSEQUENCENUMBER`, t1.`INDUSTRYCODE`, t1.`INITIALCOMMUNICATION`, t1.`JOBTITLE`, t1.`LASTNAME`, t1.`LASTONHOLDTIME`, t1.`LASTUSEDINCAMPAIGN`, t1.`LEADID`, t1.`LEADQUALITYCODE`, t1.`LEADSOURCECODE`, t1.`MASTERLEADIDYOMINAME`, t1.`MERGED`, t1.`MIDDLENAME`, t1.`MOBILEPHONE`, t1.`NEED`, t1.`NUMBEROFEMPLOYEES`, t1.`ONHOLDTIME`, t1.`ORIGINATINGCASEID`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PAGER`, t1.`PARENTACCOUNTID`, t1.`PARENTACCOUNTIDYOMINAME`, t1.`PARENTCONTACTID`, t1.`PARENTCONTACTIDYOMINAME`, t1.`PARTICIPATESINWORKFLOW`, t1.`PREFERREDCONTACTMETHODCODE`, t1.`PRIORITYCODE`, t1.`PRIVATE`, t1.`PROCESSID`, t1.`PURCHASEPROCESS`, t1.`PURCHASETIMEFRAME`, t1.`QUALIFICATIONCOMMENTS`, t1.`QUALIFYINGOPPORTUNITYID`, t1.`RELATEDOBJECTID`, t1.`REVENUE`, t1.`REVENUE_BASE`, t1.`SALESSTAGE`, t1.`SALESSTAGECODE`, t1.`SALUTATION`, t1.`SCHEDULEFOLLOWUP_PROSPECT`, t1.`SCHEDULEFOLLOWUP_QUALIFY`, t1.`SIC`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBJECT`, t1.`TEAMSFOLLOWED`, t1.`TELEPHONE1`, t1.`TELEPHONE2`, t1.`TELEPHONE3`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WEBSITEURL`, t1.`YOMICOMPANYNAME`, t1.`YOMIFIRSTNAME`, t1.`YOMIFULLNAME`, t1.`YOMILASTNAME`, t1.`YOMIMIDDLENAME` FROM `LEAD` t1 ) t1 where leadid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`ADDRESS1_ADDRESSID`, t1.`ADDRESS1_ADDRESSTYPECODE`, t1.`ADDRESS1_CITY`, t1.`ADDRESS1_COMPOSITE`, t1.`ADDRESS1_COUNTRY`, t1.`ADDRESS1_COUNTY`, t1.`ADDRESS1_FAX`, t1.`ADDRESS1_LATITUDE`, t1.`ADDRESS1_LINE1`, t1.`ADDRESS1_LINE2`, t1.`ADDRESS1_LINE3`, t1.`ADDRESS1_LONGITUDE`, t1.`ADDRESS1_NAME`, t1.`ADDRESS1_POSTALCODE`, t1.`ADDRESS1_POSTOFFICEBOX`, t1.`ADDRESS1_SHIPPINGMETHODCODE`, t1.`ADDRESS1_STATEORPROVINCE`, t1.`ADDRESS1_TELEPHONE1`, t1.`ADDRESS1_TELEPHONE2`, t1.`ADDRESS1_TELEPHONE3`, t1.`ADDRESS1_UPSZONE`, t1.`ADDRESS1_UTCOFFSET`, t1.`ADDRESS2_ADDRESSID`, t1.`ADDRESS2_ADDRESSTYPECODE`, t1.`ADDRESS2_CITY`, t1.`ADDRESS2_COMPOSITE`, t1.`ADDRESS2_COUNTRY`, t1.`ADDRESS2_COUNTY`, t1.`ADDRESS2_FAX`, t1.`ADDRESS2_LATITUDE`, t1.`ADDRESS2_LINE1`, t1.`ADDRESS2_LINE2`, t1.`ADDRESS2_LINE3`, t1.`ADDRESS2_LONGITUDE`, t1.`ADDRESS2_NAME`, t1.`ADDRESS2_POSTALCODE`, t1.`ADDRESS2_POSTOFFICEBOX`, t1.`ADDRESS2_SHIPPINGMETHODCODE`, t1.`ADDRESS2_STATEORPROVINCE`, t1.`ADDRESS2_TELEPHONE1`, t1.`ADDRESS2_TELEPHONE2`, t1.`ADDRESS2_TELEPHONE3`, t1.`ADDRESS2_UPSZONE`, t1.`ADDRESS2_UTCOFFSET`, t1.`AUTOCREATE`, t1.`BUDGETAMOUNT`, t1.`BUDGETAMOUNT_BASE`, t1.`BUDGETSTATUS`, t1.`CAMPAIGNID`, t1.`CAMPAIGNNAME`, t1.`COMPANYNAME`, t1.`CONFIRMINTEREST`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`DECISIONMAKER`, t1.`DESCRIPTION`, t1.`DONOTBULKEMAIL`, t1.`DONOTEMAIL`, t1.`DONOTFAX`, t1.`DONOTPHONE`, t1.`DONOTPOSTALMAIL`, t1.`DONOTSENDMM`, t1.`EMAILADDRESS1`, t1.`EMAILADDRESS2`, t1.`EMAILADDRESS3`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`ESTIMATEDAMOUNT`, t1.`ESTIMATEDAMOUNT_BASE`, t1.`ESTIMATEDCLOSEDATE`, t1.`ESTIMATEDVALUE`, t1.`EVALUATEFIT`, t1.`EXCHANGERATE`, t1.`FAX`, t1.`FIRSTNAME`, t1.`FOLLOWEMAIL`, t1.`FULLNAME`, t1.`IMPORTSEQUENCENUMBER`, t1.`INDUSTRYCODE`, t1.`INITIALCOMMUNICATION`, t1.`JOBTITLE`, t1.`LASTNAME`, t1.`LASTONHOLDTIME`, t1.`LASTUSEDINCAMPAIGN`, t1.`LEADID`, t1.`LEADQUALITYCODE`, t1.`LEADSOURCECODE`, t1.`MASTERLEADIDYOMINAME`, t1.`MERGED`, t1.`MIDDLENAME`, t1.`MOBILEPHONE`, t1.`NEED`, t1.`NUMBEROFEMPLOYEES`, t1.`ONHOLDTIME`, t1.`ORIGINATINGCASEID`, t1.`ORIGINATINGCASENAME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PAGER`, t1.`PARENTACCOUNTID`, t1.`PARENTACCOUNTNAME`, t1.`PARENTCONTACTID`, t1.`PARENTCONTACTNAME`, t1.`PARTICIPATESINWORKFLOW`, t1.`PREFERREDCONTACTMETHODCODE`, t1.`PRIORITYCODE`, t1.`PRIVATE`, t1.`PROCESSID`, t1.`PURCHASEPROCESS`, t1.`PURCHASETIMEFRAME`, t1.`QUALIFICATIONCOMMENTS`, t1.`QUALIFYINGOPPORTUNITYID`, t1.`QUALIFYINGOPPORTUNITYNAME`, t1.`RELATEDOBJECTID`, t1.`RELATEDOBJECTNAME`, t1.`REVENUE`, t1.`REVENUE_BASE`, t1.`SALESSTAGE`, t1.`SALESSTAGECODE`, t1.`SALUTATION`, t1.`SCHEDULEFOLLOWUP_PROSPECT`, t1.`SCHEDULEFOLLOWUP_QUALIFY`, t1.`SIC`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBJECT`, t1.`TEAMSFOLLOWED`, t1.`TELEPHONE1`, t1.`TELEPHONE2`, t1.`TELEPHONE3`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WEBSITEURL`, t1.`YOMICOMPANYNAME`, t1.`YOMIFIRSTNAME`, t1.`YOMIFULLNAME`, t1.`YOMILASTNAME`, t1.`YOMIMIDDLENAME` FROM `LEAD` t1 ) t1 where leadid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -159,12 +159,12 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`ACCOUNTIDYOMINAME`, t1.`ADDRESS1_ADDRESSID`, t1.`ADDRESS1_ADDRESSTYPECODE`, t1.`ADDRESS1_CITY`, t1.`ADDRESS1_COMPOSITE`, t1.`ADDRESS1_COUNTRY`, t1.`ADDRESS1_COUNTY`, t1.`ADDRESS1_FAX`, t1.`ADDRESS1_LATITUDE`, t1.`ADDRESS1_LINE1`, t1.`ADDRESS1_LINE2`, t1.`ADDRESS1_LINE3`, t1.`ADDRESS1_LONGITUDE`, t1.`ADDRESS1_NAME`, t1.`ADDRESS1_POSTALCODE`, t1.`ADDRESS1_POSTOFFICEBOX`, t1.`ADDRESS1_SHIPPINGMETHODCODE`, t1.`ADDRESS1_STATEORPROVINCE`, t1.`ADDRESS1_TELEPHONE1`, t1.`ADDRESS1_TELEPHONE2`, t1.`ADDRESS1_TELEPHONE3`, t1.`ADDRESS1_UPSZONE`, t1.`ADDRESS1_UTCOFFSET`, t1.`ADDRESS2_ADDRESSID`, t1.`ADDRESS2_ADDRESSTYPECODE`, t1.`ADDRESS2_CITY`, t1.`ADDRESS2_COMPOSITE`, t1.`ADDRESS2_COUNTRY`, t1.`ADDRESS2_COUNTY`, t1.`ADDRESS2_FAX`, t1.`ADDRESS2_LATITUDE`, t1.`ADDRESS2_LINE1`, t1.`ADDRESS2_LINE2`, t1.`ADDRESS2_LINE3`, t1.`ADDRESS2_LONGITUDE`, t1.`ADDRESS2_NAME`, t1.`ADDRESS2_POSTALCODE`, t1.`ADDRESS2_POSTOFFICEBOX`, t1.`ADDRESS2_SHIPPINGMETHODCODE`, t1.`ADDRESS2_STATEORPROVINCE`, t1.`ADDRESS2_TELEPHONE1`, t1.`ADDRESS2_TELEPHONE2`, t1.`ADDRESS2_TELEPHONE3`, t1.`ADDRESS2_UPSZONE`, t1.`ADDRESS2_UTCOFFSET`, t1.`AUTOCREATE`, t1.`BUDGETAMOUNT`, t1.`BUDGETAMOUNT_BASE`, t1.`BUDGETSTATUS`, t1.`CAMPAIGNID`, t1.`COMPANYNAME`, t1.`CONFIRMINTEREST`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`DECISIONMAKER`, t1.`DESCRIPTION`, t1.`DONOTBULKEMAIL`, t1.`DONOTEMAIL`, t1.`DONOTFAX`, t1.`DONOTPHONE`, t1.`DONOTPOSTALMAIL`, t1.`DONOTSENDMM`, t1.`EMAILADDRESS1`, t1.`EMAILADDRESS2`, t1.`EMAILADDRESS3`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`ESTIMATEDAMOUNT`, t1.`ESTIMATEDAMOUNT_BASE`, t1.`ESTIMATEDCLOSEDATE`, t1.`ESTIMATEDVALUE`, t1.`EVALUATEFIT`, t1.`EXCHANGERATE`, t1.`FAX`, t1.`FIRSTNAME`, t1.`FOLLOWEMAIL`, t1.`FULLNAME`, t1.`IMPORTSEQUENCENUMBER`, t1.`INDUSTRYCODE`, t1.`INITIALCOMMUNICATION`, t1.`JOBTITLE`, t1.`LASTNAME`, t1.`LASTONHOLDTIME`, t1.`LASTUSEDINCAMPAIGN`, t1.`LEADID`, t1.`LEADQUALITYCODE`, t1.`LEADSOURCECODE`, t1.`MASTERLEADIDYOMINAME`, t1.`MERGED`, t1.`MIDDLENAME`, t1.`MOBILEPHONE`, t1.`NEED`, t1.`NUMBEROFEMPLOYEES`, t1.`ONHOLDTIME`, t1.`ORIGINATINGCASEID`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PAGER`, t1.`PARENTACCOUNTID`, t1.`PARENTACCOUNTIDYOMINAME`, t1.`PARENTCONTACTID`, t1.`PARENTCONTACTIDYOMINAME`, t1.`PARTICIPATESINWORKFLOW`, t1.`PREFERREDCONTACTMETHODCODE`, t1.`PRIORITYCODE`, t1.`PRIVATE`, t1.`PROCESSID`, t1.`PURCHASEPROCESS`, t1.`PURCHASETIMEFRAME`, t1.`QUALIFICATIONCOMMENTS`, t1.`QUALIFYINGOPPORTUNITYID`, t1.`RELATEDOBJECTID`, t1.`REVENUE`, t1.`REVENUE_BASE`, t1.`SALESSTAGE`, t1.`SALESSTAGECODE`, t1.`SALUTATION`, t1.`SCHEDULEFOLLOWUP_PROSPECT`, t1.`SCHEDULEFOLLOWUP_QUALIFY`, t1.`SIC`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBJECT`, t1.`TEAMSFOLLOWED`, t1.`TELEPHONE1`, t1.`TELEPHONE2`, t1.`TELEPHONE3`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WEBSITEURL`, t1.`YOMICOMPANYNAME`, t1.`YOMIFIRSTNAME`, t1.`YOMIFULLNAME`, t1.`YOMILASTNAME`, t1.`YOMIMIDDLENAME` FROM `LEAD` t1
<![CDATA[ SELECT t1.`ADDRESS1_ADDRESSID`, t1.`ADDRESS1_ADDRESSTYPECODE`, t1.`ADDRESS1_CITY`, t1.`ADDRESS1_COMPOSITE`, t1.`ADDRESS1_COUNTRY`, t1.`ADDRESS1_COUNTY`, t1.`ADDRESS1_FAX`, t1.`ADDRESS1_LATITUDE`, t1.`ADDRESS1_LINE1`, t1.`ADDRESS1_LINE2`, t1.`ADDRESS1_LINE3`, t1.`ADDRESS1_LONGITUDE`, t1.`ADDRESS1_NAME`, t1.`ADDRESS1_POSTALCODE`, t1.`ADDRESS1_POSTOFFICEBOX`, t1.`ADDRESS1_SHIPPINGMETHODCODE`, t1.`ADDRESS1_STATEORPROVINCE`, t1.`ADDRESS1_TELEPHONE1`, t1.`ADDRESS1_TELEPHONE2`, t1.`ADDRESS1_TELEPHONE3`, t1.`ADDRESS1_UPSZONE`, t1.`ADDRESS1_UTCOFFSET`, t1.`ADDRESS2_ADDRESSID`, t1.`ADDRESS2_ADDRESSTYPECODE`, t1.`ADDRESS2_CITY`, t1.`ADDRESS2_COMPOSITE`, t1.`ADDRESS2_COUNTRY`, t1.`ADDRESS2_COUNTY`, t1.`ADDRESS2_FAX`, t1.`ADDRESS2_LATITUDE`, t1.`ADDRESS2_LINE1`, t1.`ADDRESS2_LINE2`, t1.`ADDRESS2_LINE3`, t1.`ADDRESS2_LONGITUDE`, t1.`ADDRESS2_NAME`, t1.`ADDRESS2_POSTALCODE`, t1.`ADDRESS2_POSTOFFICEBOX`, t1.`ADDRESS2_SHIPPINGMETHODCODE`, t1.`ADDRESS2_STATEORPROVINCE`, t1.`ADDRESS2_TELEPHONE1`, t1.`ADDRESS2_TELEPHONE2`, t1.`ADDRESS2_TELEPHONE3`, t1.`ADDRESS2_UPSZONE`, t1.`ADDRESS2_UTCOFFSET`, t1.`AUTOCREATE`, t1.`BUDGETAMOUNT`, t1.`BUDGETAMOUNT_BASE`, t1.`BUDGETSTATUS`, t1.`CAMPAIGNID`, t1.`CAMPAIGNNAME`, t1.`COMPANYNAME`, t1.`CONFIRMINTEREST`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`DECISIONMAKER`, t1.`DESCRIPTION`, t1.`DONOTBULKEMAIL`, t1.`DONOTEMAIL`, t1.`DONOTFAX`, t1.`DONOTPHONE`, t1.`DONOTPOSTALMAIL`, t1.`DONOTSENDMM`, t1.`EMAILADDRESS1`, t1.`EMAILADDRESS2`, t1.`EMAILADDRESS3`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`ESTIMATEDAMOUNT`, t1.`ESTIMATEDAMOUNT_BASE`, t1.`ESTIMATEDCLOSEDATE`, t1.`ESTIMATEDVALUE`, t1.`EVALUATEFIT`, t1.`EXCHANGERATE`, t1.`FAX`, t1.`FIRSTNAME`, t1.`FOLLOWEMAIL`, t1.`FULLNAME`, t1.`IMPORTSEQUENCENUMBER`, t1.`INDUSTRYCODE`, t1.`INITIALCOMMUNICATION`, t1.`JOBTITLE`, t1.`LASTNAME`, t1.`LASTONHOLDTIME`, t1.`LASTUSEDINCAMPAIGN`, t1.`LEADID`, t1.`LEADQUALITYCODE`, t1.`LEADSOURCECODE`, t1.`MASTERLEADIDYOMINAME`, t1.`MERGED`, t1.`MIDDLENAME`, t1.`MOBILEPHONE`, t1.`NEED`, t1.`NUMBEROFEMPLOYEES`, t1.`ONHOLDTIME`, t1.`ORIGINATINGCASEID`, t1.`ORIGINATINGCASENAME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PAGER`, t1.`PARENTACCOUNTID`, t1.`PARENTACCOUNTNAME`, t1.`PARENTCONTACTID`, t1.`PARENTCONTACTNAME`, t1.`PARTICIPATESINWORKFLOW`, t1.`PREFERREDCONTACTMETHODCODE`, t1.`PRIORITYCODE`, t1.`PRIVATE`, t1.`PROCESSID`, t1.`PURCHASEPROCESS`, t1.`PURCHASETIMEFRAME`, t1.`QUALIFICATIONCOMMENTS`, t1.`QUALIFYINGOPPORTUNITYID`, t1.`QUALIFYINGOPPORTUNITYNAME`, t1.`RELATEDOBJECTID`, t1.`RELATEDOBJECTNAME`, t1.`REVENUE`, t1.`REVENUE_BASE`, t1.`SALESSTAGE`, t1.`SALESSTAGECODE`, t1.`SALUTATION`, t1.`SCHEDULEFOLLOWUP_PROSPECT`, t1.`SCHEDULEFOLLOWUP_QUALIFY`, t1.`SIC`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBJECT`, t1.`TEAMSFOLLOWED`, t1.`TELEPHONE1`, t1.`TELEPHONE2`, t1.`TELEPHONE3`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WEBSITEURL`, t1.`YOMICOMPANYNAME`, t1.`YOMIFIRSTNAME`, t1.`YOMIFULLNAME`, t1.`YOMILASTNAME`, t1.`YOMIMIDDLENAME` FROM `LEAD` t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`ACCOUNTIDYOMINAME`, t1.`ADDRESS1_ADDRESSID`, t1.`ADDRESS1_ADDRESSTYPECODE`, t1.`ADDRESS1_CITY`, t1.`ADDRESS1_COMPOSITE`, t1.`ADDRESS1_COUNTRY`, t1.`ADDRESS1_COUNTY`, t1.`ADDRESS1_FAX`, t1.`ADDRESS1_LATITUDE`, t1.`ADDRESS1_LINE1`, t1.`ADDRESS1_LINE2`, t1.`ADDRESS1_LINE3`, t1.`ADDRESS1_LONGITUDE`, t1.`ADDRESS1_NAME`, t1.`ADDRESS1_POSTALCODE`, t1.`ADDRESS1_POSTOFFICEBOX`, t1.`ADDRESS1_SHIPPINGMETHODCODE`, t1.`ADDRESS1_STATEORPROVINCE`, t1.`ADDRESS1_TELEPHONE1`, t1.`ADDRESS1_TELEPHONE2`, t1.`ADDRESS1_TELEPHONE3`, t1.`ADDRESS1_UPSZONE`, t1.`ADDRESS1_UTCOFFSET`, t1.`ADDRESS2_ADDRESSID`, t1.`ADDRESS2_ADDRESSTYPECODE`, t1.`ADDRESS2_CITY`, t1.`ADDRESS2_COMPOSITE`, t1.`ADDRESS2_COUNTRY`, t1.`ADDRESS2_COUNTY`, t1.`ADDRESS2_FAX`, t1.`ADDRESS2_LATITUDE`, t1.`ADDRESS2_LINE1`, t1.`ADDRESS2_LINE2`, t1.`ADDRESS2_LINE3`, t1.`ADDRESS2_LONGITUDE`, t1.`ADDRESS2_NAME`, t1.`ADDRESS2_POSTALCODE`, t1.`ADDRESS2_POSTOFFICEBOX`, t1.`ADDRESS2_SHIPPINGMETHODCODE`, t1.`ADDRESS2_STATEORPROVINCE`, t1.`ADDRESS2_TELEPHONE1`, t1.`ADDRESS2_TELEPHONE2`, t1.`ADDRESS2_TELEPHONE3`, t1.`ADDRESS2_UPSZONE`, t1.`ADDRESS2_UTCOFFSET`, t1.`AUTOCREATE`, t1.`BUDGETAMOUNT`, t1.`BUDGETAMOUNT_BASE`, t1.`BUDGETSTATUS`, t1.`CAMPAIGNID`, t1.`COMPANYNAME`, t1.`CONFIRMINTEREST`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`DECISIONMAKER`, t1.`DESCRIPTION`, t1.`DONOTBULKEMAIL`, t1.`DONOTEMAIL`, t1.`DONOTFAX`, t1.`DONOTPHONE`, t1.`DONOTPOSTALMAIL`, t1.`DONOTSENDMM`, t1.`EMAILADDRESS1`, t1.`EMAILADDRESS2`, t1.`EMAILADDRESS3`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`ESTIMATEDAMOUNT`, t1.`ESTIMATEDAMOUNT_BASE`, t1.`ESTIMATEDCLOSEDATE`, t1.`ESTIMATEDVALUE`, t1.`EVALUATEFIT`, t1.`EXCHANGERATE`, t1.`FAX`, t1.`FIRSTNAME`, t1.`FOLLOWEMAIL`, t1.`FULLNAME`, t1.`IMPORTSEQUENCENUMBER`, t1.`INDUSTRYCODE`, t1.`INITIALCOMMUNICATION`, t1.`JOBTITLE`, t1.`LASTNAME`, t1.`LASTONHOLDTIME`, t1.`LASTUSEDINCAMPAIGN`, t1.`LEADID`, t1.`LEADQUALITYCODE`, t1.`LEADSOURCECODE`, t1.`MASTERLEADIDYOMINAME`, t1.`MERGED`, t1.`MIDDLENAME`, t1.`MOBILEPHONE`, t1.`NEED`, t1.`NUMBEROFEMPLOYEES`, t1.`ONHOLDTIME`, t1.`ORIGINATINGCASEID`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PAGER`, t1.`PARENTACCOUNTID`, t1.`PARENTACCOUNTIDYOMINAME`, t1.`PARENTCONTACTID`, t1.`PARENTCONTACTIDYOMINAME`, t1.`PARTICIPATESINWORKFLOW`, t1.`PREFERREDCONTACTMETHODCODE`, t1.`PRIORITYCODE`, t1.`PRIVATE`, t1.`PROCESSID`, t1.`PURCHASEPROCESS`, t1.`PURCHASETIMEFRAME`, t1.`QUALIFICATIONCOMMENTS`, t1.`QUALIFYINGOPPORTUNITYID`, t1.`RELATEDOBJECTID`, t1.`REVENUE`, t1.`REVENUE_BASE`, t1.`SALESSTAGE`, t1.`SALESSTAGECODE`, t1.`SALUTATION`, t1.`SCHEDULEFOLLOWUP_PROSPECT`, t1.`SCHEDULEFOLLOWUP_QUALIFY`, t1.`SIC`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBJECT`, t1.`TEAMSFOLLOWED`, t1.`TELEPHONE1`, t1.`TELEPHONE2`, t1.`TELEPHONE3`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WEBSITEURL`, t1.`YOMICOMPANYNAME`, t1.`YOMIFIRSTNAME`, t1.`YOMIFULLNAME`, t1.`YOMILASTNAME`, t1.`YOMIMIDDLENAME` FROM `LEAD` t1
<![CDATA[ SELECT t1.`ADDRESS1_ADDRESSID`, t1.`ADDRESS1_ADDRESSTYPECODE`, t1.`ADDRESS1_CITY`, t1.`ADDRESS1_COMPOSITE`, t1.`ADDRESS1_COUNTRY`, t1.`ADDRESS1_COUNTY`, t1.`ADDRESS1_FAX`, t1.`ADDRESS1_LATITUDE`, t1.`ADDRESS1_LINE1`, t1.`ADDRESS1_LINE2`, t1.`ADDRESS1_LINE3`, t1.`ADDRESS1_LONGITUDE`, t1.`ADDRESS1_NAME`, t1.`ADDRESS1_POSTALCODE`, t1.`ADDRESS1_POSTOFFICEBOX`, t1.`ADDRESS1_SHIPPINGMETHODCODE`, t1.`ADDRESS1_STATEORPROVINCE`, t1.`ADDRESS1_TELEPHONE1`, t1.`ADDRESS1_TELEPHONE2`, t1.`ADDRESS1_TELEPHONE3`, t1.`ADDRESS1_UPSZONE`, t1.`ADDRESS1_UTCOFFSET`, t1.`ADDRESS2_ADDRESSID`, t1.`ADDRESS2_ADDRESSTYPECODE`, t1.`ADDRESS2_CITY`, t1.`ADDRESS2_COMPOSITE`, t1.`ADDRESS2_COUNTRY`, t1.`ADDRESS2_COUNTY`, t1.`ADDRESS2_FAX`, t1.`ADDRESS2_LATITUDE`, t1.`ADDRESS2_LINE1`, t1.`ADDRESS2_LINE2`, t1.`ADDRESS2_LINE3`, t1.`ADDRESS2_LONGITUDE`, t1.`ADDRESS2_NAME`, t1.`ADDRESS2_POSTALCODE`, t1.`ADDRESS2_POSTOFFICEBOX`, t1.`ADDRESS2_SHIPPINGMETHODCODE`, t1.`ADDRESS2_STATEORPROVINCE`, t1.`ADDRESS2_TELEPHONE1`, t1.`ADDRESS2_TELEPHONE2`, t1.`ADDRESS2_TELEPHONE3`, t1.`ADDRESS2_UPSZONE`, t1.`ADDRESS2_UTCOFFSET`, t1.`AUTOCREATE`, t1.`BUDGETAMOUNT`, t1.`BUDGETAMOUNT_BASE`, t1.`BUDGETSTATUS`, t1.`CAMPAIGNID`, t1.`CAMPAIGNNAME`, t1.`COMPANYNAME`, t1.`CONFIRMINTEREST`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`DECISIONMAKER`, t1.`DESCRIPTION`, t1.`DONOTBULKEMAIL`, t1.`DONOTEMAIL`, t1.`DONOTFAX`, t1.`DONOTPHONE`, t1.`DONOTPOSTALMAIL`, t1.`DONOTSENDMM`, t1.`EMAILADDRESS1`, t1.`EMAILADDRESS2`, t1.`EMAILADDRESS3`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`ESTIMATEDAMOUNT`, t1.`ESTIMATEDAMOUNT_BASE`, t1.`ESTIMATEDCLOSEDATE`, t1.`ESTIMATEDVALUE`, t1.`EVALUATEFIT`, t1.`EXCHANGERATE`, t1.`FAX`, t1.`FIRSTNAME`, t1.`FOLLOWEMAIL`, t1.`FULLNAME`, t1.`IMPORTSEQUENCENUMBER`, t1.`INDUSTRYCODE`, t1.`INITIALCOMMUNICATION`, t1.`JOBTITLE`, t1.`LASTNAME`, t1.`LASTONHOLDTIME`, t1.`LASTUSEDINCAMPAIGN`, t1.`LEADID`, t1.`LEADQUALITYCODE`, t1.`LEADSOURCECODE`, t1.`MASTERLEADIDYOMINAME`, t1.`MERGED`, t1.`MIDDLENAME`, t1.`MOBILEPHONE`, t1.`NEED`, t1.`NUMBEROFEMPLOYEES`, t1.`ONHOLDTIME`, t1.`ORIGINATINGCASEID`, t1.`ORIGINATINGCASENAME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PAGER`, t1.`PARENTACCOUNTID`, t1.`PARENTACCOUNTNAME`, t1.`PARENTCONTACTID`, t1.`PARENTCONTACTNAME`, t1.`PARTICIPATESINWORKFLOW`, t1.`PREFERREDCONTACTMETHODCODE`, t1.`PRIORITYCODE`, t1.`PRIVATE`, t1.`PROCESSID`, t1.`PURCHASEPROCESS`, t1.`PURCHASETIMEFRAME`, t1.`QUALIFICATIONCOMMENTS`, t1.`QUALIFYINGOPPORTUNITYID`, t1.`QUALIFYINGOPPORTUNITYNAME`, t1.`RELATEDOBJECTID`, t1.`RELATEDOBJECTNAME`, t1.`REVENUE`, t1.`REVENUE_BASE`, t1.`SALESSTAGE`, t1.`SALESSTAGECODE`, t1.`SALUTATION`, t1.`SCHEDULEFOLLOWUP_PROSPECT`, t1.`SCHEDULEFOLLOWUP_QUALIFY`, t1.`SIC`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBJECT`, t1.`TEAMSFOLLOWED`, t1.`TELEPHONE1`, t1.`TELEPHONE2`, t1.`TELEPHONE3`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WEBSITEURL`, t1.`YOMICOMPANYNAME`, t1.`YOMIFIRSTNAME`, t1.`YOMIFULLNAME`, t1.`YOMILASTNAME`, t1.`YOMIMIDDLENAME` FROM `LEAD` t1
]]>
</sql>
</mapper>
......
......@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="OpportunityResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`ACCOUNTIDYOMINAME`, t1.`ACTUALCLOSEDATE`, t1.`ACTUALVALUE`, t1.`ACTUALVALUE_BASE`, t1.`BUDGETAMOUNT`, t1.`BUDGETAMOUNT_BASE`, t1.`BUDGETSTATUS`, t1.`CAMPAIGNID`, t1.`CAPTUREPROPOSALFEEDBACK`, t1.`CLOSEPROBABILITY`, t1.`COMPLETEFINALPROPOSAL`, t1.`COMPLETEINTERNALREVIEW`, t1.`CONFIRMINTEREST`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CURRENTSITUATION`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`CUSTOMERNEED`, t1.`CUSTOMERPAINPOINTS`, t1.`DECISIONMAKER`, t1.`DESCRIPTION`, t1.`DEVELOPPROPOSAL`, t1.`DISCOUNTAMOUNT`, t1.`DISCOUNTAMOUNT_BASE`, t1.`DISCOUNTPERCENTAGE`, t1.`EMAILADDRESS`, t1.`ESTIMATEDCLOSEDATE`, t1.`ESTIMATEDVALUE`, t1.`ESTIMATEDVALUE_BASE`, t1.`EVALUATEFIT`, t1.`EXCHANGERATE`, t1.`FILEDEBRIEF`, t1.`FINALDECISIONDATE`, t1.`FREIGHTAMOUNT`, t1.`FREIGHTAMOUNT_BASE`, t1.`IDENTIFYCOMPETITORS`, t1.`IDENTIFYCUSTOMERCONTACTS`, t1.`IDENTIFYPURSUITTEAM`, t1.`IMPORTSEQUENCENUMBER`, t1.`INITIALCOMMUNICATION`, t1.`LASTONHOLDTIME`, t1.`NEED`, t1.`ONHOLDTIME`, t1.`OPPORTUNITYID`, t1.`OPPORTUNITYNAME`, t1.`OPPORTUNITYRATINGCODE`, t1.`ORIGINATINGLEADID`, t1.`ORIGINATINGLEADIDYOMINAME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PARENTACCOUNTID`, t1.`PARENTACCOUNTIDYOMINAME`, t1.`PARENTCONTACTID`, t1.`PARENTCONTACTIDYOMINAME`, t1.`PARTICIPATESINWORKFLOW`, t1.`PRESENTFINALPROPOSAL`, t1.`PRESENTPROPOSAL`, t1.`PRICELEVELID`, t1.`PRICINGERRORCODE`, t1.`PRIORITYCODE`, t1.`PRIVATE`, t1.`PROCESSID`, t1.`PROPOSEDSOLUTION`, t1.`PURCHASEPROCESS`, t1.`PURCHASETIMEFRAME`, t1.`PURSUITDECISION`, t1.`QUALIFICATIONCOMMENTS`, t1.`QUOTECOMMENTS`, t1.`RESOLVEFEEDBACK`, t1.`REVENUESYSTEMCALCULATED`, t1.`SALESSTAGE`, t1.`SALESSTAGECODE`, t1.`SCHEDULEFOLLOWUP_PROSPECT`, t1.`SCHEDULEFOLLOWUP_QUALIFY`, t1.`SCHEDULEPROPOSALMEETING`, t1.`SENDTHANKYOUNOTE`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`STEPID`, t1.`STEPNAME`, t1.`TEAMSFOLLOWED`, t1.`TIMELINE`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TOTALAMOUNT`, t1.`TOTALAMOUNTLESSFREIGHT`, t1.`TOTALAMOUNTLESSFREIGHT_BASE`, t1.`TOTALAMOUNT_BASE`, t1.`TOTALDISCOUNTAMOUNT`, t1.`TOTALDISCOUNTAMOUNT_BASE`, t1.`TOTALLINEITEMAMOUNT`, t1.`TOTALLINEITEMAMOUNT_BASE`, t1.`TOTALLINEITEMDISCOUNTAMOUNT`, t1.`TOTALTAX`, t1.`TOTALTAX_BASE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `OPPORTUNITY` t1 ) t1 where opportunityid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`ACCOUNTIDYOMINAME`, t1.`ACTUALCLOSEDATE`, t1.`ACTUALVALUE`, t1.`ACTUALVALUE_BASE`, t1.`BUDGETAMOUNT`, t1.`BUDGETAMOUNT_BASE`, t1.`BUDGETSTATUS`, t1.`CAMPAIGNID`, t1.`CAMPAIGNNAME`, t1.`CAPTUREPROPOSALFEEDBACK`, t1.`CLOSEPROBABILITY`, t1.`COMPLETEFINALPROPOSAL`, t1.`COMPLETEINTERNALREVIEW`, t1.`CONFIRMINTEREST`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CURRENTSITUATION`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`CUSTOMERNEED`, t1.`CUSTOMERPAINPOINTS`, t1.`DECISIONMAKER`, t1.`DESCRIPTION`, t1.`DEVELOPPROPOSAL`, t1.`DISCOUNTAMOUNT`, t1.`DISCOUNTAMOUNT_BASE`, t1.`DISCOUNTPERCENTAGE`, t1.`EMAILADDRESS`, t1.`ESTIMATEDCLOSEDATE`, t1.`ESTIMATEDVALUE`, t1.`ESTIMATEDVALUE_BASE`, t1.`EVALUATEFIT`, t1.`EXCHANGERATE`, t1.`FILEDEBRIEF`, t1.`FINALDECISIONDATE`, t1.`FREIGHTAMOUNT`, t1.`FREIGHTAMOUNT_BASE`, t1.`IDENTIFYCOMPETITORS`, t1.`IDENTIFYCUSTOMERCONTACTS`, t1.`IDENTIFYPURSUITTEAM`, t1.`IMPORTSEQUENCENUMBER`, t1.`INITIALCOMMUNICATION`, t1.`LASTONHOLDTIME`, t1.`NEED`, t1.`ONHOLDTIME`, t1.`OPPORTUNITYID`, t1.`OPPORTUNITYNAME`, t1.`OPPORTUNITYRATINGCODE`, t1.`ORIGINATINGLEADID`, t1.`ORIGINATINGLEADNAME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PARENTACCOUNTID`, t1.`PARENTACCOUNTNAME`, t1.`PARENTCONTACTID`, t1.`PARENTCONTACTNAME`, t1.`PARTICIPATESINWORKFLOW`, t1.`PRESENTFINALPROPOSAL`, t1.`PRESENTPROPOSAL`, t1.`PRICELEVEL`, t1.`PRICELEVELID`, t1.`PRICINGERRORCODE`, t1.`PRIORITYCODE`, t1.`PRIVATE`, t1.`PROCESSID`, t1.`PROPOSEDSOLUTION`, t1.`PURCHASEPROCESS`, t1.`PURCHASETIMEFRAME`, t1.`PURSUITDECISION`, t1.`QUALIFICATIONCOMMENTS`, t1.`QUOTECOMMENTS`, t1.`RESOLVEFEEDBACK`, t1.`REVENUESYSTEMCALCULATED`, t1.`SALESSTAGE`, t1.`SALESSTAGECODE`, t1.`SCHEDULEFOLLOWUP_PROSPECT`, t1.`SCHEDULEFOLLOWUP_QUALIFY`, t1.`SCHEDULEPROPOSALMEETING`, t1.`SENDTHANKYOUNOTE`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`STEPID`, t1.`STEPNAME`, t1.`TEAMSFOLLOWED`, t1.`TIMELINE`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TOTALAMOUNT`, t1.`TOTALAMOUNTLESSFREIGHT`, t1.`TOTALAMOUNTLESSFREIGHT_BASE`, t1.`TOTALAMOUNT_BASE`, t1.`TOTALDISCOUNTAMOUNT`, t1.`TOTALDISCOUNTAMOUNT_BASE`, t1.`TOTALLINEITEMAMOUNT`, t1.`TOTALLINEITEMAMOUNT_BASE`, t1.`TOTALLINEITEMDISCOUNTAMOUNT`, t1.`TOTALTAX`, t1.`TOTALTAX_BASE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `OPPORTUNITY` t1 ) t1 where opportunityid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -110,12 +110,12 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`ACCOUNTIDYOMINAME`, t1.`ACTUALCLOSEDATE`, t1.`ACTUALVALUE`, t1.`ACTUALVALUE_BASE`, t1.`BUDGETAMOUNT`, t1.`BUDGETAMOUNT_BASE`, t1.`BUDGETSTATUS`, t1.`CAMPAIGNID`, t1.`CAPTUREPROPOSALFEEDBACK`, t1.`CLOSEPROBABILITY`, t1.`COMPLETEFINALPROPOSAL`, t1.`COMPLETEINTERNALREVIEW`, t1.`CONFIRMINTEREST`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CURRENTSITUATION`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`CUSTOMERNEED`, t1.`CUSTOMERPAINPOINTS`, t1.`DECISIONMAKER`, t1.`DESCRIPTION`, t1.`DEVELOPPROPOSAL`, t1.`DISCOUNTAMOUNT`, t1.`DISCOUNTAMOUNT_BASE`, t1.`DISCOUNTPERCENTAGE`, t1.`EMAILADDRESS`, t1.`ESTIMATEDCLOSEDATE`, t1.`ESTIMATEDVALUE`, t1.`ESTIMATEDVALUE_BASE`, t1.`EVALUATEFIT`, t1.`EXCHANGERATE`, t1.`FILEDEBRIEF`, t1.`FINALDECISIONDATE`, t1.`FREIGHTAMOUNT`, t1.`FREIGHTAMOUNT_BASE`, t1.`IDENTIFYCOMPETITORS`, t1.`IDENTIFYCUSTOMERCONTACTS`, t1.`IDENTIFYPURSUITTEAM`, t1.`IMPORTSEQUENCENUMBER`, t1.`INITIALCOMMUNICATION`, t1.`LASTONHOLDTIME`, t1.`NEED`, t1.`ONHOLDTIME`, t1.`OPPORTUNITYID`, t1.`OPPORTUNITYNAME`, t1.`OPPORTUNITYRATINGCODE`, t1.`ORIGINATINGLEADID`, t1.`ORIGINATINGLEADIDYOMINAME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PARENTACCOUNTID`, t1.`PARENTACCOUNTIDYOMINAME`, t1.`PARENTCONTACTID`, t1.`PARENTCONTACTIDYOMINAME`, t1.`PARTICIPATESINWORKFLOW`, t1.`PRESENTFINALPROPOSAL`, t1.`PRESENTPROPOSAL`, t1.`PRICELEVELID`, t1.`PRICINGERRORCODE`, t1.`PRIORITYCODE`, t1.`PRIVATE`, t1.`PROCESSID`, t1.`PROPOSEDSOLUTION`, t1.`PURCHASEPROCESS`, t1.`PURCHASETIMEFRAME`, t1.`PURSUITDECISION`, t1.`QUALIFICATIONCOMMENTS`, t1.`QUOTECOMMENTS`, t1.`RESOLVEFEEDBACK`, t1.`REVENUESYSTEMCALCULATED`, t1.`SALESSTAGE`, t1.`SALESSTAGECODE`, t1.`SCHEDULEFOLLOWUP_PROSPECT`, t1.`SCHEDULEFOLLOWUP_QUALIFY`, t1.`SCHEDULEPROPOSALMEETING`, t1.`SENDTHANKYOUNOTE`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`STEPID`, t1.`STEPNAME`, t1.`TEAMSFOLLOWED`, t1.`TIMELINE`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TOTALAMOUNT`, t1.`TOTALAMOUNTLESSFREIGHT`, t1.`TOTALAMOUNTLESSFREIGHT_BASE`, t1.`TOTALAMOUNT_BASE`, t1.`TOTALDISCOUNTAMOUNT`, t1.`TOTALDISCOUNTAMOUNT_BASE`, t1.`TOTALLINEITEMAMOUNT`, t1.`TOTALLINEITEMAMOUNT_BASE`, t1.`TOTALLINEITEMDISCOUNTAMOUNT`, t1.`TOTALTAX`, t1.`TOTALTAX_BASE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `OPPORTUNITY` t1
<![CDATA[ SELECT t1.`ACCOUNTIDYOMINAME`, t1.`ACTUALCLOSEDATE`, t1.`ACTUALVALUE`, t1.`ACTUALVALUE_BASE`, t1.`BUDGETAMOUNT`, t1.`BUDGETAMOUNT_BASE`, t1.`BUDGETSTATUS`, t1.`CAMPAIGNID`, t1.`CAMPAIGNNAME`, t1.`CAPTUREPROPOSALFEEDBACK`, t1.`CLOSEPROBABILITY`, t1.`COMPLETEFINALPROPOSAL`, t1.`COMPLETEINTERNALREVIEW`, t1.`CONFIRMINTEREST`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CURRENTSITUATION`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`CUSTOMERNEED`, t1.`CUSTOMERPAINPOINTS`, t1.`DECISIONMAKER`, t1.`DESCRIPTION`, t1.`DEVELOPPROPOSAL`, t1.`DISCOUNTAMOUNT`, t1.`DISCOUNTAMOUNT_BASE`, t1.`DISCOUNTPERCENTAGE`, t1.`EMAILADDRESS`, t1.`ESTIMATEDCLOSEDATE`, t1.`ESTIMATEDVALUE`, t1.`ESTIMATEDVALUE_BASE`, t1.`EVALUATEFIT`, t1.`EXCHANGERATE`, t1.`FILEDEBRIEF`, t1.`FINALDECISIONDATE`, t1.`FREIGHTAMOUNT`, t1.`FREIGHTAMOUNT_BASE`, t1.`IDENTIFYCOMPETITORS`, t1.`IDENTIFYCUSTOMERCONTACTS`, t1.`IDENTIFYPURSUITTEAM`, t1.`IMPORTSEQUENCENUMBER`, t1.`INITIALCOMMUNICATION`, t1.`LASTONHOLDTIME`, t1.`NEED`, t1.`ONHOLDTIME`, t1.`OPPORTUNITYID`, t1.`OPPORTUNITYNAME`, t1.`OPPORTUNITYRATINGCODE`, t1.`ORIGINATINGLEADID`, t1.`ORIGINATINGLEADNAME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PARENTACCOUNTID`, t1.`PARENTACCOUNTNAME`, t1.`PARENTCONTACTID`, t1.`PARENTCONTACTNAME`, t1.`PARTICIPATESINWORKFLOW`, t1.`PRESENTFINALPROPOSAL`, t1.`PRESENTPROPOSAL`, t1.`PRICELEVEL`, t1.`PRICELEVELID`, t1.`PRICINGERRORCODE`, t1.`PRIORITYCODE`, t1.`PRIVATE`, t1.`PROCESSID`, t1.`PROPOSEDSOLUTION`, t1.`PURCHASEPROCESS`, t1.`PURCHASETIMEFRAME`, t1.`PURSUITDECISION`, t1.`QUALIFICATIONCOMMENTS`, t1.`QUOTECOMMENTS`, t1.`RESOLVEFEEDBACK`, t1.`REVENUESYSTEMCALCULATED`, t1.`SALESSTAGE`, t1.`SALESSTAGECODE`, t1.`SCHEDULEFOLLOWUP_PROSPECT`, t1.`SCHEDULEFOLLOWUP_QUALIFY`, t1.`SCHEDULEPROPOSALMEETING`, t1.`SENDTHANKYOUNOTE`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`STEPID`, t1.`STEPNAME`, t1.`TEAMSFOLLOWED`, t1.`TIMELINE`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TOTALAMOUNT`, t1.`TOTALAMOUNTLESSFREIGHT`, t1.`TOTALAMOUNTLESSFREIGHT_BASE`, t1.`TOTALAMOUNT_BASE`, t1.`TOTALDISCOUNTAMOUNT`, t1.`TOTALDISCOUNTAMOUNT_BASE`, t1.`TOTALLINEITEMAMOUNT`, t1.`TOTALLINEITEMAMOUNT_BASE`, t1.`TOTALLINEITEMDISCOUNTAMOUNT`, t1.`TOTALTAX`, t1.`TOTALTAX_BASE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `OPPORTUNITY` t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`ACCOUNTIDYOMINAME`, t1.`ACTUALCLOSEDATE`, t1.`ACTUALVALUE`, t1.`ACTUALVALUE_BASE`, t1.`BUDGETAMOUNT`, t1.`BUDGETAMOUNT_BASE`, t1.`BUDGETSTATUS`, t1.`CAMPAIGNID`, t1.`CAPTUREPROPOSALFEEDBACK`, t1.`CLOSEPROBABILITY`, t1.`COMPLETEFINALPROPOSAL`, t1.`COMPLETEINTERNALREVIEW`, t1.`CONFIRMINTEREST`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CURRENTSITUATION`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`CUSTOMERNEED`, t1.`CUSTOMERPAINPOINTS`, t1.`DECISIONMAKER`, t1.`DESCRIPTION`, t1.`DEVELOPPROPOSAL`, t1.`DISCOUNTAMOUNT`, t1.`DISCOUNTAMOUNT_BASE`, t1.`DISCOUNTPERCENTAGE`, t1.`EMAILADDRESS`, t1.`ESTIMATEDCLOSEDATE`, t1.`ESTIMATEDVALUE`, t1.`ESTIMATEDVALUE_BASE`, t1.`EVALUATEFIT`, t1.`EXCHANGERATE`, t1.`FILEDEBRIEF`, t1.`FINALDECISIONDATE`, t1.`FREIGHTAMOUNT`, t1.`FREIGHTAMOUNT_BASE`, t1.`IDENTIFYCOMPETITORS`, t1.`IDENTIFYCUSTOMERCONTACTS`, t1.`IDENTIFYPURSUITTEAM`, t1.`IMPORTSEQUENCENUMBER`, t1.`INITIALCOMMUNICATION`, t1.`LASTONHOLDTIME`, t1.`NEED`, t1.`ONHOLDTIME`, t1.`OPPORTUNITYID`, t1.`OPPORTUNITYNAME`, t1.`OPPORTUNITYRATINGCODE`, t1.`ORIGINATINGLEADID`, t1.`ORIGINATINGLEADIDYOMINAME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PARENTACCOUNTID`, t1.`PARENTACCOUNTIDYOMINAME`, t1.`PARENTCONTACTID`, t1.`PARENTCONTACTIDYOMINAME`, t1.`PARTICIPATESINWORKFLOW`, t1.`PRESENTFINALPROPOSAL`, t1.`PRESENTPROPOSAL`, t1.`PRICELEVELID`, t1.`PRICINGERRORCODE`, t1.`PRIORITYCODE`, t1.`PRIVATE`, t1.`PROCESSID`, t1.`PROPOSEDSOLUTION`, t1.`PURCHASEPROCESS`, t1.`PURCHASETIMEFRAME`, t1.`PURSUITDECISION`, t1.`QUALIFICATIONCOMMENTS`, t1.`QUOTECOMMENTS`, t1.`RESOLVEFEEDBACK`, t1.`REVENUESYSTEMCALCULATED`, t1.`SALESSTAGE`, t1.`SALESSTAGECODE`, t1.`SCHEDULEFOLLOWUP_PROSPECT`, t1.`SCHEDULEFOLLOWUP_QUALIFY`, t1.`SCHEDULEPROPOSALMEETING`, t1.`SENDTHANKYOUNOTE`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`STEPID`, t1.`STEPNAME`, t1.`TEAMSFOLLOWED`, t1.`TIMELINE`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TOTALAMOUNT`, t1.`TOTALAMOUNTLESSFREIGHT`, t1.`TOTALAMOUNTLESSFREIGHT_BASE`, t1.`TOTALAMOUNT_BASE`, t1.`TOTALDISCOUNTAMOUNT`, t1.`TOTALDISCOUNTAMOUNT_BASE`, t1.`TOTALLINEITEMAMOUNT`, t1.`TOTALLINEITEMAMOUNT_BASE`, t1.`TOTALLINEITEMDISCOUNTAMOUNT`, t1.`TOTALTAX`, t1.`TOTALTAX_BASE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `OPPORTUNITY` t1
<![CDATA[ SELECT t1.`ACCOUNTIDYOMINAME`, t1.`ACTUALCLOSEDATE`, t1.`ACTUALVALUE`, t1.`ACTUALVALUE_BASE`, t1.`BUDGETAMOUNT`, t1.`BUDGETAMOUNT_BASE`, t1.`BUDGETSTATUS`, t1.`CAMPAIGNID`, t1.`CAMPAIGNNAME`, t1.`CAPTUREPROPOSALFEEDBACK`, t1.`CLOSEPROBABILITY`, t1.`COMPLETEFINALPROPOSAL`, t1.`COMPLETEINTERNALREVIEW`, t1.`CONFIRMINTEREST`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CURRENTSITUATION`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`CUSTOMERNEED`, t1.`CUSTOMERPAINPOINTS`, t1.`DECISIONMAKER`, t1.`DESCRIPTION`, t1.`DEVELOPPROPOSAL`, t1.`DISCOUNTAMOUNT`, t1.`DISCOUNTAMOUNT_BASE`, t1.`DISCOUNTPERCENTAGE`, t1.`EMAILADDRESS`, t1.`ESTIMATEDCLOSEDATE`, t1.`ESTIMATEDVALUE`, t1.`ESTIMATEDVALUE_BASE`, t1.`EVALUATEFIT`, t1.`EXCHANGERATE`, t1.`FILEDEBRIEF`, t1.`FINALDECISIONDATE`, t1.`FREIGHTAMOUNT`, t1.`FREIGHTAMOUNT_BASE`, t1.`IDENTIFYCOMPETITORS`, t1.`IDENTIFYCUSTOMERCONTACTS`, t1.`IDENTIFYPURSUITTEAM`, t1.`IMPORTSEQUENCENUMBER`, t1.`INITIALCOMMUNICATION`, t1.`LASTONHOLDTIME`, t1.`NEED`, t1.`ONHOLDTIME`, t1.`OPPORTUNITYID`, t1.`OPPORTUNITYNAME`, t1.`OPPORTUNITYRATINGCODE`, t1.`ORIGINATINGLEADID`, t1.`ORIGINATINGLEADNAME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PARENTACCOUNTID`, t1.`PARENTACCOUNTNAME`, t1.`PARENTCONTACTID`, t1.`PARENTCONTACTNAME`, t1.`PARTICIPATESINWORKFLOW`, t1.`PRESENTFINALPROPOSAL`, t1.`PRESENTPROPOSAL`, t1.`PRICELEVEL`, t1.`PRICELEVELID`, t1.`PRICINGERRORCODE`, t1.`PRIORITYCODE`, t1.`PRIVATE`, t1.`PROCESSID`, t1.`PROPOSEDSOLUTION`, t1.`PURCHASEPROCESS`, t1.`PURCHASETIMEFRAME`, t1.`PURSUITDECISION`, t1.`QUALIFICATIONCOMMENTS`, t1.`QUOTECOMMENTS`, t1.`RESOLVEFEEDBACK`, t1.`REVENUESYSTEMCALCULATED`, t1.`SALESSTAGE`, t1.`SALESSTAGECODE`, t1.`SCHEDULEFOLLOWUP_PROSPECT`, t1.`SCHEDULEFOLLOWUP_QUALIFY`, t1.`SCHEDULEPROPOSALMEETING`, t1.`SENDTHANKYOUNOTE`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`STEPID`, t1.`STEPNAME`, t1.`TEAMSFOLLOWED`, t1.`TIMELINE`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TOTALAMOUNT`, t1.`TOTALAMOUNTLESSFREIGHT`, t1.`TOTALAMOUNTLESSFREIGHT_BASE`, t1.`TOTALAMOUNT_BASE`, t1.`TOTALDISCOUNTAMOUNT`, t1.`TOTALDISCOUNTAMOUNT_BASE`, t1.`TOTALLINEITEMAMOUNT`, t1.`TOTALLINEITEMAMOUNT_BASE`, t1.`TOTALLINEITEMDISCOUNTAMOUNT`, t1.`TOTALTAX`, t1.`TOTALTAX_BASE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `OPPORTUNITY` t1
]]>
</sql>
</mapper>
......
......@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="QuoteResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`ACCOUNTIDYOMINAME`, t1.`BILLTO_ADDRESSID`, t1.`BILLTO_CITY`, t1.`BILLTO_COMPOSITE`, t1.`BILLTO_CONTACTNAME`, t1.`BILLTO_COUNTRY`, t1.`BILLTO_FAX`, t1.`BILLTO_LINE1`, t1.`BILLTO_LINE2`, t1.`BILLTO_LINE3`, t1.`BILLTO_NAME`, t1.`BILLTO_POSTALCODE`, t1.`BILLTO_STATEORPROVINCE`, t1.`BILLTO_TELEPHONE`, t1.`CAMPAIGNID`, t1.`CLOSEDON`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`DESCRIPTION`, t1.`DISCOUNTAMOUNT`, t1.`DISCOUNTAMOUNT_BASE`, t1.`DISCOUNTPERCENTAGE`, t1.`EFFECTIVEFROM`, t1.`EFFECTIVETO`, t1.`EMAILADDRESS`, t1.`EXCHANGERATE`, t1.`EXPIRESON`, t1.`FREIGHTAMOUNT`, t1.`FREIGHTAMOUNT_BASE`, t1.`FREIGHTTERMSCODE`, t1.`IMPORTSEQUENCENUMBER`, t1.`LASTONHOLDTIME`, t1.`ONHOLDTIME`, t1.`OPPORTUNITYID`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PAYMENTTERMSCODE`, t1.`PRICELEVELID`, t1.`PRICINGERRORCODE`, t1.`PROCESSID`, t1.`QUOTEID`, t1.`QUOTENAME`, t1.`QUOTENUMBER`, t1.`REQUESTDELIVERYBY`, t1.`REVISIONNUMBER`, t1.`SHIPPINGMETHODCODE`, t1.`SHIPTO_ADDRESSID`, t1.`SHIPTO_CITY`, t1.`SHIPTO_COMPOSITE`, t1.`SHIPTO_CONTACTNAME`, t1.`SHIPTO_COUNTRY`, t1.`SHIPTO_FAX`, t1.`SHIPTO_FREIGHTTERMSCODE`, t1.`SHIPTO_LINE1`, t1.`SHIPTO_LINE2`, t1.`SHIPTO_LINE3`, t1.`SHIPTO_NAME`, t1.`SHIPTO_POSTALCODE`, t1.`SHIPTO_STATEORPROVINCE`, t1.`SHIPTO_TELEPHONE`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TOTALAMOUNT`, t1.`TOTALAMOUNTLESSFREIGHT`, t1.`TOTALAMOUNTLESSFREIGHT_BASE`, t1.`TOTALAMOUNT_BASE`, t1.`TOTALDISCOUNTAMOUNT`, t1.`TOTALDISCOUNTAMOUNT_BASE`, t1.`TOTALLINEITEMAMOUNT`, t1.`TOTALLINEITEMAMOUNT_BASE`, t1.`TOTALLINEITEMDISCOUNTAMOUNT`, t1.`TOTALTAX`, t1.`TOTALTAX_BASE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRAVERSEDPATH`, t1.`UNIQUEDSCID`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WILLCALL` FROM `QUOTE` t1 ) t1 where quoteid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`ACCOUNTIDYOMINAME`, t1.`BILLTO_ADDRESSID`, t1.`BILLTO_CITY`, t1.`BILLTO_COMPOSITE`, t1.`BILLTO_CONTACTNAME`, t1.`BILLTO_COUNTRY`, t1.`BILLTO_FAX`, t1.`BILLTO_LINE1`, t1.`BILLTO_LINE2`, t1.`BILLTO_LINE3`, t1.`BILLTO_NAME`, t1.`BILLTO_POSTALCODE`, t1.`BILLTO_STATEORPROVINCE`, t1.`BILLTO_TELEPHONE`, t1.`CAMPAIGNID`, t1.`CAMPAIGNNAME`, t1.`CLOSEDON`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`DESCRIPTION`, t1.`DISCOUNTAMOUNT`, t1.`DISCOUNTAMOUNT_BASE`, t1.`DISCOUNTPERCENTAGE`, t1.`EFFECTIVEFROM`, t1.`EFFECTIVETO`, t1.`EMAILADDRESS`, t1.`EXCHANGERATE`, t1.`EXPIRESON`, t1.`FREIGHTAMOUNT`, t1.`FREIGHTAMOUNT_BASE`, t1.`FREIGHTTERMSCODE`, t1.`IMPORTSEQUENCENUMBER`, t1.`LASTONHOLDTIME`, t1.`ONHOLDTIME`, t1.`OPPORTUNITYID`, t1.`OPPORTUNITYNAME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PAYMENTTERMSCODE`, t1.`PRICELEVELID`, t1.`PRICELEVELNAME`, t1.`PRICINGERRORCODE`, t1.`PROCESSID`, t1.`QUOTEID`, t1.`QUOTENAME`, t1.`QUOTENUMBER`, t1.`REQUESTDELIVERYBY`, t1.`REVISIONNUMBER`, t1.`SHIPPINGMETHODCODE`, t1.`SHIPTO_ADDRESSID`, t1.`SHIPTO_CITY`, t1.`SHIPTO_COMPOSITE`, t1.`SHIPTO_CONTACTNAME`, t1.`SHIPTO_COUNTRY`, t1.`SHIPTO_FAX`, t1.`SHIPTO_FREIGHTTERMSCODE`, t1.`SHIPTO_LINE1`, t1.`SHIPTO_LINE2`, t1.`SHIPTO_LINE3`, t1.`SHIPTO_NAME`, t1.`SHIPTO_POSTALCODE`, t1.`SHIPTO_STATEORPROVINCE`, t1.`SHIPTO_TELEPHONE`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TOTALAMOUNT`, t1.`TOTALAMOUNTLESSFREIGHT`, t1.`TOTALAMOUNTLESSFREIGHT_BASE`, t1.`TOTALAMOUNT_BASE`, t1.`TOTALDISCOUNTAMOUNT`, t1.`TOTALDISCOUNTAMOUNT_BASE`, t1.`TOTALLINEITEMAMOUNT`, t1.`TOTALLINEITEMAMOUNT_BASE`, t1.`TOTALLINEITEMDISCOUNTAMOUNT`, t1.`TOTALTAX`, t1.`TOTALTAX_BASE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UNIQUEDSCID`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WILLCALL` FROM `QUOTE` t1 ) t1 where quoteid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -111,12 +111,12 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`ACCOUNTIDYOMINAME`, t1.`BILLTO_ADDRESSID`, t1.`BILLTO_CITY`, t1.`BILLTO_COMPOSITE`, t1.`BILLTO_CONTACTNAME`, t1.`BILLTO_COUNTRY`, t1.`BILLTO_FAX`, t1.`BILLTO_LINE1`, t1.`BILLTO_LINE2`, t1.`BILLTO_LINE3`, t1.`BILLTO_NAME`, t1.`BILLTO_POSTALCODE`, t1.`BILLTO_STATEORPROVINCE`, t1.`BILLTO_TELEPHONE`, t1.`CAMPAIGNID`, t1.`CLOSEDON`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`DESCRIPTION`, t1.`DISCOUNTAMOUNT`, t1.`DISCOUNTAMOUNT_BASE`, t1.`DISCOUNTPERCENTAGE`, t1.`EFFECTIVEFROM`, t1.`EFFECTIVETO`, t1.`EMAILADDRESS`, t1.`EXCHANGERATE`, t1.`EXPIRESON`, t1.`FREIGHTAMOUNT`, t1.`FREIGHTAMOUNT_BASE`, t1.`FREIGHTTERMSCODE`, t1.`IMPORTSEQUENCENUMBER`, t1.`LASTONHOLDTIME`, t1.`ONHOLDTIME`, t1.`OPPORTUNITYID`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PAYMENTTERMSCODE`, t1.`PRICELEVELID`, t1.`PRICINGERRORCODE`, t1.`PROCESSID`, t1.`QUOTEID`, t1.`QUOTENAME`, t1.`QUOTENUMBER`, t1.`REQUESTDELIVERYBY`, t1.`REVISIONNUMBER`, t1.`SHIPPINGMETHODCODE`, t1.`SHIPTO_ADDRESSID`, t1.`SHIPTO_CITY`, t1.`SHIPTO_COMPOSITE`, t1.`SHIPTO_CONTACTNAME`, t1.`SHIPTO_COUNTRY`, t1.`SHIPTO_FAX`, t1.`SHIPTO_FREIGHTTERMSCODE`, t1.`SHIPTO_LINE1`, t1.`SHIPTO_LINE2`, t1.`SHIPTO_LINE3`, t1.`SHIPTO_NAME`, t1.`SHIPTO_POSTALCODE`, t1.`SHIPTO_STATEORPROVINCE`, t1.`SHIPTO_TELEPHONE`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TOTALAMOUNT`, t1.`TOTALAMOUNTLESSFREIGHT`, t1.`TOTALAMOUNTLESSFREIGHT_BASE`, t1.`TOTALAMOUNT_BASE`, t1.`TOTALDISCOUNTAMOUNT`, t1.`TOTALDISCOUNTAMOUNT_BASE`, t1.`TOTALLINEITEMAMOUNT`, t1.`TOTALLINEITEMAMOUNT_BASE`, t1.`TOTALLINEITEMDISCOUNTAMOUNT`, t1.`TOTALTAX`, t1.`TOTALTAX_BASE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRAVERSEDPATH`, t1.`UNIQUEDSCID`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WILLCALL` FROM `QUOTE` t1
<![CDATA[ SELECT t1.`ACCOUNTIDYOMINAME`, t1.`BILLTO_ADDRESSID`, t1.`BILLTO_CITY`, t1.`BILLTO_COMPOSITE`, t1.`BILLTO_CONTACTNAME`, t1.`BILLTO_COUNTRY`, t1.`BILLTO_FAX`, t1.`BILLTO_LINE1`, t1.`BILLTO_LINE2`, t1.`BILLTO_LINE3`, t1.`BILLTO_NAME`, t1.`BILLTO_POSTALCODE`, t1.`BILLTO_STATEORPROVINCE`, t1.`BILLTO_TELEPHONE`, t1.`CAMPAIGNID`, t1.`CAMPAIGNNAME`, t1.`CLOSEDON`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`DESCRIPTION`, t1.`DISCOUNTAMOUNT`, t1.`DISCOUNTAMOUNT_BASE`, t1.`DISCOUNTPERCENTAGE`, t1.`EFFECTIVEFROM`, t1.`EFFECTIVETO`, t1.`EMAILADDRESS`, t1.`EXCHANGERATE`, t1.`EXPIRESON`, t1.`FREIGHTAMOUNT`, t1.`FREIGHTAMOUNT_BASE`, t1.`FREIGHTTERMSCODE`, t1.`IMPORTSEQUENCENUMBER`, t1.`LASTONHOLDTIME`, t1.`ONHOLDTIME`, t1.`OPPORTUNITYID`, t1.`OPPORTUNITYNAME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PAYMENTTERMSCODE`, t1.`PRICELEVELID`, t1.`PRICELEVELNAME`, t1.`PRICINGERRORCODE`, t1.`PROCESSID`, t1.`QUOTEID`, t1.`QUOTENAME`, t1.`QUOTENUMBER`, t1.`REQUESTDELIVERYBY`, t1.`REVISIONNUMBER`, t1.`SHIPPINGMETHODCODE`, t1.`SHIPTO_ADDRESSID`, t1.`SHIPTO_CITY`, t1.`SHIPTO_COMPOSITE`, t1.`SHIPTO_CONTACTNAME`, t1.`SHIPTO_COUNTRY`, t1.`SHIPTO_FAX`, t1.`SHIPTO_FREIGHTTERMSCODE`, t1.`SHIPTO_LINE1`, t1.`SHIPTO_LINE2`, t1.`SHIPTO_LINE3`, t1.`SHIPTO_NAME`, t1.`SHIPTO_POSTALCODE`, t1.`SHIPTO_STATEORPROVINCE`, t1.`SHIPTO_TELEPHONE`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TOTALAMOUNT`, t1.`TOTALAMOUNTLESSFREIGHT`, t1.`TOTALAMOUNTLESSFREIGHT_BASE`, t1.`TOTALAMOUNT_BASE`, t1.`TOTALDISCOUNTAMOUNT`, t1.`TOTALDISCOUNTAMOUNT_BASE`, t1.`TOTALLINEITEMAMOUNT`, t1.`TOTALLINEITEMAMOUNT_BASE`, t1.`TOTALLINEITEMDISCOUNTAMOUNT`, t1.`TOTALTAX`, t1.`TOTALTAX_BASE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UNIQUEDSCID`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WILLCALL` FROM `QUOTE` t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`ACCOUNTIDYOMINAME`, t1.`BILLTO_ADDRESSID`, t1.`BILLTO_CITY`, t1.`BILLTO_COMPOSITE`, t1.`BILLTO_CONTACTNAME`, t1.`BILLTO_COUNTRY`, t1.`BILLTO_FAX`, t1.`BILLTO_LINE1`, t1.`BILLTO_LINE2`, t1.`BILLTO_LINE3`, t1.`BILLTO_NAME`, t1.`BILLTO_POSTALCODE`, t1.`BILLTO_STATEORPROVINCE`, t1.`BILLTO_TELEPHONE`, t1.`CAMPAIGNID`, t1.`CLOSEDON`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`DESCRIPTION`, t1.`DISCOUNTAMOUNT`, t1.`DISCOUNTAMOUNT_BASE`, t1.`DISCOUNTPERCENTAGE`, t1.`EFFECTIVEFROM`, t1.`EFFECTIVETO`, t1.`EMAILADDRESS`, t1.`EXCHANGERATE`, t1.`EXPIRESON`, t1.`FREIGHTAMOUNT`, t1.`FREIGHTAMOUNT_BASE`, t1.`FREIGHTTERMSCODE`, t1.`IMPORTSEQUENCENUMBER`, t1.`LASTONHOLDTIME`, t1.`ONHOLDTIME`, t1.`OPPORTUNITYID`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PAYMENTTERMSCODE`, t1.`PRICELEVELID`, t1.`PRICINGERRORCODE`, t1.`PROCESSID`, t1.`QUOTEID`, t1.`QUOTENAME`, t1.`QUOTENUMBER`, t1.`REQUESTDELIVERYBY`, t1.`REVISIONNUMBER`, t1.`SHIPPINGMETHODCODE`, t1.`SHIPTO_ADDRESSID`, t1.`SHIPTO_CITY`, t1.`SHIPTO_COMPOSITE`, t1.`SHIPTO_CONTACTNAME`, t1.`SHIPTO_COUNTRY`, t1.`SHIPTO_FAX`, t1.`SHIPTO_FREIGHTTERMSCODE`, t1.`SHIPTO_LINE1`, t1.`SHIPTO_LINE2`, t1.`SHIPTO_LINE3`, t1.`SHIPTO_NAME`, t1.`SHIPTO_POSTALCODE`, t1.`SHIPTO_STATEORPROVINCE`, t1.`SHIPTO_TELEPHONE`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TOTALAMOUNT`, t1.`TOTALAMOUNTLESSFREIGHT`, t1.`TOTALAMOUNTLESSFREIGHT_BASE`, t1.`TOTALAMOUNT_BASE`, t1.`TOTALDISCOUNTAMOUNT`, t1.`TOTALDISCOUNTAMOUNT_BASE`, t1.`TOTALLINEITEMAMOUNT`, t1.`TOTALLINEITEMAMOUNT_BASE`, t1.`TOTALLINEITEMDISCOUNTAMOUNT`, t1.`TOTALTAX`, t1.`TOTALTAX_BASE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRAVERSEDPATH`, t1.`UNIQUEDSCID`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WILLCALL` FROM `QUOTE` t1
<![CDATA[ SELECT t1.`ACCOUNTIDYOMINAME`, t1.`BILLTO_ADDRESSID`, t1.`BILLTO_CITY`, t1.`BILLTO_COMPOSITE`, t1.`BILLTO_CONTACTNAME`, t1.`BILLTO_COUNTRY`, t1.`BILLTO_FAX`, t1.`BILLTO_LINE1`, t1.`BILLTO_LINE2`, t1.`BILLTO_LINE3`, t1.`BILLTO_NAME`, t1.`BILLTO_POSTALCODE`, t1.`BILLTO_STATEORPROVINCE`, t1.`BILLTO_TELEPHONE`, t1.`CAMPAIGNID`, t1.`CAMPAIGNNAME`, t1.`CLOSEDON`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`DESCRIPTION`, t1.`DISCOUNTAMOUNT`, t1.`DISCOUNTAMOUNT_BASE`, t1.`DISCOUNTPERCENTAGE`, t1.`EFFECTIVEFROM`, t1.`EFFECTIVETO`, t1.`EMAILADDRESS`, t1.`EXCHANGERATE`, t1.`EXPIRESON`, t1.`FREIGHTAMOUNT`, t1.`FREIGHTAMOUNT_BASE`, t1.`FREIGHTTERMSCODE`, t1.`IMPORTSEQUENCENUMBER`, t1.`LASTONHOLDTIME`, t1.`ONHOLDTIME`, t1.`OPPORTUNITYID`, t1.`OPPORTUNITYNAME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PAYMENTTERMSCODE`, t1.`PRICELEVELID`, t1.`PRICELEVELNAME`, t1.`PRICINGERRORCODE`, t1.`PROCESSID`, t1.`QUOTEID`, t1.`QUOTENAME`, t1.`QUOTENUMBER`, t1.`REQUESTDELIVERYBY`, t1.`REVISIONNUMBER`, t1.`SHIPPINGMETHODCODE`, t1.`SHIPTO_ADDRESSID`, t1.`SHIPTO_CITY`, t1.`SHIPTO_COMPOSITE`, t1.`SHIPTO_CONTACTNAME`, t1.`SHIPTO_COUNTRY`, t1.`SHIPTO_FAX`, t1.`SHIPTO_FREIGHTTERMSCODE`, t1.`SHIPTO_LINE1`, t1.`SHIPTO_LINE2`, t1.`SHIPTO_LINE3`, t1.`SHIPTO_NAME`, t1.`SHIPTO_POSTALCODE`, t1.`SHIPTO_STATEORPROVINCE`, t1.`SHIPTO_TELEPHONE`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TOTALAMOUNT`, t1.`TOTALAMOUNTLESSFREIGHT`, t1.`TOTALAMOUNTLESSFREIGHT_BASE`, t1.`TOTALAMOUNT_BASE`, t1.`TOTALDISCOUNTAMOUNT`, t1.`TOTALDISCOUNTAMOUNT_BASE`, t1.`TOTALLINEITEMAMOUNT`, t1.`TOTALLINEITEMAMOUNT_BASE`, t1.`TOTALLINEITEMDISCOUNTAMOUNT`, t1.`TOTALTAX`, t1.`TOTALTAX_BASE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UNIQUEDSCID`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WILLCALL` FROM `QUOTE` t1
]]>
</sql>
</mapper>
......
......@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="SalesLiteratureResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERVIEWABLE`, t1.`DESCRIPTION`, t1.`EMPLOYEECONTACTID`, t1.`EMPLOYEECONTACTIDYOMINAME`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`EXPIRATIONDATE`, t1.`HASATTACHMENTS`, t1.`IMPORTSEQUENCENUMBER`, t1.`KEYWORDS`, t1.`LITERATURETYPECODE`, t1.`OVERRIDDENCREATEDON`, t1.`PROCESSID`, t1.`SALESLITERATUREID`, t1.`SALESLITERATURENAME`, t1.`STAGEID`, t1.`SUBJECTID`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `SALESLITERATURE` t1 ) t1 where salesliteratureid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERVIEWABLE`, t1.`DESCRIPTION`, t1.`EMPLOYEECONTACTID`, t1.`EMPLOYEECONTACTIDYOMINAME`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`EXPIRATIONDATE`, t1.`HASATTACHMENTS`, t1.`IMPORTSEQUENCENUMBER`, t1.`KEYWORDS`, t1.`LITERATURETYPECODE`, t1.`OVERRIDDENCREATEDON`, t1.`PROCESSID`, t1.`SALESLITERATUREID`, t1.`SALESLITERATURENAME`, t1.`STAGEID`, t1.`SUBJECTID`, t1.`SUBJECTNAME`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `SALESLITERATURE` t1 ) t1 where salesliteratureid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -49,12 +49,12 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERVIEWABLE`, t1.`DESCRIPTION`, t1.`EMPLOYEECONTACTID`, t1.`EMPLOYEECONTACTIDYOMINAME`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`EXPIRATIONDATE`, t1.`HASATTACHMENTS`, t1.`IMPORTSEQUENCENUMBER`, t1.`LITERATURETYPECODE`, t1.`OVERRIDDENCREATEDON`, t1.`PROCESSID`, t1.`SALESLITERATUREID`, t1.`SALESLITERATURENAME`, t1.`STAGEID`, t1.`SUBJECTID`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `SALESLITERATURE` t1
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERVIEWABLE`, t1.`DESCRIPTION`, t1.`EMPLOYEECONTACTID`, t1.`EMPLOYEECONTACTIDYOMINAME`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`EXPIRATIONDATE`, t1.`HASATTACHMENTS`, t1.`IMPORTSEQUENCENUMBER`, t1.`LITERATURETYPECODE`, t1.`OVERRIDDENCREATEDON`, t1.`PROCESSID`, t1.`SALESLITERATUREID`, t1.`SALESLITERATURENAME`, t1.`STAGEID`, t1.`SUBJECTID`, t1.`SUBJECTNAME`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `SALESLITERATURE` t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERVIEWABLE`, t1.`DESCRIPTION`, t1.`EMPLOYEECONTACTID`, t1.`EMPLOYEECONTACTIDYOMINAME`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`EXPIRATIONDATE`, t1.`HASATTACHMENTS`, t1.`IMPORTSEQUENCENUMBER`, t1.`KEYWORDS`, t1.`LITERATURETYPECODE`, t1.`OVERRIDDENCREATEDON`, t1.`PROCESSID`, t1.`SALESLITERATUREID`, t1.`SALESLITERATURENAME`, t1.`STAGEID`, t1.`SUBJECTID`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `SALESLITERATURE` t1
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERVIEWABLE`, t1.`DESCRIPTION`, t1.`EMPLOYEECONTACTID`, t1.`EMPLOYEECONTACTIDYOMINAME`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`EXPIRATIONDATE`, t1.`HASATTACHMENTS`, t1.`IMPORTSEQUENCENUMBER`, t1.`KEYWORDS`, t1.`LITERATURETYPECODE`, t1.`OVERRIDDENCREATEDON`, t1.`PROCESSID`, t1.`SALESLITERATUREID`, t1.`SALESLITERATURENAME`, t1.`STAGEID`, t1.`SUBJECTID`, t1.`SUBJECTNAME`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `SALESLITERATURE` t1
]]>
</sql>
</mapper>
......
......@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="SalesOrderResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`ACCOUNTIDYOMINAME`, t1.`BILLTO_ADDRESSID`, t1.`BILLTO_CITY`, t1.`BILLTO_COMPOSITE`, t1.`BILLTO_CONTACTNAME`, t1.`BILLTO_COUNTRY`, t1.`BILLTO_FAX`, t1.`BILLTO_LINE1`, t1.`BILLTO_LINE2`, t1.`BILLTO_LINE3`, t1.`BILLTO_NAME`, t1.`BILLTO_POSTALCODE`, t1.`BILLTO_STATEORPROVINCE`, t1.`BILLTO_TELEPHONE`, t1.`CAMPAIGNID`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`DATEFULFILLED`, t1.`DESCRIPTION`, t1.`DISCOUNTAMOUNT`, t1.`DISCOUNTAMOUNT_BASE`, t1.`DISCOUNTPERCENTAGE`, t1.`EMAILADDRESS`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`FREIGHTAMOUNT`, t1.`FREIGHTAMOUNT_BASE`, t1.`FREIGHTTERMSCODE`, t1.`IMPORTSEQUENCENUMBER`, t1.`LASTBACKOFFICESUBMIT`, t1.`LASTONHOLDTIME`, t1.`ONHOLDTIME`, t1.`OPPORTUNITYID`, t1.`ORDERNUMBER`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PAYMENTTERMSCODE`, t1.`PRICELEVELID`, t1.`PRICELOCKED`, t1.`PRICINGERRORCODE`, t1.`PRIORITYCODE`, t1.`PROCESSID`, t1.`QUOTEID`, t1.`REQUESTDELIVERYBY`, t1.`SALESORDERID`, t1.`SALESORDERNAME`, t1.`SHIPPINGMETHODCODE`, t1.`SHIPTO_ADDRESSID`, t1.`SHIPTO_CITY`, t1.`SHIPTO_COMPOSITE`, t1.`SHIPTO_CONTACTNAME`, t1.`SHIPTO_COUNTRY`, t1.`SHIPTO_FAX`, t1.`SHIPTO_FREIGHTTERMSCODE`, t1.`SHIPTO_LINE1`, t1.`SHIPTO_LINE2`, t1.`SHIPTO_LINE3`, t1.`SHIPTO_NAME`, t1.`SHIPTO_POSTALCODE`, t1.`SHIPTO_STATEORPROVINCE`, t1.`SHIPTO_TELEPHONE`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBMITDATE`, t1.`SUBMITSTATUS`, t1.`SUBMITSTATUSDESCRIPTION`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TOTALAMOUNT`, t1.`TOTALAMOUNTLESSFREIGHT`, t1.`TOTALAMOUNTLESSFREIGHT_BASE`, t1.`TOTALAMOUNT_BASE`, t1.`TOTALDISCOUNTAMOUNT`, t1.`TOTALDISCOUNTAMOUNT_BASE`, t1.`TOTALLINEITEMAMOUNT`, t1.`TOTALLINEITEMAMOUNT_BASE`, t1.`TOTALLINEITEMDISCOUNTAMOUNT`, t1.`TOTALTAX`, t1.`TOTALTAX_BASE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WILLCALL` FROM `SALESORDER` t1 ) t1 where salesorderid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`ACCOUNTIDYOMINAME`, t1.`BILLTO_ADDRESSID`, t1.`BILLTO_CITY`, t1.`BILLTO_COMPOSITE`, t1.`BILLTO_CONTACTNAME`, t1.`BILLTO_COUNTRY`, t1.`BILLTO_FAX`, t1.`BILLTO_LINE1`, t1.`BILLTO_LINE2`, t1.`BILLTO_LINE3`, t1.`BILLTO_NAME`, t1.`BILLTO_POSTALCODE`, t1.`BILLTO_STATEORPROVINCE`, t1.`BILLTO_TELEPHONE`, t1.`CAMPAIGNID`, t1.`CAMPAIGNNAME`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`DATEFULFILLED`, t1.`DESCRIPTION`, t1.`DISCOUNTAMOUNT`, t1.`DISCOUNTAMOUNT_BASE`, t1.`DISCOUNTPERCENTAGE`, t1.`EMAILADDRESS`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`FREIGHTAMOUNT`, t1.`FREIGHTAMOUNT_BASE`, t1.`FREIGHTTERMSCODE`, t1.`IMPORTSEQUENCENUMBER`, t1.`LASTBACKOFFICESUBMIT`, t1.`LASTONHOLDTIME`, t1.`ONHOLDTIME`, t1.`OPPORTUNITYID`, t1.`OPPORTUNITYNAME`, t1.`ORDERNUMBER`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PAYMENTTERMSCODE`, t1.`PRICELEVELID`, t1.`PRICELEVELNAME`, t1.`PRICELOCKED`, t1.`PRICINGERRORCODE`, t1.`PRIORITYCODE`, t1.`PROCESSID`, t1.`QUOTEID`, t1.`QUOTENAME`, t1.`REQUESTDELIVERYBY`, t1.`SALESORDERID`, t1.`SALESORDERNAME`, t1.`SHIPPINGMETHODCODE`, t1.`SHIPTO_ADDRESSID`, t1.`SHIPTO_CITY`, t1.`SHIPTO_COMPOSITE`, t1.`SHIPTO_CONTACTNAME`, t1.`SHIPTO_COUNTRY`, t1.`SHIPTO_FAX`, t1.`SHIPTO_FREIGHTTERMSCODE`, t1.`SHIPTO_LINE1`, t1.`SHIPTO_LINE2`, t1.`SHIPTO_LINE3`, t1.`SHIPTO_NAME`, t1.`SHIPTO_POSTALCODE`, t1.`SHIPTO_STATEORPROVINCE`, t1.`SHIPTO_TELEPHONE`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBMITDATE`, t1.`SUBMITSTATUS`, t1.`SUBMITSTATUSDESCRIPTION`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TOTALAMOUNT`, t1.`TOTALAMOUNTLESSFREIGHT`, t1.`TOTALAMOUNTLESSFREIGHT_BASE`, t1.`TOTALAMOUNT_BASE`, t1.`TOTALDISCOUNTAMOUNT`, t1.`TOTALDISCOUNTAMOUNT_BASE`, t1.`TOTALLINEITEMAMOUNT`, t1.`TOTALLINEITEMAMOUNT_BASE`, t1.`TOTALLINEITEMDISCOUNTAMOUNT`, t1.`TOTALTAX`, t1.`TOTALTAX_BASE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WILLCALL` FROM `SALESORDER` t1 ) t1 where salesorderid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -123,12 +123,12 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`ACCOUNTIDYOMINAME`, t1.`BILLTO_ADDRESSID`, t1.`BILLTO_CITY`, t1.`BILLTO_COMPOSITE`, t1.`BILLTO_CONTACTNAME`, t1.`BILLTO_COUNTRY`, t1.`BILLTO_FAX`, t1.`BILLTO_LINE1`, t1.`BILLTO_LINE2`, t1.`BILLTO_LINE3`, t1.`BILLTO_NAME`, t1.`BILLTO_POSTALCODE`, t1.`BILLTO_STATEORPROVINCE`, t1.`BILLTO_TELEPHONE`, t1.`CAMPAIGNID`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`DATEFULFILLED`, t1.`DESCRIPTION`, t1.`DISCOUNTAMOUNT`, t1.`DISCOUNTAMOUNT_BASE`, t1.`DISCOUNTPERCENTAGE`, t1.`EMAILADDRESS`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`FREIGHTAMOUNT`, t1.`FREIGHTAMOUNT_BASE`, t1.`FREIGHTTERMSCODE`, t1.`IMPORTSEQUENCENUMBER`, t1.`LASTBACKOFFICESUBMIT`, t1.`LASTONHOLDTIME`, t1.`ONHOLDTIME`, t1.`OPPORTUNITYID`, t1.`ORDERNUMBER`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PAYMENTTERMSCODE`, t1.`PRICELEVELID`, t1.`PRICELOCKED`, t1.`PRICINGERRORCODE`, t1.`PRIORITYCODE`, t1.`PROCESSID`, t1.`QUOTEID`, t1.`REQUESTDELIVERYBY`, t1.`SALESORDERID`, t1.`SALESORDERNAME`, t1.`SHIPPINGMETHODCODE`, t1.`SHIPTO_ADDRESSID`, t1.`SHIPTO_CITY`, t1.`SHIPTO_COMPOSITE`, t1.`SHIPTO_CONTACTNAME`, t1.`SHIPTO_COUNTRY`, t1.`SHIPTO_FAX`, t1.`SHIPTO_FREIGHTTERMSCODE`, t1.`SHIPTO_LINE1`, t1.`SHIPTO_LINE2`, t1.`SHIPTO_LINE3`, t1.`SHIPTO_NAME`, t1.`SHIPTO_POSTALCODE`, t1.`SHIPTO_STATEORPROVINCE`, t1.`SHIPTO_TELEPHONE`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBMITDATE`, t1.`SUBMITSTATUS`, t1.`SUBMITSTATUSDESCRIPTION`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TOTALAMOUNT`, t1.`TOTALAMOUNTLESSFREIGHT`, t1.`TOTALAMOUNTLESSFREIGHT_BASE`, t1.`TOTALAMOUNT_BASE`, t1.`TOTALDISCOUNTAMOUNT`, t1.`TOTALDISCOUNTAMOUNT_BASE`, t1.`TOTALLINEITEMAMOUNT`, t1.`TOTALLINEITEMAMOUNT_BASE`, t1.`TOTALLINEITEMDISCOUNTAMOUNT`, t1.`TOTALTAX`, t1.`TOTALTAX_BASE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WILLCALL` FROM `SALESORDER` t1
<![CDATA[ SELECT t1.`ACCOUNTIDYOMINAME`, t1.`BILLTO_ADDRESSID`, t1.`BILLTO_CITY`, t1.`BILLTO_COMPOSITE`, t1.`BILLTO_CONTACTNAME`, t1.`BILLTO_COUNTRY`, t1.`BILLTO_FAX`, t1.`BILLTO_LINE1`, t1.`BILLTO_LINE2`, t1.`BILLTO_LINE3`, t1.`BILLTO_NAME`, t1.`BILLTO_POSTALCODE`, t1.`BILLTO_STATEORPROVINCE`, t1.`BILLTO_TELEPHONE`, t1.`CAMPAIGNID`, t1.`CAMPAIGNNAME`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`DATEFULFILLED`, t1.`DESCRIPTION`, t1.`DISCOUNTAMOUNT`, t1.`DISCOUNTAMOUNT_BASE`, t1.`DISCOUNTPERCENTAGE`, t1.`EMAILADDRESS`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`FREIGHTAMOUNT`, t1.`FREIGHTAMOUNT_BASE`, t1.`FREIGHTTERMSCODE`, t1.`IMPORTSEQUENCENUMBER`, t1.`LASTBACKOFFICESUBMIT`, t1.`LASTONHOLDTIME`, t1.`ONHOLDTIME`, t1.`OPPORTUNITYID`, t1.`OPPORTUNITYNAME`, t1.`ORDERNUMBER`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PAYMENTTERMSCODE`, t1.`PRICELEVELID`, t1.`PRICELEVELNAME`, t1.`PRICELOCKED`, t1.`PRICINGERRORCODE`, t1.`PRIORITYCODE`, t1.`PROCESSID`, t1.`QUOTEID`, t1.`QUOTENAME`, t1.`REQUESTDELIVERYBY`, t1.`SALESORDERID`, t1.`SALESORDERNAME`, t1.`SHIPPINGMETHODCODE`, t1.`SHIPTO_ADDRESSID`, t1.`SHIPTO_CITY`, t1.`SHIPTO_COMPOSITE`, t1.`SHIPTO_CONTACTNAME`, t1.`SHIPTO_COUNTRY`, t1.`SHIPTO_FAX`, t1.`SHIPTO_FREIGHTTERMSCODE`, t1.`SHIPTO_LINE1`, t1.`SHIPTO_LINE2`, t1.`SHIPTO_LINE3`, t1.`SHIPTO_NAME`, t1.`SHIPTO_POSTALCODE`, t1.`SHIPTO_STATEORPROVINCE`, t1.`SHIPTO_TELEPHONE`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBMITDATE`, t1.`SUBMITSTATUS`, t1.`SUBMITSTATUSDESCRIPTION`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TOTALAMOUNT`, t1.`TOTALAMOUNTLESSFREIGHT`, t1.`TOTALAMOUNTLESSFREIGHT_BASE`, t1.`TOTALAMOUNT_BASE`, t1.`TOTALDISCOUNTAMOUNT`, t1.`TOTALDISCOUNTAMOUNT_BASE`, t1.`TOTALLINEITEMAMOUNT`, t1.`TOTALLINEITEMAMOUNT_BASE`, t1.`TOTALLINEITEMDISCOUNTAMOUNT`, t1.`TOTALTAX`, t1.`TOTALTAX_BASE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WILLCALL` FROM `SALESORDER` t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`ACCOUNTIDYOMINAME`, t1.`BILLTO_ADDRESSID`, t1.`BILLTO_CITY`, t1.`BILLTO_COMPOSITE`, t1.`BILLTO_CONTACTNAME`, t1.`BILLTO_COUNTRY`, t1.`BILLTO_FAX`, t1.`BILLTO_LINE1`, t1.`BILLTO_LINE2`, t1.`BILLTO_LINE3`, t1.`BILLTO_NAME`, t1.`BILLTO_POSTALCODE`, t1.`BILLTO_STATEORPROVINCE`, t1.`BILLTO_TELEPHONE`, t1.`CAMPAIGNID`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`DATEFULFILLED`, t1.`DESCRIPTION`, t1.`DISCOUNTAMOUNT`, t1.`DISCOUNTAMOUNT_BASE`, t1.`DISCOUNTPERCENTAGE`, t1.`EMAILADDRESS`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`FREIGHTAMOUNT`, t1.`FREIGHTAMOUNT_BASE`, t1.`FREIGHTTERMSCODE`, t1.`IMPORTSEQUENCENUMBER`, t1.`LASTBACKOFFICESUBMIT`, t1.`LASTONHOLDTIME`, t1.`ONHOLDTIME`, t1.`OPPORTUNITYID`, t1.`ORDERNUMBER`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PAYMENTTERMSCODE`, t1.`PRICELEVELID`, t1.`PRICELOCKED`, t1.`PRICINGERRORCODE`, t1.`PRIORITYCODE`, t1.`PROCESSID`, t1.`QUOTEID`, t1.`REQUESTDELIVERYBY`, t1.`SALESORDERID`, t1.`SALESORDERNAME`, t1.`SHIPPINGMETHODCODE`, t1.`SHIPTO_ADDRESSID`, t1.`SHIPTO_CITY`, t1.`SHIPTO_COMPOSITE`, t1.`SHIPTO_CONTACTNAME`, t1.`SHIPTO_COUNTRY`, t1.`SHIPTO_FAX`, t1.`SHIPTO_FREIGHTTERMSCODE`, t1.`SHIPTO_LINE1`, t1.`SHIPTO_LINE2`, t1.`SHIPTO_LINE3`, t1.`SHIPTO_NAME`, t1.`SHIPTO_POSTALCODE`, t1.`SHIPTO_STATEORPROVINCE`, t1.`SHIPTO_TELEPHONE`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBMITDATE`, t1.`SUBMITSTATUS`, t1.`SUBMITSTATUSDESCRIPTION`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TOTALAMOUNT`, t1.`TOTALAMOUNTLESSFREIGHT`, t1.`TOTALAMOUNTLESSFREIGHT_BASE`, t1.`TOTALAMOUNT_BASE`, t1.`TOTALDISCOUNTAMOUNT`, t1.`TOTALDISCOUNTAMOUNT_BASE`, t1.`TOTALLINEITEMAMOUNT`, t1.`TOTALLINEITEMAMOUNT_BASE`, t1.`TOTALLINEITEMDISCOUNTAMOUNT`, t1.`TOTALTAX`, t1.`TOTALTAX_BASE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WILLCALL` FROM `SALESORDER` t1
<![CDATA[ SELECT t1.`ACCOUNTIDYOMINAME`, t1.`BILLTO_ADDRESSID`, t1.`BILLTO_CITY`, t1.`BILLTO_COMPOSITE`, t1.`BILLTO_CONTACTNAME`, t1.`BILLTO_COUNTRY`, t1.`BILLTO_FAX`, t1.`BILLTO_LINE1`, t1.`BILLTO_LINE2`, t1.`BILLTO_LINE3`, t1.`BILLTO_NAME`, t1.`BILLTO_POSTALCODE`, t1.`BILLTO_STATEORPROVINCE`, t1.`BILLTO_TELEPHONE`, t1.`CAMPAIGNID`, t1.`CAMPAIGNNAME`, t1.`CONTACTIDYOMINAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`DATEFULFILLED`, t1.`DESCRIPTION`, t1.`DISCOUNTAMOUNT`, t1.`DISCOUNTAMOUNT_BASE`, t1.`DISCOUNTPERCENTAGE`, t1.`EMAILADDRESS`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`EXCHANGERATE`, t1.`FREIGHTAMOUNT`, t1.`FREIGHTAMOUNT_BASE`, t1.`FREIGHTTERMSCODE`, t1.`IMPORTSEQUENCENUMBER`, t1.`LASTBACKOFFICESUBMIT`, t1.`LASTONHOLDTIME`, t1.`ONHOLDTIME`, t1.`OPPORTUNITYID`, t1.`OPPORTUNITYNAME`, t1.`ORDERNUMBER`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PAYMENTTERMSCODE`, t1.`PRICELEVELID`, t1.`PRICELEVELNAME`, t1.`PRICELOCKED`, t1.`PRICINGERRORCODE`, t1.`PRIORITYCODE`, t1.`PROCESSID`, t1.`QUOTEID`, t1.`QUOTENAME`, t1.`REQUESTDELIVERYBY`, t1.`SALESORDERID`, t1.`SALESORDERNAME`, t1.`SHIPPINGMETHODCODE`, t1.`SHIPTO_ADDRESSID`, t1.`SHIPTO_CITY`, t1.`SHIPTO_COMPOSITE`, t1.`SHIPTO_CONTACTNAME`, t1.`SHIPTO_COUNTRY`, t1.`SHIPTO_FAX`, t1.`SHIPTO_FREIGHTTERMSCODE`, t1.`SHIPTO_LINE1`, t1.`SHIPTO_LINE2`, t1.`SHIPTO_LINE3`, t1.`SHIPTO_NAME`, t1.`SHIPTO_POSTALCODE`, t1.`SHIPTO_STATEORPROVINCE`, t1.`SHIPTO_TELEPHONE`, t1.`SLAID`, t1.`SLANAME`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBMITDATE`, t1.`SUBMITSTATUS`, t1.`SUBMITSTATUSDESCRIPTION`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TOTALAMOUNT`, t1.`TOTALAMOUNTLESSFREIGHT`, t1.`TOTALAMOUNTLESSFREIGHT_BASE`, t1.`TOTALAMOUNT_BASE`, t1.`TOTALDISCOUNTAMOUNT`, t1.`TOTALDISCOUNTAMOUNT_BASE`, t1.`TOTALLINEITEMAMOUNT`, t1.`TOTALLINEITEMAMOUNT_BASE`, t1.`TOTALLINEITEMDISCOUNTAMOUNT`, t1.`TOTALTAX`, t1.`TOTALTAX_BASE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER`, t1.`WILLCALL` FROM `SALESORDER` t1
]]>
</sql>
</mapper>
......
......@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /businesscentral-provider-centralapi.jar
EXPOSE 8081
EXPOSE 10310
ADD businesscentral-provider-centralapi.jar /businesscentral-provider-centralapi.jar
......@@ -3,9 +3,23 @@ services:
businesscentral-provider-centralapi:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-provider-centralapi:latest
ports:
- "8081:8081"
- "10310:10310"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=10310
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
- SPRING_DATASOURCE_PASSWORD=b1@@@772
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
deploy:
resources:
limits:
......
......@@ -666,6 +666,14 @@ public class CompetitorDTO extends DTOBase implements Serializable {
@JsonProperty("transactioncurrencyid")
private String transactioncurrencyid;
/**
* 属性 [TRANSACTIONCURRENCYNAME]
*
*/
@JSONField(name = "transactioncurrencyname")
@JsonProperty("transactioncurrencyname")
private String transactioncurrencyname;
/**
* 设置 [ENTITYIMAGE]
......@@ -1267,6 +1275,14 @@ public class CompetitorDTO extends DTOBase implements Serializable {
this.modify("transactioncurrencyid",transactioncurrencyid);
}
/**
* 设置 [TRANSACTIONCURRENCYNAME]
*/
public void setTransactioncurrencyname(String transactioncurrencyname){
this.transactioncurrencyname = transactioncurrencyname ;
this.modify("transactioncurrencyname",transactioncurrencyname);
}
}
......@@ -485,14 +485,6 @@ public class InvoiceDTO extends DTOBase implements Serializable {
@JsonProperty("importsequencenumber")
private Integer importsequencenumber;
/**
* 属性 [SLANAME]
*
*/
@JSONField(name = "slaname")
@JsonProperty("slaname")
private String slaname;
/**
* 属性 [CUSTOMERIDTYPE]
*
......@@ -694,6 +686,14 @@ public class InvoiceDTO extends DTOBase implements Serializable {
@JsonProperty("billto_fax")
private String billtoFax;
/**
* 属性 [SLANAME]
*
*/
@JSONField(name = "slaname")
@JsonProperty("slaname")
private String slaname;
/**
* 属性 [TRANSACTIONCURRENCYID]
*
......@@ -734,6 +734,38 @@ public class InvoiceDTO extends DTOBase implements Serializable {
@JsonProperty("slaid")
private String slaid;
/**
* 属性 [TRANSACTIONCURRENCYNAME]
*
*/
@JSONField(name = "transactioncurrencyname")
@JsonProperty("transactioncurrencyname")
private String transactioncurrencyname;
/**
* 属性 [PRICELEVELNAME]
*
*/
@JSONField(name = "pricelevelname")
@JsonProperty("pricelevelname")
private String pricelevelname;
/**
* 属性 [SALESORDERNAME]
*
*/
@JSONField(name = "salesordername")
@JsonProperty("salesordername")
private String salesordername;
/**
* 属性 [OPPORTUNITYNAME]
*
*/
@JSONField(name = "opportunityname")
@JsonProperty("opportunityname")
private String opportunityname;
/**
* 设置 [BILLTO_LINE1]
......@@ -1151,14 +1183,6 @@ public class InvoiceDTO extends DTOBase implements Serializable {
this.modify("importsequencenumber",importsequencenumber);
}
/**
* 设置 [SLANAME]
*/
public void setSlaname(String slaname){
this.slaname = slaname ;
this.modify("slaname",slaname);
}
/**
* 设置 [CUSTOMERIDTYPE]
*/
......@@ -1359,6 +1383,14 @@ public class InvoiceDTO extends DTOBase implements Serializable {
this.modify("billto_fax",billtoFax);
}
/**
* 设置 [SLANAME]
*/
public void setSlaname(String slaname){
this.slaname = slaname ;
this.modify("slaname",slaname);
}
/**
* 设置 [TRANSACTIONCURRENCYID]
*/
......@@ -1399,6 +1431,38 @@ public class InvoiceDTO extends DTOBase implements Serializable {
this.modify("slaid",slaid);
}
/**
* 设置 [TRANSACTIONCURRENCYNAME]
*/
public void setTransactioncurrencyname(String transactioncurrencyname){
this.transactioncurrencyname = transactioncurrencyname ;
this.modify("transactioncurrencyname",transactioncurrencyname);
}
/**
* 设置 [PRICELEVELNAME]
*/
public void setPricelevelname(String pricelevelname){
this.pricelevelname = pricelevelname ;
this.modify("pricelevelname",pricelevelname);
}
/**
* 设置 [SALESORDERNAME]
*/
public void setSalesordername(String salesordername){
this.salesordername = salesordername ;
this.modify("salesordername",salesordername);
}
/**
* 设置 [OPPORTUNITYNAME]
*/
public void setOpportunityname(String opportunityname){
this.opportunityname = opportunityname ;
this.modify("opportunityname",opportunityname);
}
}
......@@ -39,14 +39,6 @@ public class LeadDTO extends DTOBase implements Serializable {
@JsonProperty("address2_utcoffset")
private Integer address2Utcoffset;
/**
* 属性 [SLANAME]
*
*/
@JSONField(name = "slaname")
@JsonProperty("slaname")
private String slaname;
/**
* 属性 [JOBTITLE]
*
......@@ -191,14 +183,6 @@ public class LeadDTO extends DTOBase implements Serializable {
@JsonProperty("createman")
private String createman;
/**
* 属性 [PARENTCONTACTIDYOMINAME]
*
*/
@JSONField(name = "parentcontactidyominame")
@JsonProperty("parentcontactidyominame")
private String parentcontactidyominame;
/**
* 属性 [ADDRESS2_STATEORPROVINCE]
*
......@@ -552,14 +536,6 @@ public class LeadDTO extends DTOBase implements Serializable {
@JsonProperty("stageid")
private String stageid;
/**
* 属性 [PARENTACCOUNTIDYOMINAME]
*
*/
@JSONField(name = "parentaccountidyominame")
@JsonProperty("parentaccountidyominame")
private String parentaccountidyominame;
/**
* 属性 [ADDRESS1_SHIPPINGMETHODCODE]
*
......@@ -690,14 +666,6 @@ public class LeadDTO extends DTOBase implements Serializable {
@JsonProperty("customeridyominame")
private String customeridyominame;
/**
* 属性 [ACCOUNTIDYOMINAME]
*
*/
@JSONField(name = "accountidyominame")
@JsonProperty("accountidyominame")
private String accountidyominame;
/**
* 属性 [REVENUE_BASE]
*
......@@ -1175,6 +1143,14 @@ public class LeadDTO extends DTOBase implements Serializable {
@JsonProperty("address1_upszone")
private String address1Upszone;
/**
* 属性 [SLANAME]
*
*/
@JSONField(name = "slaname")
@JsonProperty("slaname")
private String slaname;
/**
* 属性 [QUALIFYINGOPPORTUNITYID]
*
......@@ -1239,6 +1215,62 @@ public class LeadDTO extends DTOBase implements Serializable {
@JsonProperty("parentcontactid")
private String parentcontactid;
/**
* 属性 [ORIGINATINGCASENAME]
*
*/
@JSONField(name = "originatingcasename")
@JsonProperty("originatingcasename")
private String originatingcasename;
/**
* 属性 [QUALIFYINGOPPORTUNITYNAME]
*
*/
@JSONField(name = "qualifyingopportunityname")
@JsonProperty("qualifyingopportunityname")
private String qualifyingopportunityname;
/**
* 属性 [CAMPAIGNNAME]
*
*/
@JSONField(name = "campaignname")
@JsonProperty("campaignname")
private String campaignname;
/**
* 属性 [PARENTCONTACTNAME]
*
*/
@JSONField(name = "parentcontactname")
@JsonProperty("parentcontactname")
private String parentcontactname;
/**
* 属性 [PARENTACCOUNTNAME]
*
*/
@JSONField(name = "parentaccountname")
@JsonProperty("parentaccountname")
private String parentaccountname;
/**
* 属性 [RELATEDOBJECTNAME]
*
*/
@JSONField(name = "relatedobjectname")
@JsonProperty("relatedobjectname")
private String relatedobjectname;
/**
* 属性 [TRANSACTIONCURRENCYNAME]
*
*/
@JSONField(name = "transactioncurrencyname")
@JsonProperty("transactioncurrencyname")
private String transactioncurrencyname;
/**
* 设置 [ADDRESS1_FAX]
......@@ -1256,14 +1288,6 @@ public class LeadDTO extends DTOBase implements Serializable {
this.modify("address2_utcoffset",address2Utcoffset);
}
/**
* 设置 [SLANAME]
*/
public void setSlaname(String slaname){
this.slaname = slaname ;
this.modify("slaname",slaname);
}
/**
* 设置 [JOBTITLE]
*/
......@@ -1392,14 +1416,6 @@ public class LeadDTO extends DTOBase implements Serializable {
this.modify("entityimage_url",entityimageUrl);
}
/**
* 设置 [PARENTCONTACTIDYOMINAME]
*/
public void setParentcontactidyominame(String parentcontactidyominame){
this.parentcontactidyominame = parentcontactidyominame ;
this.modify("parentcontactidyominame",parentcontactidyominame);
}
/**
* 设置 [ADDRESS2_STATEORPROVINCE]
*/
......@@ -1744,14 +1760,6 @@ public class LeadDTO extends DTOBase implements Serializable {
this.modify("stageid",stageid);
}
/**
* 设置 [PARENTACCOUNTIDYOMINAME]
*/
public void setParentaccountidyominame(String parentaccountidyominame){
this.parentaccountidyominame = parentaccountidyominame ;
this.modify("parentaccountidyominame",parentaccountidyominame);
}
/**
* 设置 [ADDRESS1_SHIPPINGMETHODCODE]
*/
......@@ -1872,14 +1880,6 @@ public class LeadDTO extends DTOBase implements Serializable {
this.modify("customeridyominame",customeridyominame);
}
/**
* 设置 [ACCOUNTIDYOMINAME]
*/
public void setAccountidyominame(String accountidyominame){
this.accountidyominame = accountidyominame ;
this.modify("accountidyominame",accountidyominame);
}
/**
* 设置 [REVENUE_BASE]
*/
......@@ -2344,6 +2344,14 @@ public class LeadDTO extends DTOBase implements Serializable {
this.modify("address1_upszone",address1Upszone);
}
/**
* 设置 [SLANAME]
*/
public void setSlaname(String slaname){
this.slaname = slaname ;
this.modify("slaname",slaname);
}
/**
* 设置 [QUALIFYINGOPPORTUNITYID]
*/
......@@ -2408,6 +2416,62 @@ public class LeadDTO extends DTOBase implements Serializable {
this.modify("parentcontactid",parentcontactid);
}
/**
* 设置 [ORIGINATINGCASENAME]
*/
public void setOriginatingcasename(String originatingcasename){
this.originatingcasename = originatingcasename ;
this.modify("originatingcasename",originatingcasename);
}
/**
* 设置 [QUALIFYINGOPPORTUNITYNAME]
*/
public void setQualifyingopportunityname(String qualifyingopportunityname){
this.qualifyingopportunityname = qualifyingopportunityname ;
this.modify("qualifyingopportunityname",qualifyingopportunityname);
}
/**
* 设置 [CAMPAIGNNAME]
*/
public void setCampaignname(String campaignname){
this.campaignname = campaignname ;
this.modify("campaignname",campaignname);
}
/**
* 设置 [PARENTCONTACTNAME]
*/
public void setParentcontactname(String parentcontactname){
this.parentcontactname = parentcontactname ;
this.modify("parentcontactname",parentcontactname);
}
/**
* 设置 [PARENTACCOUNTNAME]
*/
public void setParentaccountname(String parentaccountname){
this.parentaccountname = parentaccountname ;
this.modify("parentaccountname",parentaccountname);
}
/**
* 设置 [RELATEDOBJECTNAME]
*/
public void setRelatedobjectname(String relatedobjectname){
this.relatedobjectname = relatedobjectname ;
this.modify("relatedobjectname",relatedobjectname);
}
/**
* 设置 [TRANSACTIONCURRENCYNAME]
*/
public void setTransactioncurrencyname(String transactioncurrencyname){
this.transactioncurrencyname = transactioncurrencyname ;
this.modify("transactioncurrencyname",transactioncurrencyname);
}
}
......@@ -103,14 +103,6 @@ public class OpportunityDTO extends DTOBase implements Serializable {
@JsonProperty("estimatedvalue_base")
private BigDecimal estimatedvalueBase;
/**
* 属性 [PARENTCONTACTIDYOMINAME]
*
*/
@JSONField(name = "parentcontactidyominame")
@JsonProperty("parentcontactidyominame")
private String parentcontactidyominame;
/**
* 属性 [PRESENTFINALPROPOSAL]
*
......@@ -565,14 +557,6 @@ public class OpportunityDTO extends DTOBase implements Serializable {
@JsonProperty("completefinalproposal")
private Integer completefinalproposal;
/**
* 属性 [ORIGINATINGLEADIDYOMINAME]
*
*/
@JSONField(name = "originatingleadidyominame")
@JsonProperty("originatingleadidyominame")
private String originatingleadidyominame;
/**
* 属性 [DISCOUNTAMOUNT]
*
......@@ -800,14 +784,6 @@ public class OpportunityDTO extends DTOBase implements Serializable {
@JsonProperty("quotecomments")
private String quotecomments;
/**
* 属性 [PARENTACCOUNTIDYOMINAME]
*
*/
@JSONField(name = "parentaccountidyominame")
@JsonProperty("parentaccountidyominame")
private String parentaccountidyominame;
/**
* 属性 [CUSTOMERIDTYPE]
*
......@@ -816,14 +792,6 @@ public class OpportunityDTO extends DTOBase implements Serializable {
@JsonProperty("customeridtype")
private String customeridtype;
/**
* 属性 [SLANAME]
*
*/
@JSONField(name = "slaname")
@JsonProperty("slaname")
private String slaname;
/**
* 属性 [OVERRIDDENCREATEDON]
*
......@@ -841,6 +809,14 @@ public class OpportunityDTO extends DTOBase implements Serializable {
@JsonProperty("ownerid")
private String ownerid;
/**
* 属性 [SLANAME]
*
*/
@JSONField(name = "slaname")
@JsonProperty("slaname")
private String slaname;
/**
* 属性 [PARENTCONTACTID]
*
......@@ -897,6 +873,54 @@ public class OpportunityDTO extends DTOBase implements Serializable {
@JsonProperty("slaid")
private String slaid;
/**
* 属性 [PRICELEVEL]
*
*/
@JSONField(name = "pricelevel")
@JsonProperty("pricelevel")
private String pricelevel;
/**
* 属性 [ORIGINATINGLEADNAME]
*
*/
@JSONField(name = "originatingleadname")
@JsonProperty("originatingleadname")
private String originatingleadname;
/**
* 属性 [PARENTACCOUNTNAME]
*
*/
@JSONField(name = "parentaccountname")
@JsonProperty("parentaccountname")
private String parentaccountname;
/**
* 属性 [CAMPAIGNNAME]
*
*/
@JSONField(name = "campaignname")
@JsonProperty("campaignname")
private String campaignname;
/**
* 属性 [PARENTCONTACTNAME]
*
*/
@JSONField(name = "parentcontactname")
@JsonProperty("parentcontactname")
private String parentcontactname;
/**
* 属性 [TRANSACTIONCURRENCYNAME]
*
*/
@JSONField(name = "transactioncurrencyname")
@JsonProperty("transactioncurrencyname")
private String transactioncurrencyname;
/**
* 设置 [DECISIONMAKER]
......@@ -970,14 +994,6 @@ public class OpportunityDTO extends DTOBase implements Serializable {
this.modify("estimatedvalue_base",estimatedvalueBase);
}
/**
* 设置 [PARENTCONTACTIDYOMINAME]
*/
public void setParentcontactidyominame(String parentcontactidyominame){
this.parentcontactidyominame = parentcontactidyominame ;
this.modify("parentcontactidyominame",parentcontactidyominame);
}
/**
* 设置 [PRESENTFINALPROPOSAL]
*/
......@@ -1410,14 +1426,6 @@ public class OpportunityDTO extends DTOBase implements Serializable {
this.modify("completefinalproposal",completefinalproposal);
}
/**
* 设置 [ORIGINATINGLEADIDYOMINAME]
*/
public void setOriginatingleadidyominame(String originatingleadidyominame){
this.originatingleadidyominame = originatingleadidyominame ;
this.modify("originatingleadidyominame",originatingleadidyominame);
}
/**
* 设置 [DISCOUNTAMOUNT]
*/
......@@ -1626,14 +1634,6 @@ public class OpportunityDTO extends DTOBase implements Serializable {
this.modify("quotecomments",quotecomments);
}
/**
* 设置 [PARENTACCOUNTIDYOMINAME]
*/
public void setParentaccountidyominame(String parentaccountidyominame){
this.parentaccountidyominame = parentaccountidyominame ;
this.modify("parentaccountidyominame",parentaccountidyominame);
}
/**
* 设置 [CUSTOMERIDTYPE]
*/
......@@ -1642,14 +1642,6 @@ public class OpportunityDTO extends DTOBase implements Serializable {
this.modify("customeridtype",customeridtype);
}
/**
* 设置 [SLANAME]
*/
public void setSlaname(String slaname){
this.slaname = slaname ;
this.modify("slaname",slaname);
}
/**
* 设置 [OVERRIDDENCREATEDON]
*/
......@@ -1666,6 +1658,14 @@ public class OpportunityDTO extends DTOBase implements Serializable {
this.modify("ownerid",ownerid);
}
/**
* 设置 [SLANAME]
*/
public void setSlaname(String slaname){
this.slaname = slaname ;
this.modify("slaname",slaname);
}
/**
* 设置 [PARENTCONTACTID]
*/
......@@ -1722,6 +1722,54 @@ public class OpportunityDTO extends DTOBase implements Serializable {
this.modify("slaid",slaid);
}
/**
* 设置 [PRICELEVEL]
*/
public void setPricelevel(String pricelevel){
this.pricelevel = pricelevel ;
this.modify("pricelevel",pricelevel);
}
/**
* 设置 [ORIGINATINGLEADNAME]
*/
public void setOriginatingleadname(String originatingleadname){
this.originatingleadname = originatingleadname ;
this.modify("originatingleadname",originatingleadname);
}
/**
* 设置 [PARENTACCOUNTNAME]
*/
public void setParentaccountname(String parentaccountname){
this.parentaccountname = parentaccountname ;
this.modify("parentaccountname",parentaccountname);
}
/**
* 设置 [CAMPAIGNNAME]
*/
public void setCampaignname(String campaignname){
this.campaignname = campaignname ;
this.modify("campaignname",campaignname);
}
/**
* 设置 [PARENTCONTACTNAME]
*/
public void setParentcontactname(String parentcontactname){
this.parentcontactname = parentcontactname ;
this.modify("parentcontactname",parentcontactname);
}
/**
* 设置 [TRANSACTIONCURRENCYNAME]
*/
public void setTransactioncurrencyname(String transactioncurrencyname){
this.transactioncurrencyname = transactioncurrencyname ;
this.modify("transactioncurrencyname",transactioncurrencyname);
}
}
......@@ -460,6 +460,54 @@ public class ProductDTO extends DTOBase implements Serializable {
@JsonProperty("subjectid")
private String subjectid;
/**
* 属性 [PARENTPRODUCTNAME]
*
*/
@JSONField(name = "parentproductname")
@JsonProperty("parentproductname")
private String parentproductname;
/**
* 属性 [TRANSACTIONCURRENCYNAME]
*
*/
@JSONField(name = "transactioncurrencyname")
@JsonProperty("transactioncurrencyname")
private String transactioncurrencyname;
/**
* 属性 [PRICELEVELNAME]
*
*/
@JSONField(name = "pricelevelname")
@JsonProperty("pricelevelname")
private String pricelevelname;
/**
* 属性 [DEFAULTUOMNAME]
*
*/
@JSONField(name = "defaultuomname")
@JsonProperty("defaultuomname")
private String defaultuomname;
/**
* 属性 [DEFAULTUOMSCHEDULENAME]
*
*/
@JSONField(name = "defaultuomschedulename")
@JsonProperty("defaultuomschedulename")
private String defaultuomschedulename;
/**
* 属性 [SUBJECT]
*
*/
@JSONField(name = "subject")
@JsonProperty("subject")
private String subject;
/**
* 设置 [VENDORID]
......@@ -853,6 +901,54 @@ public class ProductDTO extends DTOBase implements Serializable {
this.modify("subjectid",subjectid);
}
/**
* 设置 [PARENTPRODUCTNAME]
*/
public void setParentproductname(String parentproductname){
this.parentproductname = parentproductname ;
this.modify("parentproductname",parentproductname);
}
/**
* 设置 [TRANSACTIONCURRENCYNAME]
*/
public void setTransactioncurrencyname(String transactioncurrencyname){
this.transactioncurrencyname = transactioncurrencyname ;
this.modify("transactioncurrencyname",transactioncurrencyname);
}
/**
* 设置 [PRICELEVELNAME]
*/
public void setPricelevelname(String pricelevelname){
this.pricelevelname = pricelevelname ;
this.modify("pricelevelname",pricelevelname);
}
/**
* 设置 [DEFAULTUOMNAME]
*/
public void setDefaultuomname(String defaultuomname){
this.defaultuomname = defaultuomname ;
this.modify("defaultuomname",defaultuomname);
}
/**
* 设置 [DEFAULTUOMSCHEDULENAME]
*/
public void setDefaultuomschedulename(String defaultuomschedulename){
this.defaultuomschedulename = defaultuomschedulename ;
this.modify("defaultuomschedulename",defaultuomschedulename);
}
/**
* 设置 [SUBJECT]
*/
public void setSubject(String subject){
this.subject = subject ;
this.modify("subject",subject);
}
}
......@@ -543,14 +543,6 @@ public class QuoteDTO extends DTOBase implements Serializable {
@JsonProperty("billto_name")
private String billtoName;
/**
* 属性 [SLANAME]
*
*/
@JSONField(name = "slaname")
@JsonProperty("slaname")
private String slaname;
/**
* 属性 [BILLTO_LINE1]
*
......@@ -720,6 +712,14 @@ public class QuoteDTO extends DTOBase implements Serializable {
@JsonProperty("freightamount")
private BigDecimal freightamount;
/**
* 属性 [SLANAME]
*
*/
@JSONField(name = "slaname")
@JsonProperty("slaname")
private String slaname;
/**
* 属性 [PRICELEVELID]
*
......@@ -760,6 +760,38 @@ public class QuoteDTO extends DTOBase implements Serializable {
@JsonProperty("campaignid")
private String campaignid;
/**
* 属性 [PRICELEVELNAME]
*
*/
@JSONField(name = "pricelevelname")
@JsonProperty("pricelevelname")
private String pricelevelname;
/**
* 属性 [OPPORTUNITYNAME]
*
*/
@JSONField(name = "opportunityname")
@JsonProperty("opportunityname")
private String opportunityname;
/**
* 属性 [TRANSACTIONCURRENCYNAME]
*
*/
@JSONField(name = "transactioncurrencyname")
@JsonProperty("transactioncurrencyname")
private String transactioncurrencyname;
/**
* 属性 [CAMPAIGNNAME]
*
*/
@JSONField(name = "campaignname")
@JsonProperty("campaignname")
private String campaignname;
/**
* 设置 [BILLTO_COUNTRY]
......@@ -1233,14 +1265,6 @@ public class QuoteDTO extends DTOBase implements Serializable {
this.modify("billto_name",billtoName);
}
/**
* 设置 [SLANAME]
*/
public void setSlaname(String slaname){
this.slaname = slaname ;
this.modify("slaname",slaname);
}
/**
* 设置 [BILLTO_LINE1]
*/
......@@ -1409,6 +1433,14 @@ public class QuoteDTO extends DTOBase implements Serializable {
this.modify("freightamount",freightamount);
}
/**
* 设置 [SLANAME]
*/
public void setSlaname(String slaname){
this.slaname = slaname ;
this.modify("slaname",slaname);
}
/**
* 设置 [PRICELEVELID]
*/
......@@ -1449,6 +1481,38 @@ public class QuoteDTO extends DTOBase implements Serializable {
this.modify("campaignid",campaignid);
}
/**
* 设置 [PRICELEVELNAME]
*/
public void setPricelevelname(String pricelevelname){
this.pricelevelname = pricelevelname ;
this.modify("pricelevelname",pricelevelname);
}
/**
* 设置 [OPPORTUNITYNAME]
*/
public void setOpportunityname(String opportunityname){
this.opportunityname = opportunityname ;
this.modify("opportunityname",opportunityname);
}
/**
* 设置 [TRANSACTIONCURRENCYNAME]
*/
public void setTransactioncurrencyname(String transactioncurrencyname){
this.transactioncurrencyname = transactioncurrencyname ;
this.modify("transactioncurrencyname",transactioncurrencyname);
}
/**
* 设置 [CAMPAIGNNAME]
*/
public void setCampaignname(String campaignname){
this.campaignname = campaignname ;
this.modify("campaignname",campaignname);
}
}
......@@ -259,6 +259,22 @@ public class SalesLiteratureDTO extends DTOBase implements Serializable {
@JsonProperty("subjectid")
private String subjectid;
/**
* 属性 [TRANSACTIONCURRENCYNAME]
*
*/
@JSONField(name = "transactioncurrencyname")
@JsonProperty("transactioncurrencyname")
private String transactioncurrencyname;
/**
* 属性 [SUBJECTNAME]
*
*/
@JSONField(name = "subjectname")
@JsonProperty("subjectname")
private String subjectname;
/**
* 设置 [IMPORTSEQUENCENUMBER]
......@@ -452,6 +468,22 @@ public class SalesLiteratureDTO extends DTOBase implements Serializable {
this.modify("subjectid",subjectid);
}
/**
* 设置 [TRANSACTIONCURRENCYNAME]
*/
public void setTransactioncurrencyname(String transactioncurrencyname){
this.transactioncurrencyname = transactioncurrencyname ;
this.modify("transactioncurrencyname",transactioncurrencyname);
}
/**
* 设置 [SUBJECTNAME]
*/
public void setSubjectname(String subjectname){
this.subjectname = subjectname ;
this.modify("subjectname",subjectname);
}
}
......@@ -353,14 +353,6 @@ public class SalesOrderDTO extends DTOBase implements Serializable {
@JsonProperty("shipto_addressid")
private String shiptoAddressid;
/**
* 属性 [SLANAME]
*
*/
@JSONField(name = "slaname")
@JsonProperty("slaname")
private String slaname;
/**
* 属性 [PAYMENTTERMSCODE]
*
......@@ -759,6 +751,14 @@ public class SalesOrderDTO extends DTOBase implements Serializable {
@JsonProperty("description")
private String description;
/**
* 属性 [SLANAME]
*
*/
@JSONField(name = "slaname")
@JsonProperty("slaname")
private String slaname;
/**
* 属性 [QUOTEID]
*
......@@ -807,6 +807,46 @@ public class SalesOrderDTO extends DTOBase implements Serializable {
@JsonProperty("campaignid")
private String campaignid;
/**
* 属性 [QUOTENAME]
*
*/
@JSONField(name = "quotename")
@JsonProperty("quotename")
private String quotename;
/**
* 属性 [TRANSACTIONCURRENCYNAME]
*
*/
@JSONField(name = "transactioncurrencyname")
@JsonProperty("transactioncurrencyname")
private String transactioncurrencyname;
/**
* 属性 [OPPORTUNITYNAME]
*
*/
@JSONField(name = "opportunityname")
@JsonProperty("opportunityname")
private String opportunityname;
/**
* 属性 [PRICELEVELNAME]
*
*/
@JSONField(name = "pricelevelname")
@JsonProperty("pricelevelname")
private String pricelevelname;
/**
* 属性 [CAMPAIGNNAME]
*
*/
@JSONField(name = "campaignname")
@JsonProperty("campaignname")
private String campaignname;
/**
* 设置 [ENTITYIMAGE]
......@@ -1120,14 +1160,6 @@ public class SalesOrderDTO extends DTOBase implements Serializable {
this.modify("shipto_addressid",shiptoAddressid);
}
/**
* 设置 [SLANAME]
*/
public void setSlaname(String slaname){
this.slaname = slaname ;
this.modify("slaname",slaname);
}
/**
* 设置 [PAYMENTTERMSCODE]
*/
......@@ -1496,6 +1528,14 @@ public class SalesOrderDTO extends DTOBase implements Serializable {
this.modify("description",description);
}
/**
* 设置 [SLANAME]
*/
public void setSlaname(String slaname){
this.slaname = slaname ;
this.modify("slaname",slaname);
}
/**
* 设置 [QUOTEID]
*/
......@@ -1544,6 +1584,46 @@ public class SalesOrderDTO extends DTOBase implements Serializable {
this.modify("campaignid",campaignid);
}
/**
* 设置 [QUOTENAME]
*/
public void setQuotename(String quotename){
this.quotename = quotename ;
this.modify("quotename",quotename);
}
/**
* 设置 [TRANSACTIONCURRENCYNAME]
*/
public void setTransactioncurrencyname(String transactioncurrencyname){
this.transactioncurrencyname = transactioncurrencyname ;
this.modify("transactioncurrencyname",transactioncurrencyname);
}
/**
* 设置 [OPPORTUNITYNAME]
*/
public void setOpportunityname(String opportunityname){
this.opportunityname = opportunityname ;
this.modify("opportunityname",opportunityname);
}
/**
* 设置 [PRICELEVELNAME]
*/
public void setPricelevelname(String pricelevelname){
this.pricelevelname = pricelevelname ;
this.modify("pricelevelname",pricelevelname);
}
/**
* 设置 [CAMPAIGNNAME]
*/
public void setCampaignname(String campaignname){
this.campaignname = campaignname ;
this.modify("campaignname",campaignname);
}
}
......@@ -37,6 +37,11 @@
git clone -b master $para2 ibizbusinesscentral/
export NODE_OPTIONS=--max-old-space-size=4096
cd ibizbusinesscentral/
mvn clean package -Pcentralapi
cd businesscentral-provider/businesscentral-provider-centralapi
mvn -Pcentralapi docker:build
mvn -Pcentralapi docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/businesscentral-provider-centralapi.yaml iBizEE --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册