|
@@ -294,6 +294,21 @@
|
|
|
AND dArriveMonth <= ${max}))
|
|
|
GROUP BY darrivedate,darrivemonth,cdepcode
|
|
|
ORDER BY darrivedate
|
|
|
+
|
|
|
+
|
|
|
+ select
|
|
|
+ cdepcode venname,
|
|
|
+ cast(sum(coefficient *iquantity)/60 as decimal(20,2)) productionCapacity,
|
|
|
+ (select sum(capacity_quota) from sy_capacity_control where state!=-1) quotaCapacity
|
|
|
+ from Supplier_Capacity_Test
|
|
|
+ right join sy_capacity_control
|
|
|
+ on supplier=cvencode and state!=-1
|
|
|
+ where (dArriveYear > #{minYear} OR (dArriveYear = #{minYear} AND dArriveMonth >= #{minMonth} ))
|
|
|
+ AND (dArriveYear < #{maxYear} OR (dArriveYear = #{maxYear} AND dArriveMonth <=#{maxMonth} ))
|
|
|
+ GROUP BY cdepcode
|
|
|
+ ORDER BY cdepcode
|
|
|
+
|
|
|
+
|
|
|
</select>-->
|
|
|
|
|
|
<select id="statement1" resultType="org.jeecg.modules.scas.entity.vo.SupplierCapacity5" parameterType="java.lang.String">
|
|
@@ -353,17 +368,22 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="statement4" resultType="org.jeecg.modules.scas.entity.vo.SupplierCapacity5" parameterType="java.lang.String">
|
|
|
+
|
|
|
select
|
|
|
- cdepcode venname,
|
|
|
+ Supplier_Capacity_Test.cdepcode venname,
|
|
|
+ ideporder,
|
|
|
cast(sum(coefficient *iquantity)/60 as decimal(20,2)) productionCapacity,
|
|
|
(select sum(capacity_quota) from sy_capacity_control where state!=-1) quotaCapacity
|
|
|
from Supplier_Capacity_Test
|
|
|
right join sy_capacity_control
|
|
|
on supplier=cvencode and state!=-1
|
|
|
+ left join Department
|
|
|
+ on Supplier_Capacity_Test.cDepCode=Department.cdepname
|
|
|
where (dArriveYear > #{minYear} OR (dArriveYear = #{minYear} AND dArriveMonth >= #{minMonth} ))
|
|
|
AND (dArriveYear < #{maxYear} OR (dArriveYear = #{maxYear} AND dArriveMonth <=#{maxMonth} ))
|
|
|
- GROUP BY cdepcode
|
|
|
- ORDER BY cdepcode
|
|
|
+ GROUP BY Supplier_Capacity_Test.cdepcode,ideporder
|
|
|
+ ORDER BY ideporder
|
|
|
+
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|