Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
O
operate-customer-service
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
沈振路
operate-customer-service
Commits
2d5e9942
提交
2d5e9942
authored
3月 25, 2024
作者:
沈振路
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
register_user_entity 表添加逻辑删除字段
上级
ec604a7b
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
16 行增加
和
15 行删除
+16
-15
RegisterUserEntity.java
...java/com/yaoyaozw/customer/entity/RegisterUserEntity.java
+7
-6
CustomerDelayPublishMapper.xml
src/main/resources/mapper/CustomerDelayPublishMapper.xml
+2
-3
RegisterUserEntityMapper.xml
src/main/resources/mapper/RegisterUserEntityMapper.xml
+7
-6
没有找到文件。
src/main/java/com/yaoyaozw/customer/entity/RegisterUserEntity.java
浏览文件 @
2d5e9942
package
com
.
yaoyaozw
.
customer
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.*
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Date
;
...
...
@@ -81,6 +79,10 @@ public class RegisterUserEntity implements Serializable {
@TableField
(
value
=
"gmt_create"
)
private
Date
gmtCreate
;
@TableField
(
"is_deleted"
)
@TableLogic
private
Integer
isDeleted
;
/**
* 延时客服序列
*/
...
...
@@ -125,4 +127,4 @@ public class RegisterUserEntity implements Serializable {
public
static
final
String
COL_GMT_CREATE
=
"gmt_create"
;
}
\ No newline at end of file
}
src/main/resources/mapper/CustomerDelayPublishMapper.xml
浏览文件 @
2d5e9942
...
...
@@ -24,7 +24,7 @@
from register_user_entity
where customer_publish=#{requestDate} and customer_sort>0
where customer_publish=#{requestDate} and customer_sort>0
and is_deleted = 0
</select>
</mapper>
\ No newline at end of file
</mapper>
src/main/resources/mapper/RegisterUserEntityMapper.xml
浏览文件 @
2d5e9942
...
...
@@ -17,7 +17,7 @@
</resultMap>
<sql
id=
"Base_Column_List"
>
<!--@mbg.generated-->
id, app_id, open_id, setup_id, pay_type, pay_num, pay_amount, avg_month, last_active,
id, app_id, open_id, setup_id, pay_type, pay_num, pay_amount, avg_month, last_active,
gmt_create, customer_sort, customer_publish
</sql>
...
...
@@ -36,9 +36,9 @@
on rue.app_id = ai.appid
where
rue.is_deleted = 0
<if
test=
"openId != null and openId != ''"
>
rue.open_id = #{openId} and
and
rue.open_id = #{openId} and
</if>
timestampdiff(HOUR, rue.last_active, now())
<
48
...
...
@@ -82,6 +82,7 @@
on rue.app_id = ai.appid
where find_in_set(#{packageId}, rue.in_package)
and rue.is_deleted = 0
</select>
...
...
@@ -97,6 +98,7 @@
DATEDIFF(now(),gmt_create) as dateDiff
from register_user_entity
where find_in_set(#{packageId}, in_package) and TIMESTAMPDIFF(HOUR,last_active,now() )
<
48
and is_deleted = 0
</select>
...
...
@@ -140,6 +142,6 @@
select id,app_id,customer_sort,customer_publish ,first_active from register_user_entity
where customer_sort > 0 AND first_active is not null and customer_publish
<
#{requestDate}
where customer_sort > 0 AND first_active is not null and customer_publish
<
#{requestDate}
and is_deleted = 0
</select>
</mapper>
\ No newline at end of file
</mapper>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论