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

Commit 15a5d68f authored by 胡佳晨's avatar 胡佳晨

order 快递费修改

parent 5af625da
...@@ -4,12 +4,13 @@ ...@@ -4,12 +4,13 @@
<th:block th:include="include :: header('选项卡 & 面板')"/> <th:block th:include="include :: header('选项卡 & 面板')"/>
</head> </head>
<style> <style>
.img-details{ .img-details {
width: 300px; width: 300px;
height: 400px; height: 400px;
} }
.img-Approval{
max-width:300px; .img-Approval {
max-width: 300px;
height: 400px; height: 400px;
} }
</style> </style>
...@@ -68,7 +69,8 @@ ...@@ -68,7 +69,8 @@
th:object="${kylinPerformanceMisVo}"> th:object="${kylinPerformanceMisVo}">
<div> <div>
<h4>演出封面:</h4> <h4>演出封面:</h4>
<img class="img-details" name="img" th:src="*{imgPoster}" th:onclick="click_big([[*{imgPoster}]])"> <img class="img-details" name="img" th:src="*{imgPoster}"
th:onclick="click_big([[*{imgPoster}]])">
</div> </div>
</br> </br>
<div class="panel panel-info"> <div class="panel panel-info">
...@@ -122,7 +124,8 @@ ...@@ -122,7 +124,8 @@
</div> </div>
<div> <div>
<h4>演出批文:</h4> <h4>演出批文:</h4>
<img class="img-Approval" name="img" th:src="*{approvalUrl}" th:onclick="click_big([[*{approvalUrl}]])"> <img class="img-Approval" name="img" th:src="*{approvalUrl}"
th:onclick="click_big([[*{approvalUrl}]])">
</div> </div>
</br> </br>
<h4>演出详情:</h4> <h4>演出详情:</h4>
...@@ -143,7 +146,7 @@ ...@@ -143,7 +146,7 @@
</div> </div>
</div> </div>
</div> </div>
<div th:each="dict : ${kylinPerformanceMisVo.ticketTimes}" > <div th:each="dict : ${kylinPerformanceMisVo.ticketTimes}">
<div th:each="dict2 : ${dict.ticket}" class="panel panel-info"> <div th:each="dict2 : ${dict.ticket}" class="panel panel-info">
<div class="panel-heading"> <div class="panel-heading">
<span>票种名称:</span> <span>票种名称:</span>
...@@ -210,16 +213,14 @@ ...@@ -210,16 +213,14 @@
<span>快递票停售时间:</span> <span>快递票停售时间:</span>
<span th:text="${dict2.timeEndExpress}"></span> <span th:text="${dict2.timeEndExpress}"></span>
</div> </div>
<div th:each="dict3 : ${dict2.ExpressModuleList}" class="panel panel-info"> <div th:each="dict3 : ${dict2.ExpressModuleList}" class="">
<div class="panel-footer">
<span>快递编号:</span>
<span th:text="${dict3.productCode}"></span>
</div>
<div class="panel-footer"> <div class="panel-footer">
<!-- <span>快递编号:</span>-->
<!-- <span th:text="${dict3.productCode}"></span>-->
<!-- <br/>-->
<span>快递名称:</span> <span>快递名称:</span>
<span th:text="${dict3.title}"></span> <span th:text="${dict3.title}"></span>
</div> <br/>
<div class="panel-footer">
<span>预估价格:</span> <span>预估价格:</span>
<span th:text="${dict3.estimatePriceMin}"></span> <span th:text="${dict3.estimatePriceMin}"></span>
<span> - </span> <span> - </span>
...@@ -420,9 +421,9 @@ ...@@ -420,9 +421,9 @@
}); });
// 点击图片放大 // 点击图片放大
function click_big(url){ function click_big(url) {
var img_url = url var img_url = url
if(url.indexOf("x-oss-process") != "-1"){ if (url.indexOf("x-oss-process") != "-1") {
img_url = url.split("?")[0] img_url = url.split("?")[0]
} }
var json = { var json = {
......
...@@ -11,6 +11,7 @@ import com.liquidnet.service.kylin.dto.param.SyncOrderParam; ...@@ -11,6 +11,7 @@ import com.liquidnet.service.kylin.dto.param.SyncOrderParam;
import com.liquidnet.service.kylin.dto.vo.returns.*; import com.liquidnet.service.kylin.dto.vo.returns.*;
import com.liquidnet.service.kylin.service.IKylinOrderTicketsOrderService; import com.liquidnet.service.kylin.service.IKylinOrderTicketsOrderService;
import com.liquidnet.service.order.utils.ObjectUtil; import com.liquidnet.service.order.utils.ObjectUtil;
import com.liquidnet.service.order.utils.OrderUtils;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse; import io.swagger.annotations.ApiResponse;
...@@ -74,6 +75,9 @@ public class KylinOrderTicketsController { ...@@ -74,6 +75,9 @@ public class KylinOrderTicketsController {
return orderTicketsOrderService.syncOrder(syncOrderParam); return orderTicketsOrderService.syncOrder(syncOrderParam);
} }
@Autowired
OrderUtils orderUtils;
@GetMapping("checkPayment") @GetMapping("checkPayment")
@ApiOperation("订单状态") @ApiOperation("订单状态")
@ApiResponse(code = 200, message = "接口返回对象参数") @ApiResponse(code = 200, message = "接口返回对象参数")
......
...@@ -305,10 +305,11 @@ public class OrderUtils { ...@@ -305,10 +305,11 @@ public class OrderUtils {
try { try {
MultiValueMap<String, String> header = CollectionUtil.linkedMultiValueMapStringString(); MultiValueMap<String, String> header = CollectionUtil.linkedMultiValueMapStringString();
header.add("Accept", "application/json;charset=UTF-8"); header.add("Accept", "application/json;charset=UTF-8");
header.add("Authorization", "Bearer " + CurrentUtil.getToken());
String resultData = HttpUtil.get(kylinUrl + "/getShunFengPrice/getPrice?adcode=" + adCode + "&productCode=" + productCode, null, header); String resultData = HttpUtil.get(kylinUrl + "/getShunFengPrice/getPrice?adcode=" + adCode + "&productCode=" + productCode, null, header);
ResponseDto<String> innerReturnVo = JsonUtils.fromJson(resultData, new TypeReference<ResponseDto<String>>() { ResponseDto<String> innerReturnVo = JsonUtils.fromJson(resultData, new TypeReference<ResponseDto<String>>() {
}); });
return BigDecimal.valueOf(Integer.parseInt(innerReturnVo.getData())); return BigDecimal.valueOf(Integer.parseInt(innerReturnVo.getData().replace("元", "")));
} catch (Exception e) { } catch (Exception e) {
log.error("获取快递费失败:{}", e); log.error("获取快递费失败:{}", e);
return BigDecimal.valueOf(23); return BigDecimal.valueOf(23);
......
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