farm模块-模型统计
This commit is contained in:
@@ -9,4 +9,16 @@
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
<select id="selectSum" parameterType="Long" resultType="java.lang.Long">
|
||||
select sum(quote_count)
|
||||
from farm_model_management
|
||||
where tenant_id = #{tenantId}
|
||||
and deleted = 0
|
||||
</select>
|
||||
<select id="selectCountBySpecies" parameterType="Long" resultType="java.lang.Long">
|
||||
select count(distinct species_id)
|
||||
from farm_model_management
|
||||
where tenant_id = #{tenantId}
|
||||
and deleted = 0
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user