Commit 31847e12f86617e9cb0c393ff4e79f34572a5b19

Authored by fengliang
1 parent a2af897d

update:修改运费分转元。

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