Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit dad60019
authored
Oct 24, 2023
by
刘鑫
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
2 parents
ceb3feed
1399eb2f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
4 deletions
.gitignore
project-order/src/main/java/com/dituhui/pea/order/controller/MsgController.java
project-order/src/main/java/com/dituhui/pea/order/dao/MsgDao.java
project-order/src/main/java/com/dituhui/pea/order/feign/bean/BeanR.java
.gitignore
View file @
dad6001
...
...
@@ -8,6 +8,7 @@
/*/.classpath
/*/.project
/*/logs/
/logs/
/*/.gitignore
dispatchSolution-*.json
/project-order/src/main/resources/application-dev.yaml
...
...
project-order/src/main/java/com/dituhui/pea/order/controller/MsgController.java
View file @
dad6001
...
...
@@ -17,7 +17,7 @@ import javax.validation.Valid;
import
java.util.Objects
;
/**
* 消息
相关接口
* 消息
*
* @author RenPing
* @date 2023/10/24
...
...
project-order/src/main/java/com/dituhui/pea/order/dao/MsgDao.java
View file @
dad6001
...
...
@@ -24,8 +24,16 @@ public interface MsgDao extends JpaRepository<MsgEntity, Long> {
" and IF(:#{#req.endDate} is not null, tt.create_time<:#{#req.endDate}, 1=1)"
+
" and IF(:#{#req.keyWord} is not null, tt.content like concat('%',:#{#req.keyWord},'%'), 1=1)"
+
"group by tt.cluster_id,tt.branch_id,tt.group_id"
+
") t"
,
countQuery
=
"select count(t.cluster_id)"
+
" from ("
+
" select tt.cluster_id,tt.branch_id,tt.group_id,min(tt.create_time) create_time,min(r.is_read) is_read"
+
" from zzz_msg tt join zzz_msg_receiver r on r.msg_id=tt.id and r.user_id=:#{#req.userId}"
+
" where IF(:#{#req.startDate} is not null, tt.create_time>=:#{#req.startDate}, 1=1)"
+
" and IF(:#{#req.endDate} is not null, tt.create_time<:#{#req.endDate}, 1=1)"
+
" and IF(:#{#req.keyWord} is not null, tt.content like concat('%',:#{#req.keyWord},'%'), 1=1)"
+
"group by tt.cluster_id,tt.branch_id,tt.group_id"
+
") t"
//, countProjection = "t.id" //用于分页计数
,
nativeQuery
=
true
// 开启原生sql
)
Page
<
Map
<
String
,
Objects
>>
getGroupList
(
@Param
(
"req"
)
MsgDTO
.
Request
req
,
Pageable
pageable
);
...
...
project-order/src/main/java/com/dituhui/pea/order/feign/bean/BeanR.java
View file @
dad6001
...
...
@@ -18,11 +18,11 @@ public class BeanR<E> {
/**
* 状态码
*/
private
Integer
errorCode
;
private
String
status
;
/**
* 成功&失败
*/
private
Boolean
succ
;
private
Boolean
succ
ess
;
/**
* 数据对象
*/
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment