wangyunpeng 4 weeks ago
parent
commit
af427c88f0

+ 3 - 0
api-module/src/main/java/com/tzld/piaoquan/api/service/wecom/thirdparty/impl/WeComThirdPartyAccountServiceImpl.java

@@ -422,6 +422,9 @@ public class WeComThirdPartyAccountServiceImpl implements WeComThirdPartyAccount
 
     @Override
     public List<ThirdPartWeComStaffConfig> getStaffConfigListByStaffIds(List<Long> staffIdList) {
+        if (CollectionUtils.isEmpty(staffIdList)) {
+            return Collections.emptyList();
+        }
         ThirdPartWeComStaffConfigExample example = new ThirdPartWeComStaffConfigExample();
         example.createCriteria().andStaffIdIn(staffIdList).andStatusEqualTo(1);
         return staffConfigMapper.selectByExample(example);

+ 12 - 0
api-module/src/main/java/com/tzld/piaoquan/api/service/wecom/thirdparty/impl/WeComThirdPartyRoomServiceImpl.java

@@ -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);