Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
O
operate-customer-service
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
沈振路
operate-customer-service
Commits
9500ece9
提交
9500ece9
authored
5月 26, 2025
作者:
沈振路
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
获客链接配置表的映射mapper
上级
d345be49
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
139 行增加
和
0 行删除
+139
-0
CompanyAcquisitionLink.java
.../com/yaoyaozw/customer/entity/CompanyAcquisitionLink.java
+89
-0
CompanyAcquisitionLinkMapper.java
...aoyaozw/customer/mapper/CompanyAcquisitionLinkMapper.java
+29
-0
CompanyAcquisitionLinkMapper.xml
src/main/resources/mapper/CompanyAcquisitionLinkMapper.xml
+21
-0
没有找到文件。
src/main/java/com/yaoyaozw/customer/entity/CompanyAcquisitionLink.java
0 → 100644
浏览文件 @
9500ece9
package
com
.
yaoyaozw
.
customer
.
entity
;
import
com.baomidou.mybatisplus.annotation.*
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.fasterxml.jackson.databind.ser.std.ToStringSerializer
;
import
lombok.Data
;
import
org.springframework.data.annotation.Id
;
import
java.io.Serializable
;
import
java.util.Date
;
@Data
public
class
CompanyAcquisitionLink
implements
Serializable
{
/**
* 主键Id
*/
@Id
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
@JsonSerialize
(
using
=
ToStringSerializer
.
class
)
private
Long
id
;
/**
* 公众号AppID
*/
private
String
authAppId
;
/**
* 企业Id
*/
private
Long
companyId
;
/**
* 链接Id
*/
private
String
linkId
;
/**
* 链接名称
*/
private
String
linkName
;
/**
* 链接地址
*/
private
String
linkUrl
;
/**
* 链接创建时间
*/
private
Date
createTime
;
/**
* 是否无需验证
*/
private
Integer
skipVerify
;
/**
* 链接绑定用户列表Json
*/
private
String
userListJson
;
/**
* OPERATE:运营;PUTTING:投放
*/
private
String
type
;
/**
* 状态
*/
private
Integer
status
;
@TableLogic
private
Integer
isDeleted
;
/**
*
*/
@TableField
(
value
=
"gmt_create"
,
fill
=
FieldFill
.
INSERT
)
private
Date
gmtCreate
;
/**
*
*/
@TableField
(
value
=
"gmt_modified"
,
fill
=
FieldFill
.
INSERT_UPDATE
)
private
Date
gmtModified
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
src/main/java/com/yaoyaozw/customer/mapper/CompanyAcquisitionLinkMapper.java
0 → 100644
浏览文件 @
9500ece9
package
com
.
yaoyaozw
.
customer
.
mapper
;
import
com.yaoyaozw.customer.entity.AuthorizerInfo
;
import
com.yaoyaozw.customer.entity.CompanyAcquisitionLink
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
@Mapper
public
interface
CompanyAcquisitionLinkMapper
{
/**
* 根据链接Id获取获客链接信息
* @param linkId 链接Id
* @return 获客链接信息
*/
CompanyAcquisitionLink
getAcquisitionInfoByLinkId
(
@Param
(
"linkId"
)
String
linkId
);
/**
* 获取指定appId的获客链接列表
* @param appId appId
* @param exceptLinkId 排除的链接Id
* @return 可使用链接列表
*/
List
<
CompanyAcquisitionLink
>
getAvailableAcquisitionListExceptLinkId
(
@Param
(
"appId"
)
String
appId
,
@Param
(
"exceptLinkId"
)
String
exceptLinkId
);
}
src/main/resources/mapper/CompanyAcquisitionLinkMapper.xml
0 → 100644
浏览文件 @
9500ece9
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"com.yaoyaozw.customer.mapper.CompanyAcquisitionLinkMapper"
>
<select
id=
"getAcquisitionInfoByLinkId"
resultType=
"CompanyAcquisitionLink"
>
select * from company_acquisition_link where link_id = #{linkId} and is_deleted = 0
</select>
<select
id=
"getAvailableAcquisitionListExceptLinkId"
resultType=
"com.yaoyaozw.customer.entity.CompanyAcquisitionLink"
>
select * from company_acquisition_link where is_deleted = 0 and `status` = 1 and auth_app_id = #{appId}
<if
test=
"exceptLinkId != null and exceptLinkId != ''"
>
and link_id != #{exceptLinkId}
</if>
</select>
</mapper>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论