|
@@ -5,6 +5,7 @@ |
|
@@ -5,6 +5,7 @@ |
|
5
|
<resultMap id="PurchaseOrderInfo" type="com.lframework.xingyun.sc.entity.PurchaseOrderInfo">
|
5
|
<resultMap id="PurchaseOrderInfo" type="com.lframework.xingyun.sc.entity.PurchaseOrderInfo">
|
|
6
|
<id column="id" property="id"/>
|
6
|
<id column="id" property="id"/>
|
|
7
|
<result column="contract_id" property="contractId"/>
|
7
|
<result column="contract_id" property="contractId"/>
|
|
|
|
8
|
+ <result column="contract_type" property="contractType"/>
|
|
8
|
<result column="replenishment_order_id" property="replenishmentOrderId"/>
|
9
|
<result column="replenishment_order_id" property="replenishmentOrderId"/>
|
|
9
|
<result column="order_no" property="orderNo"/>
|
10
|
<result column="order_no" property="orderNo"/>
|
|
10
|
<result column="supply_unit" property="supplyUnit"/>
|
11
|
<result column="supply_unit" property="supplyUnit"/>
|
|
@@ -63,6 +64,7 @@ |
|
@@ -63,6 +64,7 @@ |
|
63
|
SELECT
|
64
|
SELECT
|
|
64
|
tb.id,
|
65
|
tb.id,
|
|
65
|
tb.contract_id,
|
66
|
tb.contract_id,
|
|
|
|
67
|
+ cds.type AS contract_type,
|
|
66
|
tb.replenishment_order_id,
|
68
|
tb.replenishment_order_id,
|
|
67
|
tb.order_no,
|
69
|
tb.order_no,
|
|
68
|
tb.supply_unit,
|
70
|
tb.supply_unit,
|
|
@@ -124,6 +126,7 @@ |
|
@@ -124,6 +126,7 @@ |
|
124
|
left join sys_user as su on su.id = tb.contract_create_by_id
|
126
|
left join sys_user as su on su.id = tb.contract_create_by_id
|
|
125
|
left join sys_dept as sd1 on sd1.id = tb.region
|
127
|
left join sys_dept as sd1 on sd1.id = tb.region
|
|
126
|
left join base_data_customer as cu1 on cu1.id = tb.stock_up_company_id
|
128
|
left join base_data_customer as cu1 on cu1.id = tb.stock_up_company_id
|
|
|
|
129
|
+ left join tbl_contract_distributor_standard as cds on cds.id = tb.contract_id
|
|
127
|
</sql>
|
130
|
</sql>
|
|
128
|
|
131
|
|
|
129
|
<select id="query" resultMap="PurchaseOrderInfo">
|
132
|
<select id="query" resultMap="PurchaseOrderInfo">
|