mybatis全局配置文件 DAO层xml映射文件 insert into tb_allorders (buy_personid,receive_person,receive_phone,receive_address,state,ispay) values (#{buyPersonid},#{receivePerson},#{receivePhone},#{receiveAddress},#{state},#{ispay}) se
DAO层xml映射文件
insert into tb_allorders (buy_personid,receive_person,receive_phone,receive_address,state,ispay) values (#{buyPersonid},#{receivePerson},#{receivePhone},#{receiveAddress},#{state},#{ispay}) update tb_allorders set state = #{state} where orders_id = #{ordersId}