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

xignzi006 发布系统代码

上级 69fc3cdb
......@@ -52,7 +52,7 @@ export interface CampaignCampaign {
* @returns {*}
* @memberof CampaignCampaign
*/
campaignid?: any;
entityid?: any;
/**
* 活动名称
......@@ -60,7 +60,7 @@ export interface CampaignCampaign {
* @returns {*}
* @memberof CampaignCampaign
*/
campaignname?: any;
entityname?: any;
/**
* 市场活动
......@@ -68,7 +68,7 @@ export interface CampaignCampaign {
* @returns {*}
* @memberof CampaignCampaign
*/
campaign2id?: any;
entity2id?: any;
/**
* 活动2名称
......@@ -76,7 +76,7 @@ export interface CampaignCampaign {
* @returns {*}
* @memberof CampaignCampaign
*/
campaign2name?: any;
entity2name?: any;
/**
* 关系标识
......
......@@ -68,7 +68,7 @@ export interface ListAccount {
* @returns {*}
* @memberof ListAccount
*/
listid?: any;
entityid?: any;
/**
* 客户
......@@ -76,21 +76,21 @@ export interface ListAccount {
* @returns {*}
* @memberof ListAccount
*/
accountid?: any;
entity2id?: any;
/**
* 名称
* 营销列表
*
* @returns {*}
* @memberof ListAccount
*/
listname?: any;
entityname?: any;
/**
* 客户名称
* 客户
*
* @returns {*}
* @memberof ListAccount
*/
accountname?: any;
entity2name?: any;
}
\ No newline at end of file
......@@ -68,15 +68,15 @@ export interface ListContact {
* @returns {*}
* @memberof ListContact
*/
listid?: any;
entityid?: any;
/**
* 名称
* 营销列表
*
* @returns {*}
* @memberof ListContact
*/
listname?: any;
entityname?: any;
/**
* 联系人
......@@ -84,13 +84,13 @@ export interface ListContact {
* @returns {*}
* @memberof ListContact
*/
contactid?: any;
entity2id?: any;
/**
* 全名
* 联系人
*
* @returns {*}
* @memberof ListContact
*/
fullname?: any;
entity2name?: any;
}
\ No newline at end of file
......@@ -68,15 +68,15 @@ export interface ListLead {
* @returns {*}
* @memberof ListLead
*/
listid?: any;
entityid?: any;
/**
* 名称
* 营销列表
*
* @returns {*}
* @memberof ListLead
*/
listname?: any;
entityname?: any;
/**
* 潜在顾客
......@@ -84,13 +84,13 @@ export interface ListLead {
* @returns {*}
* @memberof ListLead
*/
leadid?: any;
entity2id?: any;
/**
* 姓名
* 潜在顾客
*
* @returns {*}
* @memberof ListLead
*/
fullname?: any;
entity2name?: any;
}
\ No newline at end of file
......@@ -6,10 +6,10 @@ export default {
updatedate: '更新时间',
updateman: '更新人',
relationshipstype: '关系类型',
campaignid: '市场活动',
campaignname: '活动名称',
campaign2id: '市场活动',
campaign2name: '活动2名称',
entityid: '市场活动',
entityname: '活动名称',
entity2id: '市场活动',
entity2name: '活动2名称',
relationshipsid: '关系标识',
relationshipsname: '关系名称',
},
......
......@@ -5,10 +5,10 @@ export default {
updatedate: '更新时间',
updateman: '更新人',
relationshipstype: '关系类型',
campaignid: '市场活动',
campaignname: '活动名称',
campaign2id: '市场活动',
campaign2name: '活动2名称',
entityid: '市场活动',
entityname: '活动名称',
entity2id: '市场活动',
entity2name: '活动2名称',
relationshipsid: '关系标识',
relationshipsname: '关系名称',
},
......
......@@ -8,10 +8,10 @@ export default {
relationshipstype: '关系类型',
updatedate: '更新时间',
updateman: '更新人',
listid: '列表',
accountid: '客户',
listname: '名称',
accountname: '客户名称',
entityid: '列表',
entity2id: '客户',
entityname: '营销列表',
entity2name: '客户',
},
views: {
editview: {
......
......@@ -7,10 +7,10 @@ export default {
relationshipstype: '关系类型',
updatedate: '更新时间',
updateman: '更新人',
listid: '列表',
accountid: '客户',
listname: '名称',
accountname: '客户名称',
entityid: '列表',
entity2id: '客户',
entityname: '营销列表',
entity2name: '客户',
},
views: {
editview: {
......
......@@ -8,10 +8,10 @@ export default {
updatedate: '更新时间',
updateman: '更新人',
relationshipsid: '关系标识',
listid: '列表',
listname: '名称',
contactid: '联系人',
fullname: '全名',
entityid: '列表',
entityname: '营销列表',
entity2id: '联系人',
entity2name: '联系人',
},
views: {
gridview: {
......
......@@ -7,10 +7,10 @@ export default {
updatedate: '更新时间',
updateman: '更新人',
relationshipsid: '关系标识',
listid: '列表',
listname: '名称',
contactid: '联系人',
fullname: '全名',
entityid: '列表',
entityname: '营销列表',
entity2id: '联系人',
entity2name: '联系人',
},
views: {
gridview: {
......
......@@ -8,10 +8,10 @@ export default {
relationshipstype: '关系类型',
updatedate: '更新时间',
updateman: '更新人',
listid: '列表',
listname: '名称',
leadid: '潜在顾客',
fullname: '姓名',
entityid: '列表',
entityname: '营销列表',
entity2id: '潜在顾客',
entity2name: '潜在顾客',
},
views: {
editview: {
......
......@@ -7,10 +7,10 @@ export default {
relationshipstype: '关系类型',
updatedate: '更新时间',
updateman: '更新人',
listid: '列表',
listname: '名称',
leadid: '潜在顾客',
fullname: '姓名',
entityid: '列表',
entityname: '营销列表',
entity2id: '潜在顾客',
entity2name: '潜在顾客',
},
views: {
editview: {
......
......@@ -27,8 +27,13 @@ export default class MainModel {
}else{
return [
{
name: 'listid',
prop: 'listid',
name: 'entity2id',
prop: 'entity2id',
dataType: 'PICKUP',
},
{
name: 'entityid',
prop: 'entityid',
dataType: 'PICKUP',
},
{
......@@ -36,11 +41,6 @@ export default class MainModel {
prop: 'relationshipsname',
dataType: 'TEXT',
},
{
name: 'accountid',
prop: 'accountid',
dataType: 'PICKUP',
},
{
name: 'srfdataaccaction',
prop: 'relationshipsid',
......
......@@ -27,13 +27,13 @@ export default class MainModel {
}else{
return [
{
name: 'listid',
prop: 'listid',
name: 'entity2id',
prop: 'entity2id',
dataType: 'PICKUP',
},
{
name: 'contactid',
prop: 'contactid',
name: 'entityid',
prop: 'entityid',
dataType: 'PICKUP',
},
{
......
......@@ -27,8 +27,13 @@ export default class MainModel {
}else{
return [
{
name: 'listid',
prop: 'listid',
name: 'entity2id',
prop: 'entity2id',
dataType: 'PICKUP',
},
{
name: 'entityid',
prop: 'entityid',
dataType: 'PICKUP',
},
{
......@@ -36,11 +41,6 @@ export default class MainModel {
prop: 'relationshipsname',
dataType: 'TEXT',
},
{
name: 'leadid',
prop: 'leadid',
dataType: 'PICKUP',
},
{
name: 'srfdataaccaction',
prop: 'relationshipsid',
......
......@@ -84,31 +84,31 @@ public class CampaignCampaign extends EntityMP implements Serializable {
/**
* 市场活动
*/
@TableField(value = "campaignid")
@JSONField(name = "campaignid")
@JsonProperty("campaignid")
private String campaignid;
@TableField(value = "entityid")
@JSONField(name = "entityid")
@JsonProperty("entityid")
private String entityid;
/**
* 活动名称
*/
@TableField(value = "campaignname")
@JSONField(name = "campaignname")
@JsonProperty("campaignname")
private String campaignname;
@TableField(value = "entityname")
@JSONField(name = "entityname")
@JsonProperty("entityname")
private String entityname;
/**
* 市场活动
*/
@TableField(value = "campaign2id")
@JSONField(name = "campaign2id")
@JsonProperty("campaign2id")
private String campaign2id;
@TableField(value = "entity2id")
@JSONField(name = "entity2id")
@JsonProperty("entity2id")
private String entity2id;
/**
* 活动2名称
*/
@TableField(value = "campaign2name")
@JSONField(name = "campaign2name")
@JsonProperty("campaign2name")
private String campaign2name;
@TableField(value = "entity2name")
@JSONField(name = "entity2name")
@JsonProperty("entity2name")
private String entity2name;
/**
* 关系标识
*/
......@@ -154,33 +154,33 @@ public class CampaignCampaign extends EntityMP implements Serializable {
/**
* 设置 [市场活动]
*/
public void setCampaignid(String campaignid){
this.campaignid = campaignid ;
this.modify("campaignid",campaignid);
public void setEntityid(String entityid){
this.entityid = entityid ;
this.modify("entityid",entityid);
}
/**
* 设置 [活动名称]
*/
public void setCampaignname(String campaignname){
this.campaignname = campaignname ;
this.modify("campaignname",campaignname);
public void setEntityname(String entityname){
this.entityname = entityname ;
this.modify("entityname",entityname);
}
/**
* 设置 [市场活动]
*/
public void setCampaign2id(String campaign2id){
this.campaign2id = campaign2id ;
this.modify("campaign2id",campaign2id);
public void setEntity2id(String entity2id){
this.entity2id = entity2id ;
this.modify("entity2id",entity2id);
}
/**
* 设置 [活动2名称]
*/
public void setCampaign2name(String campaign2name){
this.campaign2name = campaign2name ;
this.modify("campaign2name",campaign2name);
public void setEntity2name(String entity2name){
this.entity2name = entity2name ;
this.modify("entity2name",entity2name);
}
/**
......
......@@ -99,31 +99,31 @@ public class ListAccount extends EntityMP implements Serializable {
/**
* 列表
*/
@TableField(value = "listid")
@JSONField(name = "listid")
@JsonProperty("listid")
private String listid;
@TableField(value = "entityid")
@JSONField(name = "entityid")
@JsonProperty("entityid")
private String entityid;
/**
* 客户
*/
@TableField(value = "accountid")
@JSONField(name = "accountid")
@JsonProperty("accountid")
private String accountid;
@TableField(value = "entity2id")
@JSONField(name = "entity2id")
@JsonProperty("entity2id")
private String entity2id;
/**
* 名称
* 营销列表
*/
@TableField(value = "listname")
@JSONField(name = "listname")
@JsonProperty("listname")
private String listname;
@TableField(value = "entityname")
@JSONField(name = "entityname")
@JsonProperty("entityname")
private String entityname;
/**
* 客户名称
* 客户
*/
@TableField(value = "accountname")
@JSONField(name = "accountname")
@JsonProperty("accountname")
private String accountname;
@TableField(value = "entity2name")
@JSONField(name = "entity2name")
@JsonProperty("entity2name")
private String entity2name;
/**
*
......@@ -162,33 +162,33 @@ public class ListAccount extends EntityMP implements Serializable {
/**
* 设置 [列表]
*/
public void setListid(String listid){
this.listid = listid ;
this.modify("listid",listid);
public void setEntityid(String entityid){
this.entityid = entityid ;
this.modify("entityid",entityid);
}
/**
* 设置 [客户]
*/
public void setAccountid(String accountid){
this.accountid = accountid ;
this.modify("accountid",accountid);
public void setEntity2id(String entity2id){
this.entity2id = entity2id ;
this.modify("entity2id",entity2id);
}
/**
* 设置 [名称]
* 设置 [营销列表]
*/
public void setListname(String listname){
this.listname = listname ;
this.modify("listname",listname);
public void setEntityname(String entityname){
this.entityname = entityname ;
this.modify("entityname",entityname);
}
/**
* 设置 [客户名称]
* 设置 [客户]
*/
public void setAccountname(String accountname){
this.accountname = accountname ;
this.modify("accountname",accountname);
public void setEntity2name(String entity2name){
this.entity2name = entity2name ;
this.modify("entity2name",entity2name);
}
......
......@@ -99,31 +99,31 @@ public class ListContact extends EntityMP implements Serializable {
/**
* 列表
*/
@TableField(value = "listid")
@JSONField(name = "listid")
@JsonProperty("listid")
private String listid;
@TableField(value = "entityid")
@JSONField(name = "entityid")
@JsonProperty("entityid")
private String entityid;
/**
* 名称
* 营销列表
*/
@TableField(value = "listname")
@JSONField(name = "listname")
@JsonProperty("listname")
private String listname;
@TableField(value = "entityname")
@JSONField(name = "entityname")
@JsonProperty("entityname")
private String entityname;
/**
* 联系人
*/
@TableField(value = "contactid")
@JSONField(name = "contactid")
@JsonProperty("contactid")
private String contactid;
@TableField(value = "entity2id")
@JSONField(name = "entity2id")
@JsonProperty("entity2id")
private String entity2id;
/**
* 全名
* 联系人
*/
@TableField(value = "fullname")
@JSONField(name = "fullname")
@JsonProperty("fullname")
private String fullname;
@TableField(value = "entity2name")
@JSONField(name = "entity2name")
@JsonProperty("entity2name")
private String entity2name;
/**
*
......@@ -162,33 +162,33 @@ public class ListContact extends EntityMP implements Serializable {
/**
* 设置 [列表]
*/
public void setListid(String listid){
this.listid = listid ;
this.modify("listid",listid);
public void setEntityid(String entityid){
this.entityid = entityid ;
this.modify("entityid",entityid);
}
/**
* 设置 [名称]
* 设置 [营销列表]
*/
public void setListname(String listname){
this.listname = listname ;
this.modify("listname",listname);
public void setEntityname(String entityname){
this.entityname = entityname ;
this.modify("entityname",entityname);
}
/**
* 设置 [联系人]
*/
public void setContactid(String contactid){
this.contactid = contactid ;
this.modify("contactid",contactid);
public void setEntity2id(String entity2id){
this.entity2id = entity2id ;
this.modify("entity2id",entity2id);
}
/**
* 设置 [全名]
* 设置 [联系人]
*/
public void setFullname(String fullname){
this.fullname = fullname ;
this.modify("fullname",fullname);
public void setEntity2name(String entity2name){
this.entity2name = entity2name ;
this.modify("entity2name",entity2name);
}
......
......@@ -99,31 +99,31 @@ public class ListLead extends EntityMP implements Serializable {
/**
* 列表
*/
@TableField(value = "listid")
@JSONField(name = "listid")
@JsonProperty("listid")
private String listid;
@TableField(value = "entityid")
@JSONField(name = "entityid")
@JsonProperty("entityid")
private String entityid;
/**
* 名称
* 营销列表
*/
@TableField(value = "listname")
@JSONField(name = "listname")
@JsonProperty("listname")
private String listname;
@TableField(value = "entityname")
@JSONField(name = "entityname")
@JsonProperty("entityname")
private String entityname;
/**
* 潜在顾客
*/
@TableField(value = "leadid")
@JSONField(name = "leadid")
@JsonProperty("leadid")
private String leadid;
@TableField(value = "entity2id")
@JSONField(name = "entity2id")
@JsonProperty("entity2id")
private String entity2id;
/**
* 姓名
* 潜在顾客
*/
@TableField(value = "fullname")
@JSONField(name = "fullname")
@JsonProperty("fullname")
private String fullname;
@TableField(value = "entity2name")
@JSONField(name = "entity2name")
@JsonProperty("entity2name")
private String entity2name;
/**
*
......@@ -162,33 +162,33 @@ public class ListLead extends EntityMP implements Serializable {
/**
* 设置 [列表]
*/
public void setListid(String listid){
this.listid = listid ;
this.modify("listid",listid);
public void setEntityid(String entityid){
this.entityid = entityid ;
this.modify("entityid",entityid);
}
/**
* 设置 [名称]
* 设置 [营销列表]
*/
public void setListname(String listname){
this.listname = listname ;
this.modify("listname",listname);
public void setEntityname(String entityname){
this.entityname = entityname ;
this.modify("entityname",entityname);
}
/**
* 设置 [潜在顾客]
*/
public void setLeadid(String leadid){
this.leadid = leadid ;
this.modify("leadid",leadid);
public void setEntity2id(String entity2id){
this.entity2id = entity2id ;
this.modify("entity2id",entity2id);
}
/**
* 设置 [姓名]
* 设置 [潜在顾客]
*/
public void setFullname(String fullname){
this.fullname = fullname ;
this.modify("fullname",fullname);
public void setEntity2name(String entity2name){
this.entity2name = entity2name ;
this.modify("entity2name",entity2name);
}
......
......@@ -38,42 +38,84 @@ public class CampaignCampaignSearchContext extends QueryWrapperContext<CampaignC
public void setN_campaignid_eq(String n_campaignid_eq) {
this.n_campaignid_eq = n_campaignid_eq;
if(!ObjectUtils.isEmpty(this.n_campaignid_eq)){
this.getSearchCond().eq("campaignid", n_campaignid_eq);
this.getSearchCond().eq("entityid", n_campaignid_eq);
}
}
private String n_entityid_eq;//[市场活动]
public void setN_entityid_eq(String n_entityid_eq) {
this.n_entityid_eq = n_entityid_eq;
if(!ObjectUtils.isEmpty(this.n_entityid_eq)){
this.getSearchCond().eq("entityid", n_entityid_eq);
}
}
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);
this.getSearchCond().eq("entityname", 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);
this.getSearchCond().like("entityname", n_campaignname_like);
}
}
private String n_entityname_eq;//[活动名称]
public void setN_entityname_eq(String n_entityname_eq) {
this.n_entityname_eq = n_entityname_eq;
if(!ObjectUtils.isEmpty(this.n_entityname_eq)){
this.getSearchCond().eq("entityname", n_entityname_eq);
}
}
private String n_entityname_like;//[活动名称]
public void setN_entityname_like(String n_entityname_like) {
this.n_entityname_like = n_entityname_like;
if(!ObjectUtils.isEmpty(this.n_entityname_like)){
this.getSearchCond().like("entityname", n_entityname_like);
}
}
private String n_campaign2id_eq;//[市场活动]
public void setN_campaign2id_eq(String n_campaign2id_eq) {
this.n_campaign2id_eq = n_campaign2id_eq;
if(!ObjectUtils.isEmpty(this.n_campaign2id_eq)){
this.getSearchCond().eq("campaign2id", n_campaign2id_eq);
this.getSearchCond().eq("entity2id", n_campaign2id_eq);
}
}
private String n_entity2id_eq;//[市场活动]
public void setN_entity2id_eq(String n_entity2id_eq) {
this.n_entity2id_eq = n_entity2id_eq;
if(!ObjectUtils.isEmpty(this.n_entity2id_eq)){
this.getSearchCond().eq("entity2id", n_entity2id_eq);
}
}
private String n_campaign2name_eq;//[活动2名称]
public void setN_campaign2name_eq(String n_campaign2name_eq) {
this.n_campaign2name_eq = n_campaign2name_eq;
if(!ObjectUtils.isEmpty(this.n_campaign2name_eq)){
this.getSearchCond().eq("campaign2name", n_campaign2name_eq);
this.getSearchCond().eq("entity2name", n_campaign2name_eq);
}
}
private String n_campaign2name_like;//[活动2名称]
public void setN_campaign2name_like(String n_campaign2name_like) {
this.n_campaign2name_like = n_campaign2name_like;
if(!ObjectUtils.isEmpty(this.n_campaign2name_like)){
this.getSearchCond().like("campaign2name", n_campaign2name_like);
this.getSearchCond().like("entity2name", n_campaign2name_like);
}
}
private String n_entity2name_eq;//[活动2名称]
public void setN_entity2name_eq(String n_entity2name_eq) {
this.n_entity2name_eq = n_entity2name_eq;
if(!ObjectUtils.isEmpty(this.n_entity2name_eq)){
this.getSearchCond().eq("entity2name", n_entity2name_eq);
}
}
private String n_entity2name_like;//[活动2名称]
public void setN_entity2name_like(String n_entity2name_like) {
this.n_entity2name_like = n_entity2name_like;
if(!ObjectUtils.isEmpty(this.n_entity2name_like)){
this.getSearchCond().like("entity2name", n_entity2name_like);
}
}
private String n_relationshipsname_like;//[关系名称]
......
......@@ -40,6 +40,13 @@ public class CampaignListSearchContext extends QueryWrapperContext<CampaignList>
if(!ObjectUtils.isEmpty(this.n_campaignid_eq)){
this.getSearchCond().eq("entityid", n_campaignid_eq);
}
}
private String n_entityid_eq;//[市场活动]
public void setN_entityid_eq(String n_entityid_eq) {
this.n_entityid_eq = n_entityid_eq;
if(!ObjectUtils.isEmpty(this.n_entityid_eq)){
this.getSearchCond().eq("entityid", n_entityid_eq);
}
}
private String n_campaignname_eq;//[活动名称]
public void setN_campaignname_eq(String n_campaignname_eq) {
......@@ -54,6 +61,27 @@ public class CampaignListSearchContext extends QueryWrapperContext<CampaignList>
if(!ObjectUtils.isEmpty(this.n_campaignname_like)){
this.getSearchCond().like("entityname", n_campaignname_like);
}
}
private String n_entityname_eq;//[活动名称]
public void setN_entityname_eq(String n_entityname_eq) {
this.n_entityname_eq = n_entityname_eq;
if(!ObjectUtils.isEmpty(this.n_entityname_eq)){
this.getSearchCond().eq("entityname", n_entityname_eq);
}
}
private String n_entityname_like;//[活动名称]
public void setN_entityname_like(String n_entityname_like) {
this.n_entityname_like = n_entityname_like;
if(!ObjectUtils.isEmpty(this.n_entityname_like)){
this.getSearchCond().like("entityname", n_entityname_like);
}
}
private String n_entity2id_eq;//[列表]
public void setN_entity2id_eq(String n_entity2id_eq) {
this.n_entity2id_eq = n_entity2id_eq;
if(!ObjectUtils.isEmpty(this.n_entity2id_eq)){
this.getSearchCond().eq("entity2id", n_entity2id_eq);
}
}
private String n_listid_eq;//[列表]
public void setN_listid_eq(String n_listid_eq) {
......@@ -61,6 +89,20 @@ public class CampaignListSearchContext extends QueryWrapperContext<CampaignList>
if(!ObjectUtils.isEmpty(this.n_listid_eq)){
this.getSearchCond().eq("entity2id", n_listid_eq);
}
}
private String n_entity2name_eq;//[名称]
public void setN_entity2name_eq(String n_entity2name_eq) {
this.n_entity2name_eq = n_entity2name_eq;
if(!ObjectUtils.isEmpty(this.n_entity2name_eq)){
this.getSearchCond().eq("entity2name", n_entity2name_eq);
}
}
private String n_entity2name_like;//[名称]
public void setN_entity2name_like(String n_entity2name_like) {
this.n_entity2name_like = n_entity2name_like;
if(!ObjectUtils.isEmpty(this.n_entity2name_like)){
this.getSearchCond().like("entity2name", n_entity2name_like);
}
}
private String n_listname_eq;//[名称]
public void setN_listname_eq(String n_listname_eq) {
......
......@@ -40,47 +40,89 @@ public class ListAccountSearchContext extends QueryWrapperContext<ListAccount> {
if(!ObjectUtils.isEmpty(this.n_relationshipstype_eq)){
this.getSearchCond().eq("relationshipstype", n_relationshipstype_eq);
}
}
private String n_entityid_eq;//[列表]
public void setN_entityid_eq(String n_entityid_eq) {
this.n_entityid_eq = n_entityid_eq;
if(!ObjectUtils.isEmpty(this.n_entityid_eq)){
this.getSearchCond().eq("entityid", n_entityid_eq);
}
}
private String n_listid_eq;//[列表]
public void setN_listid_eq(String n_listid_eq) {
this.n_listid_eq = n_listid_eq;
if(!ObjectUtils.isEmpty(this.n_listid_eq)){
this.getSearchCond().eq("listid", n_listid_eq);
this.getSearchCond().eq("entityid", n_listid_eq);
}
}
private String n_accountid_eq;//[客户]
public void setN_accountid_eq(String n_accountid_eq) {
this.n_accountid_eq = n_accountid_eq;
if(!ObjectUtils.isEmpty(this.n_accountid_eq)){
this.getSearchCond().eq("accountid", n_accountid_eq);
this.getSearchCond().eq("entity2id", n_accountid_eq);
}
}
private String n_entity2id_eq;//[客户]
public void setN_entity2id_eq(String n_entity2id_eq) {
this.n_entity2id_eq = n_entity2id_eq;
if(!ObjectUtils.isEmpty(this.n_entity2id_eq)){
this.getSearchCond().eq("entity2id", n_entity2id_eq);
}
}
private String n_entityname_eq;//[营销列表]
public void setN_entityname_eq(String n_entityname_eq) {
this.n_entityname_eq = n_entityname_eq;
if(!ObjectUtils.isEmpty(this.n_entityname_eq)){
this.getSearchCond().eq("entityname", n_entityname_eq);
}
}
private String n_listname_eq;//[名称]
private String n_entityname_like;//[营销列表]
public void setN_entityname_like(String n_entityname_like) {
this.n_entityname_like = n_entityname_like;
if(!ObjectUtils.isEmpty(this.n_entityname_like)){
this.getSearchCond().like("entityname", n_entityname_like);
}
}
private String n_listname_eq;//[营销列表]
public void setN_listname_eq(String n_listname_eq) {
this.n_listname_eq = n_listname_eq;
if(!ObjectUtils.isEmpty(this.n_listname_eq)){
this.getSearchCond().eq("listname", n_listname_eq);
this.getSearchCond().eq("entityname", n_listname_eq);
}
}
private String n_listname_like;//[名称]
private String n_listname_like;//[营销列表]
public void setN_listname_like(String n_listname_like) {
this.n_listname_like = n_listname_like;
if(!ObjectUtils.isEmpty(this.n_listname_like)){
this.getSearchCond().like("listname", n_listname_like);
this.getSearchCond().like("entityname", n_listname_like);
}
}
private String n_accountname_eq;//[客户名称]
private String n_accountname_eq;//[客户]
public void setN_accountname_eq(String n_accountname_eq) {
this.n_accountname_eq = n_accountname_eq;
if(!ObjectUtils.isEmpty(this.n_accountname_eq)){
this.getSearchCond().eq("accountname", n_accountname_eq);
this.getSearchCond().eq("entity2name", n_accountname_eq);
}
}
private String n_accountname_like;//[客户名称]
private String n_accountname_like;//[客户]
public void setN_accountname_like(String n_accountname_like) {
this.n_accountname_like = n_accountname_like;
if(!ObjectUtils.isEmpty(this.n_accountname_like)){
this.getSearchCond().like("accountname", n_accountname_like);
this.getSearchCond().like("entity2name", n_accountname_like);
}
}
private String n_entity2name_eq;//[客户]
public void setN_entity2name_eq(String n_entity2name_eq) {
this.n_entity2name_eq = n_entity2name_eq;
if(!ObjectUtils.isEmpty(this.n_entity2name_eq)){
this.getSearchCond().eq("entity2name", n_entity2name_eq);
}
}
private String n_entity2name_like;//[客户]
public void setN_entity2name_like(String n_entity2name_like) {
this.n_entity2name_like = n_entity2name_like;
if(!ObjectUtils.isEmpty(this.n_entity2name_like)){
this.getSearchCond().like("entity2name", n_entity2name_like);
}
}
......
......@@ -40,47 +40,89 @@ public class ListContactSearchContext extends QueryWrapperContext<ListContact> {
if(!ObjectUtils.isEmpty(this.n_relationshipstype_eq)){
this.getSearchCond().eq("relationshipstype", n_relationshipstype_eq);
}
}
private String n_entityid_eq;//[列表]
public void setN_entityid_eq(String n_entityid_eq) {
this.n_entityid_eq = n_entityid_eq;
if(!ObjectUtils.isEmpty(this.n_entityid_eq)){
this.getSearchCond().eq("entityid", n_entityid_eq);
}
}
private String n_listid_eq;//[列表]
public void setN_listid_eq(String n_listid_eq) {
this.n_listid_eq = n_listid_eq;
if(!ObjectUtils.isEmpty(this.n_listid_eq)){
this.getSearchCond().eq("listid", n_listid_eq);
this.getSearchCond().eq("entityid", n_listid_eq);
}
}
private String n_entityname_eq;//[营销列表]
public void setN_entityname_eq(String n_entityname_eq) {
this.n_entityname_eq = n_entityname_eq;
if(!ObjectUtils.isEmpty(this.n_entityname_eq)){
this.getSearchCond().eq("entityname", n_entityname_eq);
}
}
private String n_entityname_like;//[营销列表]
public void setN_entityname_like(String n_entityname_like) {
this.n_entityname_like = n_entityname_like;
if(!ObjectUtils.isEmpty(this.n_entityname_like)){
this.getSearchCond().like("entityname", n_entityname_like);
}
}
private String n_listname_eq;//[名称]
private String n_listname_eq;//[营销列表]
public void setN_listname_eq(String n_listname_eq) {
this.n_listname_eq = n_listname_eq;
if(!ObjectUtils.isEmpty(this.n_listname_eq)){
this.getSearchCond().eq("listname", n_listname_eq);
this.getSearchCond().eq("entityname", n_listname_eq);
}
}
private String n_listname_like;//[名称]
private String n_listname_like;//[营销列表]
public void setN_listname_like(String n_listname_like) {
this.n_listname_like = n_listname_like;
if(!ObjectUtils.isEmpty(this.n_listname_like)){
this.getSearchCond().like("listname", n_listname_like);
this.getSearchCond().like("entityname", n_listname_like);
}
}
private String n_contactid_eq;//[联系人]
public void setN_contactid_eq(String n_contactid_eq) {
this.n_contactid_eq = n_contactid_eq;
if(!ObjectUtils.isEmpty(this.n_contactid_eq)){
this.getSearchCond().eq("contactid", n_contactid_eq);
this.getSearchCond().eq("entity2id", n_contactid_eq);
}
}
private String n_entity2id_eq;//[联系人]
public void setN_entity2id_eq(String n_entity2id_eq) {
this.n_entity2id_eq = n_entity2id_eq;
if(!ObjectUtils.isEmpty(this.n_entity2id_eq)){
this.getSearchCond().eq("entity2id", n_entity2id_eq);
}
}
private String n_entity2name_eq;//[联系人]
public void setN_entity2name_eq(String n_entity2name_eq) {
this.n_entity2name_eq = n_entity2name_eq;
if(!ObjectUtils.isEmpty(this.n_entity2name_eq)){
this.getSearchCond().eq("entity2name", n_entity2name_eq);
}
}
private String n_entity2name_like;//[联系人]
public void setN_entity2name_like(String n_entity2name_like) {
this.n_entity2name_like = n_entity2name_like;
if(!ObjectUtils.isEmpty(this.n_entity2name_like)){
this.getSearchCond().like("entity2name", n_entity2name_like);
}
}
private String n_fullname_eq;//[全名]
private String n_fullname_eq;//[联系人]
public void setN_fullname_eq(String n_fullname_eq) {
this.n_fullname_eq = n_fullname_eq;
if(!ObjectUtils.isEmpty(this.n_fullname_eq)){
this.getSearchCond().eq("fullname", n_fullname_eq);
this.getSearchCond().eq("entity2name", n_fullname_eq);
}
}
private String n_fullname_like;//[全名]
private String n_fullname_like;//[联系人]
public void setN_fullname_like(String n_fullname_like) {
this.n_fullname_like = n_fullname_like;
if(!ObjectUtils.isEmpty(this.n_fullname_like)){
this.getSearchCond().like("fullname", n_fullname_like);
this.getSearchCond().like("entity2name", n_fullname_like);
}
}
......
......@@ -40,47 +40,89 @@ public class ListLeadSearchContext extends QueryWrapperContext<ListLead> {
if(!ObjectUtils.isEmpty(this.n_relationshipstype_eq)){
this.getSearchCond().eq("relationshipstype", n_relationshipstype_eq);
}
}
private String n_entityid_eq;//[列表]
public void setN_entityid_eq(String n_entityid_eq) {
this.n_entityid_eq = n_entityid_eq;
if(!ObjectUtils.isEmpty(this.n_entityid_eq)){
this.getSearchCond().eq("entityid", n_entityid_eq);
}
}
private String n_listid_eq;//[列表]
public void setN_listid_eq(String n_listid_eq) {
this.n_listid_eq = n_listid_eq;
if(!ObjectUtils.isEmpty(this.n_listid_eq)){
this.getSearchCond().eq("listid", n_listid_eq);
this.getSearchCond().eq("entityid", n_listid_eq);
}
}
private String n_entityname_eq;//[营销列表]
public void setN_entityname_eq(String n_entityname_eq) {
this.n_entityname_eq = n_entityname_eq;
if(!ObjectUtils.isEmpty(this.n_entityname_eq)){
this.getSearchCond().eq("entityname", n_entityname_eq);
}
}
private String n_entityname_like;//[营销列表]
public void setN_entityname_like(String n_entityname_like) {
this.n_entityname_like = n_entityname_like;
if(!ObjectUtils.isEmpty(this.n_entityname_like)){
this.getSearchCond().like("entityname", n_entityname_like);
}
}
private String n_listname_eq;//[名称]
private String n_listname_eq;//[营销列表]
public void setN_listname_eq(String n_listname_eq) {
this.n_listname_eq = n_listname_eq;
if(!ObjectUtils.isEmpty(this.n_listname_eq)){
this.getSearchCond().eq("listname", n_listname_eq);
this.getSearchCond().eq("entityname", n_listname_eq);
}
}
private String n_listname_like;//[名称]
private String n_listname_like;//[营销列表]
public void setN_listname_like(String n_listname_like) {
this.n_listname_like = n_listname_like;
if(!ObjectUtils.isEmpty(this.n_listname_like)){
this.getSearchCond().like("listname", n_listname_like);
this.getSearchCond().like("entityname", n_listname_like);
}
}
private String n_entity2id_eq;//[潜在顾客]
public void setN_entity2id_eq(String n_entity2id_eq) {
this.n_entity2id_eq = n_entity2id_eq;
if(!ObjectUtils.isEmpty(this.n_entity2id_eq)){
this.getSearchCond().eq("entity2id", n_entity2id_eq);
}
}
private String n_leadid_eq;//[潜在顾客]
public void setN_leadid_eq(String n_leadid_eq) {
this.n_leadid_eq = n_leadid_eq;
if(!ObjectUtils.isEmpty(this.n_leadid_eq)){
this.getSearchCond().eq("leadid", n_leadid_eq);
this.getSearchCond().eq("entity2id", n_leadid_eq);
}
}
private String n_entity2name_eq;//[潜在顾客]
public void setN_entity2name_eq(String n_entity2name_eq) {
this.n_entity2name_eq = n_entity2name_eq;
if(!ObjectUtils.isEmpty(this.n_entity2name_eq)){
this.getSearchCond().eq("entity2name", n_entity2name_eq);
}
}
private String n_entity2name_like;//[潜在顾客]
public void setN_entity2name_like(String n_entity2name_like) {
this.n_entity2name_like = n_entity2name_like;
if(!ObjectUtils.isEmpty(this.n_entity2name_like)){
this.getSearchCond().like("entity2name", n_entity2name_like);
}
}
private String n_fullname_eq;//[姓名]
private String n_fullname_eq;//[潜在顾客]
public void setN_fullname_eq(String n_fullname_eq) {
this.n_fullname_eq = n_fullname_eq;
if(!ObjectUtils.isEmpty(this.n_fullname_eq)){
this.getSearchCond().eq("fullname", n_fullname_eq);
this.getSearchCond().eq("entity2name", n_fullname_eq);
}
}
private String n_fullname_like;//[姓名]
private String n_fullname_like;//[潜在顾客]
public void setN_fullname_like(String n_fullname_like) {
this.n_fullname_like = n_fullname_like;
if(!ObjectUtils.isEmpty(this.n_fullname_like)){
this.getSearchCond().like("fullname", n_fullname_like);
this.getSearchCond().like("entity2name", n_fullname_like);
}
}
......
......@@ -62,8 +62,8 @@ public interface CampaignCampaignMapper extends BaseMapper<CampaignCampaign>{
@Delete("${sql}")
boolean deleteBySQL(@Param("sql") String sql, @Param("et")Map param);
List<CampaignCampaign> selectByCampaign2id(@Param("campaignid") Serializable campaignid) ;
List<CampaignCampaign> selectByEntity2id(@Param("campaignid") Serializable campaignid) ;
List<CampaignCampaign> selectByCampaignid(@Param("campaignid") Serializable campaignid) ;
List<CampaignCampaign> selectByEntityid(@Param("campaignid") Serializable campaignid) ;
}
......@@ -62,8 +62,8 @@ public interface ListAccountMapper extends BaseMapper<ListAccount>{
@Delete("${sql}")
boolean deleteBySQL(@Param("sql") String sql, @Param("et")Map param);
List<ListAccount> selectByAccountid(@Param("accountid") Serializable accountid) ;
List<ListAccount> selectByEntity2id(@Param("accountid") Serializable accountid) ;
List<ListAccount> selectByListid(@Param("listid") Serializable listid) ;
List<ListAccount> selectByEntityid(@Param("listid") Serializable listid) ;
}
......@@ -62,8 +62,8 @@ public interface ListContactMapper extends BaseMapper<ListContact>{
@Delete("${sql}")
boolean deleteBySQL(@Param("sql") String sql, @Param("et")Map param);
List<ListContact> selectByContactid(@Param("contactid") Serializable contactid) ;
List<ListContact> selectByEntity2id(@Param("contactid") Serializable contactid) ;
List<ListContact> selectByListid(@Param("listid") Serializable listid) ;
List<ListContact> selectByEntityid(@Param("listid") Serializable listid) ;
}
......@@ -62,8 +62,8 @@ public interface ListLeadMapper extends BaseMapper<ListLead>{
@Delete("${sql}")
boolean deleteBySQL(@Param("sql") String sql, @Param("et")Map param);
List<ListLead> selectByLeadid(@Param("leadid") Serializable leadid) ;
List<ListLead> selectByEntity2id(@Param("leadid") Serializable leadid) ;
List<ListLead> selectByListid(@Param("listid") Serializable listid) ;
List<ListLead> selectByEntityid(@Param("listid") Serializable listid) ;
}
......@@ -37,10 +37,10 @@ public interface ICampaignCampaignService extends IService<CampaignCampaign>{
boolean remove(String key) ;
void removeBatch(Collection<String> idList) ;
Page<CampaignCampaign> searchDefault(CampaignCampaignSearchContext context) ;
List<CampaignCampaign> selectByCampaign2id(String campaignid) ;
void removeByCampaign2id(String campaignid) ;
List<CampaignCampaign> selectByCampaignid(String campaignid) ;
void removeByCampaignid(String campaignid) ;
List<CampaignCampaign> selectByEntity2id(String campaignid) ;
void removeByEntity2id(String campaignid) ;
List<CampaignCampaign> selectByEntityid(String campaignid) ;
void removeByEntityid(String campaignid) ;
/**
*自定义查询SQL
* @param sql select * from table where id =#{et.param}
......
......@@ -37,10 +37,10 @@ public interface IListAccountService extends IService<ListAccount>{
boolean create(ListAccount et) ;
void createBatch(List<ListAccount> list) ;
Page<ListAccount> searchDefault(ListAccountSearchContext context) ;
List<ListAccount> selectByAccountid(String accountid) ;
void removeByAccountid(String accountid) ;
List<ListAccount> selectByListid(String listid) ;
void removeByListid(String listid) ;
List<ListAccount> selectByEntity2id(String accountid) ;
void removeByEntity2id(String accountid) ;
List<ListAccount> selectByEntityid(String listid) ;
void removeByEntityid(String listid) ;
/**
*自定义查询SQL
* @param sql select * from table where id =#{et.param}
......
......@@ -37,10 +37,10 @@ public interface IListContactService extends IService<ListContact>{
boolean create(ListContact et) ;
void createBatch(List<ListContact> list) ;
Page<ListContact> searchDefault(ListContactSearchContext context) ;
List<ListContact> selectByContactid(String contactid) ;
void removeByContactid(String contactid) ;
List<ListContact> selectByListid(String listid) ;
void removeByListid(String listid) ;
List<ListContact> selectByEntity2id(String contactid) ;
void removeByEntity2id(String contactid) ;
List<ListContact> selectByEntityid(String listid) ;
void removeByEntityid(String listid) ;
/**
*自定义查询SQL
* @param sql select * from table where id =#{et.param}
......
......@@ -37,10 +37,10 @@ public interface IListLeadService extends IService<ListLead>{
ListLead get(String key) ;
ListLead getDraft(ListLead et) ;
Page<ListLead> searchDefault(ListLeadSearchContext context) ;
List<ListLead> selectByLeadid(String leadid) ;
void removeByLeadid(String leadid) ;
List<ListLead> selectByListid(String listid) ;
void removeByListid(String listid) ;
List<ListLead> selectByEntity2id(String leadid) ;
void removeByEntity2id(String leadid) ;
List<ListLead> selectByEntityid(String listid) ;
void removeByEntityid(String listid) ;
/**
*自定义查询SQL
* @param sql select * from table where id =#{et.param}
......
......@@ -152,23 +152,23 @@ public class CampaignCampaignServiceImpl extends ServiceImpl<CampaignCampaignMap
@Override
public List<CampaignCampaign> selectByCampaign2id(String campaignid) {
return baseMapper.selectByCampaign2id(campaignid);
public List<CampaignCampaign> selectByEntity2id(String campaignid) {
return baseMapper.selectByEntity2id(campaignid);
}
@Override
public void removeByCampaign2id(String campaignid) {
this.remove(new QueryWrapper<CampaignCampaign>().eq("campaign2id",campaignid));
public void removeByEntity2id(String campaignid) {
this.remove(new QueryWrapper<CampaignCampaign>().eq("entity2id",campaignid));
}
@Override
public List<CampaignCampaign> selectByCampaignid(String campaignid) {
return baseMapper.selectByCampaignid(campaignid);
public List<CampaignCampaign> selectByEntityid(String campaignid) {
return baseMapper.selectByEntityid(campaignid);
}
@Override
public void removeByCampaignid(String campaignid) {
this.remove(new QueryWrapper<CampaignCampaign>().eq("campaignid",campaignid));
public void removeByEntityid(String campaignid) {
this.remove(new QueryWrapper<CampaignCampaign>().eq("entityid",campaignid));
}
......@@ -189,24 +189,24 @@ public class CampaignCampaignServiceImpl extends ServiceImpl<CampaignCampaignMap
*/
private void fillParentData(CampaignCampaign et){
//实体关系[DER1N_CAMPAIGNCAMPAIGN_CAMPAIGN_CAMPAIGN2ID]
if(!ObjectUtils.isEmpty(et.getCampaign2id())){
if(!ObjectUtils.isEmpty(et.getEntity2id())){
cn.ibizlab.businesscentral.core.marketing.domain.Campaign campaign2=et.getCampaign2();
if(ObjectUtils.isEmpty(campaign2)){
cn.ibizlab.businesscentral.core.marketing.domain.Campaign majorEntity=campaignService.get(et.getCampaign2id());
cn.ibizlab.businesscentral.core.marketing.domain.Campaign majorEntity=campaignService.get(et.getEntity2id());
et.setCampaign2(majorEntity);
campaign2=majorEntity;
}
et.setCampaign2name(campaign2.getCampaignname());
et.setEntity2name(campaign2.getCampaignname());
}
//实体关系[DER1N_CAMPAIGNCAMPAIGN_CAMPAIGN_CAMPAIGNID]
if(!ObjectUtils.isEmpty(et.getCampaignid())){
if(!ObjectUtils.isEmpty(et.getEntityid())){
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());
cn.ibizlab.businesscentral.core.marketing.domain.Campaign majorEntity=campaignService.get(et.getEntityid());
et.setCampaign(majorEntity);
campaign=majorEntity;
}
et.setCampaignname(campaign.getCampaignname());
et.setEntityname(campaign.getCampaignname());
}
}
......
......@@ -155,23 +155,23 @@ public class ListAccountServiceImpl extends ServiceImpl<ListAccountMapper, ListA
@Override
public List<ListAccount> selectByAccountid(String accountid) {
return baseMapper.selectByAccountid(accountid);
public List<ListAccount> selectByEntity2id(String accountid) {
return baseMapper.selectByEntity2id(accountid);
}
@Override
public void removeByAccountid(String accountid) {
this.remove(new QueryWrapper<ListAccount>().eq("accountid",accountid));
public void removeByEntity2id(String accountid) {
this.remove(new QueryWrapper<ListAccount>().eq("entity2id",accountid));
}
@Override
public List<ListAccount> selectByListid(String listid) {
return baseMapper.selectByListid(listid);
public List<ListAccount> selectByEntityid(String listid) {
return baseMapper.selectByEntityid(listid);
}
@Override
public void removeByListid(String listid) {
this.remove(new QueryWrapper<ListAccount>().eq("listid",listid));
public void removeByEntityid(String listid) {
this.remove(new QueryWrapper<ListAccount>().eq("entityid",listid));
}
......@@ -192,24 +192,24 @@ public class ListAccountServiceImpl extends ServiceImpl<ListAccountMapper, ListA
*/
private void fillParentData(ListAccount et){
//实体关系[DER1N_LISTACCOUNT_ACCOUNT_ACCOUNTID]
if(!ObjectUtils.isEmpty(et.getAccountid())){
if(!ObjectUtils.isEmpty(et.getEntity2id())){
cn.ibizlab.businesscentral.core.base.domain.Account account=et.getAccount();
if(ObjectUtils.isEmpty(account)){
cn.ibizlab.businesscentral.core.base.domain.Account majorEntity=accountService.get(et.getAccountid());
cn.ibizlab.businesscentral.core.base.domain.Account majorEntity=accountService.get(et.getEntity2id());
et.setAccount(majorEntity);
account=majorEntity;
}
et.setAccountname(account.getAccountname());
et.setEntity2name(account.getAccountname());
}
//实体关系[DER1N_LISTACCOUNT_LIST_LISTID]
if(!ObjectUtils.isEmpty(et.getListid())){
if(!ObjectUtils.isEmpty(et.getEntityid())){
cn.ibizlab.businesscentral.core.marketing.domain.IBizList list=et.getList();
if(ObjectUtils.isEmpty(list)){
cn.ibizlab.businesscentral.core.marketing.domain.IBizList majorEntity=ibizlistService.get(et.getListid());
cn.ibizlab.businesscentral.core.marketing.domain.IBizList majorEntity=ibizlistService.get(et.getEntityid());
et.setList(majorEntity);
list=majorEntity;
}
et.setListname(list.getListname());
et.setEntityname(list.getListname());
}
}
......
......@@ -155,23 +155,23 @@ public class ListContactServiceImpl extends ServiceImpl<ListContactMapper, ListC
@Override
public List<ListContact> selectByContactid(String contactid) {
return baseMapper.selectByContactid(contactid);
public List<ListContact> selectByEntity2id(String contactid) {
return baseMapper.selectByEntity2id(contactid);
}
@Override
public void removeByContactid(String contactid) {
this.remove(new QueryWrapper<ListContact>().eq("contactid",contactid));
public void removeByEntity2id(String contactid) {
this.remove(new QueryWrapper<ListContact>().eq("entity2id",contactid));
}
@Override
public List<ListContact> selectByListid(String listid) {
return baseMapper.selectByListid(listid);
public List<ListContact> selectByEntityid(String listid) {
return baseMapper.selectByEntityid(listid);
}
@Override
public void removeByListid(String listid) {
this.remove(new QueryWrapper<ListContact>().eq("listid",listid));
public void removeByEntityid(String listid) {
this.remove(new QueryWrapper<ListContact>().eq("entityid",listid));
}
......@@ -192,24 +192,24 @@ public class ListContactServiceImpl extends ServiceImpl<ListContactMapper, ListC
*/
private void fillParentData(ListContact et){
//实体关系[DER1N_LISTCONTACT_CONTACT_CONTACTID]
if(!ObjectUtils.isEmpty(et.getContactid())){
if(!ObjectUtils.isEmpty(et.getEntity2id())){
cn.ibizlab.businesscentral.core.base.domain.Contact contact=et.getContact();
if(ObjectUtils.isEmpty(contact)){
cn.ibizlab.businesscentral.core.base.domain.Contact majorEntity=contactService.get(et.getContactid());
cn.ibizlab.businesscentral.core.base.domain.Contact majorEntity=contactService.get(et.getEntity2id());
et.setContact(majorEntity);
contact=majorEntity;
}
et.setFullname(contact.getFullname());
et.setEntity2name(contact.getFullname());
}
//实体关系[DER1N_LISTCONTACT_LIST_LISTID]
if(!ObjectUtils.isEmpty(et.getListid())){
if(!ObjectUtils.isEmpty(et.getEntityid())){
cn.ibizlab.businesscentral.core.marketing.domain.IBizList list=et.getList();
if(ObjectUtils.isEmpty(list)){
cn.ibizlab.businesscentral.core.marketing.domain.IBizList majorEntity=ibizlistService.get(et.getListid());
cn.ibizlab.businesscentral.core.marketing.domain.IBizList majorEntity=ibizlistService.get(et.getEntityid());
et.setList(majorEntity);
list=majorEntity;
}
et.setListname(list.getListname());
et.setEntityname(list.getListname());
}
}
......
......@@ -155,23 +155,23 @@ public class ListLeadServiceImpl extends ServiceImpl<ListLeadMapper, ListLead> i
@Override
public List<ListLead> selectByLeadid(String leadid) {
return baseMapper.selectByLeadid(leadid);
public List<ListLead> selectByEntity2id(String leadid) {
return baseMapper.selectByEntity2id(leadid);
}
@Override
public void removeByLeadid(String leadid) {
this.remove(new QueryWrapper<ListLead>().eq("leadid",leadid));
public void removeByEntity2id(String leadid) {
this.remove(new QueryWrapper<ListLead>().eq("entity2id",leadid));
}
@Override
public List<ListLead> selectByListid(String listid) {
return baseMapper.selectByListid(listid);
public List<ListLead> selectByEntityid(String listid) {
return baseMapper.selectByEntityid(listid);
}
@Override
public void removeByListid(String listid) {
this.remove(new QueryWrapper<ListLead>().eq("listid",listid));
public void removeByEntityid(String listid) {
this.remove(new QueryWrapper<ListLead>().eq("entityid",listid));
}
......@@ -192,24 +192,24 @@ public class ListLeadServiceImpl extends ServiceImpl<ListLeadMapper, ListLead> i
*/
private void fillParentData(ListLead et){
//实体关系[DER1N_LISTLEAD_LEAD_LEADID]
if(!ObjectUtils.isEmpty(et.getLeadid())){
if(!ObjectUtils.isEmpty(et.getEntity2id())){
cn.ibizlab.businesscentral.core.sales.domain.Lead lead=et.getLead();
if(ObjectUtils.isEmpty(lead)){
cn.ibizlab.businesscentral.core.sales.domain.Lead majorEntity=leadService.get(et.getLeadid());
cn.ibizlab.businesscentral.core.sales.domain.Lead majorEntity=leadService.get(et.getEntity2id());
et.setLead(majorEntity);
lead=majorEntity;
}
et.setFullname(lead.getFullname());
et.setEntity2name(lead.getFullname());
}
//实体关系[DER1N_LISTLEAD_LIST_LISTID]
if(!ObjectUtils.isEmpty(et.getListid())){
if(!ObjectUtils.isEmpty(et.getEntityid())){
cn.ibizlab.businesscentral.core.marketing.domain.IBizList list=et.getList();
if(ObjectUtils.isEmpty(list)){
cn.ibizlab.businesscentral.core.marketing.domain.IBizList majorEntity=ibizlistService.get(et.getListid());
cn.ibizlab.businesscentral.core.marketing.domain.IBizList majorEntity=ibizlistService.get(et.getEntityid());
et.setList(majorEntity);
list=majorEntity;
}
et.setListname(list.getListname());
et.setEntityname(list.getListname());
}
}
......
......@@ -2818,7 +2818,7 @@
<!--输出实体[CAMPAIGNCAMPAIGN]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-campaigncampaign-23-38">
<changeSet author="a_LAB01_e85d8801c" id="tab-campaigncampaign-24-38">
<createTable tableName="RELATIONSHIPS">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -2830,13 +2830,13 @@
</column>
<column name="RELATIONSHIPSTYPE" remarks="" type="VARCHAR(60)">
</column>
<column name="CAMPAIGNID" remarks="" type="VARCHAR(60)">
<column name="ENTITYID" remarks="" type="VARCHAR(60)">
</column>
<column name="CAMPAIGNNAME" remarks="" type="VARCHAR(128)">
<column name="ENTITYNAME" remarks="" type="VARCHAR(128)">
</column>
<column name="CAMPAIGN2ID" remarks="" type="VARCHAR(60)">
<column name="ENTITY2ID" remarks="" type="VARCHAR(60)">
</column>
<column name="CAMPAIGN2NAME" remarks="" type="VARCHAR(128)">
<column name="ENTITY2NAME" remarks="" type="VARCHAR(128)">
</column>
<column name="RELATIONSHIPSID" remarks="" type="VARCHAR(60)">
<constraints primaryKey="true" primaryKeyName="PK_CAMPAIGNCAMPAIGN_RELATIONSH"/>
......
......@@ -11,29 +11,29 @@
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="CampaignCampaignResultMap" type="cn.ibizlab.businesscentral.core.marketing.domain.CampaignCampaign" autoMapping="true">
<id property="relationshipsid" column="relationshipsid" /><!--主键字段映射-->
<result property="campaignid" column="campaignid" />
<result property="campaign2id" column="campaign2id" />
<result property="entityid" column="entityid" />
<result property="entity2id" column="entity2id" />
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="campaign2" javaType="cn.ibizlab.businesscentral.core.marketing.domain.Campaign" column="campaign2id" select="cn.ibizlab.businesscentral.core.marketing.mapper.CampaignMapper.selectById" fetchType="lazy"></association>
<association property="campaign2" javaType="cn.ibizlab.businesscentral.core.marketing.domain.Campaign" column="entity2id" select="cn.ibizlab.businesscentral.core.marketing.mapper.CampaignMapper.selectById" fetchType="lazy"></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="campaign" javaType="cn.ibizlab.businesscentral.core.marketing.domain.Campaign" column="campaignid" select="cn.ibizlab.businesscentral.core.marketing.mapper.CampaignMapper.selectById" fetchType="lazy"></association>
<association property="campaign" javaType="cn.ibizlab.businesscentral.core.marketing.domain.Campaign" column="entityid" select="cn.ibizlab.businesscentral.core.marketing.mapper.CampaignMapper.selectById" fetchType="lazy"></association>
</resultMap>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_CAMPAIGNCAMPAIGN_CAMPAIGN_CAMPAIGN2ID] -->
<select id="selectByCampaign2id" resultMap="CampaignCampaignResultMap">
<select id="selectByEntity2id" resultMap="CampaignCampaignResultMap">
select t1.* from (
<include refid="Default" />
) t1
where campaign2id=#{campaignid}
where entity2id=#{campaignid}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_CAMPAIGNCAMPAIGN_CAMPAIGN_CAMPAIGNID] -->
<select id="selectByCampaignid" resultMap="CampaignCampaignResultMap">
<select id="selectByEntityid" resultMap="CampaignCampaignResultMap">
select t1.* from (
<include refid="Default" />
) t1
where campaignid=#{campaignid}
where entityid=#{campaignid}
</select>
<!--数据集合[Default]-->
......
......@@ -5,35 +5,35 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="ListAccountResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`ENTITY2ID` AS `ACCOUNTID`, t1.`ENTITY2NAME` AS `ACCOUNTNAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENTITYID` AS `LISTID`, t1.`ENTITYNAME` AS `LISTNAME`, t1.`RELATIONSHIPSID`, t1.`RELATIONSHIPSNAME`, t1.`RELATIONSHIPSTYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `RELATIONSHIPS` t1 ) t1 where relationshipsid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENTITY2ID`, t1.`ENTITY2NAME`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`RELATIONSHIPSID`, t1.`RELATIONSHIPSNAME`, t1.`RELATIONSHIPSTYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `RELATIONSHIPS` t1 ) t1 where relationshipsid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="ListAccountResultMap" type="cn.ibizlab.businesscentral.core.marketing.domain.ListAccount" autoMapping="true">
<id property="relationshipsid" column="relationshipsid" /><!--主键字段映射-->
<result property="listid" column="listid" />
<result property="accountid" column="accountid" />
<result property="entityid" column="entityid" />
<result property="entity2id" column="entity2id" />
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="account" javaType="cn.ibizlab.businesscentral.core.base.domain.Account" column="accountid" select="cn.ibizlab.businesscentral.core.base.mapper.AccountMapper.selectById" fetchType="lazy"></association>
<association property="account" javaType="cn.ibizlab.businesscentral.core.base.domain.Account" column="entity2id" select="cn.ibizlab.businesscentral.core.base.mapper.AccountMapper.selectById" fetchType="lazy"></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="list" javaType="cn.ibizlab.businesscentral.core.marketing.domain.IBizList" column="listid" select="cn.ibizlab.businesscentral.core.marketing.mapper.IBizListMapper.selectById" fetchType="lazy"></association>
<association property="list" javaType="cn.ibizlab.businesscentral.core.marketing.domain.IBizList" column="entityid" select="cn.ibizlab.businesscentral.core.marketing.mapper.IBizListMapper.selectById" fetchType="lazy"></association>
</resultMap>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_LISTACCOUNT_ACCOUNT_ACCOUNTID] -->
<select id="selectByAccountid" resultMap="ListAccountResultMap">
<select id="selectByEntity2id" resultMap="ListAccountResultMap">
select t1.* from (
<include refid="Default" />
) t1
where accountid=#{accountid}
where entity2id=#{accountid}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_LISTACCOUNT_LIST_LISTID] -->
<select id="selectByListid" resultMap="ListAccountResultMap">
<select id="selectByEntityid" resultMap="ListAccountResultMap">
select t1.* from (
<include refid="Default" />
) t1
where listid=#{listid}
where entityid=#{listid}
</select>
<!--数据集合[Default]-->
......@@ -47,12 +47,12 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`ENTITY2ID` AS `ACCOUNTID`, t1.`ENTITY2NAME` AS `ACCOUNTNAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENTITYID` AS `LISTID`, t1.`ENTITYNAME` AS `LISTNAME`, t1.`RELATIONSHIPSID`, t1.`RELATIONSHIPSNAME`, t1.`RELATIONSHIPSTYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `RELATIONSHIPS` t1
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENTITY2ID`, t1.`ENTITY2NAME`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`RELATIONSHIPSID`, t1.`RELATIONSHIPSNAME`, t1.`RELATIONSHIPSTYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `RELATIONSHIPS` t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`ENTITY2ID` AS `ACCOUNTID`, t1.`ENTITY2NAME` AS `ACCOUNTNAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENTITYID` AS `LISTID`, t1.`ENTITYNAME` AS `LISTNAME`, t1.`RELATIONSHIPSID`, t1.`RELATIONSHIPSNAME`, t1.`RELATIONSHIPSTYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `RELATIONSHIPS` t1
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENTITY2ID`, t1.`ENTITY2NAME`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`RELATIONSHIPSID`, t1.`RELATIONSHIPSNAME`, t1.`RELATIONSHIPSTYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `RELATIONSHIPS` t1
]]>
</sql>
</mapper>
......
......@@ -5,35 +5,35 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="ListContactResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`ENTITY2ID` AS `CONTACTID`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENTITY2NAME` AS `FULLNAME`, t1.`ENTITYID` AS `LISTID`, t1.`ENTITYNAME` AS `LISTNAME`, t1.`RELATIONSHIPSID`, t1.`RELATIONSHIPSNAME`, t1.`RELATIONSHIPSTYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `RELATIONSHIPS` t1 ) t1 where relationshipsid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENTITY2ID`, t1.`ENTITY2NAME`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`RELATIONSHIPSID`, t1.`RELATIONSHIPSNAME`, t1.`RELATIONSHIPSTYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `RELATIONSHIPS` t1 ) t1 where relationshipsid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="ListContactResultMap" type="cn.ibizlab.businesscentral.core.marketing.domain.ListContact" autoMapping="true">
<id property="relationshipsid" column="relationshipsid" /><!--主键字段映射-->
<result property="listid" column="listid" />
<result property="contactid" column="contactid" />
<result property="entityid" column="entityid" />
<result property="entity2id" column="entity2id" />
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="contact" javaType="cn.ibizlab.businesscentral.core.base.domain.Contact" column="contactid" select="cn.ibizlab.businesscentral.core.base.mapper.ContactMapper.selectById" fetchType="lazy"></association>
<association property="contact" javaType="cn.ibizlab.businesscentral.core.base.domain.Contact" column="entity2id" select="cn.ibizlab.businesscentral.core.base.mapper.ContactMapper.selectById" fetchType="lazy"></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="list" javaType="cn.ibizlab.businesscentral.core.marketing.domain.IBizList" column="listid" select="cn.ibizlab.businesscentral.core.marketing.mapper.IBizListMapper.selectById" fetchType="lazy"></association>
<association property="list" javaType="cn.ibizlab.businesscentral.core.marketing.domain.IBizList" column="entityid" select="cn.ibizlab.businesscentral.core.marketing.mapper.IBizListMapper.selectById" fetchType="lazy"></association>
</resultMap>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_LISTCONTACT_CONTACT_CONTACTID] -->
<select id="selectByContactid" resultMap="ListContactResultMap">
<select id="selectByEntity2id" resultMap="ListContactResultMap">
select t1.* from (
<include refid="Default" />
) t1
where contactid=#{contactid}
where entity2id=#{contactid}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_LISTCONTACT_LIST_LISTID] -->
<select id="selectByListid" resultMap="ListContactResultMap">
<select id="selectByEntityid" resultMap="ListContactResultMap">
select t1.* from (
<include refid="Default" />
) t1
where listid=#{listid}
where entityid=#{listid}
</select>
<!--数据集合[Default]-->
......@@ -47,13 +47,13 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`ENTITY2ID` AS `CONTACTID`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENTITY2NAME` AS `FULLNAME`, t1.`ENTITYID` AS `LISTID`, t1.`ENTITYNAME` AS `LISTNAME`, t1.`RELATIONSHIPSID`, t1.`RELATIONSHIPSNAME`, t1.`RELATIONSHIPSTYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `RELATIONSHIPS` t1
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENTITY2ID`, t1.`ENTITY2NAME`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`RELATIONSHIPSID`, t1.`RELATIONSHIPSNAME`, t1.`RELATIONSHIPSTYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `RELATIONSHIPS` t1
WHERE ( t1.`RELATIONSHIPSTYPE` = 'LISTCONTACT' )
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`ENTITY2ID` AS `CONTACTID`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENTITY2NAME` AS `FULLNAME`, t1.`ENTITYID` AS `LISTID`, t1.`ENTITYNAME` AS `LISTNAME`, t1.`RELATIONSHIPSID`, t1.`RELATIONSHIPSNAME`, t1.`RELATIONSHIPSTYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `RELATIONSHIPS` t1
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENTITY2ID`, t1.`ENTITY2NAME`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`RELATIONSHIPSID`, t1.`RELATIONSHIPSNAME`, t1.`RELATIONSHIPSTYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `RELATIONSHIPS` t1
WHERE ( t1.`RELATIONSHIPSTYPE` = 'LISTCONTACT' )
]]>
</sql>
......
......@@ -5,35 +5,35 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="ListLeadResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENTITY2NAME` AS `FULLNAME`, t1.`ENTITY2ID` AS `LEADID`, t1.`ENTITYID` AS `LISTID`, t1.`ENTITYNAME` AS `LISTNAME`, t1.`RELATIONSHIPSID`, t1.`RELATIONSHIPSNAME`, t1.`RELATIONSHIPSTYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `RELATIONSHIPS` t1 ) t1 where relationshipsid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENTITY2ID`, t1.`ENTITY2NAME`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`RELATIONSHIPSID`, t1.`RELATIONSHIPSNAME`, t1.`RELATIONSHIPSTYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `RELATIONSHIPS` t1 ) t1 where relationshipsid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="ListLeadResultMap" type="cn.ibizlab.businesscentral.core.marketing.domain.ListLead" autoMapping="true">
<id property="relationshipsid" column="relationshipsid" /><!--主键字段映射-->
<result property="listid" column="listid" />
<result property="leadid" column="leadid" />
<result property="entityid" column="entityid" />
<result property="entity2id" column="entity2id" />
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="lead" javaType="cn.ibizlab.businesscentral.core.sales.domain.Lead" column="leadid" select="cn.ibizlab.businesscentral.core.sales.mapper.LeadMapper.selectById" fetchType="lazy"></association>
<association property="lead" javaType="cn.ibizlab.businesscentral.core.sales.domain.Lead" column="entity2id" select="cn.ibizlab.businesscentral.core.sales.mapper.LeadMapper.selectById" fetchType="lazy"></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="list" javaType="cn.ibizlab.businesscentral.core.marketing.domain.IBizList" column="listid" select="cn.ibizlab.businesscentral.core.marketing.mapper.IBizListMapper.selectById" fetchType="lazy"></association>
<association property="list" javaType="cn.ibizlab.businesscentral.core.marketing.domain.IBizList" column="entityid" select="cn.ibizlab.businesscentral.core.marketing.mapper.IBizListMapper.selectById" fetchType="lazy"></association>
</resultMap>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_LISTLEAD_LEAD_LEADID] -->
<select id="selectByLeadid" resultMap="ListLeadResultMap">
<select id="selectByEntity2id" resultMap="ListLeadResultMap">
select t1.* from (
<include refid="Default" />
) t1
where leadid=#{leadid}
where entity2id=#{leadid}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_LISTLEAD_LIST_LISTID] -->
<select id="selectByListid" resultMap="ListLeadResultMap">
<select id="selectByEntityid" resultMap="ListLeadResultMap">
select t1.* from (
<include refid="Default" />
) t1
where listid=#{listid}
where entityid=#{listid}
</select>
<!--数据集合[Default]-->
......@@ -47,13 +47,13 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENTITY2NAME` AS `FULLNAME`, t1.`ENTITY2ID` AS `LEADID`, t1.`ENTITYID` AS `LISTID`, t1.`ENTITYNAME` AS `LISTNAME`, t1.`RELATIONSHIPSID`, t1.`RELATIONSHIPSNAME`, t1.`RELATIONSHIPSTYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `RELATIONSHIPS` t1
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENTITY2ID`, t1.`ENTITY2NAME`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`RELATIONSHIPSID`, t1.`RELATIONSHIPSNAME`, t1.`RELATIONSHIPSTYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `RELATIONSHIPS` t1
WHERE ( t1.`RELATIONSHIPSTYPE` = 'ENTITY' )
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENTITY2NAME` AS `FULLNAME`, t1.`ENTITY2ID` AS `LEADID`, t1.`ENTITYID` AS `LISTID`, t1.`ENTITYNAME` AS `LISTNAME`, t1.`RELATIONSHIPSID`, t1.`RELATIONSHIPSNAME`, t1.`RELATIONSHIPSTYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `RELATIONSHIPS` t1
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENTITY2ID`, t1.`ENTITY2NAME`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`RELATIONSHIPSID`, t1.`RELATIONSHIPSNAME`, t1.`RELATIONSHIPSTYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `RELATIONSHIPS` t1
WHERE ( t1.`RELATIONSHIPSTYPE` = 'LISTLEAD' )
]]>
</sql>
......
......@@ -66,36 +66,36 @@ public class CampaignCampaignDTO extends DTOBase implements Serializable {
private String relationshipstype;
/**
* 属性 [CAMPAIGNID]
* 属性 [ENTITYID]
*
*/
@JSONField(name = "campaignid")
@JsonProperty("campaignid")
private String campaignid;
@JSONField(name = "entityid")
@JsonProperty("entityid")
private String entityid;
/**
* 属性 [CAMPAIGNNAME]
* 属性 [ENTITYNAME]
*
*/
@JSONField(name = "campaignname")
@JsonProperty("campaignname")
private String campaignname;
@JSONField(name = "entityname")
@JsonProperty("entityname")
private String entityname;
/**
* 属性 [CAMPAIGN2ID]
* 属性 [ENTITY2ID]
*
*/
@JSONField(name = "campaign2id")
@JsonProperty("campaign2id")
private String campaign2id;
@JSONField(name = "entity2id")
@JsonProperty("entity2id")
private String entity2id;
/**
* 属性 [CAMPAIGN2NAME]
* 属性 [ENTITY2NAME]
*
*/
@JSONField(name = "campaign2name")
@JsonProperty("campaign2name")
private String campaign2name;
@JSONField(name = "entity2name")
@JsonProperty("entity2name")
private String entity2name;
/**
* 属性 [RELATIONSHIPSID]
......@@ -123,35 +123,35 @@ public class CampaignCampaignDTO extends DTOBase implements Serializable {
}
/**
* 设置 [CAMPAIGNID]
* 设置 [ENTITYID]
*/
public void setCampaignid(String campaignid){
this.campaignid = campaignid ;
this.modify("campaignid",campaignid);
public void setEntityid(String entityid){
this.entityid = entityid ;
this.modify("entityid",entityid);
}
/**
* 设置 [CAMPAIGNNAME]
* 设置 [ENTITYNAME]
*/
public void setCampaignname(String campaignname){
this.campaignname = campaignname ;
this.modify("campaignname",campaignname);
public void setEntityname(String entityname){
this.entityname = entityname ;
this.modify("entityname",entityname);
}
/**
* 设置 [CAMPAIGN2ID]
* 设置 [ENTITY2ID]
*/
public void setCampaign2id(String campaign2id){
this.campaign2id = campaign2id ;
this.modify("campaign2id",campaign2id);
public void setEntity2id(String entity2id){
this.entity2id = entity2id ;
this.modify("entity2id",entity2id);
}
/**
* 设置 [CAMPAIGN2NAME]
* 设置 [ENTITY2NAME]
*/
public void setCampaign2name(String campaign2name){
this.campaign2name = campaign2name ;
this.modify("campaign2name",campaign2name);
public void setEntity2name(String entity2name){
this.entity2name = entity2name ;
this.modify("entity2name",entity2name);
}
/**
......
......@@ -82,36 +82,36 @@ public class ListAccountDTO extends DTOBase implements Serializable {
private String updateman;
/**
* 属性 [LISTID]
* 属性 [ENTITYID]
*
*/
@JSONField(name = "listid")
@JsonProperty("listid")
private String listid;
@JSONField(name = "entityid")
@JsonProperty("entityid")
private String entityid;
/**
* 属性 [ACCOUNTID]
* 属性 [ENTITY2ID]
*
*/
@JSONField(name = "accountid")
@JsonProperty("accountid")
private String accountid;
@JSONField(name = "entity2id")
@JsonProperty("entity2id")
private String entity2id;
/**
* 属性 [LISTNAME]
* 属性 [ENTITYNAME]
*
*/
@JSONField(name = "listname")
@JsonProperty("listname")
private String listname;
@JSONField(name = "entityname")
@JsonProperty("entityname")
private String entityname;
/**
* 属性 [ACCOUNTNAME]
* 属性 [ENTITY2NAME]
*
*/
@JSONField(name = "accountname")
@JsonProperty("accountname")
private String accountname;
@JSONField(name = "entity2name")
@JsonProperty("entity2name")
private String entity2name;
/**
......@@ -131,35 +131,35 @@ public class ListAccountDTO extends DTOBase implements Serializable {
}
/**
* 设置 [LISTID]
* 设置 [ENTITYID]
*/
public void setListid(String listid){
this.listid = listid ;
this.modify("listid",listid);
public void setEntityid(String entityid){
this.entityid = entityid ;
this.modify("entityid",entityid);
}
/**
* 设置 [ACCOUNTID]
* 设置 [ENTITY2ID]
*/
public void setAccountid(String accountid){
this.accountid = accountid ;
this.modify("accountid",accountid);
public void setEntity2id(String entity2id){
this.entity2id = entity2id ;
this.modify("entity2id",entity2id);
}
/**
* 设置 [LISTNAME]
* 设置 [ENTITYNAME]
*/
public void setListname(String listname){
this.listname = listname ;
this.modify("listname",listname);
public void setEntityname(String entityname){
this.entityname = entityname ;
this.modify("entityname",entityname);
}
/**
* 设置 [ACCOUNTNAME]
* 设置 [ENTITY2NAME]
*/
public void setAccountname(String accountname){
this.accountname = accountname ;
this.modify("accountname",accountname);
public void setEntity2name(String entity2name){
this.entity2name = entity2name ;
this.modify("entity2name",entity2name);
}
......
......@@ -82,36 +82,36 @@ public class ListContactDTO extends DTOBase implements Serializable {
private String relationshipsid;
/**
* 属性 [LISTID]
* 属性 [ENTITYID]
*
*/
@JSONField(name = "listid")
@JsonProperty("listid")
private String listid;
@JSONField(name = "entityid")
@JsonProperty("entityid")
private String entityid;
/**
* 属性 [LISTNAME]
* 属性 [ENTITYNAME]
*
*/
@JSONField(name = "listname")
@JsonProperty("listname")
private String listname;
@JSONField(name = "entityname")
@JsonProperty("entityname")
private String entityname;
/**
* 属性 [CONTACTID]
* 属性 [ENTITY2ID]
*
*/
@JSONField(name = "contactid")
@JsonProperty("contactid")
private String contactid;
@JSONField(name = "entity2id")
@JsonProperty("entity2id")
private String entity2id;
/**
* 属性 [FULLNAME]
* 属性 [ENTITY2NAME]
*
*/
@JSONField(name = "fullname")
@JsonProperty("fullname")
private String fullname;
@JSONField(name = "entity2name")
@JsonProperty("entity2name")
private String entity2name;
/**
......@@ -131,35 +131,35 @@ public class ListContactDTO extends DTOBase implements Serializable {
}
/**
* 设置 [LISTID]
* 设置 [ENTITYID]
*/
public void setListid(String listid){
this.listid = listid ;
this.modify("listid",listid);
public void setEntityid(String entityid){
this.entityid = entityid ;
this.modify("entityid",entityid);
}
/**
* 设置 [LISTNAME]
* 设置 [ENTITYNAME]
*/
public void setListname(String listname){
this.listname = listname ;
this.modify("listname",listname);
public void setEntityname(String entityname){
this.entityname = entityname ;
this.modify("entityname",entityname);
}
/**
* 设置 [CONTACTID]
* 设置 [ENTITY2ID]
*/
public void setContactid(String contactid){
this.contactid = contactid ;
this.modify("contactid",contactid);
public void setEntity2id(String entity2id){
this.entity2id = entity2id ;
this.modify("entity2id",entity2id);
}
/**
* 设置 [FULLNAME]
* 设置 [ENTITY2NAME]
*/
public void setFullname(String fullname){
this.fullname = fullname ;
this.modify("fullname",fullname);
public void setEntity2name(String entity2name){
this.entity2name = entity2name ;
this.modify("entity2name",entity2name);
}
......
......@@ -82,36 +82,36 @@ public class ListLeadDTO extends DTOBase implements Serializable {
private String updateman;
/**
* 属性 [LISTID]
* 属性 [ENTITYID]
*
*/
@JSONField(name = "listid")
@JsonProperty("listid")
private String listid;
@JSONField(name = "entityid")
@JsonProperty("entityid")
private String entityid;
/**
* 属性 [LISTNAME]
* 属性 [ENTITYNAME]
*
*/
@JSONField(name = "listname")
@JsonProperty("listname")
private String listname;
@JSONField(name = "entityname")
@JsonProperty("entityname")
private String entityname;
/**
* 属性 [LEADID]
* 属性 [ENTITY2ID]
*
*/
@JSONField(name = "leadid")
@JsonProperty("leadid")
private String leadid;
@JSONField(name = "entity2id")
@JsonProperty("entity2id")
private String entity2id;
/**
* 属性 [FULLNAME]
* 属性 [ENTITY2NAME]
*
*/
@JSONField(name = "fullname")
@JsonProperty("fullname")
private String fullname;
@JSONField(name = "entity2name")
@JsonProperty("entity2name")
private String entity2name;
/**
......@@ -131,35 +131,35 @@ public class ListLeadDTO extends DTOBase implements Serializable {
}
/**
* 设置 [LISTID]
* 设置 [ENTITYID]
*/
public void setListid(String listid){
this.listid = listid ;
this.modify("listid",listid);
public void setEntityid(String entityid){
this.entityid = entityid ;
this.modify("entityid",entityid);
}
/**
* 设置 [LISTNAME]
* 设置 [ENTITYNAME]
*/
public void setListname(String listname){
this.listname = listname ;
this.modify("listname",listname);
public void setEntityname(String entityname){
this.entityname = entityname ;
this.modify("entityname",entityname);
}
/**
* 设置 [LEADID]
* 设置 [ENTITY2ID]
*/
public void setLeadid(String leadid){
this.leadid = leadid ;
this.modify("leadid",leadid);
public void setEntity2id(String entity2id){
this.entity2id = entity2id ;
this.modify("entity2id",entity2id);
}
/**
* 设置 [FULLNAME]
* 设置 [ENTITY2NAME]
*/
public void setFullname(String fullname){
this.fullname = fullname ;
this.modify("fullname",fullname);
public void setEntity2name(String entity2name){
this.entity2name = entity2name ;
this.modify("entity2name",entity2name);
}
......
......@@ -162,7 +162,7 @@ public class CampaignCampaignResource {
@RequestMapping(method = RequestMethod.GET, value = "/campaigns/{campaign_id}/campaigncampaigns/getdraft")
public ResponseEntity<CampaignCampaignDTO> getDraftByCampaign(@PathVariable("campaign_id") String campaign_id) {
CampaignCampaign domain = new CampaignCampaign();
domain.setCampaign2id(campaign_id);
domain.setEntity2id(campaign_id);
return ResponseEntity.status(HttpStatus.OK).body(campaigncampaignMapping.toDto(campaigncampaignService.getDraft(domain)));
}
......@@ -181,7 +181,7 @@ public class CampaignCampaignResource {
@Transactional
public ResponseEntity<CampaignCampaignDTO> updateByCampaign(@PathVariable("campaign_id") String campaign_id, @PathVariable("campaigncampaign_id") String campaigncampaign_id, @RequestBody CampaignCampaignDTO campaigncampaigndto) {
CampaignCampaign domain = campaigncampaignMapping.toDomain(campaigncampaigndto);
domain.setCampaign2id(campaign_id);
domain.setEntity2id(campaign_id);
domain.setRelationshipsid(campaigncampaign_id);
campaigncampaignService.update(domain);
CampaignCampaignDTO dto = campaigncampaignMapping.toDto(domain);
......@@ -194,7 +194,7 @@ public class CampaignCampaignResource {
public ResponseEntity<Boolean> updateBatchByCampaign(@PathVariable("campaign_id") String campaign_id, @RequestBody List<CampaignCampaignDTO> campaigncampaigndtos) {
List<CampaignCampaign> domainlist=campaigncampaignMapping.toDomain(campaigncampaigndtos);
for(CampaignCampaign domain:domainlist){
domain.setCampaign2id(campaign_id);
domain.setEntity2id(campaign_id);
}
campaigncampaignService.updateBatch(domainlist);
return ResponseEntity.status(HttpStatus.OK).body(true);
......@@ -205,7 +205,7 @@ public class CampaignCampaignResource {
@RequestMapping(method = RequestMethod.POST, value = "/campaigns/{campaign_id}/campaigncampaigns/save")
public ResponseEntity<Boolean> saveByCampaign(@PathVariable("campaign_id") String campaign_id, @RequestBody CampaignCampaignDTO campaigncampaigndto) {
CampaignCampaign domain = campaigncampaignMapping.toDomain(campaigncampaigndto);
domain.setCampaign2id(campaign_id);
domain.setEntity2id(campaign_id);
return ResponseEntity.status(HttpStatus.OK).body(campaigncampaignService.save(domain));
}
......@@ -215,7 +215,7 @@ public class CampaignCampaignResource {
public ResponseEntity<Boolean> saveBatchByCampaign(@PathVariable("campaign_id") String campaign_id, @RequestBody List<CampaignCampaignDTO> campaigncampaigndtos) {
List<CampaignCampaign> domainlist=campaigncampaignMapping.toDomain(campaigncampaigndtos);
for(CampaignCampaign domain:domainlist){
domain.setCampaign2id(campaign_id);
domain.setEntity2id(campaign_id);
}
campaigncampaignService.saveBatch(domainlist);
return ResponseEntity.status(HttpStatus.OK).body(true);
......@@ -227,7 +227,7 @@ public class CampaignCampaignResource {
@Transactional
public ResponseEntity<CampaignCampaignDTO> createByCampaign(@PathVariable("campaign_id") String campaign_id, @RequestBody CampaignCampaignDTO campaigncampaigndto) {
CampaignCampaign domain = campaigncampaignMapping.toDomain(campaigncampaigndto);
domain.setCampaign2id(campaign_id);
domain.setEntity2id(campaign_id);
campaigncampaignService.create(domain);
CampaignCampaignDTO dto = campaigncampaignMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto);
......@@ -239,7 +239,7 @@ public class CampaignCampaignResource {
public ResponseEntity<Boolean> createBatchByCampaign(@PathVariable("campaign_id") String campaign_id, @RequestBody List<CampaignCampaignDTO> campaigncampaigndtos) {
List<CampaignCampaign> domainlist=campaigncampaignMapping.toDomain(campaigncampaigndtos);
for(CampaignCampaign domain:domainlist){
domain.setCampaign2id(campaign_id);
domain.setEntity2id(campaign_id);
}
campaigncampaignService.createBatch(domainlist);
return ResponseEntity.status(HttpStatus.OK).body(true);
......@@ -271,7 +271,7 @@ public class CampaignCampaignResource {
@ApiOperation(value = "根据市场活动获取DEFAULT", tags = {"市场活动-市场活动" } ,notes = "根据市场活动获取DEFAULT")
@RequestMapping(method= RequestMethod.GET , value="/campaigns/{campaign_id}/campaigncampaigns/fetchdefault")
public ResponseEntity<List<CampaignCampaignDTO>> fetchCampaignCampaignDefaultByCampaign(@PathVariable("campaign_id") String campaign_id,CampaignCampaignSearchContext context) {
context.setN_campaign2id_eq(campaign_id);
context.setN_entity2id_eq(campaign_id);
Page<CampaignCampaign> domains = campaigncampaignService.searchDefault(context) ;
List<CampaignCampaignDTO> list = campaigncampaignMapping.toDto(domains.getContent());
return ResponseEntity.status(HttpStatus.OK)
......@@ -285,7 +285,7 @@ public class CampaignCampaignResource {
@ApiOperation(value = "根据市场活动查询DEFAULT", tags = {"市场活动-市场活动" } ,notes = "根据市场活动查询DEFAULT")
@RequestMapping(method= RequestMethod.POST , value="/campaigns/{campaign_id}/campaigncampaigns/searchdefault")
public ResponseEntity<Page<CampaignCampaignDTO>> searchCampaignCampaignDefaultByCampaign(@PathVariable("campaign_id") String campaign_id, @RequestBody CampaignCampaignSearchContext context) {
context.setN_campaign2id_eq(campaign_id);
context.setN_entity2id_eq(campaign_id);
Page<CampaignCampaign> domains = campaigncampaignService.searchDefault(context) ;
return ResponseEntity.status(HttpStatus.OK)
.body(new PageImpl(campaigncampaignMapping.toDto(domains.getContent()), context.getPageable(), domains.getTotalElements()));
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册