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

Commit 85b37ac7 authored by 胡佳晨's avatar 胡佳晨

merchant 快递价格 逻辑修改

修改 演出状态接口。
修复kylin接口
parent ad4dc795
...@@ -4,6 +4,7 @@ import io.swagger.annotations.ApiModelProperty; ...@@ -4,6 +4,7 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List; import java.util.List;
@Data @Data
...@@ -15,6 +16,12 @@ public class ExpressModuleVo implements Serializable, Cloneable { ...@@ -15,6 +16,12 @@ public class ExpressModuleVo implements Serializable, Cloneable {
@ApiModelProperty(value = "产品编码") @ApiModelProperty(value = "产品编码")
private String productCode; private String productCode;
@ApiModelProperty(value = "快递预估价格小")
private BigDecimal estimatePriceMin;
@ApiModelProperty(value = "快递预估价格大")
private BigDecimal estimatePriceMax;
private static final ExpressModuleVo obj = new ExpressModuleVo(); private static final ExpressModuleVo obj = new ExpressModuleVo();
public static ExpressModuleVo getNew() { public static ExpressModuleVo getNew() {
......
...@@ -14,6 +14,7 @@ import com.liquidnet.service.kylin.dto.vo.middle.KylinTicketVo; ...@@ -14,6 +14,7 @@ import com.liquidnet.service.kylin.dto.vo.middle.KylinTicketVo;
import com.liquidnet.service.kylin.dto.vo.mongo.KylinOrderTicketVo; import com.liquidnet.service.kylin.dto.vo.mongo.KylinOrderTicketVo;
import com.liquidnet.service.kylin.dto.vo.mongo.KylinPerformanceVo; import com.liquidnet.service.kylin.dto.vo.mongo.KylinPerformanceVo;
import com.liquidnet.service.kylin.dto.vo.partner.ExpressModuleVo; import com.liquidnet.service.kylin.dto.vo.partner.ExpressModuleVo;
import com.liquidnet.service.kylin.dto.vo.partner.KylinTicketExpressModuleVo;
import com.liquidnet.service.kylin.dto.vo.partner.KylinTicketPartnerVo; import com.liquidnet.service.kylin.dto.vo.partner.KylinTicketPartnerVo;
import com.liquidnet.service.kylin.dto.vo.partner.KylinTicketTimesPartnerVo; import com.liquidnet.service.kylin.dto.vo.partner.KylinTicketTimesPartnerVo;
import com.liquidnet.service.kylin.dto.vo.returns.KylinOrderListVo; import com.liquidnet.service.kylin.dto.vo.returns.KylinOrderListVo;
...@@ -412,8 +413,12 @@ public class KylinPerformancesServiceImpl implements IKylinPerformancesService { ...@@ -412,8 +413,12 @@ public class KylinPerformancesServiceImpl implements IKylinPerformancesService {
performancesInfo.setMessage(KylinPerformanceStatusEnum.getName(performancesInfo.getAppStatus())); performancesInfo.setMessage(KylinPerformanceStatusEnum.getName(performancesInfo.getAppStatus()));
PayDetailVo payDetailVo = new PayDetailVo(); PayDetailVo payDetailVo = new PayDetailVo();
List<ExpressModuleVo> expressModuleList = dataUtils.getTEMVo(ticketsId).getProduceCodeList(); if(ticketVo.getIsExpress()==1) {
payDetailVo.setExpressModuleList(expressModuleList); KylinTicketExpressModuleVo expressModuleVo = dataUtils.getTEMVo(ticketsId);
payDetailVo.setExpressModuleList(expressModuleVo==null?null:expressModuleVo.getProduceCodeList());
}else{
payDetailVo.setExpressModuleList(null);
}
payDetailVo.setPerformanceInfo(performancesInfo); payDetailVo.setPerformanceInfo(performancesInfo);
payDetailVo.setTicketInfo(ticketVo); payDetailVo.setTicketInfo(ticketVo);
......
...@@ -133,7 +133,7 @@ public class KylinPerformancePartnerController { ...@@ -133,7 +133,7 @@ public class KylinPerformancePartnerController {
} }
} }
@PostMapping(value = "lintStatus") @GetMapping(value = "lintStatus")
@ApiOperation(value = "演出上下线状态", position = 8) @ApiOperation(value = "演出上下线状态", position = 8)
@ApiResponse(code = 200, message = "接口返回对象参数") @ApiResponse(code = 200, message = "接口返回对象参数")
@ApiImplicitParams({ @ApiImplicitParams({
......
...@@ -461,6 +461,8 @@ public class KylinTicketsPartnerServiceImpl implements IKylinTicketsPartnerServi ...@@ -461,6 +461,8 @@ public class KylinTicketsPartnerServiceImpl implements IKylinTicketsPartnerServi
ExpressModuleVo vo = ExpressModuleVo.getNew(); ExpressModuleVo vo = ExpressModuleVo.getNew();
vo.setProductCode(item2.getProductCode().toString()); vo.setProductCode(item2.getProductCode().toString());
vo.setTitle(item2.getTitle()); vo.setTitle(item2.getTitle());
vo.setEstimatePriceMin(item2.getEstimatePriceMin());
vo.setEstimatePriceMax(item2.getEstimatePriceMax());
voList.add(vo); voList.add(vo);
break; break;
} }
......
...@@ -393,7 +393,7 @@ public class PerformanceUtils { ...@@ -393,7 +393,7 @@ public class PerformanceUtils {
//快递相关 //快递相关
KylinTicketExpressModuleVo moduleVo = redisMerchantUtils.getTEMMerchantVo(tickets.getTicketsId()); KylinTicketExpressModuleVo moduleVo = redisMerchantUtils.getTEMMerchantVo(tickets.getTicketsId());
if(moduleVo!=null) { if (moduleVo != null) {
redisMerchantUtils.setTEMMerchantVo(tickets.getTicketsId(), moduleVo); redisMerchantUtils.setTEMMerchantVo(tickets.getTicketsId(), moduleVo);
del9.add(new Object[]{tickets.getTicketsId(), updatedAt}); del9.add(new Object[]{tickets.getTicketsId(), updatedAt});
for (ExpressModuleVo mVo : moduleVo.getProduceCodeList()) for (ExpressModuleVo mVo : moduleVo.getProduceCodeList())
......
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