|
|
@@ -227,6 +227,9 @@ public class WeComThirdPartyServiceImpl implements WeComThirdPartyService {
|
|
|
|
|
|
@Override
|
|
|
public List<ThirdPartWeComCorp> getCorpListByIds(List<Long> ids) {
|
|
|
+ if (CollectionUtils.isEmpty(ids)) {
|
|
|
+ return Collections.emptyList();
|
|
|
+ }
|
|
|
ThirdPartWeComCorpExample example = new ThirdPartWeComCorpExample();
|
|
|
example.createCriteria().andIdIn(ids);
|
|
|
List<ThirdPartWeComCorp> list = thirdPartWeComCorpMapper.selectByExample(example);
|
|
|
@@ -512,6 +515,9 @@ public class WeComThirdPartyServiceImpl implements WeComThirdPartyService {
|
|
|
|
|
|
@Override
|
|
|
public List<ThirdPartWeComRoom> getRoomByRoomIds(List<Long> roomIds) {
|
|
|
+ if (CollectionUtils.isEmpty(roomIds)) {
|
|
|
+ return Collections.emptyList();
|
|
|
+ }
|
|
|
ThirdPartWeComRoomExample example = new ThirdPartWeComRoomExample();
|
|
|
example.createCriteria().andIdIn(roomIds);
|
|
|
return thirdPartWeComRoomMapper.selectByExample(example);
|
|
|
@@ -524,6 +530,9 @@ public class WeComThirdPartyServiceImpl implements WeComThirdPartyService {
|
|
|
|
|
|
@Override
|
|
|
public List<ThirdPartWeComStaff> getStaffByIds(List<Long> ids) {
|
|
|
+ if (CollectionUtils.isEmpty(ids)) {
|
|
|
+ return Collections.emptyList();
|
|
|
+ }
|
|
|
ThirdPartWeComStaffExample example = new ThirdPartWeComStaffExample();
|
|
|
example.createCriteria().andIdIn(ids);
|
|
|
return thirdPartWeComStaffMapper.selectByExample(example);
|