Skip to content

Commit

Permalink
修复【订单管理下,商品名称和支付方式未显示】的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
sjl committed Feb 5, 2021
1 parent 6e0c265 commit f33f8f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion mall4v/src/views/modules/order/order.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@
style="height: 100%;">
<div class="item">
<div>
<span>{{order.payTypeName}}</span>
<span v-if="order.payType === 1">微信支付</span>
<span v-else-if="order.payType === 2">支付宝</span>
<span v-else>手动代付</span>
</div>
</div>
</el-col>
Expand Down
3 changes: 2 additions & 1 deletion yami-shop-service/src/main/resources/mapper/OrderMapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
<result column="sku_id" jdbcType="BIGINT" property="skuId"/>
<result column="prod_count" jdbcType="INTEGER" property="prodCount"/>
<result column="item_prod_name" jdbcType="VARCHAR" property="prodName"/>
<result column="item_sku_name" jdbcType="VARCHAR" property="skuName"/>
<result column="pic" jdbcType="VARCHAR" property="pic"/>
<result column="price" jdbcType="DECIMAL" property="price"/>
<result column="user_id" jdbcType="VARCHAR" property="userId"/>
Expand Down Expand Up @@ -229,7 +230,7 @@
</select>

<select id="listOrdersDetialByOrderParam" resultMap="orderAndOrderItemAndUserAddrMap">
SELECT * FROM
SELECT *,oi.sku_name as item_sku_name,oi.prod_name as item_prod_name FROM
(
SELECT * FROM tz_order
<where>
Expand Down

0 comments on commit f33f8f8

Please sign in to comment.