给单据保存中增加更新成本价的逻辑

This commit is contained in:
jishenghua
2024-05-22 00:56:03 +08:00
parent 72b2af86d8
commit 3727271fd0
3 changed files with 50 additions and 5 deletions

View File

@@ -21,4 +21,10 @@
group by material_id
</select>
<update id="updateUnitPriceByMId">
update jsh_material_current_stock set current_unit_price = #{currentUnitPrice}
where material_id = #{materialId}
and ifnull(delete_flag,'0') !='1'
</update>
</mapper>