|
@@ -16,6 +16,7 @@ import com.tzld.piaoquan.growth.common.dao.mapper.CorpMapper;
|
|
|
import com.tzld.piaoquan.growth.common.model.po.Corp;
|
|
|
import com.tzld.piaoquan.growth.common.model.po.CorpExample;
|
|
|
import com.tzld.piaoquan.growth.common.utils.DateUtil;
|
|
|
+import com.tzld.piaoquan.growth.common.utils.RedisUtils;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -42,6 +43,9 @@ public class WeComThirdPartyServiceImpl implements WeComThirdPartyService {
|
|
|
@Autowired
|
|
|
private CorpMapper corpMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private RedisUtils redisUtils;
|
|
|
+
|
|
|
@Override
|
|
|
public InitResponse init() {
|
|
|
InitRequest request = new InitRequest();
|
|
@@ -154,6 +158,9 @@ public class WeComThirdPartyServiceImpl implements WeComThirdPartyService {
|
|
|
existStaff.setStatus(0);
|
|
|
thirdPartWeComStaffMapper.updateByPrimaryKeySelective(existStaff);
|
|
|
}
|
|
|
+
|
|
|
+ String offLineKey = "wecom:thirdpart:offline:" + uuid;
|
|
|
+ redisUtils.del(offLineKey);
|
|
|
}
|
|
|
|
|
|
private Corp getCorpByName(String corpName) {
|
|
@@ -301,7 +308,7 @@ public class WeComThirdPartyServiceImpl implements WeComThirdPartyService {
|
|
|
@Override
|
|
|
public List<ThirdPartWeComRoom> getStaffRoomList(Long staffId) {
|
|
|
ThirdPartWeComRoomExample example = new ThirdPartWeComRoomExample();
|
|
|
- example.createCriteria().andStaffIdEqualTo(staffId).andIsDeleteEqualTo(0);
|
|
|
+ example.createCriteria().andStaffIdEqualTo(staffId);
|
|
|
return thirdPartWeComRoomMapper.selectByExample(example);
|
|
|
}
|
|
|
|