INSERT into pa_vender(id,name,adress,company_man,main_person,phone,scope_business,notes,pic_url,is_active) VALUE(null,#{id},#{address},#{companyMan},#{mainPerson},#{phone},#{scopeBusiness},#{notes},#{picurl},1) UPDATE pa_vender SET NAME=#{factory},ADRESS=#{address} ,COMPANY_MAN =#{companyMan}, MAIN_PERSON =#{mainPerson},PHONE=#{phone},SCOPE_BUSINESS =#{scopeBusiness},NOTES =#{notes}, PIC_URL = #{picurl} where id=#{id} DELETE from pa_vender where id=#{id}