记得上下班打卡 | git大法好,push需谨慎

Commit 1e2a5bf8 authored by GaoHu's avatar GaoHu

exit 删除旧版perIds存储方式String转换为List<String>

parent 2709a14a
...@@ -11,12 +11,14 @@ import com.liquidnet.service.goblin.dto.vo.SmileSellDataVO; ...@@ -11,12 +11,14 @@ import com.liquidnet.service.goblin.dto.vo.SmileSellDataVO;
import com.liquidnet.service.goblin.dto.vo.SmileUserVO; import com.liquidnet.service.goblin.dto.vo.SmileUserVO;
import com.liquidnet.service.smile.entity.SmileVolunteersTeam; import com.liquidnet.service.smile.entity.SmileVolunteersTeam;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays;
import java.util.List; import java.util.List;
@Component @Component
...@@ -109,6 +111,14 @@ public class SmileRedisUtils { ...@@ -109,6 +111,14 @@ public class SmileRedisUtils {
} catch (Exception e) { } catch (Exception e) {
log.debug("不是新存ids,需要删除!"); log.debug("不是新存ids,需要删除!");
getRedis().del(rdk); getRedis().del(rdk);
ArrayList<String> arrayList = CollectionUtil.arrayListString();
//旧版转换
String perforManceIds = (String) obj;
if (StringUtils.isNotBlank(perforManceIds)) {
arrayList.addAll(Arrays.asList(perforManceIds.split(",")));
}
setShowIds(arrayList);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment