[易飞]九、邮件提醒-品号属性变更记录

通常上了MRP的公司对于品号属性的参数控制非常严格。

select company 公司,item 品号,itemname 品名,changeitem 变更项目, case when old='P' then '采购件' when old='M' then '自制件' when old='S' then '委外加工件' when old='Y' then '虚设件' when old='C' then '配置件' ELSE old END AS 变更前, case when new='P' then '采购件' when new='M' then '自制件' when new='S' then '委外加工件' when new='Y' then '虚设件' when new='C' then '配置件' ELSE new END AS 变更后,modifier 修改者,modify_time 修改时间 from OA.dbo.itempropertychange where company='ZE' AND convert(char(10),modify_time,120)=convert(char(10),getdate(),120)