Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Z
zlmy-cloud
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
zlmy
zlmy-cloud
Commits
2257f5c8
Commit
2257f5c8
authored
Aug 22, 2025
by
鲁鸿波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
值班列表bug解决
parent
742315c8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
DutyServiceImpl.java
.../com/testor/module/duty/service/impl/DutyServiceImpl.java
+1
-1
ClobalJeeStudio.java
...testor/module/globalAlarm/controller/ClobalJeeStudio.java
+15
-6
No files found.
zlmy-modules/zlmy-boot/src/main/java/com/testor/module/duty/service/impl/DutyServiceImpl.java
View file @
2257f5c8
...
@@ -855,7 +855,7 @@ public class DutyServiceImpl extends ServiceImpl<DutyDao, TSysDuty> implements D
...
@@ -855,7 +855,7 @@ public class DutyServiceImpl extends ServiceImpl<DutyDao, TSysDuty> implements D
List
<
Person
>
collect1
=
people
.
stream
()
List
<
Person
>
collect1
=
people
.
stream
()
.
sorted
(
.
sorted
(
Comparator
.
comparing
(
Person:
:
getCreateDate
)
Comparator
.
comparing
(
Person:
:
getCreateDate
)
.
thenComparing
(
Person:
:
getSort
)
// 新增sort升序排序
.
thenComparing
(
Person:
:
getSort
,
Comparator
.
nullsLast
(
Comparator
.
naturalOrder
())
)
// 新增sort升序排序
.
thenComparing
(
Person:
:
getId
)
.
thenComparing
(
Person:
:
getId
)
)
)
...
...
zlmy-modules/zlmy-boot/src/main/java/com/testor/module/globalAlarm/controller/ClobalJeeStudio.java
View file @
2257f5c8
...
@@ -20,6 +20,7 @@ import com.xxl.job.core.handler.annotation.XxlJob;
...
@@ -20,6 +20,7 @@ import com.xxl.job.core.handler.annotation.XxlJob;
import
io.minio.MinioClient
;
import
io.minio.MinioClient
;
import
io.minio.PutObjectArgs
;
import
io.minio.PutObjectArgs
;
import
io.minio.errors.*
;
import
io.minio.errors.*
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
...
@@ -38,6 +39,7 @@ import java.util.*;
...
@@ -38,6 +39,7 @@ import java.util.*;
//@RestController
//@RestController
//@RequestMapping("/global")
//@RequestMapping("/global")
@Slf4j
@Service
@Service
public
class
ClobalJeeStudio
{
public
class
ClobalJeeStudio
{
...
@@ -321,7 +323,12 @@ public class ClobalJeeStudio {
...
@@ -321,7 +323,12 @@ public class ClobalJeeStudio {
HttpHeaders
httpHeaders
=
new
HttpHeaders
();
HttpHeaders
httpHeaders
=
new
HttpHeaders
();
httpHeaders
.
setContentType
(
MediaType
.
MULTIPART_FORM_DATA
);
httpHeaders
.
setContentType
(
MediaType
.
MULTIPART_FORM_DATA
);
HttpEntity
httpEntity
=
new
HttpEntity
(
null
,
headers
);
//构建请求参数
HttpEntity
httpEntity
=
new
HttpEntity
(
null
,
headers
);
//构建请求参数
log
.
info
(
"httpEntity------->"
+
httpEntity
);
log
.
info
(
"alaremurl------->"
+
alaremurl
);
log
.
info
(
"params------->"
+
params
);
Map
map
=
restTemplate
.
postForObject
(
alaremurl
,
httpEntity
,
Map
.
class
,
params
);
Map
map
=
restTemplate
.
postForObject
(
alaremurl
,
httpEntity
,
Map
.
class
,
params
);
log
.
info
(
"map------->"
+
map
);
if
(
null
!=
map
){
Integer
code
=
(
Integer
)
map
.
get
(
"code"
);
Integer
code
=
(
Integer
)
map
.
get
(
"code"
);
String
token
=
(
String
)
map
.
get
(
"token"
);
String
token
=
(
String
)
map
.
get
(
"token"
);
if
(
code
==
0
)
{
if
(
code
==
0
)
{
...
@@ -330,4 +337,6 @@ public class ClobalJeeStudio {
...
@@ -330,4 +337,6 @@ public class ClobalJeeStudio {
throw
new
BusinessException
(
"登录错误"
);
throw
new
BusinessException
(
"登录错误"
);
}
}
}
}
}
}
}
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