Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform
Commits
015ea9ab
Commit
015ea9ab
authored
Aug 09, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加押金记录客服电话,出行记录查询筛选
parent
5ddc3146
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
5 deletions
+43
-5
MsgBiz.java
...server/src/main/java/com/xxfc/platform/im/biz/MsgBiz.java
+31
-0
MsgController.java
...rc/main/java/com/xxfc/platform/im/rest/MsgController.java
+4
-0
VehicleBookRecordVo.java
...a/com/xxfc/platform/vehicle/pojo/VehicleBookRecordVo.java
+1
-1
VehicleBookRecordMapper.xml
...ver/src/main/resources/mapper/VehicleBookRecordMapper.xml
+7
-4
No files found.
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/biz/MsgBiz.java
View file @
015ea9ab
...
@@ -7,6 +7,7 @@ import com.github.pagehelper.PageInfo;
...
@@ -7,6 +7,7 @@ import com.github.pagehelper.PageInfo;
import
com.github.wxiaoqi.security.admin.feign.dto.AppUserDTO
;
import
com.github.wxiaoqi.security.admin.feign.dto.AppUserDTO
;
import
com.github.wxiaoqi.security.admin.vo.ImiVo
;
import
com.github.wxiaoqi.security.admin.vo.ImiVo
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.util.process.ResultCode
;
import
com.xxfc.platform.im.dto.CommentVo
;
import
com.xxfc.platform.im.dto.CommentVo
;
import
com.xxfc.platform.im.dto.PraiseVo
;
import
com.xxfc.platform.im.dto.PraiseVo
;
import
com.xxfc.platform.im.model.Comment
;
import
com.xxfc.platform.im.model.Comment
;
...
@@ -122,6 +123,36 @@ public class MsgBiz {
...
@@ -122,6 +123,36 @@ public class MsgBiz {
return
ObjectRestResponse
.
succ
();
return
ObjectRestResponse
.
succ
();
}
}
public
ObjectRestResponse
getMsgListByUserId
(
Integer
page
,
Integer
limit
)
{
//获取所有朋友圈
page
=
page
==
null
?
1
:
page
;
limit
=
limit
==
null
?
10
:
limit
;
AppUserDTO
appUserDTO
=
userBiz
.
getUserInfo
();
Integer
userId
=
null
;
if
(
appUserDTO
!=
null
)
{
userId
=
appUserDTO
.
getImUserid
();
}
else
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
RSTOKEN_EXPIRED_CODE
,
"token失效"
);
}
Pageable
pageable
=
PageRequest
.
of
(--
page
,
limit
);
List
<
Integer
>
ids
=
new
ArrayList
<>();
ids
.
add
(
2
);
ids
.
add
(
4
);
Query
query
=
new
Query
(
Criteria
.
where
(
"body.type"
).
in
(
ids
));
query
.
addCriteria
(
Criteria
.
where
(
"userId"
).
is
(
userId
));
int
totalSize
=
mongoTemplate
.
find
(
query
,
Msg
.
class
,
"s_msg"
).
size
();
query
.
with
(
pageable
);
query
.
with
(
new
Sort
(
Sort
.
Direction
.
DESC
,
"time"
));
List
<
Msg
>
msgList
=
fetchAndAttach
(
mongoTemplate
.
find
(
query
,
Msg
.
class
,
"s_msg"
),
userId
);
PageInfo
<
Msg
>
goodPageInfo
=
new
PageInfo
<>(
msgList
);
goodPageInfo
.
setPageSize
(
totalSize
%
limit
==
0
?
totalSize
/
limit
:
totalSize
/
limit
+
1
);
return
ObjectRestResponse
.
succ
(
goodPageInfo
);
}
/**
/**
* 添加评论和点赞
* 添加评论和点赞
*
*
...
...
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/rest/MsgController.java
View file @
015ea9ab
...
@@ -31,4 +31,8 @@ public class MsgController {
...
@@ -31,4 +31,8 @@ public class MsgController {
return
msgBiz
.
get
(
id
);
return
msgBiz
.
get
(
id
);
}
}
@GetMapping
(
value
=
"/getByUserId"
)
public
ObjectRestResponse
getByUserId
(
Integer
page
,
Integer
limit
)
{
return
msgBiz
.
getMsgListByUserId
(
page
,
limit
);
}
}
}
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/VehicleBookRecordVo.java
View file @
015ea9ab
...
@@ -33,7 +33,7 @@ public class VehicleBookRecordVo extends VehicleBookRecord {
...
@@ -33,7 +33,7 @@ public class VehicleBookRecordVo extends VehicleBookRecord {
private
Integer
liftStatus
;
private
Integer
liftStatus
;
private
Integer
retStatus
;
private
Integer
retStatus
;
private
Integer
state
;
List
<
VehicleUpkeepItem
>
vehicleUpkeepItems
;
List
<
VehicleUpkeepItem
>
vehicleUpkeepItems
;
}
}
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleBookRecordMapper.xml
View file @
015ea9ab
...
@@ -473,11 +473,14 @@
...
@@ -473,11 +473,14 @@
#{id}
#{id}
</foreach>
)
</foreach>
)
</if>
</if>
<if
test=
"status != null and status != 0 and status != -1"
>
<if
test=
"status != null and status != 0 and status != -1
and status != -2
"
>
and v1.status = #{status}
and v1.status = #{status}
</if>
</if>
<if
test=
"status != null and (status == 0 or status == -1)"
>
<if
test=
"status != null and status == 0 "
>
and v4.state = #{status}
and v4.state = 0
</if>
<if
test=
"status != null and status == -1 "
>
and v4.state = 1
</if>
</if>
and v1.book_user != -2
and v1.book_user != -2
</where>
</where>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment