Commit ae985a7fae37741a72d3dc4476da1064fed57cb0

Authored by yeqianyong
1 parent f098a324

楚江ERP-发货明细列表数据调整

... ... @@ -84,6 +84,12 @@ public class ShipmentsPlanDetailBo extends BaseBo<ShipmentsPlanDetail> {
84 84 private String packagingFee;
85 85
86 86 /**
  87 + * 合同类型
  88 + */
  89 + @ApiModelProperty("合同类型")
  90 + private String contractType;
  91 +
  92 + /**
87 93 * 客户ID
88 94 */
89 95 @ApiModelProperty("客户ID")
... ...
... ... @@ -76,6 +76,12 @@ public class ShipmentsPlanDetail extends BaseEntity implements BaseDto {
76 76 private String packagingFee;
77 77
78 78 /**
  79 + * 合同类型
  80 + */
  81 + @TableField(exist = false)
  82 + private String contractType;
  83 +
  84 + /**
79 85 * 客户ID
80 86 */
81 87 @TableField(exist = false)
... ...
... ... @@ -7,6 +7,7 @@
7 7 <result column="plan_id" property="planId"/>
8 8 <result column="order_id" property="orderId"/>
9 9 <result column="order_no" property="orderNo"/>
  10 + <result column="contract_type" property="contractType"/>
10 11 <result column="order_type" property="orderType"/>
11 12 <result column="customer_id" property="customerId"/>
12 13 <result column="customer_name" property="customerName"/>
... ... @@ -37,6 +38,7 @@
37 38 tb.plan_id,
38 39 tb.order_id,
39 40 o.order_no,
  41 + s.type as contract_type,
40 42 CASE
41 43 WHEN s.type IN ('DISTRIB_STD', 'DIST_STOCK_CONTRACT', 'DRAFT_DIST_AGMT') THEN '经销'
42 44 WHEN s.type IN ('INTL_STD_CONTRACT', 'INTL_INVENTORY_AGMT', 'INTL_OPEN_SPEC_AGMT') THEN '外贸'
... ... @@ -202,6 +204,7 @@
202 204 o.delivery_method,
203 205 o.settlement_terms,
204 206 o.packaging_fee,
  207 + sc.type as contract_type,
205 208 CASE
206 209 WHEN sc.type IN ('DISTRIB_STD', 'DIST_STOCK_CONTRACT', 'DRAFT_DIST_AGMT') THEN '经销'
207 210 WHEN sc.type IN ('INTL_STD_CONTRACT', 'INTL_INVENTORY_AGMT', 'INTL_OPEN_SPEC_AGMT') THEN '外贸'
... ...