优化商品导入,提高速度

This commit is contained in:
季圣华
2022-05-13 18:25:57 +08:00
parent 7ea99431dd
commit 4a51ea98b4
6 changed files with 62 additions and 16 deletions

View File

@@ -608,4 +608,10 @@
group by batch_number
order by expiration_date asc
</select>
<select id="getCountByMaterialAndDepot" resultType="java.lang.Long">
select count(1) from jsh_depot_item di
where di.material_id=#{mId} and di.depot_id=#{depotId}
and ifnull(di.delete_flag,'0') !='1'
</select>
</mapper>