|
|
|
@ -3,7 +3,6 @@ package com.hnac.hzims.operational.duty.service.impl;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
|
import com.alibaba.fastjson.serializer.SerializerFeature; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.Query; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.IdWorker; |
|
|
|
|
import com.hnac.hzims.monitor.utils.DateUtils; |
|
|
|
@ -31,7 +30,6 @@ import org.springblade.system.user.entity.User;
|
|
|
|
|
import org.springblade.system.user.feign.IUserClient; |
|
|
|
|
import org.springframework.beans.BeanUtils; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.format.annotation.DateTimeFormat; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
import org.springframework.util.ObjectUtils; |
|
|
|
@ -39,7 +37,6 @@ import org.springframework.util.ObjectUtils;
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
|
import java.sql.Time; |
|
|
|
|
import java.text.DateFormat; |
|
|
|
|
import java.text.ParseException; |
|
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
|
import java.time.LocalDate; |
|
|
|
|
import java.time.LocalDateTime; |
|
|
|
@ -1226,7 +1223,7 @@ public class ImsDutyMainServiceImpl extends BaseServiceImpl<ImsDutyMainMapper, I
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public R getAllPersonInfo(Long deptId) { |
|
|
|
|
R<List<User>> allUserList = userClient.userListByDeptId(deptId); |
|
|
|
|
R<List<User>> allUserList = userClient.userList("200000",deptId); |
|
|
|
|
return allUserList; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1394,7 +1391,7 @@ public class ImsDutyMainServiceImpl extends BaseServiceImpl<ImsDutyMainMapper, I
|
|
|
|
|
Map<Long, ImsDutyClassEntity> deptDutyClassMap = deptDutyClassList.stream().collect(Collectors.toMap(ImsDutyClassEntity::getId, Function.identity())); |
|
|
|
|
|
|
|
|
|
// 获取部门的所有组员
|
|
|
|
|
List<User> allUserList = userClient.userListByDeptId(deptId).getData(); |
|
|
|
|
List<User> allUserList = userClient.userList("200000",deptId).getData(); |
|
|
|
|
Map<Long, String> deptUserMap = allUserList.stream().collect(Collectors.toMap(User::getId, User::getName)); |
|
|
|
|
|
|
|
|
|
LambdaQueryWrapper<ImsDutyMainEntity> wrapper = new LambdaQueryWrapper<>(); |
|
|
|
@ -1419,7 +1416,7 @@ public class ImsDutyMainServiceImpl extends BaseServiceImpl<ImsDutyMainMapper, I
|
|
|
|
|
for (int i = 1; i <= days; i++) { |
|
|
|
|
String dateStr = getDate(year, month, i); |
|
|
|
|
|
|
|
|
|
List<User> restUserList = userClient.userListByDeptId(deptId).getData(); |
|
|
|
|
List<User> restUserList = userClient.userList("200000",deptId).getData(); |
|
|
|
|
|
|
|
|
|
// 获取一天的排班
|
|
|
|
|
List<ImsDutyMainEntity> dutyMainDayList = dutyMainList.stream().filter(var -> dateFormat.format(var.getDutyDate()).equals(dateStr)).collect(Collectors.toList()); |
|
|
|
|