|
|
@@ -388,9 +388,21 @@
|
|
|
|
|
|
|
|
|
<select id="selectCognizanceOrgInfoBoByUidAndCid" resultType="com.goafanti.cognizance.bo.CognizanceOrgInfoBo">
|
|
|
- select u.id as uid, c.id as cid, o.unit_name as unitName, o.org_code as orgCode, o.postal_address as postalAddress,
|
|
|
- c.contacts, c.technical_field1 as technicalField1, c.technical_field2 as technicalField2, c.technical_field3 as technicalField3,
|
|
|
- c.basic_research_cost as basicResearchCost, c.accident, c.large_order as largeOrder, c.year, c.certificate_number as certificateNumber
|
|
|
+ select
|
|
|
+ u.id as uid,
|
|
|
+ c.id as cid,
|
|
|
+ o.unit_name as unitName,
|
|
|
+ o.org_code as orgCode,
|
|
|
+ o.postal_address as postalAddress,
|
|
|
+ c.contacts,
|
|
|
+ c.technical_field1 as technicalField1,
|
|
|
+ c.technical_field2 as technicalField2,
|
|
|
+ c.technical_field3 as technicalField3,
|
|
|
+ c.basic_research_cost as basicResearchCost,
|
|
|
+ c.accident,
|
|
|
+ c.large_order as largeOrder,
|
|
|
+ c.year,
|
|
|
+ c.certificate_number as certificateNumber
|
|
|
from (select id from user where id = #{0}) u
|
|
|
LEFT JOIN organization_identity o on u.id = o.uid
|
|
|
INNER JOIN org_cognizance c on c.uid = u.id and c.deleted_sign = 0 and c.id = #{1}
|