|
|
@@ -27,6 +27,7 @@ import me.chanjar.weixin.cp.bean.WxCpDepart;
|
|
|
import me.chanjar.weixin.cp.bean.WxCpUser;
|
|
|
import me.chanjar.weixin.cp.bean.kf.*;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.util.ObjectUtils;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
|
|
@@ -98,6 +99,10 @@ public class SysWechatCustomerBusinessServiceImpl implements SysWechatCustomerBu
|
|
|
// 设置值班时间
|
|
|
sysWechatCustomerVoPageInfo.getList().forEach(sysWechatCustomerVo -> {
|
|
|
List<SysWechatCustomerDuty> sysWechatCustomerDuties = dutyMap.get(Long.valueOf(sysWechatCustomerVo.getId()));
|
|
|
+ if(CollectionUtils.isEmpty(sysWechatCustomerDuties)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
Map<Long, List<SysWechatCustomerDuty>> collect = sysWechatCustomerDuties.stream()
|
|
|
.collect(Collectors.groupingBy(SysWechatCustomerDuty::getDutyCustomerId));
|
|
|
|
|
|
@@ -118,8 +123,9 @@ public class SysWechatCustomerBusinessServiceImpl implements SysWechatCustomerBu
|
|
|
dutyCustomerDTO.setDutyCustomer(sysWechatCustomer.getNickname());
|
|
|
}
|
|
|
dutyCustomerDTO.setDutyDatetime(collect1);
|
|
|
- sysWechatCustomerVo.setDutyCustomerDTO(dutyCustomerDTO);
|
|
|
+ sysWechatCustomerVo.getDutyCustomerDTO().add(dutyCustomerDTO);
|
|
|
});
|
|
|
+
|
|
|
});
|
|
|
}
|
|
|
|