|
@@ -714,7 +714,7 @@ from
|
|
|
where a.id = #{contractId,jdbcType=VARCHAR}
|
|
where a.id = #{contractId,jdbcType=VARCHAR}
|
|
|
</when>
|
|
</when>
|
|
|
<when test="buyerType == 1">
|
|
<when test="buyerType == 1">
|
|
|
- select
|
|
|
|
|
|
|
+ select
|
|
|
a.id,
|
|
a.id,
|
|
|
a.serial_number as serialNumber,
|
|
a.serial_number as serialNumber,
|
|
|
date_format(a.sign_date,'%Y-%m-%d %H:%i:%S') as signDate,
|
|
date_format(a.sign_date,'%Y-%m-%d %H:%i:%S') as signDate,
|
|
@@ -728,14 +728,16 @@ from
|
|
|
b.nickname as buyerName,
|
|
b.nickname as buyerName,
|
|
|
d.name as principalName,
|
|
d.name as principalName,
|
|
|
f.name as buyerProvince,
|
|
f.name as buyerProvince,
|
|
|
- g.cname as projectType
|
|
|
|
|
|
|
+ g.cname as projectType,
|
|
|
|
|
+ t.contract_no as contractNo
|
|
|
from
|
|
from
|
|
|
contract a left join user b on
|
|
contract a left join user b on
|
|
|
a.uid = b.id left join admin d on
|
|
a.uid = b.id left join admin d on
|
|
|
a.principal = d.id left join organization_identity e on
|
|
a.principal = d.id left join organization_identity e on
|
|
|
a.uid = e.uid left join district_glossory f on
|
|
a.uid = e.uid left join district_glossory f on
|
|
|
e.location_province = f.id left join business_varieties g on
|
|
e.location_province = f.id left join business_varieties g on
|
|
|
- a.type = g.id
|
|
|
|
|
|
|
+ a.type = g.id left join t_order t on
|
|
|
|
|
+ a.order_no=t.order_no
|
|
|
where a.id = #{contractId,jdbcType=VARCHAR}
|
|
where a.id = #{contractId,jdbcType=VARCHAR}
|
|
|
</when>
|
|
</when>
|
|
|
</choose>
|
|
</choose>
|