update dic_purchase set state =0 where purchase_number in (select tmp.* from (select purchase_number from dic_purchase where DATEDIFF(latest_time,SYSDATE())<0)tmp)
以查询的条件作为修改的数据
注:在mybatis中不能使用">","<"等符号,需要使用<>进行代替操作