Kaynağa Gözat

Merge branch '20251119-wyp-weCom' into test

wangyunpeng 4 hafta önce
ebeveyn
işleme
0132e33b54

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

@@ -297,6 +297,7 @@ public class WeComThirdPartyAccountServiceImpl implements WeComThirdPartyAccount
         newConfig.setPrimaryThirdStaffId(param.getPrimaryThirdStaffId());
         newConfig.setSecondThirdStaffId(param.getSecondThirdStaffId());
         newConfig.setStatus(1);
+        newConfig.setConfigSync(param.getConfigSync());
         newConfig.setCreateTime(new Date());
         newConfig.setUpdateTime(new Date());
         staffConfigMapper.insert(newConfig);

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

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