def match_install(install,install1,amount,t): install_res=Order() install_res.trantype=install.trantype install_res.subtrantype=install.subtrantype install_res.amount=amount install_res.userid=install.userid install_res.username=install.username install_res.userid_to=install1.userid install_res.username_to=install1.username install_res.ordercode_to=install1.ordercode install_res.status=1 install_res.confirmtime=install.confirmtime install_res.matchtime = t install_res.createtime = install.createtime install_res.img = install.img install_res.umark = install.umark install_res.save() return install_res