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

Commit fe58f6ed authored by wangyifan's avatar wangyifan

演出详情返回场地地址

parent 7b24e96f
...@@ -21,7 +21,7 @@ import java.util.List; ...@@ -21,7 +21,7 @@ import java.util.List;
@ApiModel @ApiModel
@Data @Data
@JsonIgnoreProperties(ignoreUnknown = true) @JsonIgnoreProperties(ignoreUnknown = true)
public class KylinPerformanceVo implements Serializable, Cloneable { public class KylinPerformanceVo implements Serializable, Cloneable {
private Integer mid; private Integer mid;
@ApiModelProperty(value = "主键") @ApiModelProperty(value = "主键")
...@@ -146,6 +146,9 @@ public class KylinPerformanceVo implements Serializable, Cloneable { ...@@ -146,6 +146,9 @@ public class KylinPerformanceVo implements Serializable, Cloneable {
@ApiModelProperty(value = "开票提醒 0为不提醒", example = "0") @ApiModelProperty(value = "开票提醒 0为不提醒", example = "0")
private Integer isInvoiceReminder; private Integer isInvoiceReminder;
@ApiModelProperty(value = "场地地址")
private String fieldAddress;
public Integer getIdCount() { public Integer getIdCount() {
return idCount == null ? limitCount : idCount; return idCount == null ? limitCount : idCount;
} }
......
...@@ -315,6 +315,7 @@ public class KylinPerformancesServiceImpl implements IKylinPerformancesService { ...@@ -315,6 +315,7 @@ public class KylinPerformancesServiceImpl implements IKylinPerformancesService {
performancesInfo.setIsVip(dataUtils.isMemberByUser(uid)); performancesInfo.setIsVip(dataUtils.isMemberByUser(uid));
} }
performancesInfo.setIsInvoiceReminder(dataUtils.getPerformanceInvoiceReminder(performancesId)); performancesInfo.setIsInvoiceReminder(dataUtils.getPerformanceInvoiceReminder(performancesId));
performancesInfo.setFieldAddress(dataUtils.getFieldAddressByFieldId(performancesInfo.getFieldId()));
return performancesInfo; return performancesInfo;
} }
......
...@@ -32,6 +32,8 @@ import com.liquidnet.service.kylin.entity.*; ...@@ -32,6 +32,8 @@ import com.liquidnet.service.kylin.entity.*;
import com.liquidnet.service.kylin.mapper.KylinLuckyBagActivityMapper; import com.liquidnet.service.kylin.mapper.KylinLuckyBagActivityMapper;
import com.liquidnet.service.kylin.mapper.KylinLuckyBagMapper; import com.liquidnet.service.kylin.mapper.KylinLuckyBagMapper;
import com.liquidnet.service.kylin.mapper.KylinRewardUserMapper; import com.liquidnet.service.kylin.mapper.KylinRewardUserMapper;
import com.liquidnet.service.slime.constant.SlimeRedisConst;
import com.liquidnet.service.slime.dto.vo.SlimeFieldsVo;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.PageRequest;
...@@ -1613,6 +1615,20 @@ public class DataUtils { ...@@ -1613,6 +1615,20 @@ public class DataUtils {
KylinTicketPartnerVo.class.getSimpleName()); KylinTicketPartnerVo.class.getSimpleName());
} }
public String getFieldAddressByFieldId(String fieldId){
String key = SlimeRedisConst.INFO_FIELD.concat(fieldId);
SlimeFieldsVo vo = (SlimeFieldsVo) redisUtil.get(key);
if (null == vo) {
vo = mongoTemplate.findOne(Query.query(Criteria.where("fieldId").is(fieldId)), SlimeFieldsVo.class, SlimeFieldsVo.class.getSimpleName());
redisUtil.set(SlimeRedisConst.INFO_FIELD.concat(fieldId), vo);
}
if (null == vo) {
log.error("[getFieldAddressByFieldId] 场地信息为空, fieldId: {}", fieldId);
return "";
}
return vo.getAddress();
}
/** /**
* 获取福袋活动列表 * 获取福袋活动列表
......
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