2024-4-3 基础信息管理-优化SQL

master
A0010407 1 year ago
parent 31370e80c4
commit f32a40142a

@ -212,7 +212,7 @@
<!--查询总数--> <!--查询总数-->
<select id="queryCount" parameterType="BaseArea" resultType="java.lang.Integer"> <select id="queryCount" parameterType="BaseArea" resultType="java.lang.Integer">
select count(*) select count(1)
from base_area from base_area
where del_flag = '0' where del_flag = '0'
</select> </select>

@ -267,7 +267,7 @@
</select> </select>
<select id="selectChildNodes" parameterType="com.op.wms.domain.BaseBom" resultType="Integer"> <select id="selectChildNodes" parameterType="com.op.wms.domain.BaseBom" resultType="Integer">
select count(*) as number select count(1) as number
from base_bom_component from base_bom_component
where cumc = #{component} where cumc = #{component}
and bom_code = #{bomCode} and bom_code = #{bomCode}

@ -152,7 +152,7 @@
</update> </update>
<select id="queryCount" parameterType="BaseWarehouse" resultType="java.lang.Integer"> <select id="queryCount" parameterType="BaseWarehouse" resultType="java.lang.Integer">
select count(*) select count(1)
from base_warehouse from base_warehouse
and del_flag = '0' and del_flag = '0'
</select> </select>

Loading…
Cancel
Save