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
e94a09db
Commit
e94a09db
authored
Jan 08, 2021
by
unset
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
cf65ec1e
86cebd84
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
3 deletions
+19
-3
BgImageQueryDTO.java
...latform/rs/datacenter/pojo/imagedata/BgImageQueryDTO.java
+1
-1
RscpImageDataTotalController.java
...form/rs/datacenter/rest/RscpImageDataTotalController.java
+6
-2
ImageInformationDto.java
...m/upyuns/platform/rs/website/dto/ImageInformationDto.java
+5
-0
ImageInformationBiz.java
...m/upyuns/platform/rs/website/biz/ImageInformationBiz.java
+7
-0
No files found.
rs-datacenter/rs-datacenter-api/src/main/java/com/upyuns/platform/rs/datacenter/pojo/imagedata/BgImageQueryDTO.java
View file @
e94a09db
...
...
@@ -13,5 +13,5 @@ import java.util.List;
public
class
BgImageQueryDTO
extends
PageParam
{
String
name
;
String
imageSatelliteType
;
String
resolution
;
BigDecimal
resolution
;
}
\ No newline at end of file
rs-datacenter/rs-datacenter-server/src/main/java/com/upyuns/platform/rs/datacenter/rest/RscpImageDataTotalController.java
View file @
e94a09db
...
...
@@ -175,12 +175,16 @@ public class RscpImageDataTotalController extends BaseController<RscpImageDataTo
public
void
setStartDate
(
String
startDate
)
{
this
.
startDate
=
startDate
;
this
.
startDateTime
=
DateUtil
.
beginOfDay
(
DateUtil
.
parseDate
(
startDate
)).
toString
();
if
(
StrUtil
.
isNotBlank
(
startDate
))
{
this
.
startDateTime
=
DateUtil
.
beginOfDay
(
DateUtil
.
parseDate
(
startDate
)).
toString
();
}
}
public
void
setEndDate
(
String
endDate
)
{
this
.
endDate
=
endDate
;
this
.
endDateTime
=
DateUtil
.
endOfDay
(
DateUtil
.
parseDate
(
endDate
)).
toString
();
if
(
StrUtil
.
isNotBlank
(
endDate
))
{
this
.
endDateTime
=
DateUtil
.
endOfDay
(
DateUtil
.
parseDate
(
endDate
)).
toString
();
}
}
public
void
setAreaNo
(
String
areaNo
)
{
...
...
rs-website/rs-website-api/src/main/java/com/upyuns/platform/rs/website/dto/ImageInformationDto.java
View file @
e94a09db
...
...
@@ -12,9 +12,14 @@ import lombok.Data;
@Data
public
class
ImageInformationDto
extends
PageParam
{
public
static
final
int
SORT_TYPE_ASC
=
1
;
public
static
final
int
SORT_TYPE_DESC
=
2
;
String
name
;
Integer
status
;
Integer
indexShow
;
Integer
sortType
;
}
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/biz/ImageInformationBiz.java
View file @
e94a09db
...
...
@@ -70,6 +70,13 @@ public class ImageInformationBiz extends BaseBiz<ImageInformationMapper, ImageIn
if
(
imageInformationDto
.
getIndexShow
()
!=
null
)
{
criteria
.
andEqualTo
(
"indexShow"
,
imageInformationDto
.
getIndexShow
());
}
if
(
imageInformationDto
.
getSortType
()
!=
null
)
{
if
(
ImageInformationDto
.
SORT_TYPE_ASC
==
imageInformationDto
.
getSortType
())
{
example
.
orderBy
(
"rank"
).
asc
();
}
else
{
example
.
orderBy
(
"rank"
).
desc
();
}
}
example
.
orderBy
(
"updTime"
).
desc
();
Query
query
=
new
Query
(
imageInformationDto
);
PageDataVO
<
ImageInformation
>
pageDataVO
=
PageDataVO
.
pageInfo
(
query
,
()
->
mapper
.
selectByExample
(
example
));
...
...
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