从接口实现销售价每个客户不同的价格

This commit is contained in:
季圣华
2023-06-11 18:47:07 +08:00
parent d59ace2149
commit 04f6fdfd40
4 changed files with 43 additions and 1 deletions

View File

@@ -989,4 +989,15 @@
</if>
and ifnull(delete_flag,'0') !='1'
</select>
<select id="getLastUnitPriceByParam" resultType="java.math.BigDecimal">
select di.unit_price from jsh_depot_head dh
left join jsh_depot_item di on dh.id=di.header_id and ifnull(di.delete_flag,'0') !='1'
where dh.organ_id = #{organId}
and di.material_extend_id = #{meId}
and dh.type = #{type} and dh.sub_type = #{subType}
and ifnull(dh.delete_flag,'0') !='1'
order by dh.id desc, di.id desc
limit 0,1
</select>
</mapper>