|
|
@@ -55,7 +55,8 @@
|
|
|
ef.firmly_type,
|
|
|
ef.firmly_state,
|
|
|
ef.create_by,
|
|
|
- ef.create_time
|
|
|
+ ef.create_time,
|
|
|
+ n.estimate_Num
|
|
|
FROM md_model_info m
|
|
|
LEFT JOIN
|
|
|
(select * from md_estimate_firmly ef
|
|
|
@@ -69,6 +70,15 @@
|
|
|
</where>
|
|
|
)
|
|
|
ef ON m.mdid = ef.mdid
|
|
|
+ left join (
|
|
|
+ select estimate_Time,mdid, count(1) as estimate_Num from (
|
|
|
+ select estimate_Time,mdid, create_by from md_estimate
|
|
|
+ <where>
|
|
|
+ estimate_Time = #{firmlyYr}
|
|
|
+ </where>
|
|
|
+ group by estimate_Time,mdid, create_by
|
|
|
+ ) group by estimate_Time,mdid
|
|
|
+ ) n ON n.mdid = ef.mdid
|
|
|
<where>
|
|
|
<if test="devkind != null ">and m.devkind = #{devkind}</if>
|
|
|
<if test="mdid != null ">and m.mdid = #{mdid}</if>
|