代码拉取完成,页面将自动刷新
以下代码里的 where wave_id = new.order_id 是为什么?
if new.order_type = '99' then
update wm_om_qm_i set bin_sta = 'H' where wave_id = new.order_id and goods_id = new.goods_id and (select count(*) from wm_to_down_goods where order_id = new.order_id and goods_id = new.goods_id and down_sta is null ) = 0;
else
另外,波次分拣后,这个tigger里是不是也应该把 ordertype 为99的改为“复核完了”?
但“复核完了”为什么要放在这个trigger里更新?放这里的话每次更新这条数据都会被执行,有这个必要?
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
99的时候也应该执行以下更新吧。
update wm_om_notice_h set om_sta = '复核完成' where om_notice_id = new.order_id and (select count(*) from wm_to_down_goods where order_id = new.order_id and down_sta <> '复核中' ) = 0;
登录 后才可以发表评论