Commit 31847e12f86617e9cb0c393ff4e79f34572a5b19
1 parent
a2af897d
update:修改运费分转元。
Showing
2 changed files
with
2 additions
and
2 deletions
etrade-order/src/main/java/com/diligrp/etrade/order/service/impl/ShopCartImpl.java
@@ -355,7 +355,7 @@ public class ShopCartImpl implements IShopCartService { | @@ -355,7 +355,7 @@ public class ShopCartImpl implements IShopCartService { | ||
355 | throw new OrderException(OrderErrorCode.PARAM_ERROR,"\""+productName+"\"尚未通过审核"); | 355 | throw new OrderException(OrderErrorCode.PARAM_ERROR,"\""+productName+"\"尚未通过审核"); |
356 | } | 356 | } |
357 | }else{ | 357 | }else{ |
358 | - throw new OrderException(OrderErrorCode.PARAM_ERROR,"\""+productName+"\"异常,未找到该商品"); | 358 | + throw new OrderException(OrderErrorCode.PARAM_ERROR,"\""+productName+"\",商品已下架"); |
359 | } | 359 | } |
360 | return detail.getData(); | 360 | return detail.getData(); |
361 | } | 361 | } |
etrade-order/src/main/resources/com/diligrp/etrade/dao/mapper/order/OrderMapper.xml
@@ -126,7 +126,7 @@ | @@ -126,7 +126,7 @@ | ||
126 | achieve_type, | 126 | achieve_type, |
127 | achieve_address, | 127 | achieve_address, |
128 | achieve_state, | 128 | achieve_state, |
129 | - transport_fee | 129 | + convert(ord.transport_fee, decimal(20,2))/100 as transport_fee |
130 | </sql> | 130 | </sql> |
131 | <insert id="saveOrder" parameterType="com.diligrp.etrade.order.model.Order" useGeneratedKeys="true" keyProperty="id" > | 131 | <insert id="saveOrder" parameterType="com.diligrp.etrade.order.model.Order" useGeneratedKeys="true" keyProperty="id" > |
132 | insert into `order` (id, code, mapping_code, | 132 | insert into `order` (id, code, mapping_code, |