Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-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
周健威
rs-cloud-platform
Commits
003d8bf7
Commit
003d8bf7
authored
Dec 09, 2020
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
f909993b
d7784935
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
9 deletions
+24
-9
BannerDto.java
...in/java/com/upyuns/platform/rs/website/dto/BannerDto.java
+2
-1
IndustryApplicationInfo.java
...s/platform/rs/website/entity/IndustryApplicationInfo.java
+5
-0
BannerBiz.java
...in/java/com/upyuns/platform/rs/website/biz/BannerBiz.java
+7
-0
IndustryApplicationTypeBiz.java
...s/platform/rs/website/biz/IndustryApplicationTypeBiz.java
+0
-6
NewsTypeBiz.java
.../java/com/upyuns/platform/rs/website/biz/NewsTypeBiz.java
+7
-1
IndustryApplicationInfoMapper.xml
...c/main/resources/mapper/IndustryApplicationInfoMapper.xml
+3
-1
No files found.
rs-website/rs-website-api/src/main/java/com/upyuns/platform/rs/website/dto/BannerDto.java
View file @
003d8bf7
...
...
@@ -11,5 +11,6 @@ import lombok.Data;
*/
@Data
public
class
BannerDto
extends
PageParam
{
Integer
status
;
String
title
;
}
rs-website/rs-website-api/src/main/java/com/upyuns/platform/rs/website/entity/IndustryApplicationInfo.java
View file @
003d8bf7
...
...
@@ -138,6 +138,11 @@ public class IndustryApplicationInfo implements Serializable {
@ApiModelProperty
(
value
=
"修改时间"
,
hidden
=
true
)
private
Date
updTime
;
/**
* 是否提供定制:1、提供,2、不提供
*/
private
Integer
customized
;
@Transient
private
String
firstTitle
;
...
...
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/biz/BannerBiz.java
View file @
003d8bf7
...
...
@@ -9,6 +9,7 @@ import com.github.wxiaoqi.security.common.vo.PageDataVO;
import
com.upyuns.platform.rs.website.dto.BannerDto
;
import
com.upyuns.platform.rs.website.entity.Banner
;
import
com.upyuns.platform.rs.website.mapper.BannerMapper
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.stereotype.Service
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
...
...
@@ -69,6 +70,12 @@ public class BannerBiz extends BaseBiz<BannerMapper, Banner> {
Example
example
=
new
Example
(
Banner
.
class
);
Example
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andEqualTo
(
"isDel"
,
0
);
if
(
bannerDto
.
getStatus
()
!=
null
)
{
criteria
.
andEqualTo
(
"status"
,
bannerDto
.
getStatus
());
}
if
(
StringUtils
.
isNotBlank
(
bannerDto
.
getTitle
()))
{
criteria
.
andLike
(
"title"
,
"%"
+
bannerDto
.
getTitle
()
+
"%"
);
}
example
.
orderBy
(
"updTime"
).
desc
();
Query
query
=
new
Query
(
bannerDto
);
PageDataVO
<
Banner
>
pageDataVO
=
PageDataVO
.
pageInfo
(
query
,
()
->
mapper
.
selectByExample
(
example
));
...
...
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/biz/IndustryApplicationTypeBiz.java
View file @
003d8bf7
...
...
@@ -49,12 +49,6 @@ public class IndustryApplicationTypeBiz extends BaseBiz<IndustryApplicationTypeM
if
(
old
==
null
)
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NOTEXIST_CODE
,
ResultCode
.
getMsg
(
ResultCode
.
NOTEXIST_CODE
));
}
if
(
StringUtils
.
isNotBlank
(
industryApplicationType
.
getTitle
()))
{
IndustryApplicationType
nameValue
=
getOneByTitle
(
industryApplicationType
.
getTitle
());
if
(
nameValue
!=
null
)
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED_CODE
,
"行业应用类型已存在!"
);
}
}
BeanUtil
.
copyProperties
(
industryApplicationType
,
old
,
CopyOptions
.
create
().
setIgnoreNullValue
(
true
).
setIgnoreError
(
true
));
updateSelectiveByIdRe
(
old
);
}
else
{
...
...
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/biz/NewsTypeBiz.java
View file @
003d8bf7
...
...
@@ -39,13 +39,19 @@ public class NewsTypeBiz extends BaseBiz<NewsTypeMapper, NewsType> {
}
if
(
StringUtils
.
isNotBlank
(
newsType
.
getNameCn
()))
{
NewsType
nameValue
=
getOneByName
(
newsType
.
getNameCn
());
if
(
nameValue
!=
null
)
{
if
(
nameValue
!=
null
&&
!
nameValue
.
getId
().
equals
(
newsType
.
getId
())
)
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED_CODE
,
"新闻分类名称已存在!"
);
}
}
BeanUtil
.
copyProperties
(
newsType
,
old
,
CopyOptions
.
create
().
setIgnoreNullValue
(
true
).
setIgnoreError
(
true
));
updateSelectiveByIdRe
(
old
);
}
else
{
if
(
StringUtils
.
isNotBlank
(
newsType
.
getNameCn
()))
{
NewsType
nameValue
=
getOneByName
(
newsType
.
getNameCn
());
if
(
nameValue
!=
null
)
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED_CODE
,
"新闻分类名称已存在!"
);
}
}
insertSelectiveRe
(
newsType
);
}
return
ObjectRestResponse
.
succ
();
...
...
rs-website/rs-website-server/src/main/resources/mapper/IndustryApplicationInfoMapper.xml
View file @
003d8bf7
...
...
@@ -23,8 +23,10 @@
<if
test=
"title != null and title != ''"
>
and iai.title like concat('%', #{title}, '%')
</if>
and iai.is_del = 0
</where>
order by upd_time DESC
order by iai.upd_time DESC
</select>
</mapper>
\ No newline at end of file
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