Commit 7dd12a3e812d4572a6eb379240792807f9d8115d

Authored by luowenfeng
2 parents 20c79b70 e1d5cfe8

Merge branch 'feature/1.8.0-uniapp' of https://gitee.com/zhijiantianya/ruoyi-vue…

…-pro into feature/1.8.0-uniapp
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/dal/dataobject/order/TradeOrderDO.java
... ... @@ -2,7 +2,6 @@ package cn.iocoder.yudao.module.trade.dal.dataobject.order;
2 2  
3 3 import cn.iocoder.yudao.framework.common.enums.TerminalEnum;
4 4 import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
5   -import cn.iocoder.yudao.module.product.enums.delivery.DeliveryTypeEnum;
6 5 import cn.iocoder.yudao.module.trade.enums.order.TradeOrderCancelTypeEnum;
7 6 import cn.iocoder.yudao.module.trade.enums.order.TradeOrderRefundStatusEnum;
8 7 import cn.iocoder.yudao.module.trade.enums.order.TradeOrderStatusEnum;
... ... @@ -113,44 +112,38 @@ public class TradeOrderDO extends BaseDO {
113 112 // 价格文档 - 京东到家:https://openo2o.jddj.com/api/getApiDetail/182/4d1494c5e7ac4679bfdaaed950c5bc7f.htm
114 113 // 价格文档 - 有赞:https://doc.youzanyun.com/detail/API/0/906
115 114  
116   -// TODO promotion_details(订单优惠信息明细,商品和订单级优惠一般都在里面)
117   -
118 115 /**
119 116 * 商品原价(总),单位:分
120 117 *
121 118 * 基于 {@link TradeOrderItemDO#getTotalOriginalPrice()} 求和
122 119 */
123   - // niu - goods_money;
124   - private Integer skuOriginalPrice;
125   - /**
126   - * 商品优惠(总),单位:分
127   - *
128   - * 基于 {@link TradeOrderItemDO#getTotalPromotionPrice()} 求和
129   - */
130   - private Integer skuPromotionPrice;
  120 + private Integer originalPrice;
131 121 /**
132 122 * 订单优惠(总),单位:分
133 123 *
134   - * 例如说:满减折扣;不包括优惠劵、商品优惠
  124 + * 例如说:满减折扣;不包括优惠劵、商品优惠(TODO)
135 125 */
136   - // niu - promotion_money;taobao - discount_fee(主订单优惠)
137   - private Integer orderPromotionPrice;
  126 + private Integer promotionPrice;
138 127 /**
139 128 * 运费金额,单位:分
140 129 */
141   - // niu - delivery_money;taobao - post_fee(订单邮费)
142 130 private Integer deliveryPrice;
143   - // TODO 芋艿:taobao 的:trade.adjust_fee/order.adjust_fee(调整金额,如:卖家手动修改订单价格,官方数据修复等等)
  131 + /**
  132 + * 订单调价(总),单位:分
  133 + *
  134 + * 正数,加价;负数,减价
  135 + */
  136 + private Integer adjustPrice;
144 137 /**
145 138 * 应付金额(总),单位:分
146 139 *
147   - * = {@link #skuOriginalPrice}
  140 + * = {@link #originalPrice}
148 141 * + {@link #deliveryPrice}
149   - * - {@link #skuPromotionPrice}
150   - * - {@link #orderPromotionPrice}
  142 + * + {@link #adjustPrice}
  143 + * - {@link #promotionPrice}
  144 + * - {@link #couponPrice}
  145 + * - {@link #pointPrice}
151 146 */
152   - // niu - pay_money;taobao - payment(主订单实付金额) | trade.total_fee(主订单应付金额,参考使用);
153   -// * - {@link #couponPrice} // TODO 芋艿:靠营销表记录
154 147 private Integer payPrice;
155 148 /**
156 149 * 支付订单编号
... ... @@ -167,21 +160,6 @@ public class TradeOrderDO extends BaseDO {
167 160  
168 161 // ========== 收件 + 物流基本信息 ==========
169 162 /**
170   - * 配送方式
171   - * 会员用户下单时,选择的配送方式
172   - *
173   - * 枚举 {@link DeliveryTypeEnum}
174   - */
175   - private Integer deliveryType;
176   - /**
177   - * 实际的配送方式
178   - * 管理后台发货时,选择的配送方式
179   - *
180   - * 0 - 无需物流
181   - * 枚举 {@link DeliveryTypeEnum}
182   - */
183   - private Integer actualDeliveryType; // like - shipping_status;
184   - /**
185 163 * 配置模板的编号
186 164 *
187 165 * 关联 DeliveryTemplateDO 的 id 编号
... ... @@ -247,58 +225,13 @@ public class TradeOrderDO extends BaseDO {
247 225 * 优惠劵编号
248 226 */
249 227 private Long couponId;
250   -// /**
251   -// * 优惠劵减免金额,单位:分 // TODO 芋艿:靠营销表记录
252   -// */
253   -// // niu - coupon_money;
254   -// private Integer couponPrice;
255   -// /**
256   -// * 积分抵扣的金额,单位:分
257   -// */
258   -// private Integer integralPrice;
259   -// /**
260   -// * 使用的积分
261   -// */
262   -// private Integer useIntegral;
263   -
264   - // TODO ========== 待定字段:yv =========
265   - // TODO cart_id:购物车 id
266   - // TODO refund_reason_wap_img:退款图片
267   - // TODO refund_reason_wap_explain:退款用户说明
268   - // TODO refund_reason_time:退款时间
269   - // TODO refund_reason_wap:前台退款原因
270   - // TODO refund_reason:不退款的理由
271   -
272   - // TODO gain_integral:消费赚取积分
273   - // TODO back_integral:给用户退了多少积分
274   -
275   - // TODO combination_id:拼团产品id
276   - // TODO pink_id:拼团id
277   - // TODO seckill_id:秒杀产品ID
278   - // TODO bargain_id:砍价id
279   -
280   - // TODO cost:成本价
281   - // TODO verify_code:核销码
282   - // TODO store_id:门店id
283   -
284   - // TODO ========== 待定字段:cf =========
285   - // TODO before_pay_price:改价前支付金额
286   - // TODO is_alter_price:是否改价
287   - // TODO out_trade_no:商户系统内部的订单号 String
288   -
289   - // TODO ========== 待定字段:lf =========
290   - // TODO settle_id:未结算
291   - // TODO settle_amount:结算金额
292   - // TODO team_found_id: 拼团id
293   - // TODO team_id: 拼团活动id
294   - // TODO delivery_id: 发货单ID
295   - // TODO attach_values: 附带的值(赠送时机,赠送积分成长值什么的)Json格式
296   -
297   - // TODO ========== 待定字段:nf =========
298   - // TODO delivery_code:整体提货编码
299   -
300   - // TODO ========== 待定字段:niu =========
301   - // TODO adjust_money '订单调整金额'
302   - // TODO balance_money ''余额支付金额''
  228 + /**
  229 + * 优惠劵减免金额,单位:分
  230 + */
  231 + private Integer couponPrice;
  232 + /**
  233 + * 积分抵扣的金额,单位:分
  234 + */
  235 + private Integer pointPrice;
303 236  
304 237 }
... ...
yudao-ui-admin/src/views/mall/product/spu/save.vue
... ... @@ -3,7 +3,7 @@
3 3 <!-- TODO 样式优化:表单宽度、表单项对齐、hr 粗细; -->
4 4 <el-tabs v-model="activeName" class="tabs">
5 5 <!-- 基础设置 -->
6   - <!-- TODO @luowenfeng:基础设置,分成商品类型、基础信息、配送信息 -->
  6 + <!-- TODO @luowenfeng:基础设置,分成基础信息、配送信息 -->
7 7 <!-- TODO @luowenfeng:base=》basic 会更好哈 -->
8 8 <el-tab-pane label="基础设置" name="base">
9 9 <el-form ref="base" :model="baseForm" :rules="rules" label-width="100px" style="width: 95%">
... ...