问题描述:
客户对未到终止日期的销售合同,由于人工操作失误进行手动终止动作,导致未执行完合同没办法继续执行。
解决方案:提供脚本解决
update
ct_manage a
set a.ctflag =2,a.actualinvalidate =null
where a.ct_code ='?????' --换成合同编码
and a.pk_corp in (select pk_corp from bd_corp b where b.unitcode ='?????') --换成公司编码
and a.ctflag =5