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 个修改的文件
包含
12 行增加
和
8 行删除
+12
-8
RegisterUserEntity.java
...java/com/yaoyaozw/customer/entity/RegisterUserEntity.java
+6
-4
CustomerDelayPublishMapper.xml
src/main/resources/mapper/CustomerDelayPublishMapper.xml
+1
-1
RegisterUserEntityMapper.xml
src/main/resources/mapper/RegisterUserEntityMapper.xml
+5
-3
没有找到文件。
src/main/java/com/yaoyaozw/customer/entity/RegisterUserEntity.java
浏览文件 @
2d5e9942
package
com
.
yaoyaozw
.
customer
.
entity
;
package
com
.
yaoyaozw
.
customer
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.*
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -81,6 +79,10 @@ public class RegisterUserEntity implements Serializable {
...
@@ -81,6 +79,10 @@ public class RegisterUserEntity implements Serializable {
@TableField
(
value
=
"gmt_create"
)
@TableField
(
value
=
"gmt_create"
)
private
Date
gmtCreate
;
private
Date
gmtCreate
;
@TableField
(
"is_deleted"
)
@TableLogic
private
Integer
isDeleted
;
/**
/**
* 延时客服序列
* 延时客服序列
*/
*/
...
...
src/main/resources/mapper/CustomerDelayPublishMapper.xml
浏览文件 @
2d5e9942
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
from register_user_entity
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>
</select>
</mapper>
</mapper>
src/main/resources/mapper/RegisterUserEntityMapper.xml
浏览文件 @
2d5e9942
...
@@ -36,9 +36,9 @@
...
@@ -36,9 +36,9 @@
on rue.app_id = ai.appid
on rue.app_id = ai.appid
where
where
rue.is_deleted = 0
<if
test=
"openId != null and openId != ''"
>
<if
test=
"openId != null and openId != ''"
>
rue.open_id = #{openId} and
and
rue.open_id = #{openId} and
</if>
</if>
timestampdiff(HOUR, rue.last_active, now())
<
48
timestampdiff(HOUR, rue.last_active, now())
<
48
...
@@ -82,6 +82,7 @@
...
@@ -82,6 +82,7 @@
on rue.app_id = ai.appid
on rue.app_id = ai.appid
where find_in_set(#{packageId}, rue.in_package)
where find_in_set(#{packageId}, rue.in_package)
and rue.is_deleted = 0
</select>
</select>
...
@@ -97,6 +98,7 @@
...
@@ -97,6 +98,7 @@
DATEDIFF(now(),gmt_create) as dateDiff
DATEDIFF(now(),gmt_create) as dateDiff
from register_user_entity
from register_user_entity
where find_in_set(#{packageId}, in_package) and TIMESTAMPDIFF(HOUR,last_active,now() )
<
48
where find_in_set(#{packageId}, in_package) and TIMESTAMPDIFF(HOUR,last_active,now() )
<
48
and is_deleted = 0
</select>
</select>
...
@@ -140,6 +142,6 @@
...
@@ -140,6 +142,6 @@
select id,app_id,customer_sort,customer_publish ,first_active from register_user_entity
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>
</select>
</mapper>
</mapper>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论