update payb a inner join payb_item b on a.paybno=b.paybno inner join loan_vilt c on b.loano=c.loano inner join loan d on b.loano=d.loano inner join loan_repay e on e.loano=d.loano and e.idx=c.idx set a.state=#{newst},a.vn=a.vn+1,a.uptime=now(), c.state=#{loan_vilt_newst},c.vn=c.vn+1,c.uptime=now(), d.state=#{loan_newst},d.vn=d.vn+1,d.uptime=now(), e.state=#{loan_repay_newst},e.vn=e.vn+1,e.uptime=now() where a.paybno=#{paybno} and a.state=#{oldst} and a.vn=#{curvn} and c.state=#{loan_vilt_oldst} and d.state in (#{loan_oldst_ins}) and e.state=#{loan_repay_oldst};
时间: 2024-10-25 00:59:42