--升级工单分录 汇报上/下限数量
update t_pom_mftorderentry_e e set frepmaxqty=(select fqty from t_pom_mftorderentry where fentryid=e.fentryid) where exists(select 1 from t_pom_mftorderentry where fentryid=e.fentryid) and frepmaxqty=0;
update t_pom_mftorderentry_e e set frepminqty=(select fqty from t_pom_mftorderentry where fentryid=e.fentryid) where exists(select 1 from t_pom_mftorderentry where fentryid=e.fentryid) and frepminqty=0;
--升级工单变更单分录 汇报上/下限数量
update t_pom_xmftorderentry_e e set frepmaxqty=(select fqty from t_pom_xmftorderentry where fentryid=e.fentryid) where exists(select 1 from t_pom_xmftorderentry where fentryid=e.fentryid) and frepmaxqty=0;
update t_pom_xmftorderentry_e e set frepminqty=(select fqty from t_pom_xmftorderentry where fentryid=e.fentryid) where exists(select 1 from t_pom_xmftorderentry where fentryid=e.fentryid) and frepminqty=0;