Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-api
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
李伟
cust-api
Commits
15e1d8fb
Commit
15e1d8fb
authored
Feb 19, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了会员列表查询
parent
0fc32003
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
16 deletions
+27
-16
AppOpmArticleController.java
...ft/app/appArticle/controller/AppOpmArticleController.java
+1
-1
OpmArticleController.java
.../business/opmArticle/controller/OpmArticleController.java
+1
-1
OpmArticleService.java
...cisoft/business/opmArticle/service/OpmArticleService.java
+1
-1
OpmArticleServiceImpl.java
...siness/opmArticle/service/impl/OpmArticleServiceImpl.java
+19
-13
MemInfoMapper.xml
...esources/mapper/business/memInfo/mapper/MemInfoMapper.xml
+5
-0
No files found.
src/main/java/org/rcisoft/app/appArticle/controller/AppOpmArticleController.java
View file @
15e1d8fb
...
@@ -58,7 +58,7 @@ public class AppOpmArticleController extends CyPaginationController<OpmArticle>
...
@@ -58,7 +58,7 @@ public class AppOpmArticleController extends CyPaginationController<OpmArticle>
@Operation
(
summary
=
"分页查询动态列表集合"
,
description
=
"分页查询动态列表集合"
)
@Operation
(
summary
=
"分页查询动态列表集合"
,
description
=
"分页查询动态列表集合"
)
@GetMapping
(
value
=
"/open/opmArticle/queryArticleByPagination"
)
@GetMapping
(
value
=
"/open/opmArticle/queryArticleByPagination"
)
public
CyGridModel
listByPagination
(
OpmArticle
opmArticle
)
{
public
CyGridModel
listByPagination
(
OpmArticle
opmArticle
)
{
opmArticleServiceImpl
.
findAllByPagination
(
getPaginationUtility
(),
opmArticle
);
opmArticleServiceImpl
.
findAllByPagination
(
getPaginationUtility
(),
opmArticle
,
"app"
);
return
getGridModelResponse
();
return
getGridModelResponse
();
}
}
...
...
src/main/java/org/rcisoft/business/opmArticle/controller/OpmArticleController.java
View file @
15e1d8fb
...
@@ -122,7 +122,7 @@ public class OpmArticleController extends CyPaginationController<OpmArticle> {
...
@@ -122,7 +122,7 @@ public class OpmArticleController extends CyPaginationController<OpmArticle> {
@Operation
(
summary
=
"分页查询opmArticle管理集合"
,
description
=
"分页查询opmArticle管理集合"
)
@Operation
(
summary
=
"分页查询opmArticle管理集合"
,
description
=
"分页查询opmArticle管理集合"
)
@GetMapping
(
value
=
"/list"
)
@GetMapping
(
value
=
"/list"
)
public
CyGridModel
listByPagination
(
OpmArticle
opmArticle
)
{
public
CyGridModel
listByPagination
(
OpmArticle
opmArticle
)
{
opmArticleServiceImpl
.
findAllByPagination
(
getPaginationUtility
(),
opmArticle
);
opmArticleServiceImpl
.
findAllByPagination
(
getPaginationUtility
(),
opmArticle
,
"web"
);
return
getGridModelResponse
();
return
getGridModelResponse
();
}
}
...
...
src/main/java/org/rcisoft/business/opmArticle/service/OpmArticleService.java
View file @
15e1d8fb
...
@@ -56,7 +56,7 @@ public interface OpmArticleService {
...
@@ -56,7 +56,7 @@ public interface OpmArticleService {
* @return
* @return
*/
*/
IPage
<
OpmArticle
>
findAllByPagination
(
CyPageInfo
<
OpmArticle
>
paginationUtility
,
IPage
<
OpmArticle
>
findAllByPagination
(
CyPageInfo
<
OpmArticle
>
paginationUtility
,
OpmArticle
opmArticle
);
OpmArticle
opmArticle
,
String
type
);
/**
/**
...
...
src/main/java/org/rcisoft/business/opmArticle/service/impl/OpmArticleServiceImpl.java
View file @
15e1d8fb
...
@@ -175,8 +175,10 @@ public class OpmArticleServiceImpl extends ServiceImpl<OpmArticleRepository, Opm
...
@@ -175,8 +175,10 @@ public class OpmArticleServiceImpl extends ServiceImpl<OpmArticleRepository, Opm
*/
*/
@Override
@Override
public
IPage
<
OpmArticle
>
findAllByPagination
(
CyPageInfo
<
OpmArticle
>
paginationUtility
,
public
IPage
<
OpmArticle
>
findAllByPagination
(
CyPageInfo
<
OpmArticle
>
paginationUtility
,
OpmArticle
opmArticle
){
OpmArticle
opmArticle
,
String
type
){
IPage
<
OpmArticle
>
result
=
null
;
IPage
<
OpmArticle
>
result
=
null
;
if
(
type
.
equals
(
"app"
)){
//小程序
if
(
opmArticle
.
getArticleType
()
!=
null
&&
opmArticle
.
getArticleType
().
equals
(
"0"
)){
if
(
opmArticle
.
getArticleType
()
!=
null
&&
opmArticle
.
getArticleType
().
equals
(
"0"
)){
//关注
//关注
//查询该用户关注对象的id集合
//查询该用户关注对象的id集合
...
@@ -199,6 +201,10 @@ public class OpmArticleServiceImpl extends ServiceImpl<OpmArticleRepository, Opm
...
@@ -199,6 +201,10 @@ public class OpmArticleServiceImpl extends ServiceImpl<OpmArticleRepository, Opm
}
}
result
=
baseMapper
.
queryOpmArticlePaged
(
paginationUtility
,
opmArticle
);
result
=
baseMapper
.
queryOpmArticlePaged
(
paginationUtility
,
opmArticle
);
}
}
}
else
{
//管理端
result
=
baseMapper
.
queryOpmArticlePaged
(
paginationUtility
,
opmArticle
);
}
return
result
;
return
result
;
}
}
...
...
src/main/resources/mapper/business/memInfo/mapper/MemInfoMapper.xml
View file @
15e1d8fb
...
@@ -410,6 +410,11 @@
...
@@ -410,6 +410,11 @@
</if>
</if>
<if
test=
"entity.loginUserId !=null and entity.loginUserId != '' "
>
<if
test=
"entity.loginUserId !=null and entity.loginUserId != '' "
>
and m.user_id != #{entity.loginUserId}
and m.user_id != #{entity.loginUserId}
and m.user_id not in (
select obl.target_id
from opm_black_list obl
where obl.user_id = #{entity.loginUserId}
)
</if>
</if>
ORDER BY m.mem_level desc,m.mem_real_authen desc,m.is_recommended desc,m.sort,m.mem_code desc,m.business_id DESC
ORDER BY m.mem_level desc,m.mem_real_authen desc,m.is_recommended desc,m.sort,m.mem_code desc,m.business_id DESC
</select>
</select>
...
...
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