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

Commit cbda0e9d authored by 胡佳晨's avatar 胡佳晨

修改bug

parent bfeef577
......@@ -428,8 +428,14 @@ public class DataImpl {
if (appliesVo != null) {
//MerchantFieldAppliesVo MONGO
mongoTemplate.insert(appliesVo, MerchantFieldAppliesVo.class.getSimpleName());
//MerchantFieldAppliesVo MONGO
List<MerchantFieldAppliesVo> vos = new ArrayList();
//MerchantFieldAppliesVo REDIS
Object obj = redisDataSourceUtil.getRedisKylinUtil().get(MerchantRedisConst.INFO_FIELD_APPLIES.concat(uid));
List<MerchantFieldAppliesVo> vos;
if (obj == null) {
vos = new ArrayList<>();
} else {
vos = (List<MerchantFieldAppliesVo>) obj;
}
vos.add(appliesVo);
redisDataSourceUtil.getRedisKylinUtil().set(MerchantRedisConst.INFO_FIELD_APPLIES.concat(uid), vos);
}
......
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