imp系统运维用到的sql文件版本仓库
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

直运业务先销后采的修改sql.txt 1.1KB

123456789101112131415161718192021
  1. --直运业务如果得先做采购再做销售,如果先销后采这么改
  2. select a.sourceid,a.poid,a.pono,a.* from salesDtl a where a.poid = '2000878405284927922'
  3. where a.sono = 'SOS04794250012-S2'
  4. where a.poid = '2000878405284927922'
  5. --销售合同
  6. update salesDtl a set a.pono = 'SOS04794250012-P2' where a.sono = 'SOS04794250012-S2'
  7. update salesDtl a set a.sourceid = '2000878405284927922' where a.sono = 'SOS04794250012-S2'
  8. update salesDtl a set a.poid = '2000878405284927922' where a.sono = 'SOS04794250012-S2'
  9. select a.id,a.* from purchaseDtl a where a.pono = 'SOS04794250012-P2'
  10. ---销售订单
  11. select a.poid,a.pono,a.* from sOrderDtl a where a.sono = 'SOS04794250012-S2'
  12. update sOrderDtl a set a.pono = 'SOS04794250012-P2' where a.sono = 'SOS04794250012-S2'
  13. update sOrderDtl a set a.poid = '2000878405284927922' where a.sono = 'SOS04794250012-S2'
  14. ---放货
  15. select a.poid,a.pono,a.* from delivNotiDtl a where a.sono = 'SOS04794250012-S2'
  16. update delivNotiDtl a set a.pono = 'SOS04794250012-P2' where a.sono = 'SOS04794250012-S2'
  17. update delivNotiDtl a set a.poid = '2000878405284927922' where a.sono = 'SOS04794250012-S2'