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
8dcf72e3
Commit
8dcf72e3
authored
Jul 11, 2024
by
刘帅阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
4f7604ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
CmsBannerServiceImpl.java
...business/cmsbanner/service/impl/CmsBannerServiceImpl.java
+2
-3
CmsVideoMapper.xml
...ources/mapper/business/cmsvideo/mapper/CmsVideoMapper.xml
+2
-2
No files found.
src/main/java/org/rcisoft/business/cmsbanner/service/impl/CmsBannerServiceImpl.java
View file @
8dcf72e3
...
@@ -22,7 +22,6 @@ import org.springframework.transaction.annotation.Isolation;
...
@@ -22,7 +22,6 @@ import org.springframework.transaction.annotation.Isolation;
import
org.springframework.transaction.annotation.Propagation
;
import
org.springframework.transaction.annotation.Propagation
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -54,8 +53,8 @@ public class CmsBannerServiceImpl extends ServiceImpl<CmsBannerRepository, CmsBa
...
@@ -54,8 +53,8 @@ public class CmsBannerServiceImpl extends ServiceImpl<CmsBannerRepository, CmsBa
public
CyPersistModel
persist
(
CmsBanner
cmsBanner
)
{
public
CyPersistModel
persist
(
CmsBanner
cmsBanner
)
{
//增加操作
//增加操作
int
line
=
baseMapper
.
insert
(
cmsBanner
);
int
line
=
baseMapper
.
insert
(
cmsBanner
);
//如果传入了unitId在增加关联关
心
//如果传入了unitId在增加关联关
系
if
(
cmsBanner
.
getUnitId
()
!=
null
)
{
if
(
cmsBanner
.
getUnitId
()
!=
null
&&
!
""
.
equals
(
cmsBanner
.
getUnitId
())
)
{
CmsBannerUnit
cmsBannerUnit
=
new
CmsBannerUnit
();
CmsBannerUnit
cmsBannerUnit
=
new
CmsBannerUnit
();
cmsBannerUnit
.
setCmsBannerId
(
cmsBanner
.
getBusinessId
());
cmsBannerUnit
.
setCmsBannerId
(
cmsBanner
.
getBusinessId
());
cmsBannerUnit
.
setSysUnitId
(
Integer
.
valueOf
(
cmsBanner
.
getUnitId
()));
cmsBannerUnit
.
setSysUnitId
(
Integer
.
valueOf
(
cmsBanner
.
getUnitId
()));
...
...
src/main/resources/mapper/business/cmsvideo/mapper/CmsVideoMapper.xml
View file @
8dcf72e3
...
@@ -140,7 +140,7 @@
...
@@ -140,7 +140,7 @@
LEFT JOIN oss_info oi ON cv.default_url = oi.business_id
LEFT JOIN oss_info oi ON cv.default_url = oi.business_id
WHERE 1 = 1
WHERE 1 = 1
AND cv.del_flag = 0
AND cv.del_flag = 0
AND cv.flag = 1
#
AND cv.flag = 1
<if
test=
"entity.unitId !=null and entity.unitId != '' "
>
<if
test=
"entity.unitId !=null and entity.unitId != '' "
>
AND cunv.unit_id = #{entity.unitId}
AND cunv.unit_id = #{entity.unitId}
AND cunv.business_id is NOT NULL
AND cunv.business_id is NOT NULL
...
@@ -169,7 +169,7 @@
...
@@ -169,7 +169,7 @@
LEFT JOIN oss_info oi ON cv.default_url = oi.business_id
LEFT JOIN oss_info oi ON cv.default_url = oi.business_id
WHERE 1 = 1
WHERE 1 = 1
AND cv.del_flag = 0
AND cv.del_flag = 0
AND cv.flag = 1
#
AND cv.flag = 1
AND cunv.unit_id = #{entity.unitId}
AND cunv.unit_id = #{entity.unitId}
AND cunv.business_id is NOT NULL
AND cunv.business_id is NOT NULL
<if
test=
"entity.videoTitle !=null and entity.videoTitle != '' "
>
<if
test=
"entity.videoTitle !=null and entity.videoTitle != '' "
>
...
...
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