暂无
任务描述
需求描述
1.原sql
| SQL | 执行次数 | 平均I_O | 总I_O | 逻辑写 | 逻辑读 | CPU平均耗时 | 总CPU耗时_秒 | 优化建议 |
| (@CustomerID int)SELECT [ID],[CustomerID], [WareHouseName], [WareHouseType] FROM RB_WareHouse (NOLOCK) WHERE CustomerID = @CustomerID and WareHouseType!=81 and ID in (5312) union all select a.ID,a.CustomerID,a.[WareHouseName],b.WareHouseType from RB_WareHouse a with (nolock) inner join RB_WareHouse b with (nolock) on a.AutonomousWareHouseID=b.ID and a.CustomerID=b.CustomerID where a.CustomerID=@CustomerID and a.WareHouseType=81 and a.ID in (5312) | 2260 | 4 | 9040 | 0 | 9040 | 0 | 91 | 加入缓存,减少并发请求 |
2.Erp系统对应位置


3.代码最后修改记录

验收标准
暂无
开发报告
1.根据仓库id获取仓库类型,优先使用缓存数据 ,缓存默认5分钟
进销存-添加产品出入库明细账