|
@@ -4,6 +4,7 @@ |
|
@@ -4,6 +4,7 @@ |
|
4
|
|
4
|
|
|
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="order_no" property="orderNo"/>
|
8
|
<result column="order_no" property="orderNo"/>
|
|
8
|
<result column="supply_unit" property="supplyUnit"/>
|
9
|
<result column="supply_unit" property="supplyUnit"/>
|
|
9
|
<result column="ordering_unit" property="orderingUnit"/>
|
10
|
<result column="ordering_unit" property="orderingUnit"/>
|
|
@@ -36,6 +37,7 @@ |
|
@@ -36,6 +37,7 @@ |
|
36
|
<result column="total_quantity" property="totalQuantity"/>
|
37
|
<result column="total_quantity" property="totalQuantity"/>
|
|
37
|
<result column="packaging_fee" property="packagingFee"/>
|
38
|
<result column="packaging_fee" property="packagingFee"/>
|
|
38
|
<result column="contract_create_by_id" property="contractCreateById"/>
|
39
|
<result column="contract_create_by_id" property="contractCreateById"/>
|
|
|
|
40
|
+ <result column="contract_create_by_name" property="contractCreateByName"/>
|
|
39
|
<result column="create_by_id" property="createById"/>
|
41
|
<result column="create_by_id" property="createById"/>
|
|
40
|
<result column="create_by" property="createBy"/>
|
42
|
<result column="create_by" property="createBy"/>
|
|
41
|
<result column="update_by_id" property="updateById"/>
|
43
|
<result column="update_by_id" property="updateById"/>
|
|
@@ -47,6 +49,7 @@ |
|
@@ -47,6 +49,7 @@ |
|
47
|
<sql id="PurchaseOrderInfo_sql">
|
49
|
<sql id="PurchaseOrderInfo_sql">
|
|
48
|
SELECT
|
50
|
SELECT
|
|
49
|
tb.id,
|
51
|
tb.id,
|
|
|
|
52
|
+ tb.contract_id,
|
|
50
|
tb.order_no,
|
53
|
tb.order_no,
|
|
51
|
tb.supply_unit,
|
54
|
tb.supply_unit,
|
|
52
|
tb.ordering_unit,
|
55
|
tb.ordering_unit,
|
|
@@ -79,6 +82,7 @@ |
|
@@ -79,6 +82,7 @@ |
|
79
|
tb.total_quantity,
|
82
|
tb.total_quantity,
|
|
80
|
tb.packaging_fee,
|
83
|
tb.packaging_fee,
|
|
81
|
tb.contract_create_by_id,
|
84
|
tb.contract_create_by_id,
|
|
|
|
85
|
+ su.name as contract_create_by_name,
|
|
82
|
tb.create_by_id,
|
86
|
tb.create_by_id,
|
|
83
|
tb.create_by,
|
87
|
tb.create_by,
|
|
84
|
tb.update_by_id,
|
88
|
tb.update_by_id,
|
|
@@ -90,6 +94,7 @@ |
|
@@ -90,6 +94,7 @@ |
|
90
|
left join sys_dept as sd on sd.id = tb.dept_id
|
94
|
left join sys_dept as sd on sd.id = tb.dept_id
|
|
91
|
left join base_data_workshop as ws on ws.id = tb.workshop_id
|
95
|
left join base_data_workshop as ws on ws.id = tb.workshop_id
|
|
92
|
left join customer_credit as cc on cc.id = tb.customer_credit_id
|
96
|
left join customer_credit as cc on cc.id = tb.customer_credit_id
|
|
|
|
97
|
+ left join sys_user as su on su.id = tb.contract_create_by_id
|
|
93
|
</sql>
|
98
|
</sql>
|
|
94
|
|
99
|
|
|
95
|
<select id="query" resultMap="PurchaseOrderInfo">
|
100
|
<select id="query" resultMap="PurchaseOrderInfo">
|