Commit 2257f5c8 authored by 鲁鸿波's avatar 鲁鸿波

值班列表bug解决

parent 742315c8
...@@ -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)
) )
......
...@@ -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("登录错误");
} }
} }
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment