Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
intel_promotion_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
liyilin
intel_promotion_api
Commits
eb269f0a
Commit
eb269f0a
authored
Aug 02, 2024
by
刘帅阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
d4b85c63
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
38 deletions
+45
-38
CmsNewsRepository.java
...a/org/rcisoft/business/cmsnews/dao/CmsNewsRepository.java
+1
-1
CmsVideoRepository.java
...org/rcisoft/business/cmsvideo/dao/CmsVideoRepository.java
+1
-1
CmsNewsMapper.xml
...esources/mapper/business/cmsnews/mapper/CmsNewsMapper.xml
+21
-18
CmsVideoMapper.xml
...ources/mapper/business/cmsvideo/mapper/CmsVideoMapper.xml
+22
-18
No files found.
src/main/java/org/rcisoft/business/cmsnews/dao/CmsNewsRepository.java
View file @
eb269f0a
...
...
@@ -50,7 +50,7 @@ public interface CmsNewsRepository extends CyBaseMapper<CmsNews> {
IPage
<
CmsVideo
>
listTopVideoAdmin
(
CyPageInfo
<
CmsNews
>
paginationUtility
,
@Param
(
"entity"
)
CmsVideo
cmsVideo
);
IPage
<
CmsNews
>
listByClassificationAdmin
(
CyPageInfo
<
CmsNews
>
paginationUtility
,
CmsNews
cmsNews
);
IPage
<
CmsNews
>
listByClassificationAdmin
(
CyPageInfo
<
CmsNews
>
paginationUtility
,
@Param
(
"entity"
)
CmsNews
cmsNews
);
IPage
<
CmsNews
>
listByClassificationMerchants
(
CyPageInfo
<
CmsNews
>
paginationUtility
,
@Param
(
"entity"
)
CmsNews
cmsNews
);
}
...
...
src/main/java/org/rcisoft/business/cmsvideo/dao/CmsVideoRepository.java
View file @
eb269f0a
...
...
@@ -30,7 +30,7 @@ public interface CmsVideoRepository extends CyBaseMapper<CmsVideo> {
IPage
<
CmsVideo
>
businessAdminsPaginatedQuery
(
CyPageInfo
<
CmsVideo
>
paginationUtility
,
@Param
(
"entity"
)
CmsVideo
cmsVideo
);
IPage
<
CmsVideo
>
listByClassificationAdmin
(
CyPageInfo
<
CmsVideo
>
paginationUtility
,
CmsVideo
cmsVideo
);
IPage
<
CmsVideo
>
listByClassificationAdmin
(
CyPageInfo
<
CmsVideo
>
paginationUtility
,
@Param
(
"entity"
)
CmsVideo
cmsVideo
);
IPage
<
CmsVideo
>
listByClassificationMerchants
(
CyPageInfo
<
CmsVideo
>
paginationUtility
,
@Param
(
"entity"
)
CmsVideo
cmsVideo
);
}
...
...
src/main/resources/mapper/business/cmsnews/mapper/CmsNewsMapper.xml
View file @
eb269f0a
...
...
@@ -444,6 +444,9 @@
ON cpc.news_video_id = cn.business_id AND cpc.del_flag = 0 AND cpc.type = 0
AND cpc.user_id = su.business_id
WHERE 1 = 1
<if
test=
"entity.unitId != null and entity.unitId != ''"
>
AND cunv.unit_id = #{entity.unitId}
</if>
AND cn.del_flag = 0
AND cn.flag = 1
GROUP BY cn.business_id, cpc.business_id
...
...
src/main/resources/mapper/business/cmsvideo/mapper/CmsVideoMapper.xml
View file @
eb269f0a
...
...
@@ -205,6 +205,10 @@
LEFT JOIN oss_info oi ON cv.video_url_id = oi.business_id
LEFT JOIN oss_info oi1 ON cv.default_url = oi1.business_id
WHERE 1 = 1
<if
test=
"entity.unitId !=null and entity.unitId != '' "
>
AND cunv.unit_id = #{entity.unitId}
AND suu.unit_id = #{entity.unitId}
</if>
AND cv.del_flag = 0
GROUP BY cv.business_id, cpc.business_id
order by cv.flag DESC, cv.update_date DESC) cv
...
...
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