SAP CRM的数据库表CRMD_PRICING

107 阅读1分钟

Sent: Friday, February 19, 2016 8:00 PM

Pricing currency的bug fix了,356Opportunitydocument Items需要2.8~3秒。

在这里插入图片描述

Pricing tableone order table的关联关系和其他字段稍有不同,中间通过CRMD_LINKguid_set进行连接,因此不方便写到一个SQL里,所有我最后的solution 通过两个独立的SQL来实现。

 ![在这里插入图片描述](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/710e45595a7342bab8430641e01a6bc0~tplv-k3u1fbpfcp-zoom-1.image)
单元测试里COMPARE_PRICE方法也做了修改:
 ![在这里插入图片描述](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/de1ea1eb36764ee19ea2d154bfdeea57~tplv-k3u1fbpfcp-zoom-1.image)

 
拿了10000个order测试,通过:

在这里插入图片描述
要获取更多Jerry的原创文章,请关注公众号"汪子熙":