Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
Project
Project
Details
Activity
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
fulixin
dsk-operate-sys-cscec
Commits
ebbcbdf1
Commit
ebbcbdf1
authored
Jun 29, 2023
by
lixiaolei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
submit
parent
188b4609
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
BusinessFileController.java
...m/dsk/web/controller/business/BusinessFileController.java
+3
-0
BusinessFileVo.java
...ava/com/dsk/common/core/domain/entity/BusinessFileVo.java
+1
-1
BusinessInfoMapper.xml
...src/main/resources/mapper/business/BusinessInfoMapper.xml
+6
-6
No files found.
dsk-admin/src/main/java/com/dsk/web/controller/business/BusinessFileController.java
View file @
ebbcbdf1
...
...
@@ -19,6 +19,7 @@ import javax.servlet.http.HttpServletRequest;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.File
;
import
java.io.IOException
;
import
java.util.Comparator
;
import
java.util.List
;
import
java.util.stream.Collectors
;
...
...
@@ -68,6 +69,8 @@ public class BusinessFileController extends BaseController {
List
<
BusinessFileVo
>
allFileName
=
FileUtils
.
getAllFileNames
(
filePath
.
getFilePath
());
allFiles
=
allFileName
.
stream
().
filter
(
p
->
p
.
getFilePath
().
contains
(
filePath
.
getKeyword
())).
collect
(
Collectors
.
toList
());
}
//文件按照时间倒序
allFiles
=
allFiles
.
stream
().
sorted
(
Comparator
.
comparing
(
BusinessFileVo:
:
getCreatTime
).
reversed
()).
collect
(
Collectors
.
toList
());
return
getDataTable
(
allFiles
);
}
...
...
dsk-common/src/main/java/com/dsk/common/core/domain/entity/BusinessFileVo.java
View file @
ebbcbdf1
...
...
@@ -15,6 +15,6 @@ public class BusinessFileVo {
public
BusinessFileVo
(
String
filePath
,
String
creatTime
)
{
this
.
filePath
=
filePath
;
this
.
creatTime
=
creatTime
;
this
.
creatTime
=
creatTime
==
null
?
""
:
creatTime
;
}
}
dsk-system/src/main/resources/mapper/business/BusinessInfoMapper.xml
View file @
ebbcbdf1
...
...
@@ -337,12 +337,12 @@
<if
test=
"buildProperty != null"
>
build_property = #{buildProperty},
</if>
<if
test=
"planCompleteTime != null"
>
plan_complete_time = #{planCompleteTime},
</if>
<if
test=
"projectDetails != null"
>
project_details = #{projectDetails},
</if>
<if
test=
"provinceName != null"
>
province_name = #{provinceName},
</if>
<if
test=
"provinceId != null"
>
province_id = #{provinceId},
</if>
<if
test=
"cityName != null"
>
city_name = #{cityName},
</if>
<if
test=
"cityId != null"
>
city_id = #{cityId},
</if>
<if
test=
"districtName != null"
>
district_name = #{districtName},
</if>
<if
test=
"districtId != null"
>
district_id = #{districtId},
</if>
province_name = #{provinceName},
province_id = #{provinceId},
city_name = #{cityName},
city_id = #{cityId},
district_name = #{districtName},
district_id = #{districtId},
<if
test=
"projectType != null"
>
project_type = #{projectType},
</if>
<if
test=
"projectCategory != null"
>
project_category = #{projectCategory},
</if>
<if
test=
"isPrivate != null"
>
is_private = #{isPrivate},
</if>
...
...
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