| | |
| | | private Long timeRemain; |
| | | |
| | | public Long getTimeRemain() { |
| | | if (endTime != null) return null; |
| | | if (endTime == null) return null; |
| | | return LocalDateTime.now().until(endTime, java.time.temporal.ChronoUnit.SECONDS); |
| | | } |
| | | |
| | |
| | | private List<SysRole> roles; |
| | | |
| | | @ApiModelProperty(value = "和事故地点距离") |
| | | private String dis; |
| | | private Double dis; |
| | | } |
| | |
| | | PageInfo<XpOperationsUserWithRoleVO> ret = operationUserClient.listByQueryIds(query).getData(); |
| | | |
| | | // 设置距离,然后排序 |
| | | ret.getRecords().forEach(e -> e.setDis(String.valueOf(disMap.get(e.getId())))); |
| | | ret.getRecords().forEach(e -> e.setDis(disMap.get(e.getId()))); |
| | | List<XpOperationsUserWithRoleVO> sorted = ret.getRecords().stream().sorted(Comparator.comparing(XpOperationsUserWithRoleVO::getDis)).collect(Collectors.toList()); |
| | | ret.setRecords(sorted); |
| | | return R.ok(ret); |
| | |
| | | |
| | | List<XpTaskVO> reassignTaskPageList(@Param("pageInfo")PageInfo<XpTaskVO> pageInfo, @Param("query")TaskPageListQuery query); |
| | | |
| | | List<XpTaskVO> reassignTaskPageList(TaskPageListQuery query); |
| | | List<XpTaskVO> reassignTaskPageList(@Param("query") TaskPageListQuery query); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | @Resource |
| | | WebSocketMessageClient xpWebSocketMessageClient; |
| | | /** |
| | | * 推送阿里云通知 |
| | |
| | | |
| | | @ApiModelProperty(value = "打卡时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @Excel(name = "打卡时间", width = 20) |
| | | @Excel(name = "打卡时间", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime checkInTime; |
| | | |
| | | @ApiModelProperty(value = "打卡结果(1=正常打卡,2=迟到打卡,3=未打卡)") |