id,order_id,virtual_order_id,increment_order_id,user_id,type,title,code,create_time,organized_name,organized_address,register_phone,bank_name,bank_account,consume_type,money,camera_id,finish,email_address,rec_status,update_time,ship_address,ship_area,ship_area_path,ship_mobile,ship_name,ship_phone,ship_zip_code,send,express_company,express_number,e_invoice,remarks,download_order_id,tb_status INSERT INTO ${tableName} ( order_id, virtual_order_id, increment_order_id, user_id, type, title, code, organized_name, organized_address, register_phone, bank_name, bank_account, consume_type, money, camera_id, finish, email_address, rec_status, ship_address, ship_area, ship_area_path, ship_mobile, ship_name, ship_phone, ship_zip_code, send, express_company, express_number, e_invoice, remarks, download_order_id ) VALUES ( #{entity.orderId}, #{entity.virtualOrderId}, #{entity.incrementOrderId}, #{entity.userId}, #{entity.type}, #{entity.title}, #{entity.code}, #{entity.organizedName}, #{entity.organizedAddress}, #{entity.registerPhone}, #{entity.bankName}, #{entity.bankAccount}, #{entity.consumeType}, #{entity.money}, #{entity.cameraId}, #{entity.finish}, #{entity.emailAddress}, #{entity.recStatus}, #{entity.shipAddress}, #{entity.shipArea}, #{entity.shipAreaPath}, #{entity.shipMobile}, #{entity.shipName}, #{entity.shipPhone}, #{entity.shipZipCode}, #{entity.send}, #{entity.expressCompany}, #{entity.expressNumber}, #{entity.eInvoice}, #{entity.remarks}, #{entity.downloadOrderId} ) INSERT INTO ${tableName} ( order_id, virtual_order_id, increment_order_id, user_id, type, title, code, organized_name, organized_address, register_phone, bank_name, bank_account, consume_type, money, camera_id, finish, email_address, rec_status, ship_address, ship_area, ship_area_path, ship_mobile, ship_name, ship_phone, ship_zip_code, send, express_company, express_number, e_invoice, remarks, download_order_id ) VALUES (#{entity.orderId}, #{entity.virtualOrderId}, #{entity.incrementOrderId}, #{entity.userId}, #{entity.type}, #{entity.title}, #{entity.code}, #{entity.organizedName}, #{entity.organizedAddress}, #{entity.registerPhone}, #{entity.bankName}, #{entity.bankAccount}, #{entity.consumeType}, #{entity.money}, #{entity.cameraId}, #{entity.finish}, #{entity.emailAddress}, #{entity.recStatus}, #{entity.shipAddress}, #{entity.shipArea}, #{entity.shipAreaPath}, #{entity.shipMobile}, #{entity.shipName}, #{entity.shipPhone}, #{entity.shipZipCode}, #{entity.send}, #{entity.expressCompany}, #{entity.expressNumber}, #{entity.eInvoice}, #{entity.remarks}, #{entity.downloadOrderId}) UPDATE ${tableName} SET order_id=#{entity.orderId}, virtual_order_id=#{entity.virtualOrderId}, increment_order_id=#{entity.incrementOrderId}, user_id=#{entity.userId}, type=#{entity.type}, title=#{entity.title}, code=#{entity.code}, organized_name=#{entity.organizedName}, organized_address=#{entity.organizedAddress}, register_phone=#{entity.registerPhone}, bank_name=#{entity.bankName}, bank_account=#{entity.bankAccount}, consume_type=#{entity.consumeType}, money=#{entity.money}, camera_id=#{entity.cameraId}, finish=#{entity.finish}, email_address=#{entity.emailAddress}, rec_status=#{entity.recStatus}, ship_address=#{entity.shipAddress}, ship_area=#{entity.shipArea}, ship_area_path=#{entity.shipAreaPath}, ship_mobile=#{entity.shipMobile}, ship_name=#{entity.shipName}, ship_phone=#{entity.shipPhone}, ship_zip_code=#{entity.shipZipCode}, send=#{entity.send}, express_company=#{entity.expressCompany}, express_number=#{entity.expressNumber}, e_invoice=#{entity.eInvoice}, remarks=#{entity.remarks}, download_order_id=#{entity.downloadOrderId}, tb_status=#{entity.tbStatus} WHERE id = #{entity.id} UPDATE ${tableName} SET ${field} ${value} ${key}