给销售单据存储的采购价增加移动平均价的切换

This commit is contained in:
jishenghua
2024-06-11 00:22:28 +08:00
parent b9d316d8a4
commit acd8429c81
3 changed files with 10 additions and 1 deletions

View File

@@ -27,4 +27,8 @@
and ifnull(delete_flag,'0') !='1'
</update>
<select id="getCurrentUnitPriceByMId" resultType="java.math.BigDecimal">
select ifnull(mcs.current_unit_price,0) as current_unit_price from jsh_material_current_stock mcs where mcs.material_id=#{materialId} limit 1
</select>
</mapper>