update FAM_AccountHistory set debit=debit-数值,credit=credit-数值,pebalance=pebalance-数值,debit4year=debit4year-数值,credit4year=credit4year-数值 where Code='科目编号' and shopcode='门店编号' and AccPid='会计期间'
update FAM_AccountHistory set psbalance=psbalance-数值,debit=debit-数值,credit=credit-数值,pebalance=pebalance-数值,debit4year=debit4year-数值,credit4year=credit4year-数值 where Code='科目编号' and shopcode='门店编号' and AccPid='会计期间'