Tutorial de desarrollo de Android – Mi restaurante Parte 22 Ver detalles del pedido Aplicación de personal



Enlace de donación:
#MyRestaurantAndroidEDMTDev #AndroidEDMTDev #EDMTDev

Facebook:
Aplicación API de personal de enlace:
Enlace MSSQL DB:
MySQL Link Script:

En este tutorial, aprenderá a ver todos los detalles del pedido del cliente en la aplicación Staff

Tutoriales de desarrollo de Android, tutoriales de programación de Android, tutoriales de desarrollo de aplicaciones de Android, tutoriales de Android para principiantes, tutoriales de aplicaciones de Android, tutoriales de estudio de Android, aprendizaje de programación de Android, tutoriales de desarrollo de Android, tutoriales de programación de Android, programación de Android, desarrollo de Android, Tutorial de estudio de Android para principiantes, curso de Android, capacitación de Android, curso de desarrollo de Android, curso de desarrollo de aplicaciones de Android, aplicación de múltiples restaurantes, estudio de pago en línea de Android, aplicación de restaurante nodejs

Compruebe también

EN VIVO: పట్టాలు తప్పిన గూడ్స్ రైలు..| Tren de carga descarrila cerca de Rajahmundry – TV9

Mire EN VIVO: తాజా వార్తల కోసం: ►TV9 EN VIVO: ►Suscríbase a Tv9 Telugu en vivo: …

7 comentarios

  1. Sir when I use MySQL and i make order on client app for example I order 2 items when I check on staff app on order detail It only shows 1 item when num of item is 2 …… when I use MSSQL it works perfectly , why is that?

  2. Sir i can't see image in order detail but i tested in api well its working but in app i cannot see food image in order detail please help me 🙂

  3. Hi sir why my food details always show one item of food only?? When i order different food from the same restaurant, it shows only the first one and only one in the food detail. But in the num of item shows 2 num of items, but when click in to it, it shows only one. Is it Place Order problem or View Order Problem???

  4. Hi Sir, will like to ask if i use create order method to create reservation, i will like to check my data duplicate in the database or not? How should i code, in the EndPoint or Android??

  5. Sir I hope you can help me I found an error From MYSQL API , when user creates order and if choose addon Special sauce 1 2 or 3 when it posts on db in ADDON : [{"description":"","extraPrice":5.0,"id":1,"name": it doesnt send name of addon it should be [{"extraPrice":5.0,"id":2,"name":"Special Sauce 02 for example I made the 2 APIS for MSSQL and for My SQL and it only happens with MySQL

    it think it has to do with the router.get UPDATEORDER function , can you help me? where should I be checking? I am running same ANDROID STUDIO code on both API and it only happens on MySQL. and when i open orderdetail on staff app with addon it crashes :

    com.google.gson.JsonSyntaxException: java.io.EOFException: End of input at line 1 column 51 path $[0].name

    at com.google.gson.Gson.fromJson(Gson.java:898)

    at com.google.gson.Gson.fromJson(Gson.java:853)

    at com.google.gson.Gson.fromJson(Gson.java:802)

    at com.ecdev.myrestaurantstaffapp.Adapter.MyOrderDetailAdapter.onBindViewHolder(MyOrderDetailAdapter.java:67)

    But it is because name from [{"description":"","extraPrice":5.0,"id":1,"name": doesn´t send

    I Have checked 4 times updateOrder from your tutorial and is same :

    router.post('/updateOrder', function (req, res, next) {

    if (req.body.key == API_KEY) {

    var order_id = req.body.orderId

    var order_detail

    try {

    order_detail = JSON.parse(req.body.orderDetail)

    }

    catch (err) {

    res.status(500)

    res.send(JSON.stringify({ success: false, message: err.message }))

    }

    if (order_detail != null && order_id != null) {

    var data_insert = []

    for (i = 0; i < order_detail.length; i++) {

    data_insert[i] = [

    parseInt(order_id),

    order_detail[i]["foodId"],

    order_detail[i]["foodQuantity"],

    order_detail[i]["foodPrice"],

    0, // discount

    order_detail[i]["foodSize"],

    order_detail[i]["foodAddon"],

    parseFloat(order_detail[i]["foodExtraPrice"])

    ]

    }

    req.getConnection(function (error, conn) {

    conn.query('INSERT INTO orderDetail(OrderId,ItemId,Quantity,Price,Discount,Size,Addon,ExtraPrice) VALUES(?)', data_insert, function (err, rows, fields) {

    if (err) {

    res.status(500)

    res.send(JSON.stringify({ success: false, message: err.message }))

    }

    else {

    res.send(JSON.stringify({ success: true, message: "update success" }))

    }

    })

    })

    }

    else {

    res.send(JSON.stringify({ success: false, message: "MISSING orderId and orderDetail IN BODY" }))

    }

    }

    else {

    res.send(JSON.stringify({ success: false, message: "WRONG API KEY" }))

    }

  6. i will start to make apps, which language should i choose?

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *