Commit 03add52e by fudahua

Merge branch 'developer' into 'master'

Developer

See merge request haoban3.0/haoban-manage3.0!110
parents fa8604d7 09c93e5a
package com.gic.haoban.manage.api.dto;
import java.io.Serializable;
public class ExternalClerkRelatedShortInfoDTO implements Serializable {
private String externalUserId;
private String wxUserId;
private static final long serialVersionUID = 1L;
public String getExternalUserId() {
return externalUserId;
}
public void setExternalUserId(String externalUserId) {
this.externalUserId = externalUserId;
}
public String getWxUserId() {
return wxUserId;
}
public void setWxUserId(String wxUserId) {
this.wxUserId = wxUserId;
}
}
\ No newline at end of file
package com.gic.haoban.manage.api.dto;
import java.io.Serializable;
import java.util.Date;
/**
* Created By MBG-GUI-EXTENSION https://github.com/spawpaw/mybatis-generator-gui-extension
* Description:
* 离职成员的外部联系人列表
*
* @author fdh
*/
public class ExternalInfoDTO implements Serializable {
/**
*
*/
private String handoverExternalId;
/**
* 企业id
*/
private String wxEnterpriseId;
private String handoverStaffId;
private String handoverStaffName;
private String takeoverStaffId;
private String takeoverStaffName;
/**
* 外部联系人id
*/
private String externalUserId;
/**
* 外部联系人名称
*/
private String externalUserName;
private String relationId;
/**
* 是否是好办的好友
*/
private Integer haobanFriendFlag;
/**
* 头像
*/
private String externalHeadUrl;
/**
* 0删除 1正常 2已分配处理
*/
private Integer statusFlag;
/**
* 分配表的id
*/
private String handoverTransferId;
/**
* 接替客户的时间,如果是等待接替状态,则为未来的自动接替时间
*/
private Date takeoverTime;
/**
* 0- 1-接替完毕 2-等待接替 3-客户拒绝 4-接替成员客户达到上限
*/
private String transferStatus;
/**
* 分配时间
*/
private Date transferTime;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
*/
private static final long serialVersionUID = 1L;
public String getHandoverExternalId() {
return handoverExternalId;
}
public void setHandoverExternalId(String handoverExternalId) {
this.handoverExternalId = handoverExternalId;
}
public String getWxEnterpriseId() {
return wxEnterpriseId;
}
public void setWxEnterpriseId(String wxEnterpriseId) {
this.wxEnterpriseId = wxEnterpriseId;
}
public String getHandoverStaffId() {
return handoverStaffId;
}
public void setHandoverStaffId(String handoverStaffId) {
this.handoverStaffId = handoverStaffId;
}
public String getHandoverStaffName() {
return handoverStaffName;
}
public void setHandoverStaffName(String handoverStaffName) {
this.handoverStaffName = handoverStaffName;
}
public String getTakeoverStaffId() {
return takeoverStaffId;
}
public void setTakeoverStaffId(String takeoverStaffId) {
this.takeoverStaffId = takeoverStaffId;
}
public String getTakeoverStaffName() {
return takeoverStaffName;
}
public void setTakeoverStaffName(String takeoverStaffName) {
this.takeoverStaffName = takeoverStaffName;
}
public String getExternalUserId() {
return externalUserId;
}
public void setExternalUserId(String externalUserId) {
this.externalUserId = externalUserId;
}
public String getExternalUserName() {
return externalUserName;
}
public void setExternalUserName(String externalUserName) {
this.externalUserName = externalUserName;
}
public String getRelationId() {
return relationId;
}
public void setRelationId(String relationId) {
this.relationId = relationId;
}
public Integer getHaobanFriendFlag() {
return haobanFriendFlag;
}
public void setHaobanFriendFlag(Integer haobanFriendFlag) {
this.haobanFriendFlag = haobanFriendFlag;
}
public String getExternalHeadUrl() {
return externalHeadUrl;
}
public void setExternalHeadUrl(String externalHeadUrl) {
this.externalHeadUrl = externalHeadUrl;
}
public Integer getStatusFlag() {
return statusFlag;
}
public void setStatusFlag(Integer statusFlag) {
this.statusFlag = statusFlag;
}
public String getHandoverTransferId() {
return handoverTransferId;
}
public void setHandoverTransferId(String handoverTransferId) {
this.handoverTransferId = handoverTransferId;
}
public Date getTakeoverTime() {
return takeoverTime;
}
public void setTakeoverTime(Date takeoverTime) {
this.takeoverTime = takeoverTime;
}
public String getTransferStatus() {
return transferStatus;
}
public void setTransferStatus(String transferStatus) {
this.transferStatus = transferStatus;
}
public Date getTransferTime() {
return transferTime;
}
public void setTransferTime(Date transferTime) {
this.transferTime = transferTime;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public static long getSerialVersionUID() {
return serialVersionUID;
}
}
\ No newline at end of file
package com.gic.haoban.manage.api.dto;
import java.io.Serializable;
/**
* Created 2021/6/16.
*
* @author hua
*/
public class HandoverStaffFriendCountDTO implements Serializable {
private String staffId;
private Integer friendCount;
private Integer haobanFriendCount;
public Integer getHaobanFriendCount() {
return haobanFriendCount;
}
public void setHaobanFriendCount(Integer haobanFriendCount) {
this.haobanFriendCount = haobanFriendCount;
}
public String getStaffId() {
return staffId;
}
public void setStaffId(String staffId) {
this.staffId = staffId;
}
public Integer getFriendCount() {
return friendCount;
}
public void setFriendCount(Integer friendCount) {
this.friendCount = friendCount;
}
}
package com.gic.haoban.manage.api.dto;
import java.util.Date;
/**
* Created 2021/6/16.
*
* @author hua
*/
public class HandoverStaffInfoDTO extends StaffDTO {
private Integer friendCount;
private Integer haobanFriendCount;
private Date dimissionTime;
public Integer getFriendCount() {
return friendCount;
}
public void setFriendCount(Integer friendCount) {
this.friendCount = friendCount;
}
public Integer getHaobanFriendCount() {
return haobanFriendCount;
}
public void setHaobanFriendCount(Integer haobanFriendCount) {
this.haobanFriendCount = haobanFriendCount;
}
public Date getDimissionTime() {
return dimissionTime;
}
public void setDimissionTime(Date dimissionTime) {
this.dimissionTime = dimissionTime;
}
}
...@@ -71,6 +71,16 @@ public class MiniprogramSettingDTO implements Serializable { ...@@ -71,6 +71,16 @@ public class MiniprogramSettingDTO implements Serializable {
*/ */
private Date updateTime; private Date updateTime;
private Integer miniprogramType;
public Integer getMiniprogramType() {
return miniprogramType;
}
public void setMiniprogramType(Integer miniprogramType) {
this.miniprogramType = miniprogramType;
}
/** /**
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
package com.gic.haoban.manage.api.dto;
import java.io.Serializable;
/**
* Created By MBG-GUI-EXTENSION https://github.com/spawpaw/mybatis-generator-gui-extension
* Description:
* 企业微信标签
*
* @author fdh
*/
public class QywxTagCallbackDTO implements Serializable {
private String suiteId;
private String infoType;
private String authCorpId;
/**
* 根据类型 标签组或者标签id
*/
private String tagId;
private String changeType;
private String tagType;
/**
*/
private static final long serialVersionUID = 1L;
public String getSuiteId() {
return suiteId;
}
public void setSuiteId(String suiteId) {
this.suiteId = suiteId;
}
public String getInfoType() {
return infoType;
}
public void setInfoType(String infoType) {
this.infoType = infoType;
}
public String getAuthCorpId() {
return authCorpId;
}
public void setAuthCorpId(String authCorpId) {
this.authCorpId = authCorpId;
}
public String getTagId() {
return tagId;
}
public void setTagId(String tagId) {
this.tagId = tagId;
}
public String getChangeType() {
return changeType;
}
public void setChangeType(String changeType) {
this.changeType = changeType;
}
public String getTagType() {
return tagType;
}
public void setTagType(String tagType) {
this.tagType = tagType;
}
public static long getSerialVersionUID() {
return serialVersionUID;
}
}
\ No newline at end of file
package com.gic.haoban.manage.api.dto;
import java.io.Serializable;
import java.util.Date;
/**
* Created By MBG-GUI-EXTENSION https://github.com/spawpaw/mybatis-generator-gui-extension
* Description:
* 企业微信标签
*
* @author fdh
*/
public class QywxTagInfoDTO implements Serializable {
/**
*
*/
private String qywxTagId;
/**
* 企业微信id
*/
private String wxEnterpriseId;
/**
* 企业微信对应的标签组id
*/
private String qywxGroupKey;
/**
* 标签组名称
*/
private String qywxGroupName;
/**
* 排序
*/
private Long order;
/**
* 0删除 1正常
*/
private Integer statusFlag;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
* 标签id
*/
private String memberTagId;
/**
*/
private static final long serialVersionUID = 1L;
public String getMemberTagId() {
return memberTagId;
}
public void setMemberTagId(String memberTagId) {
this.memberTagId = memberTagId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag.qywx_tag_id
*
* @return the value of tab_haoban_qywx_tag.qywx_tag_id
*/
public String getQywxTagId() {
return qywxTagId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag.qywx_tag_id
*
* @param qywxTagId the value for tab_haoban_qywx_tag.qywx_tag_id
*/
public void setQywxTagId(String qywxTagId) {
this.qywxTagId = qywxTagId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag.wx_enterprise_id
*
* @return the value of tab_haoban_qywx_tag.wx_enterprise_id
*/
public String getWxEnterpriseId() {
return wxEnterpriseId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag.wx_enterprise_id
*
* @param wxEnterpriseId the value for tab_haoban_qywx_tag.wx_enterprise_id
*/
public void setWxEnterpriseId(String wxEnterpriseId) {
this.wxEnterpriseId = wxEnterpriseId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag.qywx_group_key
*
* @return the value of tab_haoban_qywx_tag.qywx_group_key
*/
public String getQywxGroupKey() {
return qywxGroupKey;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag.qywx_group_key
*
* @param qywxGroupKey the value for tab_haoban_qywx_tag.qywx_group_key
*/
public void setQywxGroupKey(String qywxGroupKey) {
this.qywxGroupKey = qywxGroupKey;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag.qywx_group_name
*
* @return the value of tab_haoban_qywx_tag.qywx_group_name
*/
public String getQywxGroupName() {
return qywxGroupName;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag.qywx_group_name
*
* @param qywxGroupName the value for tab_haoban_qywx_tag.qywx_group_name
*/
public void setQywxGroupName(String qywxGroupName) {
this.qywxGroupName = qywxGroupName;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag.order
*
* @return the value of tab_haoban_qywx_tag.order
*/
public Long getOrder() {
return order;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag.order
*
* @param order the value for tab_haoban_qywx_tag.order
*/
public void setOrder(Long order) {
this.order = order;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag.status_flag
*
* @return the value of tab_haoban_qywx_tag.status_flag
*/
public Integer getStatusFlag() {
return statusFlag;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag.status_flag
*
* @param statusFlag the value for tab_haoban_qywx_tag.status_flag
*/
public void setStatusFlag(Integer statusFlag) {
this.statusFlag = statusFlag;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag.create_time
*
* @return the value of tab_haoban_qywx_tag.create_time
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag.create_time
*
* @param createTime the value for tab_haoban_qywx_tag.create_time
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag.update_time
*
* @return the value of tab_haoban_qywx_tag.update_time
*/
public Date getUpdateTime() {
return updateTime;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag.update_time
*
* @param updateTime the value for tab_haoban_qywx_tag.update_time
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
\ No newline at end of file
package com.gic.haoban.manage.api.dto;
import java.io.Serializable;
import java.util.Date;
/**
* Created By MBG-GUI-EXTENSION https://github.com/spawpaw/mybatis-generator-gui-extension
* Description:
* 企业微信标签项
*
* @author fdh
*/
public class QywxTagItemDTO implements Serializable {
/**
*
*/
private String qywxTagItemId;
/**
*
*/
private String wxEnterpriseId;
/**
* 关联的企业微信标签id
*/
private String qywxTagId;
/**
* 企业微信标签组对应的id
*/
private String qywxGroupKey;
/**
* 企业微信标签项对应的id
*/
private String qywxTagKey;
/**
* 名称
*/
private String qywxTagName;
/**
* 排序
*/
private Long order;
/**
* 状态
*/
private Integer statusFlag;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
private String memberTagItemId;
/**
*/
private static final long serialVersionUID = 1L;
public String getMemberTagItemId() {
return memberTagItemId;
}
public void setMemberTagItemId(String memberTagItemId) {
this.memberTagItemId = memberTagItemId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_item.qywx_tag_item_id
*
* @return the value of tab_haoban_qywx_tag_item.qywx_tag_item_id
*/
public String getQywxTagItemId() {
return qywxTagItemId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_item.qywx_tag_item_id
*
* @param qywxTagItemId the value for tab_haoban_qywx_tag_item.qywx_tag_item_id
*/
public void setQywxTagItemId(String qywxTagItemId) {
this.qywxTagItemId = qywxTagItemId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_item.wx_enterprise_id
*
* @return the value of tab_haoban_qywx_tag_item.wx_enterprise_id
*/
public String getWxEnterpriseId() {
return wxEnterpriseId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_item.wx_enterprise_id
*
* @param wxEnterpriseId the value for tab_haoban_qywx_tag_item.wx_enterprise_id
*/
public void setWxEnterpriseId(String wxEnterpriseId) {
this.wxEnterpriseId = wxEnterpriseId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_item.qywx_tag_id
*
* @return the value of tab_haoban_qywx_tag_item.qywx_tag_id
*/
public String getQywxTagId() {
return qywxTagId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_item.qywx_tag_id
*
* @param qywxTagId the value for tab_haoban_qywx_tag_item.qywx_tag_id
*/
public void setQywxTagId(String qywxTagId) {
this.qywxTagId = qywxTagId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_item.qywx_group_key
*
* @return the value of tab_haoban_qywx_tag_item.qywx_group_key
*/
public String getQywxGroupKey() {
return qywxGroupKey;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_item.qywx_group_key
*
* @param qywxGroupKey the value for tab_haoban_qywx_tag_item.qywx_group_key
*/
public void setQywxGroupKey(String qywxGroupKey) {
this.qywxGroupKey = qywxGroupKey;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_item.qywx_tag_key
*
* @return the value of tab_haoban_qywx_tag_item.qywx_tag_key
*/
public String getQywxTagKey() {
return qywxTagKey;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_item.qywx_tag_key
*
* @param qywxTagKey the value for tab_haoban_qywx_tag_item.qywx_tag_key
*/
public void setQywxTagKey(String qywxTagKey) {
this.qywxTagKey = qywxTagKey;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_item.qywx_tag_name
*
* @return the value of tab_haoban_qywx_tag_item.qywx_tag_name
*/
public String getQywxTagName() {
return qywxTagName;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_item.qywx_tag_name
*
* @param qywxTagName the value for tab_haoban_qywx_tag_item.qywx_tag_name
*/
public void setQywxTagName(String qywxTagName) {
this.qywxTagName = qywxTagName;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_item.order
*
* @return the value of tab_haoban_qywx_tag_item.order
*/
public Long getOrder() {
return order;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_item.order
*
* @param order the value for tab_haoban_qywx_tag_item.order
*/
public void setOrder(Long order) {
this.order = order;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_item.status_flag
*
* @return the value of tab_haoban_qywx_tag_item.status_flag
*/
public Integer getStatusFlag() {
return statusFlag;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_item.status_flag
*
* @param statusFlag the value for tab_haoban_qywx_tag_item.status_flag
*/
public void setStatusFlag(Integer statusFlag) {
this.statusFlag = statusFlag;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_item.create_time
*
* @return the value of tab_haoban_qywx_tag_item.create_time
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_item.create_time
*
* @param createTime the value for tab_haoban_qywx_tag_item.create_time
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_item.update_time
*
* @return the value of tab_haoban_qywx_tag_item.update_time
*/
public Date getUpdateTime() {
return updateTime;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_item.update_time
*
* @param updateTime the value for tab_haoban_qywx_tag_item.update_time
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
\ No newline at end of file
package com.gic.haoban.manage.api.dto;
import java.io.Serializable;
import java.util.Date;
/**
* Created By MBG-GUI-EXTENSION https://github.com/spawpaw/mybatis-generator-gui-extension
* Description:
*
* @author fdh
*/
public class QywxTagRelationDTO implements Serializable {
/**
*
*/
private String qywxTagRelationId;
/**
*
*/
private String wxEnterpriseId;
/**
*
*/
private String enterpriseId;
/**
* 标签id
*/
private String memberTagId;
/**
* 导购标签项id
*/
private String tagItemId;
/**
* 0 标签 1标签项
*/
private Integer relationType;
/**
* 同步状态 0 不同步 1同步
*/
private Integer syncFlag;
/**
* 排序
*/
private Long order;
/**
* 企业微信标签id
*/
private String qywxTagId;
/**
* 企业微信标签项id
*/
private String qywxTagItemId;
/**
* 0删除 1正常
*/
private Integer statusFlag;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
*/
private static final long serialVersionUID = 1L;
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.qywx_tag_relation_id
*
* @return the value of tab_haoban_qywx_tag_relation.qywx_tag_relation_id
*/
public String getQywxTagRelationId() {
return qywxTagRelationId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.qywx_tag_relation_id
*
* @param qywxTagRelationId the value for tab_haoban_qywx_tag_relation.qywx_tag_relation_id
*/
public void setQywxTagRelationId(String qywxTagRelationId) {
this.qywxTagRelationId = qywxTagRelationId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.wx_enterprise_id
*
* @return the value of tab_haoban_qywx_tag_relation.wx_enterprise_id
*/
public String getWxEnterpriseId() {
return wxEnterpriseId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.wx_enterprise_id
*
* @param wxEnterpriseId the value for tab_haoban_qywx_tag_relation.wx_enterprise_id
*/
public void setWxEnterpriseId(String wxEnterpriseId) {
this.wxEnterpriseId = wxEnterpriseId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.enterprise_id
*
* @return the value of tab_haoban_qywx_tag_relation.enterprise_id
*/
public String getEnterpriseId() {
return enterpriseId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.enterprise_id
*
* @param enterpriseId the value for tab_haoban_qywx_tag_relation.enterprise_id
*/
public void setEnterpriseId(String enterpriseId) {
this.enterpriseId = enterpriseId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.member_tag_id
*
* @return the value of tab_haoban_qywx_tag_relation.member_tag_id
*/
public String getMemberTagId() {
return memberTagId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.member_tag_id
*
* @param memberTagId the value for tab_haoban_qywx_tag_relation.member_tag_id
*/
public void setMemberTagId(String memberTagId) {
this.memberTagId = memberTagId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.tag_item_id
*
* @return the value of tab_haoban_qywx_tag_relation.tag_item_id
*/
public String getTagItemId() {
return tagItemId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.tag_item_id
*
* @param tagItemId the value for tab_haoban_qywx_tag_relation.tag_item_id
*/
public void setTagItemId(String tagItemId) {
this.tagItemId = tagItemId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.relation_type
*
* @return the value of tab_haoban_qywx_tag_relation.relation_type
*/
public Integer getRelationType() {
return relationType;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.relation_type
*
* @param relationType the value for tab_haoban_qywx_tag_relation.relation_type
*/
public void setRelationType(Integer relationType) {
this.relationType = relationType;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.sync_flag
*
* @return the value of tab_haoban_qywx_tag_relation.sync_flag
*/
public Integer getSyncFlag() {
return syncFlag;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.sync_flag
*
* @param syncFlag the value for tab_haoban_qywx_tag_relation.sync_flag
*/
public void setSyncFlag(Integer syncFlag) {
this.syncFlag = syncFlag;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.order
*
* @return the value of tab_haoban_qywx_tag_relation.order
*/
public Long getOrder() {
return order;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.order
*
* @param order the value for tab_haoban_qywx_tag_relation.order
*/
public void setOrder(Long order) {
this.order = order;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.qywx_tag_id
*
* @return the value of tab_haoban_qywx_tag_relation.qywx_tag_id
*/
public String getQywxTagId() {
return qywxTagId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.qywx_tag_id
*
* @param qywxTagId the value for tab_haoban_qywx_tag_relation.qywx_tag_id
*/
public void setQywxTagId(String qywxTagId) {
this.qywxTagId = qywxTagId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.qywx_tag_item_id
*
* @return the value of tab_haoban_qywx_tag_relation.qywx_tag_item_id
*/
public String getQywxTagItemId() {
return qywxTagItemId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.qywx_tag_item_id
*
* @param qywxTagItemId the value for tab_haoban_qywx_tag_relation.qywx_tag_item_id
*/
public void setQywxTagItemId(String qywxTagItemId) {
this.qywxTagItemId = qywxTagItemId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.status_flag
*
* @return the value of tab_haoban_qywx_tag_relation.status_flag
*/
public Integer getStatusFlag() {
return statusFlag;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.status_flag
*
* @param statusFlag the value for tab_haoban_qywx_tag_relation.status_flag
*/
public void setStatusFlag(Integer statusFlag) {
this.statusFlag = statusFlag;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.create_time
*
* @return the value of tab_haoban_qywx_tag_relation.create_time
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.create_time
*
* @param createTime the value for tab_haoban_qywx_tag_relation.create_time
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.update_time
*
* @return the value of tab_haoban_qywx_tag_relation.update_time
*/
public Date getUpdateTime() {
return updateTime;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.update_time
*
* @param updateTime the value for tab_haoban_qywx_tag_relation.update_time
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
\ No newline at end of file
...@@ -11,7 +11,9 @@ public enum PreDealTypeEnum { ...@@ -11,7 +11,9 @@ public enum PreDealTypeEnum {
friend_clerk(6), friend_clerk(6),
friend(8), friend(8),
self_friend(7), self_friend(7),
friend_merge(9); friend_merge(9),
tag(10),
tag_member(11);
private int val; private int val;
PreDealTypeEnum(int val) { PreDealTypeEnum(int val) {
......
package com.gic.haoban.manage.api.enums;
/**
* Created 2021/6/17.
*
* @author hua
*/
public enum QuartzEnum {
/**
* 企业微信
*/
HANDOVER_QYWX("handover", "com.gic.haoban.manage.api.service.HandoverOperationApiService", "batchQywxHandoverTimeTask", "0 0 0 * * *", "-1");
private String key;
private String serviceName;
private String method;
private String cron;
private String params;
QuartzEnum(String key, String serviceName, String method, String cron, String params) {
this.key = key;
this.serviceName = serviceName;
this.method = method;
this.cron = cron;
this.params = params;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getServiceName() {
return serviceName;
}
public void setServiceName(String serviceName) {
this.serviceName = serviceName;
}
public String getMethod() {
return method;
}
public void setMethod(String method) {
this.method = method;
}
public String getCron() {
return cron;
}
public void setCron(String cron) {
this.cron = cron;
}
public String getParams() {
return params;
}
public void setParams(String params) {
this.params = params;
}
public static QuartzEnum getByKey(String key) {
if (key == null) {
return null;
}
QuartzEnum[] values = QuartzEnum.values();
for (QuartzEnum value : values) {
if (value.getKey().equals(key)) {
return value;
}
}
return null;
}
}
package com.gic.haoban.manage.api.enums;
/**
* Created by hua on 2021/6/21.
*/
public enum QywxTagRelationTypeEnum {
TAG_GROUP(0, "标签组", "tag_group"),
TAG_ITEM(1, "标签项", "tag");
private int type;
private String name;
private String tagType;
QywxTagRelationTypeEnum(int type, String name, String tagType) {
this.type = type;
this.name = name;
this.tagType = tagType;
}
public String getTagType() {
return tagType;
}
public void setTagType(String tagType) {
this.tagType = tagType;
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public static QywxTagRelationTypeEnum getByTagType(String type) {
QywxTagRelationTypeEnum[] values = QywxTagRelationTypeEnum.values();
for (QywxTagRelationTypeEnum value : values) {
if (value.getTagType().equals(type)) {
return value;
}
}
return null;
}
}
...@@ -14,7 +14,9 @@ public enum SyncTaskStatusEnum { ...@@ -14,7 +14,9 @@ public enum SyncTaskStatusEnum {
friend_clerk_sync(7), friend_clerk_sync(7),
self_friend_sync(8), self_friend_sync(8),
friend_sync(9), friend_sync(9),
merge_friend_sync(10); merge_friend_sync(10),
tag(10),
member_tag(10);
private int val; private int val;
......
...@@ -6,7 +6,8 @@ package com.gic.haoban.manage.api.enums; ...@@ -6,7 +6,8 @@ package com.gic.haoban.manage.api.enums;
public enum SyncTaskTypeEnum { public enum SyncTaskTypeEnum {
QYWX_CONTACT(1, "后门同步企业微信架构"), QYWX_CONTACT(1, "后门同步企业微信架构"),
FRIEND_SINGLE(4, "单个成员刷新好友"), FRIEND_SINGLE(4, "单个成员刷新好友"),
FRIEND_STORE(5, "刷新门店好友"),; FRIEND_STORE(5, "刷新门店好友"),
MEMBER_TAG(6, "企业微信标签刷新");
private int type; private int type;
private String taskName; private String taskName;
......
...@@ -162,7 +162,8 @@ public interface DealSyncOperationApiService { ...@@ -162,7 +162,8 @@ public interface DealSyncOperationApiService {
* 定时 * 定时
* @param res * @param res
*/ */
public void quartWxFriendClerk(String res); @Deprecated
public void quartWxFriendClerk(String res);
void test(String wxEnterpriseId, String taskId); void test(String wxEnterpriseId, String taskId);
...@@ -174,4 +175,22 @@ public interface DealSyncOperationApiService { ...@@ -174,4 +175,22 @@ public interface DealSyncOperationApiService {
* @return true 刷新中 false 没刷新或刷新完成 * @return true 刷新中 false 没刷新或刷新完成
*/ */
public boolean getFreshFriendSyncTask(String wxEnterpriseId, String staffId); public boolean getFreshFriendSyncTask(String wxEnterpriseId, String staffId);
/**
* 创建标签任务
*
* @param wxEnterpriseId
* @return
*/
public String createTagTask(String wxEnterpriseId, String addUser, String memberTagId);
/**
* 执行任务
*
* @param wxEnterpriseId
* @param enterpriseId
* @param tagIds
* @param taskId
*/
public void dealTagTask(String wxEnterpriseId, String enterpriseId, List<String> tagIds, String taskId);
} }
...@@ -4,6 +4,7 @@ import com.gic.api.base.commons.Page; ...@@ -4,6 +4,7 @@ import com.gic.api.base.commons.Page;
import com.gic.haoban.base.api.common.BasePageInfo; import com.gic.haoban.base.api.common.BasePageInfo;
import com.gic.haoban.base.api.common.ServiceResponse; import com.gic.haoban.base.api.common.ServiceResponse;
import com.gic.haoban.manage.api.dto.ExternalClerkRelatedDTO; import com.gic.haoban.manage.api.dto.ExternalClerkRelatedDTO;
import com.gic.haoban.manage.api.dto.ExternalClerkRelatedShortInfoDTO;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
...@@ -88,4 +89,36 @@ public interface ExternalClerkRelatedApiService { ...@@ -88,4 +89,36 @@ public interface ExternalClerkRelatedApiService {
*/ */
List<ExternalClerkRelatedDTO> listExternalClerkByWxUserIdAncExternalUserId(String wxEnterpriseId, String wxUserId, String enterpriseId, String externalUserId); List<ExternalClerkRelatedDTO> listExternalClerkByWxUserIdAncExternalUserId(String wxEnterpriseId, String wxUserId, String enterpriseId, String externalUserId);
/**
* 根据id查询列表
*
* @param wxEnterpriseId
* @param ids
* @return
*/
List<ExternalClerkRelatedDTO> listByIds(String wxEnterpriseId, List<String> ids);
/**
* 查询导购好友关联
*
* @param wxEnterpriseId : 微信企业id
* @return : 返回好友关联
*/
Page<String> pageExternalByEnterpriseId(String wxEnterpriseId, String enterpriseId, BasePageInfo pageInfo);
/**
* 获取企业下的关联关系列表
*
* @return
*/
List<ExternalClerkRelatedShortInfoDTO> listExternalClerkByMemberIds(String wxEnterpriseId, List<String> memberIds);
/**
* 获取企业下的关联关系列表
*
* @return
*/
List<ExternalClerkRelatedShortInfoDTO> listExternalClerkByMemberId(String memberId);
} }
package com.gic.haoban.manage.api.service;
import com.gic.api.base.commons.Page;
import com.gic.haoban.base.api.common.BasePageInfo;
import com.gic.haoban.manage.api.dto.ExternalInfoDTO;
import com.gic.haoban.manage.api.dto.HandoverExternalDTO;
import com.gic.haoban.manage.api.dto.HandoverStaffInfoDTO;
import java.util.List;
/**
* Created 2021/6/16.
*
* @author hua
*/
public interface HandoverOperationApiService {
/**
* 定时处理拉取企业微信信息
*/
public void batchQywxHandoverTimeTask(String params);
/**
* 定时处理企业微信 离职基础的结果(废弃)
*
* @param params
*/
public void BatchQywxHandoverResultTimeTask(String params);
/**
* 处理企业微信信息
*
* @param wxEnterpriseId
*/
public void dealQywxEnterpriseHandover(String wxEnterpriseId);
/**
* 处理企业微信信息 结果处理
*
* @param wxEnterpriseId
*/
public void dealQywxEnterpriseHandoverResult(String wxEnterpriseId);
/**
* 获取离职继承所在的门店下的待分配导购列表
*
* @param storeId
* @return
*/
public List<HandoverStaffInfoDTO> listHandoverStaff(String wxEnterpriseId, String storeId);
/**
* 分配的客户列表
*
* @param wxEnterpriseId
* @param staffIds
* @param transferIds 分配客户列表查询
* @return
*/
public Page<HandoverExternalDTO> pageHandoverFriend(String wxEnterpriseId, String search, List<String> staffIds, List<String> transferIds, BasePageInfo pageInfo);
/**
* 分配的客户列表
*
* @param wxEnterpriseId
* @param staffIds
* @param transferIds 分配客户列表查询
* @return
*/
public Page<ExternalInfoDTO> pageHandoverFriend(String wxEnterpriseId, String search, List<String> staffIds, List<String> transferIds, BasePageInfo pageInfo, int status);
/**
* 分配客户接口
*
* @param wxEnterpriseId
* @param handoverExternalIds
* @param disStaffId
*/
public void transferFriend(String wxEnterpriseId, List<String> handoverExternalIds, String disStaffId, String storeId);
/**
* 根据id 获取列表
*
* @param wxEnterpriseId
* @param handoverExternalIds
* @return
*/
public List<HandoverExternalDTO> listByIds(String wxEnterpriseId, List<String> handoverExternalIds);
/**
* 分配记录
*
* @param wxEnterpriseId
* @param storeId
* @return
*/
public List<HandoverStaffInfoDTO> listDis(String wxEnterpriseId, String storeId);
/**
* 分配记录对应的trandferid
*
* @param wxEnterpriseId
* @param handoverStaffId
* @return
*/
public List<String> listTransferIdByHandoverStaffId(String wxEnterpriseId, String handoverStaffId);
/**
* 继承记录对应的trandferid
*
* @param wxEnterpriseId
* @param takeoverStaffId
* @return
*/
public List<String> listTransferIdByTakeoverStaffId(String wxEnterpriseId, String takeoverStaffId);
/**
* 继承记录对应的trandferid
*
* @param wxEnterpriseId
* @param takeoverStaffId
* @return
*/
public Integer countTransferIdByTakeoverStaffId(String wxEnterpriseId, String takeoverStaffId);
}
...@@ -27,6 +27,13 @@ public interface MemberUnionidRelatedApiService { ...@@ -27,6 +27,13 @@ public interface MemberUnionidRelatedApiService {
void delMemberUnionidRelated(MemberUnionidRelatedDTO dto); void delMemberUnionidRelated(MemberUnionidRelatedDTO dto);
/** /**
* 修改
*
* @param dto
*/
void editMemberUnionidRelated(MemberUnionidRelatedDTO dto);
/**
* 处理外部联系人异步 * 处理外部联系人异步
* *
* @param params * @param params
......
package com.gic.haoban.manage.api.service;
import com.gic.haoban.manage.api.dto.QywxTagCallbackDTO;
import com.gic.haoban.manage.api.dto.QywxTagInfoDTO;
import com.gic.haoban.manage.api.dto.QywxTagItemDTO;
import com.gic.haoban.manage.api.dto.QywxTagRelationDTO;
import java.util.List;
/**
* Created 2021/6/21.
*
* @author hua
*/
public interface QywxTagApiService {
/**
* 拉取企业微信标签
*
* @param wxEnterpriseId
*/
public void pullQywxTag(String wxEnterpriseId);
/**
* 同步会员导购标签到qywx
*
* @param infoDTO 标签
* @param items 标签项
*/
public void syncTagToQywx(String wxEnterpriseId, String enterpriseId, QywxTagInfoDTO infoDTO, List<QywxTagItemDTO> items);
/**
* 关闭同步
*
* @param wxEnterpriseId
* @param tagRelationId
*/
public void closeSync(String wxEnterpriseId, String tagRelationId);
/**
* 查询所有同步的标签
*
* @param wxEnterpriseId
* @return
*/
public List<QywxTagRelationDTO> listAllByWxEnterpriseId(String wxEnterpriseId);
/**
* 新增回调
*
* @param callbackDTO
*/
public void addQywxTag(QywxTagCallbackDTO callbackDTO);
/**
* 删除回调
*
* @param callbackDTO
*/
public void delQywxTag(QywxTagCallbackDTO callbackDTO);
/**
* 修改回调
*
* @param callbackDTO
*/
public void editQywxTag(QywxTagCallbackDTO callbackDTO);
/**
* 同步好友标签到企业微信
*
* @param wxEnterpriseId
* @param enterpriseId
* @param externalUserId
*/
public void syncFriendTagToQywxByExternalUserId(String wxEnterpriseId, String enterpriseId, String externalUserId, String tagItemId);
}
...@@ -107,4 +107,10 @@ public interface StaffApiService { ...@@ -107,4 +107,10 @@ public interface StaffApiService {
* @return * @return
*/ */
public StaffDTO getWxStaffOne(String wxEnterpriseId); public StaffDTO getWxStaffOne(String wxEnterpriseId);
/**
* @param wxEnterpriseId
* @return
*/
public StaffDTO getAndAddSupperAdmin(String wxEnterpriseId);
} }
...@@ -123,9 +123,9 @@ public interface StaffClerkRelationApiService { ...@@ -123,9 +123,9 @@ public interface StaffClerkRelationApiService {
*/ */
ServiceResponse<String> getClerkMemberChatConfig(String clerkId); ServiceResponse<String> getClerkMemberChatConfig(String clerkId);
/** /**
* *
* @Description 方法描述: TODO <pre> * @Description 方法描述:
* @return 返回值类型: <pre> * @return 返回值类型: <pre>
* @author 作者: WQ <pre> * @author 作者: WQ <pre>
* @date 时间: 2020年12月24日 上午11:21:38 <pre> * @date 时间: 2020年12月24日 上午11:21:38 <pre>
* @param wxEnterpriseId: <pre> * @param wxEnterpriseId: <pre>
......
...@@ -23,4 +23,13 @@ public interface TestApiService { ...@@ -23,4 +23,13 @@ public interface TestApiService {
* @return * @return
*/ */
public String listAllQywxUser(String corpid,String secretVal, String dataId); public String listAllQywxUser(String corpid,String secretVal, String dataId);
/**
* 创建定时器
*
* @param serviceName
* @param methodName
* @param cron
*/
public void quartzTaskConvert(String serviceName, String methodName, String cron, String params);
} }
...@@ -94,6 +94,16 @@ public interface WxEnterpriseApiService { ...@@ -94,6 +94,16 @@ public interface WxEnterpriseApiService {
*/ */
public MiniprogramSettingDTO getMiniprogramSettingByEid(String wxEnterpriseId, String enterpriseId); public MiniprogramSettingDTO getMiniprogramSettingByEid(String wxEnterpriseId, String enterpriseId);
/**
* 获取单个小程序配置
*
* @param wxEnterpriseId
* @param appId
* @return
*/
public MiniprogramSettingDTO getMiniprogramSettingByAppId(String wxEnterpriseId, String appId);
/** /**
* 删除 小程序配置 * 删除 小程序配置
* *
......
...@@ -135,10 +135,17 @@ public interface WxEnterpriseRelatedApiService { ...@@ -135,10 +135,17 @@ public interface WxEnterpriseRelatedApiService {
public boolean initHistoryEnterprise(String wxEnterpriseId); public boolean initHistoryEnterprise(String wxEnterpriseId);
/** /**
* 初始化历史门店数据 * 初始化历史门店数据
* *
* @return * @return
*/ */
public boolean setClerkEditFlag(String wxEnterprieseRelatedId, int clerkEditFlag); public boolean setClerkEditFlag(String wxEnterprieseRelatedId, int clerkEditFlag);
/**
* 判断企业是否是总部 true是 false 不是
*
* @return
*/
public boolean checkIsGeneral(String wxEnterpriseId, String enterpriseId);
} }
...@@ -259,17 +259,13 @@ ...@@ -259,17 +259,13 @@
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.eclipse.jetty</groupId> <groupId>org.apache.tomcat.maven</groupId>
<artifactId>jetty-maven-plugin</artifactId> <artifactId>tomcat7-maven-plugin</artifactId>
<version>9.4.12.RC2</version> <version>2.2</version>
<configuration> <configuration>
<stopKey>gic-mall</stopKey> <path>/haoban-manage3-operation-web</path>
<httpConnector> <port>9908</port>
<port>802</port> <uriEncoding>UTF-8</uriEncoding>
</httpConnector>
<webApp>
<contextPath>/</contextPath>
</webApp>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
......
...@@ -7,6 +7,8 @@ import com.gic.haoban.base.api.common.BasePageInfo; ...@@ -7,6 +7,8 @@ import com.gic.haoban.base.api.common.BasePageInfo;
import com.gic.haoban.common.utils.CheckContainUtil; import com.gic.haoban.common.utils.CheckContainUtil;
import com.gic.haoban.common.utils.HaobanResponse; import com.gic.haoban.common.utils.HaobanResponse;
import com.gic.haoban.manage.api.dto.TestDTO; import com.gic.haoban.manage.api.dto.TestDTO;
import com.gic.haoban.manage.api.enums.QuartzEnum;
import com.gic.haoban.manage.api.service.TestApiService;
import com.gic.haoban.manage.api.service.TestService; import com.gic.haoban.manage.api.service.TestService;
import com.gic.haoban.manage.web.controller.WebBaseController; import com.gic.haoban.manage.web.controller.WebBaseController;
import com.gic.haoban.manage.web.errCode.HaoBanErrCode; import com.gic.haoban.manage.web.errCode.HaoBanErrCode;
...@@ -30,8 +32,9 @@ import java.util.Map; ...@@ -30,8 +32,9 @@ import java.util.Map;
@RequestMapping("/test") @RequestMapping("/test")
public class TestController extends WebBaseController { public class TestController extends WebBaseController {
// @Autowired
// private TestService testService; @Autowired
private TestApiService testApiService;
// //
// @RequestMapping("/testList") // @RequestMapping("/testList")
// @ResponseBody // @ResponseBody
...@@ -69,4 +72,21 @@ public class TestController extends WebBaseController { ...@@ -69,4 +72,21 @@ public class TestController extends WebBaseController {
// List<TestVo> res = EntityUtil.changeEntityListByJSON(TestVo.class, testDTOPage.getResult()); // List<TestVo> res = EntityUtil.changeEntityListByJSON(TestVo.class, testDTOPage.getResult());
// return resultResponse(errCode, res); // return resultResponse(errCode, res);
// } // }
/**
* 创建定时器
*
* @return
*/
@RequestMapping("/create-quarter")
@ResponseBody
public HaobanResponse testListVo(String key) {
QuartzEnum quartzEnum = QuartzEnum.getByKey(key);
if (null == quartzEnum) {
return resultResponse(HaoBanErrCode.ERR_0);
}
testApiService.quartzTaskConvert(quartzEnum.getServiceName(), quartzEnum.getMethod(), quartzEnum.getCron(), quartzEnum.getParams());
return resultResponse(HaoBanErrCode.ERR_1);
}
} }
package com.gic.haoban.manage.web.controller.test;
import com.gic.api.base.commons.Page;
import com.gic.commons.util.RandomUtil;
import com.gic.haoban.base.api.common.BasePageInfo;
import com.gic.haoban.base.api.common.ServiceResponse;
import com.gic.haoban.common.utils.HaobanResponse;
import com.gic.haoban.manage.api.dto.ExternalUserDTO;
import com.gic.haoban.manage.api.dto.StaffClerkRelationDTO;
import com.gic.haoban.manage.api.dto.StaffDTO;
import com.gic.haoban.manage.api.enums.ChannelCodeEnum;
import com.gic.haoban.manage.api.service.MemberUnionidRelatedApiService;
import com.gic.haoban.manage.api.service.StaffApiService;
import com.gic.haoban.manage.api.service.StaffClerkRelationApiService;
import com.gic.haoban.manage.web.controller.WebBaseController;
import com.gic.haoban.manage.web.errCode.HaoBanErrCode;
import com.gic.haoban.manage.web.qo.ImportMemberQo;
import com.gic.haoban.task.manage.api.dto.MarketClueTaskDTO;
import com.gic.haoban.task.manage.api.service.IMarketClueTaskApiService;
import com.gic.haoban.task.manage.api.service.IMarketTaskMemberApiService;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Random;
import static org.slf4j.LoggerFactory.getLogger;
/**
* Created 2021/6/21.
*
* @author hua
*/
@RestController
@RequestMapping("/test-data")
public class TestDataImportController extends WebBaseController {
private static final Logger logger = getLogger(TestDataImportController.class);
@Autowired
private StaffApiService staffApiService;
@Autowired
private StaffClerkRelationApiService staffClerkRelationApiService;
@Autowired
private MemberUnionidRelatedApiService memberUnionidRelatedApiService;
@Autowired
private IMarketClueTaskApiService iMarketClueTaskApiService;
@Autowired
private IMarketTaskMemberApiService iMarketTaskMemberApiService;
/**
* 导入会员好友
*
* @param qo
* @return
*/
@RequestMapping("/friend-import")
public HaobanResponse importFriend(ImportMemberQo qo) {
if (StringUtils.isAnyBlank(qo.getClerkCode(), qo.getClerkId(), qo.getDepartmentId(), qo.getEnterpriseId(), qo.getMemberId()
, qo.getPhoneNumber(), qo.getStoreId(), qo.getUnionid(), qo.getWxEnterpriseId())) {
return resultResponse(HaoBanErrCode.ERR_2);
}
StaffDTO staffDTO = staffApiService.selectByUserIdAndEnterpriseId(qo.getWxUserId(), qo.getWxEnterpriseId());
if (null == staffDTO) {
StaffDTO staff = new StaffDTO();
staff.setPhoneNumber(qo.getPhoneNumber());
staff.setWxUserId(qo.getWxUserId());
staff.setWxEnterpriseId(qo.getWxEnterpriseId());
staff.setStaffName(qo.getClerkCode());
staff.setSex(1);
staff.setNationCode("86");
staff.setActiveFlag(1);
ServiceResponse add = staffApiService.add(staff, qo.getDepartmentId());
if (add.getCode() == 1) {
staffDTO = staffApiService.selectById(add.getResult().toString());
}
}
StaffClerkRelationDTO clerkRelationDTO = staffClerkRelationApiService.getOneByStoreIdAndStaffId(qo.getStoreId(), staffDTO.getStaffId());
if (clerkRelationDTO == null) {
StaffClerkRelationDTO staffClerkRelationDTO = new StaffClerkRelationDTO();
staffClerkRelationDTO.setStoreId(qo.getStoreId());
staffClerkRelationDTO.setClerkId(qo.getClerkId());
staffClerkRelationDTO.setClerkCode(qo.getClerkCode());
staffClerkRelationDTO.setWxUserId(staffDTO.getWxUserId());
staffClerkRelationDTO.setStaffId(staffDTO.getStaffId());
staffClerkRelationDTO.setWxEnterpriseId(qo.getWxEnterpriseId());
staffClerkRelationDTO.setEnterpriseId(qo.getEnterpriseId());
ServiceResponse response = staffClerkRelationApiService.bindStaffClerk(staffClerkRelationDTO, "-1", ChannelCodeEnum.ADMIN_BIND.getCode());
}
//新增好友
ExternalUserDTO dto = new ExternalUserDTO();
dto.setUnionId(qo.getUnionid());
dto.setWxUserId(qo.getWxUserId());
dto.setWxEnterpriseId(qo.getWxEnterpriseId());
dto.setMemberId(qo.getMemberId());
dto.setExternalUserId(qo.getMemberId());
dto.setClerkId(qo.getClerkId());
dto.setStoreId(qo.getStoreId());
dto.setEnterpriseId(qo.getEnterpriseId());
dto.setName("测试会员" + RandomUtil.getRandomString(5));
dto.setStaffId(staffDTO.getStaffId());
dto.setAddCreateTime(Long.valueOf(System.currentTimeMillis() / 1000).toString());
memberUnionidRelatedApiService.addExternal(dto);
return resultResponse(HaoBanErrCode.ERR_1);
}
/**
* 处理任务
*
* @param ecmId 计划id
* @param enterpriseId 企业id
* @param touchFinishType 完成类型 任务完成触达方式, 1 : 企业微信, 2 : 企业电话, 3 : 私人电话, 4 : 私人短信',
* @param rate 0-100 完成百分比
* @return
*/
@RequestMapping("/deal-task")
public HaobanResponse dealTask(String ecmId, String enterpriseId, String touchFinishType, int rate) {
if (StringUtils.isAnyBlank(ecmId, enterpriseId, touchFinishType)) {
return resultResponse(HaoBanErrCode.ERR_2);
}
if (rate <= 0) {
logger.info("rate大于0需要");
return resultResponse(HaoBanErrCode.ERR_1);
}
BasePageInfo basePageInfo = new BasePageInfo();
basePageInfo.setPageSize(2000);
Page<MarketClueTaskDTO> page = iMarketClueTaskApiService.pageMarketClueTaskDTO(ecmId, enterpriseId, basePageInfo);
while (CollectionUtils.isNotEmpty(page.getResult())) {
page.getResult().forEach(dto -> {
Random random = new Random(100);
int i = random.nextInt();
if (i <= rate) {
logger.info("处理:{}", com.alibaba.fastjson.JSONObject.toJSONString(dto));
iMarketTaskMemberApiService.detailsRefresh(enterpriseId, dto.getTaskId(), true);
}
});
page = iMarketClueTaskApiService.pageMarketClueTaskDTO(ecmId, enterpriseId, basePageInfo);
}
return resultResponse(HaoBanErrCode.ERR_1);
}
}
package com.gic.haoban.manage.web.controller.test; package com.gic.haoban.manage.web.controller.test;
import com.gic.haoban.common.utils.HaobanResponse; import com.gic.haoban.common.utils.HaobanResponse;
import com.gic.haoban.manage.api.service.HandoverOperationApiService;
import com.gic.haoban.manage.web.controller.WebBaseController; import com.gic.haoban.manage.web.controller.WebBaseController;
import com.gic.haoban.manage.web.errCode.HaoBanErrCode; import com.gic.haoban.manage.web.errCode.HaoBanErrCode;
import com.gic.haoban.task.manage.api.service.IGroupSendDetailApiService;
import com.gic.haoban.task.manage.api.service.TaskQuartzCallbackApiService; import com.gic.haoban.task.manage.api.service.TaskQuartzCallbackApiService;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -22,6 +22,9 @@ public class TestTaskController extends WebBaseController { ...@@ -22,6 +22,9 @@ public class TestTaskController extends WebBaseController {
@Autowired @Autowired
private TaskQuartzCallbackApiService taskQuartzCallbackApiService; private TaskQuartzCallbackApiService taskQuartzCallbackApiService;
@Autowired
private HandoverOperationApiService handoverOperationApiService;
// @Autowired // @Autowired
// private TestService testService; // private TestService testService;
// //
...@@ -66,4 +69,41 @@ public class TestTaskController extends WebBaseController { ...@@ -66,4 +69,41 @@ public class TestTaskController extends WebBaseController {
taskQuartzCallbackApiService.sendMessageAfter(str); taskQuartzCallbackApiService.sendMessageAfter(str);
return resultResponse(HaoBanErrCode.ERR_1); return resultResponse(HaoBanErrCode.ERR_1);
} }
@RequestMapping("/setTest")
@ResponseBody
public HaobanResponse setTest(String enterpriseId) {
if (StringUtils.isBlank(enterpriseId)) {
return resultResponse(HaoBanErrCode.ERR_2);
}
taskQuartzCallbackApiService.setTest(enterpriseId);
return resultResponse(HaoBanErrCode.ERR_1);
}
@RequestMapping("/delTest")
@ResponseBody
public HaobanResponse delTest() {
taskQuartzCallbackApiService.delTest();
return resultResponse(HaoBanErrCode.ERR_1);
}
@RequestMapping("/dealQywxEnterpriseHandover")
@ResponseBody
public HaobanResponse dealQywxEnterpriseHandover(String wxEnterpriseId) {
if (StringUtils.isBlank(wxEnterpriseId)) {
return resultResponse(HaoBanErrCode.ERR_2);
}
handoverOperationApiService.dealQywxEnterpriseHandover(wxEnterpriseId);
return resultResponse(HaoBanErrCode.ERR_1);
}
@RequestMapping("/dealQywxEnterpriseHandoverResult")
@ResponseBody
public HaobanResponse dealQywxEnterpriseHandoverResult(String wxEnterpriseId) {
if (StringUtils.isBlank(wxEnterpriseId)) {
return resultResponse(HaoBanErrCode.ERR_2);
}
handoverOperationApiService.dealQywxEnterpriseHandoverResult(wxEnterpriseId);
return resultResponse(HaoBanErrCode.ERR_1);
}
} }
...@@ -56,15 +56,6 @@ public class WebInterceptor extends HandlerInterceptorAdapter { ...@@ -56,15 +56,6 @@ public class WebInterceptor extends HandlerInterceptorAdapter {
Map<String, String[]> parameterMap = httpServletRequest.getParameterMap(); Map<String, String[]> parameterMap = httpServletRequest.getParameterMap();
logger.info("post-params:{}", JSONObject.toJSONString(parameterMap)); logger.info("post-params:{}", JSONObject.toJSONString(parameterMap));
HandlerMethod method = null;
if (o instanceof HandlerMethod) {
method = (HandlerMethod) (o);
}
if (method == null) {
return true;
}
MenuCheck methodAnnotation = method.getMethodAnnotation(MenuCheck.class);
return true; return true;
} }
......
package com.gic.haoban.manage.web.qo;
import org.apache.commons.lang3.StringUtils;
import java.io.Serializable;
/**
* Created 2021/6/21.
*
* @author hua
*/
public class ImportMemberQo implements Serializable {
private String wxEnterpriseId;
private String enterpriseId;
private String memberId;
private String unionid;
private String clerkId;
private String clerkCode;
private String storeId;
private String wxUserId;
private String phoneNumber;
private String departmentId;
public String getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(String enterpriseId) {
this.enterpriseId = enterpriseId;
}
public String getDepartmentId() {
return departmentId;
}
public void setDepartmentId(String departmentId) {
this.departmentId = departmentId;
}
public String getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
public String getWxEnterpriseId() {
return wxEnterpriseId;
}
public void setWxEnterpriseId(String wxEnterpriseId) {
this.wxEnterpriseId = wxEnterpriseId;
}
public String getMemberId() {
return memberId;
}
public void setMemberId(String memberId) {
this.memberId = memberId;
}
public String getUnionid() {
return unionid;
}
public void setUnionid(String unionid) {
this.unionid = unionid;
}
public String getClerkId() {
return clerkId;
}
public void setClerkId(String clerkId) {
this.clerkId = clerkId;
}
public String getClerkCode() {
return clerkCode;
}
public void setClerkCode(String clerkCode) {
this.clerkCode = clerkCode;
}
public String getStoreId() {
return storeId;
}
public void setStoreId(String storeId) {
this.storeId = storeId;
}
public String getWxUserId() {
if (StringUtils.isBlank(wxUserId)) {
return clerkCode;
}
return wxUserId;
}
public void setWxUserId(String wxUserId) {
this.wxUserId = wxUserId;
}
}
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
<!--<dubbo:registry address="zookeeper://localhost:2181|zookeeper://115.159.182.172:2199" protocol="dubbo"/>--> <!--<dubbo:registry address="zookeeper://localhost:2181|zookeeper://115.159.182.172:2199" protocol="dubbo"/>-->
<dubbo:reference interface="com.gic.haoban.manage.api.service.StaffApiService" id="staffApiService"/> <dubbo:reference interface="com.gic.haoban.manage.api.service.StaffApiService" id="staffApiService"/>
<dubbo:reference interface="com.gic.haoban.manage.api.service.TestApiService" id="testApiService"/>
<dubbo:reference interface="com.gic.haoban.manage.api.service.StaffClerkRelationApiService" id="staffClerkRelationApiService"/> <dubbo:reference interface="com.gic.haoban.manage.api.service.StaffClerkRelationApiService" id="staffClerkRelationApiService"/>
<dubbo:reference interface="com.gic.haoban.manage.api.service.WxEnterpriseRelatedApiService" id="wxEnterpriseRelatedApiService" /> <dubbo:reference interface="com.gic.haoban.manage.api.service.WxEnterpriseRelatedApiService" id="wxEnterpriseRelatedApiService" />
<dubbo:reference interface="com.gic.haoban.manage.api.service.ApplicationApiService" id="applicationApiService"/> <dubbo:reference interface="com.gic.haoban.manage.api.service.ApplicationApiService" id="applicationApiService"/>
...@@ -34,10 +35,19 @@ ...@@ -34,10 +35,19 @@
<dubbo:reference interface="com.gic.haoban.manage.api.service.DictApiService" id="dictApiService"/> <dubbo:reference interface="com.gic.haoban.manage.api.service.DictApiService" id="dictApiService"/>
<dubbo:reference interface="com.gic.haoban.manage.api.service.HelpApiService" id="helpApiService"/> <dubbo:reference interface="com.gic.haoban.manage.api.service.HelpApiService" id="helpApiService"/>
<dubbo:reference interface="com.gic.haoban.manage.api.service.MaidianDictApiService" id="maidianDictApiService"/> <dubbo:reference interface="com.gic.haoban.manage.api.service.MaidianDictApiService" id="maidianDictApiService"/>
<dubbo:reference interface="com.gic.haoban.manage.api.service.MemberUnionidRelatedApiService"
id="memberUnionidRelatedApiService"/>
<dubbo:reference interface="com.gic.haoban.task.manage.api.service.IMarketClueTaskApiService"
id="iMarketClueTaskApiService"/>
<dubbo:reference interface="com.gic.haoban.task.manage.api.service.IMarketTaskMemberApiService"
id="iMarketTaskMemberApiService"/>
<dubbo:reference id="applicationTemplateApiService" interface="com.gic.haoban.manage.api.service.ApplicationTemplateApiService" timeout="10000"/> <dubbo:reference id="applicationTemplateApiService" interface="com.gic.haoban.manage.api.service.ApplicationTemplateApiService" timeout="10000"/>
<dubbo:reference id="taskQuartzCallbackApiService" <dubbo:reference id="taskQuartzCallbackApiService"
interface="com.gic.haoban.task.manage.api.service.TaskQuartzCallbackApiService" timeout="10000"/> interface="com.gic.haoban.task.manage.api.service.TaskQuartzCallbackApiService" timeout="10000"/>
<dubbo:reference interface="com.gic.haoban.manage.api.service.HandoverOperationApiService"
id="handoverOperationApiService"/>
</beans> </beans>
...@@ -8,14 +8,14 @@ ...@@ -8,14 +8,14 @@
<bean class="com.gic.haoban.common.ext.PropertyViewClearInterceptor"/> <bean class="com.gic.haoban.common.ext.PropertyViewClearInterceptor"/>
<mvc:interceptor> <mvc:interceptor>
<mvc:mapping path="/**"/> <mvc:mapping path="/**"/>
<mvc:exclude-mapping path="/login.json"/> <!--<mvc:exclude-mapping path="/login.json"/>-->
<mvc:exclude-mapping path="/login-*"/> <!--<mvc:exclude-mapping path="/login-*"/>-->
<mvc:exclude-mapping path="/gic-login*"/> <!--<mvc:exclude-mapping path="/gic-login*"/>-->
<mvc:exclude-mapping path="/*test.json"/> <!--<mvc:exclude-mapping path="/*test.json"/>-->
<mvc:exclude-mapping path="/test/*"/> <!--<mvc:exclude-mapping path="/test/*"/>-->
<mvc:exclude-mapping path="/pay/*"/> <!--<mvc:exclude-mapping path="/pay/*"/>-->
<mvc:exclude-mapping path="/login"/> <!--<mvc:exclude-mapping path="/login"/>-->
<mvc:exclude-mapping path="/nationcode/get-nationcode-list"/> <!--<mvc:exclude-mapping path="/nationcode/get-nationcode-list"/>-->
<mvc:exclude-mapping path="/get-pic-code"/> <mvc:exclude-mapping path="/get-pic-code"/>
<mvc:exclude-mapping path="/phone-login"/> <mvc:exclude-mapping path="/phone-login"/>
<mvc:exclude-mapping path="/upload-file*"/> <mvc:exclude-mapping path="/upload-file*"/>
......
...@@ -67,6 +67,11 @@ ...@@ -67,6 +67,11 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.gic</groupId> <groupId>com.gic</groupId>
<artifactId>gic-quartz-api</artifactId>
<version>${gic-quartz-api}</version>
</dependency>
<dependency>
<groupId>com.gic</groupId>
<artifactId>haoban-manage3-api</artifactId> <artifactId>haoban-manage3-api</artifactId>
<version>${haoban-manage3-api}</version> <version>${haoban-manage3-api}</version>
</dependency> </dependency>
...@@ -140,7 +145,7 @@ ...@@ -140,7 +145,7 @@
<dependency> <dependency>
<groupId>com.gic</groupId> <groupId>com.gic</groupId>
<artifactId>gic-member-api</artifactId> <artifactId>gic-member-api</artifactId>
<version>3.0-SNAPSHOT</version> <version>${gic-member-api}</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
...@@ -176,7 +181,13 @@ ...@@ -176,7 +181,13 @@
<artifactId>sql-check-sdk</artifactId> <artifactId>sql-check-sdk</artifactId>
<version>${sql-check-sdk}</version> <version>${sql-check-sdk}</version>
</dependency> </dependency>
</dependencies> <dependency>
<groupId>com.gic</groupId>
<artifactId>gic-member-tag-api</artifactId>
<version>${gic-member-tag-api}</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build> <build>
<finalName>haoban-manage3-service</finalName> <finalName>haoban-manage3-service</finalName>
......
package com.gic.haoban.manage.service.dao.mapper;
import com.gic.haoban.manage.api.dto.HandoverStaffFriendCountDTO;
import com.gic.haoban.manage.service.entity.TabHandoverExternal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface HandoverExternalMapper {
/**
*/
int deleteByPrimaryKey(String handoverExternalId);
/**
*/
int insert(TabHandoverExternal record);
/**
*/
int insertSelective(TabHandoverExternal record);
/**
*/
TabHandoverExternal selectByPrimaryKey(String handoverExternalId);
/**
*/
int updateByPrimaryKeySelective(TabHandoverExternal record);
/**
*/
int updateByPrimaryKey(TabHandoverExternal record);
/**
*/
int insertBatch(@Param("list") List<TabHandoverExternal> list);
/**
* 查询待分配客户列表
*
* @param wxEnterpriseId
* @param staffIds
* @return
*/
List<TabHandoverExternal> listByStaffIds(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("transferIds") List<String> transferIds, @Param("staffIds") List<String> staffIds, @Param("search") String search, @Param("status") Integer status);
/**
* 查询待分配客户列表
*
* @param wxEnterpriseId
* @param staffIds
* @return
*/
List<String> listIdByStaffIds(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("staffIds") List<String> staffIds);
/**
* 查询待分配客户列表
*
* @param wxEnterpriseId
* @return
*/
List<TabHandoverExternal> listByIds(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("ids") List<String> ids);
/**
*/
int updateAfterTransfer(@Param("ids") List<String> ids, @Param("transferId") String transferId);
/**
* 查询待分配客户列表
*
* @param wxEnterpriseId
* @return
*/
TabHandoverExternal getByTransferId(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("transferId") String transferId, @Param("externalUserId") String externalUserId);
/**
* 查询待分配客户列表
*
* @param wxEnterpriseId
* @return
*/
TabHandoverExternal getByExternalUserIdAndStaffId(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("staffId") String staffId, @Param("externalUserId") String externalUserId);
/**
*/
int delNoTransferExternal(@Param("userIds") List<String> userIds, @Param("wxEnterpriseId") String wxEnterpriseId);
/**
* 查询待分配客户列表
*
* @param wxEnterpriseId
* @return
*/
List<HandoverStaffFriendCountDTO> listPreCountByStaffIds(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("staffIds") List<String> staffIds);
}
\ No newline at end of file
package com.gic.haoban.manage.service.dao.mapper;
import com.gic.haoban.manage.service.entity.TabHandoverStaff;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface HandoverStaffMapper {
/**
*/
int deleteByPrimaryKey(String handoverStaffId);
/**
*/
int insert(TabHandoverStaff record);
/**
*/
int insertSelective(TabHandoverStaff record);
/**
*/
TabHandoverStaff selectByPrimaryKey(String handoverStaffId);
/**
*/
int updateByPrimaryKeySelective(TabHandoverStaff record);
/**
*/
int updateByPrimaryKey(TabHandoverStaff record);
/**
*/
TabHandoverStaff getByStaffId(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("staffId") String staffId);
/**
* 获取待分配列表
*
* @param wxEnterpriseId
* @param storeId
* @return
*/
List<TabHandoverStaff> listByStoreId(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("storeId") String storeId);
/**
* 获取待分配列表
*
* @param wxEnterpriseId
* @return
*/
List<TabHandoverStaff> listByWxEnterpriseId(@Param("wxEnterpriseId") String wxEnterpriseId);
/**
* 删除用户
*/
int delByUserIds(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("userIds") List<String> userIds);
}
\ No newline at end of file
package com.gic.haoban.manage.service.dao.mapper;
import com.gic.haoban.manage.service.entity.TabHandoverTransfer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface HandoverTransferMapper {
/**
*/
int deleteByPrimaryKey(String handoverTransferId);
/**
*/
int insert(TabHandoverTransfer record);
/**
*/
int insertSelective(TabHandoverTransfer record);
/**
*/
TabHandoverTransfer selectByPrimaryKey(String handoverTransferId);
/**
*/
int updateByPrimaryKeySelective(TabHandoverTransfer record);
/**
*/
int updateByPrimaryKey(TabHandoverTransfer record);
/**
* 根据分配以及继承staffId 查询记录
*/
TabHandoverTransfer getByHandoverStaffIdAndTakeoverStaffId(@Param("wxEnterpriseId") String wxEnterpriseId,
@Param("handoverStaffId") String handoverStaffId,
@Param("takeoverStaffId") String takeoverStaffId);
/**
* 根据分配以及继承staffId 查询记录
*/
int addCount(@Param("id") String id, @Param("count") int count);
/**
* 分配记录
*
* @param wxEnterpriseId
* @param storeId
* @return
*/
public List<TabHandoverTransfer> listTransferByStoreId(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("storeId") String storeId);
/**
* 获取分配记录 根据handoverStaffId
*
* @param wxEnterpriseId
* @param handoverStaffId
* @return
*/
public List<TabHandoverTransfer> listTransferByHandoverStaffId(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("handoverStaffId") String handoverStaffId);
/**
* 获取继承记录 根据takeoverStaffId
*
* @param wxEnterpriseId
* @param takeoverStaffId
* @return
*/
public List<TabHandoverTransfer> listTransferByTakeoverStaffId(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("takeoverStaffId") String takeoverStaffId);
/**
* 获取分配列表
*
* @param wxEnterpriseId
* @param ids
* @return
*/
public List<TabHandoverTransfer> listTransferByIds(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("ids") List<String> ids);
/**
* 获取分配列表 企业级别
*
* @param wxEnterpriseId
* @param date
* @return
*/
public List<TabHandoverTransfer> listTransferByWxEnterpriseId(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("date") String date);
}
\ No newline at end of file
...@@ -57,4 +57,6 @@ public interface MemberUnionidRelatedMapper { ...@@ -57,4 +57,6 @@ public interface MemberUnionidRelatedMapper {
* @return * @return
*/ */
MemberUnionidRelated getBySelfExternalUserId(@Param("wxUserId") String wxUserId, @Param("wxEnterpriseId") String wxEnterpriseId, @Param("selfExternalUserId") String selfExternalUserId); MemberUnionidRelated getBySelfExternalUserId(@Param("wxUserId") String wxUserId, @Param("wxEnterpriseId") String wxEnterpriseId, @Param("selfExternalUserId") String selfExternalUserId);
List<MemberUnionidRelated> listBySelfExternalUserId(@Param("wxUserId") String wxUserId, @Param("wxEnterpriseId") String wxEnterpriseId, @Param("selfExternalUserId") String selfExternalUserId);
} }
\ No newline at end of file
package com.gic.haoban.manage.service.dao.mapper;
import com.gic.haoban.manage.service.entity.TabQywxSyncLog;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface QywxSyncLogMapper {
/**
*/
int deleteByPrimaryKey(String qywxSyncLogId);
/**
*/
int insert(TabQywxSyncLog record);
/**
*/
int insertSelective(TabQywxSyncLog record);
/**
*/
TabQywxSyncLog selectByPrimaryKey(String qywxSyncLogId);
/**
*/
int updateByPrimaryKeySelective(TabQywxSyncLog record);
/**
*/
int updateByPrimaryKey(TabQywxSyncLog record);
}
\ No newline at end of file
package com.gic.haoban.manage.service.dao.mapper;
import com.gic.haoban.manage.service.entity.TabQywxTagItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface QywxTagItemMapper {
/**
*/
int deleteByPrimaryKey(String qywxTagItemId);
/**
*/
int insert(TabQywxTagItem record);
/**
*/
int insertSelective(TabQywxTagItem record);
/**
*/
TabQywxTagItem selectByPrimaryKey(String qywxTagItemId);
/**
*/
int updateByPrimaryKeySelective(TabQywxTagItem record);
/**
*/
int updateByPrimaryKey(TabQywxTagItem record);
/**
* 根据id 获取标签项信息
*
* @param wxEnterpriseId
* @param qywxTagId
* @return
*/
List<TabQywxTagItem> listByQywxTagId(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("qywxTagId") String qywxTagId);
/**
* 根据企业微信标签组key 获取标签项信息
*
* @param wxEnterpriseId
* @param qywxTagGroupKey
* @return
*/
List<TabQywxTagItem> listByQywxTagGroupKey(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("qywxTagGroupKey") String qywxTagGroupKey);
/**
* 根据企业微信标签组key 获取标签项信息
*
* @param wxEnterpriseId
* @param qywxTagGroupKey
* @return
*/
int delByQywxTagGroupKey(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("qywxTagGroupKey") String qywxTagGroupKey);
/**
* 根据id 获取标签项信息
*
* @param wxEnterpriseId
* @param qywxTagKey
* @return
*/
TabQywxTagItem getByQywxTagKey(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("qywxTagKey") String qywxTagKey);
}
\ No newline at end of file
package com.gic.haoban.manage.service.dao.mapper;
import com.gic.haoban.manage.service.entity.TabQywxTag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface QywxTagMapper {
/**
*/
int deleteByPrimaryKey(String qywxTagId);
/**
*/
int insert(TabQywxTag record);
/**
*/
int insertSelective(TabQywxTag record);
/**
*/
TabQywxTag selectByPrimaryKey(String qywxTagId);
/**
*/
int updateByPrimaryKeySelective(TabQywxTag record);
/**
*/
int updateByPrimaryKey(TabQywxTag record);
/**
* 查询企业微信的标签组 根据key
*
* @param wxEnterpriseId
* @param qywxTagGroupKey
* @return
*/
TabQywxTag getByQywxGroupKey(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("qywxTagGroupKey") String qywxTagGroupKey);
/**
* 删除企业微信标签
*
* @param wxEnterpriseId
* @param qywxTagGroupKey
* @return
*/
int delByGroupKey(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("qywxTagGroupKey") String qywxTagGroupKey);
}
\ No newline at end of file
package com.gic.haoban.manage.service.dao.mapper;
import com.gic.haoban.manage.service.entity.TabQywxTagRelation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface QywxTagRelationMapper {
/**
*/
int deleteByPrimaryKey(String qywxTagRelationId);
/**
*/
int insert(TabQywxTagRelation record);
/**
*/
int insertSelective(TabQywxTagRelation record);
/**
*/
TabQywxTagRelation selectByPrimaryKey(String qywxTagRelationId);
/**
*/
int updateByPrimaryKeySelective(TabQywxTagRelation record);
/**
*/
int updateByPrimaryKey(TabQywxTagRelation record);
/**
* 查询企业下所有同步的
*
* @param wxEnterpriseId
* @return
*/
List<TabQywxTagRelation> listBySyncStatus(String wxEnterpriseId);
/**
* 查询企业下所有同步的
*
* @param wxEnterpriseId
* @param memberTagId
* @return
*/
List<TabQywxTagRelation> listByMemberTagId(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("memberTagId") String memberTagId);
/**
* 删除同步信息
*
* @param wxEnterpriseId
* @param memberTagId
* @return
*/
int delByMemberTagId(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("memberTagId") String memberTagId);
/**
* 查询企业下所有同步的
*
* @param wxEnterpriseId
* @param qywxTagId
* @return
*/
List<TabQywxTagRelation> listByQywxTagId(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("qywxTagId") String qywxTagId);
/**
* 查询企业下标签组的关联
*
* @param wxEnterpriseId
* @param qywxTagId
* @return
*/
TabQywxTagRelation getQywxGroupByQywxTagId(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("qywxTagId") String qywxTagId);
/**
* 查询企业下标签项的关联
*
* @param wxEnterpriseId
* @param qywxTagItemId
* @return
*/
TabQywxTagRelation getQywxTagByQywxTagItemId(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("qywxTagItemId") String qywxTagItemId);
}
\ No newline at end of file
...@@ -44,4 +44,10 @@ public interface StaffMapper { ...@@ -44,4 +44,10 @@ public interface StaffMapper {
TabHaobanStaff getWxStaffByOne(@Param("wxEnterpriseId")String wxEnterpriseId); TabHaobanStaff getWxStaffByOne(@Param("wxEnterpriseId")String wxEnterpriseId);
public List<String> listUserStaffId(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("staffIds") List<String> staffIds); public List<String> listUserStaffId(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("staffIds") List<String> staffIds);
public List<TabHaobanStaff> listNoStatusStaffIds(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("staffIds") List<String> staffIds);
public TabHaobanStaff getNoStatusByWxUserIds(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("wxUserId") String wxUserId);
} }
\ No newline at end of file
...@@ -40,4 +40,13 @@ public interface TabHaobanClerkMainStoreRelatedMapper { ...@@ -40,4 +40,13 @@ public interface TabHaobanClerkMainStoreRelatedMapper {
* @return * @return
*/ */
int delByStoreIds(@Param("storeIds") Set<String> storeIds); int delByStoreIds(@Param("storeIds") Set<String> storeIds);
/**
* 无状态列表 最近的数据
*
* @param wxEnterpriseId
* @param staffId
* @return
*/
TabHaobanClerkMainStoreRelated getLastNoStatusByStaffId(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("staffId") String staffId);
} }
\ No newline at end of file
...@@ -129,4 +129,50 @@ public interface TabHaobanExternalClerkRelatedMapper { ...@@ -129,4 +129,50 @@ public interface TabHaobanExternalClerkRelatedMapper {
List<TabHaobanExternalClerkRelated> listByWxUserIdAndWxEnterpriseId(@Param("wxUserId")String wxUserId, List<TabHaobanExternalClerkRelated> listByWxUserIdAndWxEnterpriseId(@Param("wxUserId")String wxUserId,
@Param("wxEnterpriseId") String wxEnterpriseId, @Param("wxEnterpriseId") String wxEnterpriseId,
@Param("enterpriseId") String enterpriseId); @Param("enterpriseId") String enterpriseId);
/**
* 获取最新的最近的外部联系人
*
* @param externalUserid
* @param wxUserId
* @return
*/
TabHaobanExternalClerkRelated getLastByExTernalUseridAndWxUserIdNoStatus(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("externalUserid") String externalUserid, @Param("wxUserId") String wxUserId);
/**
* 根据id 查询列表
*
* @param wxEnterpriseId
* @param ids
* @return
*/
List<TabHaobanExternalClerkRelated> listByIds(@Param("wxEnterpriseId") String wxEnterpriseId,
@Param("ids") List<String> ids);
/**
* 根据企业id 查询列表
*
* @param wxEnterpriseId
* @return
*/
List<String> listMemberIdByEnterpriseId(@Param("wxEnterpriseId") String wxEnterpriseId,
@Param("enterpriseId") String enterpriseId);
/**
* 查询会员在企业下的好友关系 根据会员ids
*
* @param memberId
* @param wxEnterpriseId
* @return
*/
List<TabHaobanExternalClerkRelated> listByMemberIds(@Param("memberIds") List<String> memberId,
@Param("wxEnterpriseId") String wxEnterpriseId);
/**
* 查询会员在企业下的好友关系 根据会员id
*
* @param memberId
* @return
*/
List<TabHaobanExternalClerkRelated> listByMemberId(@Param("memberId") String memberId);
} }
\ No newline at end of file
...@@ -48,4 +48,13 @@ public interface TabMiniprogramSettingMapper { ...@@ -48,4 +48,13 @@ public interface TabMiniprogramSettingMapper {
* @return * @return
*/ */
public List<TabMiniprogramSetting> listMiniprogramSetting(@Param("wxEnterpriseId") String wxEnterpriseId); public List<TabMiniprogramSetting> listMiniprogramSetting(@Param("wxEnterpriseId") String wxEnterpriseId);
/**
* 获取minprogramSetting
*
* @param wxEnterpriseId
* @param appId
* @return
*/
public TabMiniprogramSetting getMiniprogramSettingByAppId(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("appId") String appId);
} }
\ No newline at end of file
package com.gic.haoban.manage.service.entity;
import org.springframework.beans.factory.annotation.Autowired;
import java.io.Serializable;
import java.util.Date;
/**
* Created By MBG-GUI-EXTENSION https://github.com/spawpaw/mybatis-generator-gui-extension
* Description:
* 离职成员
*
* @author fdh
*/
public class TabHandoverStaff implements Serializable {
/**
*
*/
private String handoverStaffId;
/**
*
*/
private String wxEnterpriseId;
/**
*
*/
private String staffId;
/**
* 主门店id 当时
*/
private String storeId;
/**
* 外部联系人id
*/
private String handoverUserId;
/**
* 离职时间
*/
private Date dimissionTime;
/**
* 好友数量
*/
private Integer friendCount;
/**
* 好办好友数量
*/
private Integer haobanFriendCount;
/**
*
*/
private Integer statusFlag;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
/**
*/
private static final long serialVersionUID = 1L;
public String getStoreId() {
return storeId;
}
public void setStoreId(String storeId) {
this.storeId = storeId;
}
/**
* This method returns the value of the database column tab_haoban_handover_staff.handover_staff_id
*
* @return the value of tab_haoban_handover_staff.handover_staff_id
*/
public String getHandoverStaffId() {
return handoverStaffId;
}
/**
* This method sets the value of the database column tab_haoban_handover_staff.handover_staff_id
*
* @param handoverStaffId the value for tab_haoban_handover_staff.handover_staff_id
*/
public void setHandoverStaffId(String handoverStaffId) {
this.handoverStaffId = handoverStaffId;
}
/**
* This method returns the value of the database column tab_haoban_handover_staff.wx_enterprise_id
*
* @return the value of tab_haoban_handover_staff.wx_enterprise_id
*/
public String getWxEnterpriseId() {
return wxEnterpriseId;
}
/**
* This method sets the value of the database column tab_haoban_handover_staff.wx_enterprise_id
*
* @param wxEnterpriseId the value for tab_haoban_handover_staff.wx_enterprise_id
*/
public void setWxEnterpriseId(String wxEnterpriseId) {
this.wxEnterpriseId = wxEnterpriseId;
}
/**
* This method returns the value of the database column tab_haoban_handover_staff.staff_id
*
* @return the value of tab_haoban_handover_staff.staff_id
*/
public String getStaffId() {
return staffId;
}
/**
* This method sets the value of the database column tab_haoban_handover_staff.staff_id
*
* @param staffId the value for tab_haoban_handover_staff.staff_id
*/
public void setStaffId(String staffId) {
this.staffId = staffId;
}
/**
* This method returns the value of the database column tab_haoban_handover_staff.handover_user_id
*
* @return the value of tab_haoban_handover_staff.handover_user_id
*/
public String getHandoverUserId() {
return handoverUserId;
}
/**
* This method sets the value of the database column tab_haoban_handover_staff.handover_user_id
*
* @param handoverUserId the value for tab_haoban_handover_staff.handover_user_id
*/
public void setHandoverUserId(String handoverUserId) {
this.handoverUserId = handoverUserId;
}
/**
* This method returns the value of the database column tab_haoban_handover_staff.dimission_time
*
* @return the value of tab_haoban_handover_staff.dimission_time
*/
public Date getDimissionTime() {
return dimissionTime;
}
/**
* This method sets the value of the database column tab_haoban_handover_staff.dimission_time
*
* @param dimissionTime the value for tab_haoban_handover_staff.dimission_time
*/
public void setDimissionTime(Date dimissionTime) {
this.dimissionTime = dimissionTime;
}
/**
* This method returns the value of the database column tab_haoban_handover_staff.friend_count
*
* @return the value of tab_haoban_handover_staff.friend_count
*/
public Integer getFriendCount() {
return friendCount;
}
/**
* This method sets the value of the database column tab_haoban_handover_staff.friend_count
*
* @param friendCount the value for tab_haoban_handover_staff.friend_count
*/
public void setFriendCount(Integer friendCount) {
this.friendCount = friendCount;
}
/**
* This method returns the value of the database column tab_haoban_handover_staff.haoban_friend_count
*
* @return the value of tab_haoban_handover_staff.haoban_friend_count
*/
public Integer getHaobanFriendCount() {
return haobanFriendCount;
}
/**
* This method sets the value of the database column tab_haoban_handover_staff.haoban_friend_count
*
* @param haobanFriendCount the value for tab_haoban_handover_staff.haoban_friend_count
*/
public void setHaobanFriendCount(Integer haobanFriendCount) {
this.haobanFriendCount = haobanFriendCount;
}
/**
* This method returns the value of the database column tab_haoban_handover_staff.status_flag
*
* @return the value of tab_haoban_handover_staff.status_flag
*/
public Integer getStatusFlag() {
return statusFlag;
}
/**
* This method sets the value of the database column tab_haoban_handover_staff.status_flag
*
* @param statusFlag the value for tab_haoban_handover_staff.status_flag
*/
public void setStatusFlag(Integer statusFlag) {
this.statusFlag = statusFlag;
}
/**
* This method returns the value of the database column tab_haoban_handover_staff.create_time
*
* @return the value of tab_haoban_handover_staff.create_time
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method sets the value of the database column tab_haoban_handover_staff.create_time
*
* @param createTime the value for tab_haoban_handover_staff.create_time
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method returns the value of the database column tab_haoban_handover_staff.update_time
*
* @return the value of tab_haoban_handover_staff.update_time
*/
public Date getUpdateTime() {
return updateTime;
}
/**
* This method sets the value of the database column tab_haoban_handover_staff.update_time
*
* @param updateTime the value for tab_haoban_handover_staff.update_time
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
\ No newline at end of file
package com.gic.haoban.manage.service.entity;
import java.io.Serializable;
import java.util.Date;
/**
* Created By MBG-GUI-EXTENSION https://github.com/spawpaw/mybatis-generator-gui-extension
* Description:
* 离职分配记录
*
* @author fdh
*/
public class TabHandoverTransfer implements Serializable {
/**
*
*/
private String handoverTransferId;
/**
*
*/
private String wxEnterpriseId;
/**
* 当前操作的门店
*/
private String storeId;
/**
* 操作人的用户id
*/
private String handoverStaffId;
/**
* 接收人的staffid
*/
private String takeoverStaffId;
/**
* 分配的数量
*/
private Integer externalCount;
/**
* 0删除 1正常
*/
private Integer statusFlag;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
*/
private static final long serialVersionUID = 1L;
/**
* This method returns the value of the database column tab_haoban_handover_transfer.handover_transfer_id
*
* @return the value of tab_haoban_handover_transfer.handover_transfer_id
*/
public String getHandoverTransferId() {
return handoverTransferId;
}
/**
* This method sets the value of the database column tab_haoban_handover_transfer.handover_transfer_id
*
* @param handoverTransferId the value for tab_haoban_handover_transfer.handover_transfer_id
*/
public void setHandoverTransferId(String handoverTransferId) {
this.handoverTransferId = handoverTransferId;
}
/**
* This method returns the value of the database column tab_haoban_handover_transfer.wx_enterprise_id
*
* @return the value of tab_haoban_handover_transfer.wx_enterprise_id
*/
public String getWxEnterpriseId() {
return wxEnterpriseId;
}
/**
* This method sets the value of the database column tab_haoban_handover_transfer.wx_enterprise_id
*
* @param wxEnterpriseId the value for tab_haoban_handover_transfer.wx_enterprise_id
*/
public void setWxEnterpriseId(String wxEnterpriseId) {
this.wxEnterpriseId = wxEnterpriseId;
}
/**
* This method returns the value of the database column tab_haoban_handover_transfer.store_id
*
* @return the value of tab_haoban_handover_transfer.store_id
*/
public String getStoreId() {
return storeId;
}
/**
* This method sets the value of the database column tab_haoban_handover_transfer.store_id
*
* @param storeId the value for tab_haoban_handover_transfer.store_id
*/
public void setStoreId(String storeId) {
this.storeId = storeId;
}
/**
* This method returns the value of the database column tab_haoban_handover_transfer.handover_staff_id
*
* @return the value of tab_haoban_handover_transfer.handover_staff_id
*/
public String getHandoverStaffId() {
return handoverStaffId;
}
/**
* This method sets the value of the database column tab_haoban_handover_transfer.handover_staff_id
*
* @param handoverStaffId the value for tab_haoban_handover_transfer.handover_staff_id
*/
public void setHandoverStaffId(String handoverStaffId) {
this.handoverStaffId = handoverStaffId;
}
/**
* This method returns the value of the database column tab_haoban_handover_transfer.takeover_staff_id
*
* @return the value of tab_haoban_handover_transfer.takeover_staff_id
*/
public String getTakeoverStaffId() {
return takeoverStaffId;
}
/**
* This method sets the value of the database column tab_haoban_handover_transfer.takeover_staff_id
*
* @param takeoverStaffId the value for tab_haoban_handover_transfer.takeover_staff_id
*/
public void setTakeoverStaffId(String takeoverStaffId) {
this.takeoverStaffId = takeoverStaffId;
}
/**
* This method returns the value of the database column tab_haoban_handover_transfer.external_count
*
* @return the value of tab_haoban_handover_transfer.external_count
*/
public Integer getExternalCount() {
return externalCount;
}
/**
* This method sets the value of the database column tab_haoban_handover_transfer.external_count
*
* @param externalCount the value for tab_haoban_handover_transfer.external_count
*/
public void setExternalCount(Integer externalCount) {
this.externalCount = externalCount;
}
/**
* This method returns the value of the database column tab_haoban_handover_transfer.status_flag
*
* @return the value of tab_haoban_handover_transfer.status_flag
*/
public Integer getStatusFlag() {
return statusFlag;
}
/**
* This method sets the value of the database column tab_haoban_handover_transfer.status_flag
*
* @param statusFlag the value for tab_haoban_handover_transfer.status_flag
*/
public void setStatusFlag(Integer statusFlag) {
this.statusFlag = statusFlag;
}
/**
* This method returns the value of the database column tab_haoban_handover_transfer.create_time
*
* @return the value of tab_haoban_handover_transfer.create_time
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method sets the value of the database column tab_haoban_handover_transfer.create_time
*
* @param createTime the value for tab_haoban_handover_transfer.create_time
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method returns the value of the database column tab_haoban_handover_transfer.update_time
*
* @return the value of tab_haoban_handover_transfer.update_time
*/
public Date getUpdateTime() {
return updateTime;
}
/**
* This method sets the value of the database column tab_haoban_handover_transfer.update_time
*
* @param updateTime the value for tab_haoban_handover_transfer.update_time
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
\ No newline at end of file
...@@ -71,6 +71,16 @@ public class TabMiniprogramSetting implements Serializable { ...@@ -71,6 +71,16 @@ public class TabMiniprogramSetting implements Serializable {
*/ */
private Date updateTime; private Date updateTime;
private Integer miniprogramType;
public Integer getMiniprogramType() {
return miniprogramType;
}
public void setMiniprogramType(Integer miniprogramType) {
this.miniprogramType = miniprogramType;
}
/** /**
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
package com.gic.haoban.manage.service.entity;
import java.io.Serializable;
import java.util.Date;
/**
* Created By MBG-GUI-EXTENSION https://github.com/spawpaw/mybatis-generator-gui-extension
* Description:
* 企业微信同步日志
*
* @author fdh
*/
public class TabQywxSyncLog implements Serializable {
/**
*
*/
private String qywxSyncLogId;
/**
*
*/
private String qywxTagRelationId;
/**
*
*/
private String memberTagId;
/**
*
*/
private String memberTagName;
/**
* 业务类型 0 标签组 1标签项
*/
private Integer businessType;
/**
* 变更类型
*/
private String changeCode;
/**
* 内容
*/
private String logContent;
/**
* 操作code
*/
private String optCode;
/**
*
*/
private String optStaffId;
/**
* 同步任务id
*/
private String syncTaskId;
/**
* 0删除 1同步中 2成功 3失败
*/
private Integer statusFlag;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
*/
private static final long serialVersionUID = 1L;
/**
* This method returns the value of the database column tab_haoban_qywx_sync_log.qywx_sync_log_id
*
* @return the value of tab_haoban_qywx_sync_log.qywx_sync_log_id
*/
public String getQywxSyncLogId() {
return qywxSyncLogId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_sync_log.qywx_sync_log_id
*
* @param qywxSyncLogId the value for tab_haoban_qywx_sync_log.qywx_sync_log_id
*/
public void setQywxSyncLogId(String qywxSyncLogId) {
this.qywxSyncLogId = qywxSyncLogId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_sync_log.qywx_tag_relation_id
*
* @return the value of tab_haoban_qywx_sync_log.qywx_tag_relation_id
*/
public String getQywxTagRelationId() {
return qywxTagRelationId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_sync_log.qywx_tag_relation_id
*
* @param qywxTagRelationId the value for tab_haoban_qywx_sync_log.qywx_tag_relation_id
*/
public void setQywxTagRelationId(String qywxTagRelationId) {
this.qywxTagRelationId = qywxTagRelationId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_sync_log.member_tag_id
*
* @return the value of tab_haoban_qywx_sync_log.member_tag_id
*/
public String getMemberTagId() {
return memberTagId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_sync_log.member_tag_id
*
* @param memberTagId the value for tab_haoban_qywx_sync_log.member_tag_id
*/
public void setMemberTagId(String memberTagId) {
this.memberTagId = memberTagId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_sync_log.member_tag_name
*
* @return the value of tab_haoban_qywx_sync_log.member_tag_name
*/
public String getMemberTagName() {
return memberTagName;
}
/**
* This method sets the value of the database column tab_haoban_qywx_sync_log.member_tag_name
*
* @param memberTagName the value for tab_haoban_qywx_sync_log.member_tag_name
*/
public void setMemberTagName(String memberTagName) {
this.memberTagName = memberTagName;
}
/**
* This method returns the value of the database column tab_haoban_qywx_sync_log.business_type
*
* @return the value of tab_haoban_qywx_sync_log.business_type
*/
public Integer getBusinessType() {
return businessType;
}
/**
* This method sets the value of the database column tab_haoban_qywx_sync_log.business_type
*
* @param businessType the value for tab_haoban_qywx_sync_log.business_type
*/
public void setBusinessType(Integer businessType) {
this.businessType = businessType;
}
/**
* This method returns the value of the database column tab_haoban_qywx_sync_log.change_code
*
* @return the value of tab_haoban_qywx_sync_log.change_code
*/
public String getChangeCode() {
return changeCode;
}
/**
* This method sets the value of the database column tab_haoban_qywx_sync_log.change_code
*
* @param changeCode the value for tab_haoban_qywx_sync_log.change_code
*/
public void setChangeCode(String changeCode) {
this.changeCode = changeCode;
}
/**
* This method returns the value of the database column tab_haoban_qywx_sync_log.log_content
*
* @return the value of tab_haoban_qywx_sync_log.log_content
*/
public String getLogContent() {
return logContent;
}
/**
* This method sets the value of the database column tab_haoban_qywx_sync_log.log_content
*
* @param logContent the value for tab_haoban_qywx_sync_log.log_content
*/
public void setLogContent(String logContent) {
this.logContent = logContent;
}
/**
* This method returns the value of the database column tab_haoban_qywx_sync_log.opt_code
*
* @return the value of tab_haoban_qywx_sync_log.opt_code
*/
public String getOptCode() {
return optCode;
}
/**
* This method sets the value of the database column tab_haoban_qywx_sync_log.opt_code
*
* @param optCode the value for tab_haoban_qywx_sync_log.opt_code
*/
public void setOptCode(String optCode) {
this.optCode = optCode;
}
/**
* This method returns the value of the database column tab_haoban_qywx_sync_log.opt_staff_id
*
* @return the value of tab_haoban_qywx_sync_log.opt_staff_id
*/
public String getOptStaffId() {
return optStaffId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_sync_log.opt_staff_id
*
* @param optStaffId the value for tab_haoban_qywx_sync_log.opt_staff_id
*/
public void setOptStaffId(String optStaffId) {
this.optStaffId = optStaffId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_sync_log.sync_task_id
*
* @return the value of tab_haoban_qywx_sync_log.sync_task_id
*/
public String getSyncTaskId() {
return syncTaskId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_sync_log.sync_task_id
*
* @param syncTaskId the value for tab_haoban_qywx_sync_log.sync_task_id
*/
public void setSyncTaskId(String syncTaskId) {
this.syncTaskId = syncTaskId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_sync_log.status_flag
*
* @return the value of tab_haoban_qywx_sync_log.status_flag
*/
public Integer getStatusFlag() {
return statusFlag;
}
/**
* This method sets the value of the database column tab_haoban_qywx_sync_log.status_flag
*
* @param statusFlag the value for tab_haoban_qywx_sync_log.status_flag
*/
public void setStatusFlag(Integer statusFlag) {
this.statusFlag = statusFlag;
}
/**
* This method returns the value of the database column tab_haoban_qywx_sync_log.create_time
*
* @return the value of tab_haoban_qywx_sync_log.create_time
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method sets the value of the database column tab_haoban_qywx_sync_log.create_time
*
* @param createTime the value for tab_haoban_qywx_sync_log.create_time
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method returns the value of the database column tab_haoban_qywx_sync_log.update_time
*
* @return the value of tab_haoban_qywx_sync_log.update_time
*/
public Date getUpdateTime() {
return updateTime;
}
/**
* This method sets the value of the database column tab_haoban_qywx_sync_log.update_time
*
* @param updateTime the value for tab_haoban_qywx_sync_log.update_time
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
\ No newline at end of file
package com.gic.haoban.manage.service.entity;
import java.io.Serializable;
import java.util.Date;
/**
* Created By MBG-GUI-EXTENSION https://github.com/spawpaw/mybatis-generator-gui-extension
* Description:
* 企业微信标签
* @author fdh
*/
public class TabQywxTag implements Serializable {
/**
*
*/
private String qywxTagId;
/**
* 企业微信id
*
*/
private String wxEnterpriseId;
/**
* 企业微信对应的标签组id
*
*/
private String qywxGroupKey;
/**
* 标签组名称
*
*/
private String qywxGroupName;
/**
* 排序
*
*/
private Long order;
/**
* 0删除 1正常
*
*/
private Integer statusFlag;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
*/
private static final long serialVersionUID = 1L;
/**
* This method returns the value of the database column tab_haoban_qywx_tag.qywx_tag_id
*
* @return the value of tab_haoban_qywx_tag.qywx_tag_id
*/
public String getQywxTagId() {
return qywxTagId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag.qywx_tag_id
*
* @param qywxTagId the value for tab_haoban_qywx_tag.qywx_tag_id
*/
public void setQywxTagId(String qywxTagId) {
this.qywxTagId = qywxTagId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag.wx_enterprise_id
*
* @return the value of tab_haoban_qywx_tag.wx_enterprise_id
*/
public String getWxEnterpriseId() {
return wxEnterpriseId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag.wx_enterprise_id
*
* @param wxEnterpriseId the value for tab_haoban_qywx_tag.wx_enterprise_id
*/
public void setWxEnterpriseId(String wxEnterpriseId) {
this.wxEnterpriseId = wxEnterpriseId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag.qywx_group_key
*
* @return the value of tab_haoban_qywx_tag.qywx_group_key
*/
public String getQywxGroupKey() {
return qywxGroupKey;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag.qywx_group_key
*
* @param qywxGroupKey the value for tab_haoban_qywx_tag.qywx_group_key
*/
public void setQywxGroupKey(String qywxGroupKey) {
this.qywxGroupKey = qywxGroupKey;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag.qywx_group_name
*
* @return the value of tab_haoban_qywx_tag.qywx_group_name
*/
public String getQywxGroupName() {
return qywxGroupName;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag.qywx_group_name
*
* @param qywxGroupName the value for tab_haoban_qywx_tag.qywx_group_name
*/
public void setQywxGroupName(String qywxGroupName) {
this.qywxGroupName = qywxGroupName;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag.order
*
* @return the value of tab_haoban_qywx_tag.order
*/
public Long getOrder() {
return order;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag.order
*
* @param order the value for tab_haoban_qywx_tag.order
*/
public void setOrder(Long order) {
this.order = order;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag.status_flag
*
* @return the value of tab_haoban_qywx_tag.status_flag
*/
public Integer getStatusFlag() {
return statusFlag;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag.status_flag
*
* @param statusFlag the value for tab_haoban_qywx_tag.status_flag
*/
public void setStatusFlag(Integer statusFlag) {
this.statusFlag = statusFlag;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag.create_time
*
* @return the value of tab_haoban_qywx_tag.create_time
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag.create_time
*
* @param createTime the value for tab_haoban_qywx_tag.create_time
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag.update_time
*
* @return the value of tab_haoban_qywx_tag.update_time
*/
public Date getUpdateTime() {
return updateTime;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag.update_time
*
* @param updateTime the value for tab_haoban_qywx_tag.update_time
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
\ No newline at end of file
package com.gic.haoban.manage.service.entity;
import java.io.Serializable;
import java.util.Date;
/**
* Created By MBG-GUI-EXTENSION https://github.com/spawpaw/mybatis-generator-gui-extension
* Description:
* 企业微信标签项
* @author fdh
*/
public class TabQywxTagItem implements Serializable {
/**
*
*/
private String qywxTagItemId;
/**
*
*/
private String wxEnterpriseId;
/**
* 关联的企业微信标签id
*/
private String qywxTagId;
/**
* 企业微信标签组对应的id
*
*/
private String qywxGroupKey;
/**
* 企业微信标签项对应的id
*
*/
private String qywxTagKey;
/**
* 名称
*
*/
private String qywxTagName;
/**
* 排序
*
*/
private Long order;
/**
* 状态
*
*/
private Integer statusFlag;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
*/
private static final long serialVersionUID = 1L;
/**
* This method returns the value of the database column tab_haoban_qywx_tag_item.qywx_tag_item_id
*
* @return the value of tab_haoban_qywx_tag_item.qywx_tag_item_id
*/
public String getQywxTagItemId() {
return qywxTagItemId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_item.qywx_tag_item_id
*
* @param qywxTagItemId the value for tab_haoban_qywx_tag_item.qywx_tag_item_id
*/
public void setQywxTagItemId(String qywxTagItemId) {
this.qywxTagItemId = qywxTagItemId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_item.wx_enterprise_id
*
* @return the value of tab_haoban_qywx_tag_item.wx_enterprise_id
*/
public String getWxEnterpriseId() {
return wxEnterpriseId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_item.wx_enterprise_id
*
* @param wxEnterpriseId the value for tab_haoban_qywx_tag_item.wx_enterprise_id
*/
public void setWxEnterpriseId(String wxEnterpriseId) {
this.wxEnterpriseId = wxEnterpriseId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_item.qywx_tag_id
*
* @return the value of tab_haoban_qywx_tag_item.qywx_tag_id
*/
public String getQywxTagId() {
return qywxTagId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_item.qywx_tag_id
*
* @param qywxTagId the value for tab_haoban_qywx_tag_item.qywx_tag_id
*/
public void setQywxTagId(String qywxTagId) {
this.qywxTagId = qywxTagId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_item.qywx_group_key
*
* @return the value of tab_haoban_qywx_tag_item.qywx_group_key
*/
public String getQywxGroupKey() {
return qywxGroupKey;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_item.qywx_group_key
*
* @param qywxGroupKey the value for tab_haoban_qywx_tag_item.qywx_group_key
*/
public void setQywxGroupKey(String qywxGroupKey) {
this.qywxGroupKey = qywxGroupKey;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_item.qywx_tag_key
*
* @return the value of tab_haoban_qywx_tag_item.qywx_tag_key
*/
public String getQywxTagKey() {
return qywxTagKey;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_item.qywx_tag_key
*
* @param qywxTagKey the value for tab_haoban_qywx_tag_item.qywx_tag_key
*/
public void setQywxTagKey(String qywxTagKey) {
this.qywxTagKey = qywxTagKey;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_item.qywx_tag_name
*
* @return the value of tab_haoban_qywx_tag_item.qywx_tag_name
*/
public String getQywxTagName() {
return qywxTagName;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_item.qywx_tag_name
*
* @param qywxTagName the value for tab_haoban_qywx_tag_item.qywx_tag_name
*/
public void setQywxTagName(String qywxTagName) {
this.qywxTagName = qywxTagName;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_item.order
*
* @return the value of tab_haoban_qywx_tag_item.order
*/
public Long getOrder() {
return order;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_item.order
*
* @param order the value for tab_haoban_qywx_tag_item.order
*/
public void setOrder(Long order) {
this.order = order;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_item.status_flag
*
* @return the value of tab_haoban_qywx_tag_item.status_flag
*/
public Integer getStatusFlag() {
return statusFlag;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_item.status_flag
*
* @param statusFlag the value for tab_haoban_qywx_tag_item.status_flag
*/
public void setStatusFlag(Integer statusFlag) {
this.statusFlag = statusFlag;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_item.create_time
*
* @return the value of tab_haoban_qywx_tag_item.create_time
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_item.create_time
*
* @param createTime the value for tab_haoban_qywx_tag_item.create_time
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_item.update_time
*
* @return the value of tab_haoban_qywx_tag_item.update_time
*/
public Date getUpdateTime() {
return updateTime;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_item.update_time
*
* @param updateTime the value for tab_haoban_qywx_tag_item.update_time
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
\ No newline at end of file
package com.gic.haoban.manage.service.entity;
import java.io.Serializable;
import java.util.Date;
/**
* Created By MBG-GUI-EXTENSION https://github.com/spawpaw/mybatis-generator-gui-extension
* Description:
*
* @author fdh
*/
public class TabQywxTagRelation implements Serializable {
/**
*
*/
private String qywxTagRelationId;
/**
*
*/
private String wxEnterpriseId;
/**
*
*/
private String enterpriseId;
/**
* 标签id
*
*/
private String memberTagId;
/**
* 导购标签项id
*/
private String tagItemId;
/**
* 0 标签 1标签项
*/
private Integer relationType;
/**
* 同步状态 0 不同步 1同步
*
*/
private Integer syncFlag;
/**
* 排序
*
*/
private Long order;
/**
* 企业微信标签id
*
*/
private String qywxTagId;
/**
* 企业微信标签项id
*
*/
private String qywxTagItemId;
/**
* 0删除 1正常
*
*/
private Integer statusFlag;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
*/
private static final long serialVersionUID = 1L;
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.qywx_tag_relation_id
*
* @return the value of tab_haoban_qywx_tag_relation.qywx_tag_relation_id
*/
public String getQywxTagRelationId() {
return qywxTagRelationId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.qywx_tag_relation_id
*
* @param qywxTagRelationId the value for tab_haoban_qywx_tag_relation.qywx_tag_relation_id
*/
public void setQywxTagRelationId(String qywxTagRelationId) {
this.qywxTagRelationId = qywxTagRelationId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.wx_enterprise_id
*
* @return the value of tab_haoban_qywx_tag_relation.wx_enterprise_id
*/
public String getWxEnterpriseId() {
return wxEnterpriseId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.wx_enterprise_id
*
* @param wxEnterpriseId the value for tab_haoban_qywx_tag_relation.wx_enterprise_id
*/
public void setWxEnterpriseId(String wxEnterpriseId) {
this.wxEnterpriseId = wxEnterpriseId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.enterprise_id
*
* @return the value of tab_haoban_qywx_tag_relation.enterprise_id
*/
public String getEnterpriseId() {
return enterpriseId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.enterprise_id
*
* @param enterpriseId the value for tab_haoban_qywx_tag_relation.enterprise_id
*/
public void setEnterpriseId(String enterpriseId) {
this.enterpriseId = enterpriseId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.member_tag_id
*
* @return the value of tab_haoban_qywx_tag_relation.member_tag_id
*/
public String getMemberTagId() {
return memberTagId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.member_tag_id
*
* @param memberTagId the value for tab_haoban_qywx_tag_relation.member_tag_id
*/
public void setMemberTagId(String memberTagId) {
this.memberTagId = memberTagId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.tag_item_id
*
* @return the value of tab_haoban_qywx_tag_relation.tag_item_id
*/
public String getTagItemId() {
return tagItemId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.tag_item_id
*
* @param tagItemId the value for tab_haoban_qywx_tag_relation.tag_item_id
*/
public void setTagItemId(String tagItemId) {
this.tagItemId = tagItemId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.relation_type
*
* @return the value of tab_haoban_qywx_tag_relation.relation_type
*/
public Integer getRelationType() {
return relationType;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.relation_type
*
* @param relationType the value for tab_haoban_qywx_tag_relation.relation_type
*/
public void setRelationType(Integer relationType) {
this.relationType = relationType;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.sync_flag
*
* @return the value of tab_haoban_qywx_tag_relation.sync_flag
*/
public Integer getSyncFlag() {
return syncFlag;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.sync_flag
*
* @param syncFlag the value for tab_haoban_qywx_tag_relation.sync_flag
*/
public void setSyncFlag(Integer syncFlag) {
this.syncFlag = syncFlag;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.order
*
* @return the value of tab_haoban_qywx_tag_relation.order
*/
public Long getOrder() {
return order;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.order
*
* @param order the value for tab_haoban_qywx_tag_relation.order
*/
public void setOrder(Long order) {
this.order = order;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.qywx_tag_id
*
* @return the value of tab_haoban_qywx_tag_relation.qywx_tag_id
*/
public String getQywxTagId() {
return qywxTagId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.qywx_tag_id
*
* @param qywxTagId the value for tab_haoban_qywx_tag_relation.qywx_tag_id
*/
public void setQywxTagId(String qywxTagId) {
this.qywxTagId = qywxTagId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.qywx_tag_item_id
*
* @return the value of tab_haoban_qywx_tag_relation.qywx_tag_item_id
*/
public String getQywxTagItemId() {
return qywxTagItemId;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.qywx_tag_item_id
*
* @param qywxTagItemId the value for tab_haoban_qywx_tag_relation.qywx_tag_item_id
*/
public void setQywxTagItemId(String qywxTagItemId) {
this.qywxTagItemId = qywxTagItemId;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.status_flag
*
* @return the value of tab_haoban_qywx_tag_relation.status_flag
*/
public Integer getStatusFlag() {
return statusFlag;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.status_flag
*
* @param statusFlag the value for tab_haoban_qywx_tag_relation.status_flag
*/
public void setStatusFlag(Integer statusFlag) {
this.statusFlag = statusFlag;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.create_time
*
* @return the value of tab_haoban_qywx_tag_relation.create_time
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.create_time
*
* @param createTime the value for tab_haoban_qywx_tag_relation.create_time
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method returns the value of the database column tab_haoban_qywx_tag_relation.update_time
*
* @return the value of tab_haoban_qywx_tag_relation.update_time
*/
public Date getUpdateTime() {
return updateTime;
}
/**
* This method sets the value of the database column tab_haoban_qywx_tag_relation.update_time
*
* @param updateTime the value for tab_haoban_qywx_tag_relation.update_time
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
\ No newline at end of file
...@@ -15,7 +15,9 @@ public class DealQywxExternalUserPojo implements Serializable { ...@@ -15,7 +15,9 @@ public class DealQywxExternalUserPojo implements Serializable {
//删除 //删除
del(0), del(0),
//新增 //新增
add(1); add(1),
//修改
edit(2),;
private int type; private int type;
DealType(int type) { DealType(int type) {
......
...@@ -40,4 +40,5 @@ public interface ClerkMainStoreRelatedService { ...@@ -40,4 +40,5 @@ public interface ClerkMainStoreRelatedService {
List<TabHaobanClerkMainStoreRelated> listByWxEnterpriseId(String wxEnterpriseId); List<TabHaobanClerkMainStoreRelated> listByWxEnterpriseId(String wxEnterpriseId);
} }
package com.gic.haoban.manage.service.service;
import com.gic.api.base.commons.Page;
import com.gic.haoban.base.api.common.BasePageInfo;
import com.gic.haoban.manage.api.dto.HandoverExternalDTO;
import com.gic.haoban.manage.api.dto.HandoverStaffFriendCountDTO;
import com.gic.haoban.manage.service.entity.TabHandoverExternal;
import com.gic.haoban.manage.service.entity.TabHandoverStaff;
import com.gic.haoban.manage.service.entity.TabHandoverTransfer;
import com.gic.wechat.api.dto.qywx.QywxTransferCustomerInfoDTO;
import com.gic.wechat.api.dto.qywx.QywxUnassignedInfoDTO;
import java.util.List;
/**
* Created 2021/6/15.
*
* @author hua
*/
public interface HandoverService {
/**
* 保存离职基础的好友
*
* @param infoList
* @return
*/
public boolean saveHandover(String wxEnterpriseId, List<QywxUnassignedInfoDTO> infoList);
/**
* 分配列表
*
* @param wxEnterpriseId
* @param storeId
* @return
*/
public List<TabHandoverStaff> listByStoreId(String wxEnterpriseId, String storeId);
/**
* 分配的客户列表
*
* @param wxEnterpriseId
* @param staffIds
* @return
*/
public Page<HandoverExternalDTO> pageByStaffIds(String wxEnterpriseId, String search, List<String> staffIds, List<String> transferIds, BasePageInfo pageInfo, Integer status);
/**
* 查询待分配列表
*
* @param ids
* @return
*/
public List<TabHandoverExternal> listByIds(String wxEnterpriseId, List<String> ids);
/**
* 保存分配记录
*
* @param transfer
* @return id 主键
*/
public String saveHandoverTransfer(TabHandoverTransfer transfer, List<String> handoverExternalIds);
/**
* 分配记录列表
*
* @param wxEnterpriseId
* @param storeId
* @return
*/
public List<TabHandoverTransfer> listTransferByStoreId(String wxEnterpriseId, String storeId);
/**
* 分配记录列表
*
* @param wxEnterpriseId
* @param handoverStaffId
* @return
*/
public List<TabHandoverTransfer> listTransferByHandoverStaffId(String wxEnterpriseId, String handoverStaffId);
/**
* 继承记录列表
*
* @param wxEnterpriseId
* @param takeoverStaffId
* @return
*/
public List<TabHandoverTransfer> listTransferByTakeoverStaffId(String wxEnterpriseId, String takeoverStaffId);
/**
* 分配记录列表
*
* @param wxEnterpriseId
* @param ids
* @return
*/
public List<TabHandoverTransfer> listTransferByIds(String wxEnterpriseId, List<String> ids);
/**
* 继承记录列表 企业下所有
*
* @param wxEnterpriseId
* @return
*/
public List<TabHandoverTransfer> listTransferByWxEnterpriseId(String wxEnterpriseId, String date);
/**
* 处理结果
*
* @param list
* @return
*/
public boolean dealResult(String wxEnterpriseId, String transferId, List<QywxTransferCustomerInfoDTO> list);
/**
* 还未分配的客户数量
*
* @param wxEnterpriseId
* @return
*/
public List<HandoverStaffFriendCountDTO> listFriendCountByWxStaffIds(String wxEnterpriseId, List<String> staffIds);
}
...@@ -46,4 +46,14 @@ public interface MemberUnionRelatedService { ...@@ -46,4 +46,14 @@ public interface MemberUnionRelatedService {
* @return * @return
*/ */
MemberUnionidRelatedDTO getBySelfExternalUserId(String wxUserId, String wxEnterpriseId, String selfExternalUserId); MemberUnionidRelatedDTO getBySelfExternalUserId(String wxUserId, String wxEnterpriseId, String selfExternalUserId);
/**
* 根据应用内的外部联系人id 获取信息
*
* @param wxUserId
* @param wxEnterpriseId
* @param selfExternalUserId
* @return
*/
List<MemberUnionidRelatedDTO> listBySelfExternalUserId(String wxUserId, String wxEnterpriseId, String selfExternalUserId);
} }
...@@ -52,5 +52,14 @@ public interface MiniprogramSettingService { ...@@ -52,5 +52,14 @@ public interface MiniprogramSettingService {
*/ */
public boolean delMiniprogramSetting(String id); public boolean delMiniprogramSetting(String id);
/**
* 获取单个配置信息
*
* @param wxEnterpriseId
* @param appId
* @return
*/
public TabMiniprogramSetting getMiniprogramSettingByAppId(String wxEnterpriseId, String appId);
} }
package com.gic.haoban.manage.service.service;
import com.gic.haoban.manage.api.dto.QywxTagInfoDTO;
import com.gic.haoban.manage.api.dto.QywxTagItemDTO;
import com.gic.haoban.manage.api.dto.QywxTagRelationDTO;
import com.gic.haoban.manage.service.entity.TabQywxTag;
import com.gic.haoban.manage.service.entity.TabQywxTagItem;
import com.gic.haoban.manage.service.entity.TabQywxTagRelation;
import com.gic.wechat.api.dto.qywx.QywxTagGroupDTO;
import org.apache.commons.lang3.tuple.Pair;
import java.util.List;
/**
* Created 2021/6/21.
*
* @author hua
*/
public interface QywxTagService {
/**
* 根据标签组key 查询详情
*
* @param wxEnterpriseId
* @param groupKey
* @return
*/
public TabQywxTag getQywxTagByQywxGroupKey(String wxEnterpriseId, String groupKey);
/**
* 根据标签组key 查询详情
*
* @param wxEnterpriseId
* @param id
* @return
*/
public TabQywxTag getQywxTagByQywxTagId(String wxEnterpriseId, String id);
/**
* 根据id 查询列表
*
* @param wxEnterpriseId
* @param qywxTagId
* @return
*/
public List<TabQywxTagItem> listByQywxTagId(String wxEnterpriseId, String qywxTagId);
/**
* 查询所有同步的企业微信标签
*
* @param wxEnterpriseId
* @return
*/
public List<TabQywxTagRelation> listAllQywxRelation(String wxEnterpriseId);
/**
* 保存企业微信的标签
*
* @param wxEnterpriseId
* @param groupDTO
* @return
*/
public Pair<TabQywxTag, List<TabQywxTagItem>> saveQywxTagByQywxGroupKey(String wxEnterpriseId, QywxTagGroupDTO groupDTO);
/**
* 保存企业微信的标签
*
* @param wxEnterpriseId
* @return
*/
public void saveQywxTagByQywxGroupKey(String wxEnterpriseId, QywxTagInfoDTO infoDTO, List<QywxTagItemDTO> items);
/**
* @param wxEnterpriseId
* @param tagId
* @return
*/
public boolean sync(String wxEnterpriseId, String tagId);
/**
* 关闭同步
*
* @param wxEnterpriseId
* @param memberTagId
* @return
*/
public boolean closeSync(String wxEnterpriseId, String memberTagId);
/**
* 保存标签
*
* @param list
* @return
*/
public boolean saveQywxRelation(List<TabQywxTagRelation> list);
/**
* 根据id 查询
*
* @param relationId
* @return
*/
public TabQywxTagRelation getQywxTagRelationById(String relationId);
/**
* 根据id 查询
*
* @param memberTagId
* @return
*/
public List<TabQywxTagRelation> listQywxTagRelationByMemberTagId(String wxEnterpriseId, String memberTagId);
/**
* 根据qywxTagId查询
*
* @param qywxTagId
* @return
*/
public List<TabQywxTagRelation> listQywxTagRelationByQywxTagId(String wxEnterpriseId, String qywxTagId);
/**
* 删除企业微信的标签
*
* @param groupKey
* @param wxEnterpriseId
* @return
*/
public boolean delQywxTag(String groupKey, String wxEnterpriseId);
/**
* 根据企业微信的标签项获取 标签项
*
* @param wxEnterpriseId
* @param qywxTagKey
* @return
*/
public TabQywxTagItem getQywxTagItemByQywxItemKey(String wxEnterpriseId, String qywxTagKey);
/**
* 删除标签项
*
* @param wxEnterpriseId
* @param id
* @return
*/
public boolean delQywxTagItemById(String wxEnterpriseId, String id);
/**
* 根据企业微信的key 查询关联关系
*
* @param wxEnterpriseId
* @param key
* @param qywxTagRelationType
* @return
*/
public TabQywxTagRelation getQywxTagRelationByQywxKey(String wxEnterpriseId, String key, Integer qywxTagRelationType);
}
package com.gic.haoban.manage.service.service;
import com.gic.api.base.commons.Page;
import com.gic.haoban.manage.api.dto.QywxTagInfoDTO;
import com.gic.haoban.manage.api.dto.QywxTagItemDTO;
import com.gic.haoban.manage.service.entity.TabQywxSyncLog;
import com.gic.haoban.manage.service.entity.TabQywxTag;
import com.gic.haoban.manage.service.entity.TabQywxTagItem;
import com.gic.haoban.manage.service.entity.TabQywxTagRelation;
import com.gic.member.tag.api.base.BasePageInfo;
import com.gic.wechat.api.dto.qywx.QywxTagGroupDTO;
import org.apache.commons.lang3.tuple.Pair;
import java.util.List;
/**
* Created 2021/6/21.
*
* @author hua
*/
public interface QywxTagSyncLogService {
/**
* 分页查询日志
*
* @param wxEnterpriseId
* @param enterpriseId
* @param search
* @param pageInfo
* @return
*/
public Page<TabQywxSyncLog> pageLog(String wxEnterpriseId, String enterpriseId, String search, BasePageInfo pageInfo);
/**
* 保存日志
*
* @param tabQywxSyncLog
* @return
*/
public boolean saveSyncLog(TabQywxSyncLog tabQywxSyncLog);
}
...@@ -43,4 +43,13 @@ public interface StaffService { ...@@ -43,4 +43,13 @@ public interface StaffService {
*/ */
public List<String> listDelUserStaffId(String wxEnterpriseId,List<String> staffIds); public List<String> listDelUserStaffId(String wxEnterpriseId,List<String> staffIds);
/**
* 获取无状态的staff列表
*
* @param wxEnterpriseId
* @param staffIds
* @return
*/
public List<TabHaobanStaff> listNoStatusByStaffIds(String wxEnterpriseId, List<String> staffIds);
} }
...@@ -112,4 +112,5 @@ public class ClerkMainStoreRelatedServiceImpl implements ClerkMainStoreRelatedSe ...@@ -112,4 +112,5 @@ public class ClerkMainStoreRelatedServiceImpl implements ClerkMainStoreRelatedSe
return mapper.listByWxEnterpriseId(wxEnterpriseId); return mapper.listByWxEnterpriseId(wxEnterpriseId);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment