|
@@ -408,7 +408,7 @@
|
|
|
select uid, net_asset as netAsset2, gross_profit as grossProfit2, sales_revenue as salesRevenue2 from org_finance where uid = #{1} and year =
|
|
select uid, net_asset as netAsset2, gross_profit as grossProfit2, sales_revenue as salesRevenue2 from org_finance where uid = #{1} and year =
|
|
|
#{0}-2 and deleted_sign = 0
|
|
#{0}-2 and deleted_sign = 0
|
|
|
) b on b.uid = u. id
|
|
) b on b.uid = u. id
|
|
|
- LEFT JOIN
|
|
|
|
|
|
|
+ LEFT JOIN
|
|
|
(
|
|
(
|
|
|
select uid, net_asset as netAsset3, gross_profit as grossProfit3, sales_revenue as salesRevenue3 from org_finance where uid = #{1} and year =
|
|
select uid, net_asset as netAsset3, gross_profit as grossProfit3, sales_revenue as salesRevenue3 from org_finance where uid = #{1} and year =
|
|
|
#{0}-3 and deleted_sign = 0
|
|
#{0}-3 and deleted_sign = 0
|
|
@@ -418,7 +418,7 @@
|
|
|
<select id="selectCognizanceCatagoryBoByUidAndYear" resultType="com.goafanti.cognizance.bo.CognizanceCatagoryBo">
|
|
<select id="selectCognizanceCatagoryBoByUidAndYear" resultType="com.goafanti.cognizance.bo.CognizanceCatagoryBo">
|
|
|
select u.id as uid, a.firstCatagory, b.secondCatagory, c.firmTotal, c.techTotal, d.totalRevenue FROM
|
|
select u.id as uid, a.firstCatagory, b.secondCatagory, c.firmTotal, c.techTotal, d.totalRevenue FROM
|
|
|
(select id from user where id = #{1}) u
|
|
(select id from user where id = #{1}) u
|
|
|
- LEFT JOIN
|
|
|
|
|
|
|
+ LEFT JOIN
|
|
|
(select uid, count(1) as firstCatagory from org_intellectual_property
|
|
(select uid, count(1) as firstCatagory from org_intellectual_property
|
|
|
where uid = #{1} and evaluation_category= 0 and deleted_sign = 0 GROUP BY uid
|
|
where uid = #{1} and evaluation_category= 0 and deleted_sign = 0 GROUP BY uid
|
|
|
) a on a.uid = u.id
|
|
) a on a.uid = u.id
|