|
|
@@ -174,6 +174,9 @@ public class WeComThirdPartyRoomServiceImpl implements WeComThirdPartyRoomServic
|
|
|
|
|
|
@Override
|
|
|
public List<ThirdPartWeComStaff> getRoomConfigPushList(List<ThirdPartWeComRoomConfig> configList) {
|
|
|
+ if (CollectionUtils.isEmpty(configList)) {
|
|
|
+ return Collections.emptyList();
|
|
|
+ }
|
|
|
List<Long> thirdStaffIds = new ArrayList<>();
|
|
|
for (ThirdPartWeComRoomConfig config : configList) {
|
|
|
if (Objects.nonNull(config.getPrimaryThirdStaffId())) {
|
|
|
@@ -211,6 +214,9 @@ public class WeComThirdPartyRoomServiceImpl implements WeComThirdPartyRoomServic
|
|
|
|
|
|
@Override
|
|
|
public List<ThirdPartWeComRoomConfigTaskContent> getRoomConfigTaskContents(List<String> taskIds) {
|
|
|
+ if (CollectionUtils.isEmpty(taskIds)) {
|
|
|
+ return Collections.emptyList();
|
|
|
+ }
|
|
|
ThirdPartWeComRoomConfigTaskContentExample example = new ThirdPartWeComRoomConfigTaskContentExample();
|
|
|
example.createCriteria().andTaskIdIn(taskIds);
|
|
|
return roomConfigTaskContentMapper.selectByExample(example);
|
|
|
@@ -394,6 +400,9 @@ public class WeComThirdPartyRoomServiceImpl implements WeComThirdPartyRoomServic
|
|
|
|
|
|
@Override
|
|
|
public List<ThirdPartWeComRoomConfig> getRoomConfigListByRoomIds(List<Long> roomIds) {
|
|
|
+ if (CollectionUtils.isEmpty(roomIds)) {
|
|
|
+ return Collections.emptyList();
|
|
|
+ }
|
|
|
ThirdPartWeComRoomConfigExample example = new ThirdPartWeComRoomConfigExample();
|
|
|
example.createCriteria().andRoomIdIn(roomIds).andStatusEqualTo(1);
|
|
|
return roomConfigMapper.selectByExample(example);
|
|
|
@@ -401,6 +410,9 @@ public class WeComThirdPartyRoomServiceImpl implements WeComThirdPartyRoomServic
|
|
|
|
|
|
@Override
|
|
|
public List<ThirdPartWeComRoom> getRoomListByRoomIds(List<Long> roomIds) {
|
|
|
+ if (CollectionUtils.isEmpty(roomIds)) {
|
|
|
+ return Collections.emptyList();
|
|
|
+ }
|
|
|
ThirdPartWeComRoomExample example = new ThirdPartWeComRoomExample();
|
|
|
example.createCriteria().andIdIn(roomIds).andIsDeleteEqualTo(0);
|
|
|
return roomMapper.selectByExample(example);
|