订单列表“查看”

This commit is contained in:
Hawking 2023-05-18 16:33:33 +08:00
parent 6d431cf991
commit 08b50407dd
3 changed files with 6 additions and 2 deletions

View File

@ -39,6 +39,7 @@ public class OrderGoodsController extends BaseController {
@GetMapping()
public String orderGoods(Long orderId, ModelMap mmap) {
OrderMaster orderMaster = orderMasterService.selectById(orderId);
mmap.put("orderId", orderId);
mmap.put("orderMaster", orderMaster);
return prefix;
}

View File

@ -13,7 +13,7 @@
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="order-goods-form">
<input type="hidden" id="orderId" name="orderId" th:value="${orderMaster.id}">
<!-- <input type="hidden" id="orderId" name="orderId" th:value="${orderMaster.id}">-->
</form>
</div>
<div class="col-sm-12 select-table table-striped">
@ -50,7 +50,7 @@
function queryOrderGoodsList() {
var options = {
url: prefix + "/list",
url: prefix + "/list?orderDetailId=" + orderId,
modalName: "订单商品",
search: false,
showSearch: false,

View File

@ -72,6 +72,9 @@
<if test="orderId != null and orderId != 0">
AND order_id = #{orderId}
</if>
<if test="orderDetailId != null and orderDetailId != 0">
AND order_detail_id = #{orderDetailId}
</if>
<if test="goodsStandardId != null and goodsStandardId != 0">
AND goods_standard_id = #{goodsStandardId}
</if>