guigui


保存订单19.12.11

<p><strong>简要描述:</strong> </p> <ul> <li>添加更新订单</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>http://guigui.thinkerx.com/order/save_order</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST </li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">data</td> <td style="text-align: left;">是</td> <td style="text-align: left;">map</td> <td>订单数据</td> </tr> <tr> <td style="text-align: left;">id</td> <td style="text-align: left;">否</td> <td style="text-align: left;">int</td> <td>柜柜订单id </br> 有id为更新</br>没有id则为创建订单</td> </tr> </tbody> </table> <p><strong>上传数据样式</strong></p> <pre><code>{ "buyer_address": "测试转发45", "buyer_phone": "", "web_order":true, //来自web下单,老web展厅下单(不管) "fid":0,//展厅下单时,下单给谁,(老web展厅下单) "shopCarIds":"1,2,3,4",//新web展厅下单,购物车id,用英文逗号隔开。 "count": 1, "creator": "", "customer_id": 0, "customer_name": "", "delivery_time": "", "expand_area": 5.5104, "factory_num": "1115-39", "ggid": "http://eggi.cn/oENUrc36", "id": 43552, "install_time": "2019-11-30", "measure_time": "2019-11-15", "order_code": "1115-39", "projective_area": 2.1039, "received_price": "0.00", "remaining_price": "0.00", "big_plate_num":8, "remark": "", "room": [{ "color": "[]", "creator": "", "door": [], "expand_area": 2.689738256835937, "forcer": [{ "expand_area": 2.689738256835937, "forcer_name": "柜@", "id": "", "mark": 1, "price": 0, "projective_area": 1.7837871034947037, "size": "1020.3*1748.3*600", "uid": 4820, "unique_id": "671722441308351400" }], "id": 73810, "img_url": "http://eggrj.oss-cn-hangzhou.aliyuncs.com/imgs/15744152944430.jpg", "json_url": "http://eggrj.oss-cn-hangzhou.aliyuncs.com/jsons/15744152944430.jin", "lock": 0, "lock_password": "", "mtl_url": "http://eggrj.oss-cn-hangzhou.aliyuncs.com/models/15744152944430.mtl", "name": "主卧", "obj_url": "http://eggrj.oss-cn-hangzhou.aliyuncs.com/models/15744152944430.txt", "parts": [], "plank_type": "", "plate": [{ "color": "T01", "forcer_mark": 1, "id": "", "plankId": "35", "plate_name": "横隔板01", "plate_other": "{\"gid\":\"I95270005dd7aba9\",\"loc\":\"柜A\",\"partName\":\"柜A_横隔板01\",\"rect\":{\"x\":0,\"y\":0,\"width\":598,\"height\":1019.2984619140625,\"left\":0,\"right\":598,\"top\":0,\"bottom\":1019.2984619140625},\"realRect\":{\"x\":0,\"y\":0,\"width\":598,\"height\":1019.2984619140625,\"left\":0,\"right\":598,\"top\":0,\"bottom\":1019.2984619140625},\"thick\":17,\"plankNum\":\"5744152734059\",\"oriPlankNum\":\"574415273405\",\"edgeInfo\":\"←0.5↓0.5→1.5↑0.5\",\"sholeInfo\":\"\",\"holes\":[],\"sholes\":[],\"slots\":[],\"oRect\":{\"x\":0,\"y\":0,\"width\":600,\"height\":1020.2984619140625,\"left\":0,\"right\":600,\"top\":0,\"bottom\":1020.2984619140625},\"matRotatable\":false}", "size": "1020.3*600*17", "type": "颗粒板", "uid": 4820, "unique_id": "671722441308351401" }, { "color": "T01", "forcer_mark": 1, "id": "", "plankId": "36", "plate_name": "左立板01", "plate_other": "{\"gid\":\"I95270005dd7abaa\",\"loc\":\"柜A\",\"partName\":\"柜A_左立板01\",\"rect\":{\"x\":0,\"y\":0,\"width\":598,\"height\":1193.671154296875,\"left\":0,\"right\":598,\"top\":0,\"bottom\":1193.671154296875},\"realRect\":{\"x\":0,\"y\":0,\"width\":598,\"height\":1193.671154296875,\"left\":0,\"right\":598,\"top\":0,\"bottom\":1193.671154296875},\"thick\":17,\"plankNum\":\"5744152734066\",\"oriPlankNum\":\"574415273406\",\"edgeInfo\":\"←0.5↓0.5→1.5↑0.5\",\"sholeInfo\":\"\",\"holes\":[],\"sholes\":[],\"slots\":[],\"oRect\":{\"x\":0,\"y\":0,\"width\":600,\"height\":1194.671154296875,\"left\":0,\"right\":600,\"top\":0,\"bottom\":1194.671154296875},\"matRotatable\":false}", "size": "600*1194.67*17", "type": "颗粒板", "uid": 4820, "unique_id": "671722441308351402" }, { "color": "T01", "forcer_mark": 1, "id": "", "plankId": "37", "plate_name": "左立板02", "plate_other": "{\"gid\":\"I95270005dd7abab\",\"loc\":\"柜A\",\"partName\":\"柜A_左立板02\",\"rect\":{\"x\":0,\"y\":0,\"width\":598,\"height\":535.6281621093749,\"left\":0,\"right\":598,\"top\":0,\"bottom\":535.6281621093749},\"realRect\":{\"x\":0,\"y\":0,\"width\":598,\"height\":535.6281621093749,\"left\":0,\"right\":598,\"top\":0,\"bottom\":535.6281621093749},\"thick\":17,\"plankNum\":\"5744152734073\",\"oriPlankNum\":\"574415273407\",\"edgeInfo\":\"←0.5↓0.5→1.5↑0.5\",\"sholeInfo\":\"\",\"holes\":[],\"sholes\":[],\"slots\":[],\"oRect\":{\"x\":0,\"y\":0,\"width\":600,\"height\":536.6281621093749,\"left\":0,\"right\":600,\"top\":0,\"bottom\":536.6281621093749},\"matRotatable\":false}", "size": "600*536.628*17", "type": "颗粒板", "uid": 4820, "unique_id": "671722441308351403" }, { "color": "T01", "forcer_mark": 1, "id": "", "plankId": "38", "plate_name": "右立板01", "plate_other": "{\"gid\":\"I95270005dd7abac\",\"loc\":\"柜A\",\"partName\":\"柜A_右立板01\",\"rect\":{\"x\":0,\"y\":0,\"width\":598,\"height\":1193.671154296875,\"left\":0,\"right\":598,\"top\":0,\"bottom\":1193.671154296875},\"realRect\":{\"x\":0,\"y\":0,\"width\":598,\"height\":1193.671154296875,\"left\":0,\"right\":598,\"top\":0,\"bottom\":1193.671154296875},\"thick\":17,\"plankNum\":\"5744152734080\",\"oriPlankNum\":\"574415273408\",\"edgeInfo\":\"←0.5↓0.5→1.5↑0.5\",\"sholeInfo\":\"\",\"holes\":[],\"sholes\":[],\"slots\":[],\"oRect\":{\"x\":0,\"y\":0,\"width\":600,\"height\":1194.671154296875,\"left\":0,\"right\":600,\"top\":0,\"bottom\":1194.671154296875},\"matRotatable\":false}", "size": "600*1194.67*17", "type": "颗粒板", "uid": 4820, "unique_id": "671722441308351404" }, { "color": "T01", "forcer_mark": 1, "id": "", "plankId": "39", "plate_name": "右立板02", "plate_other": "{\"gid\":\"I95270005dd7abad\",\"loc\":\"柜A\",\"partName\":\"柜A_右立板02\",\"rect\":{\"x\":0,\"y\":0,\"width\":598,\"height\":535.6281621093749,\"left\":0,\"right\":598,\"top\":0,\"bottom\":535.6281621093749},\"realRect\":{\"x\":0,\"y\":0,\"width\":598,\"height\":535.6281621093749,\"left\":0,\"right\":598,\"top\":0,\"bottom\":535.6281621093749},\"thick\":17,\"plankNum\":\"5744152734097\",\"oriPlankNum\":\"574415273409\",\"edgeInfo\":\"←0.5↓0.5→1.5↑0.5\",\"sholeInfo\":\"\",\"holes\":[],\"sholes\":[],\"slots\":[],\"oRect\":{\"x\":0,\"y\":0,\"width\":600,\"height\":536.6281621093749,\"left\":0,\"right\":600,\"top\":0,\"bottom\":536.6281621093749},\"matRotatable\":false}", "size": "600*536.628*17", "type": "颗粒板", "uid": 4820, "unique_id": "671722441308351405" }], "projective_area": 1.7837871034947037, "remark": "", "render_url": "http://eggrj.oss-cn-hangzhou.aliyuncs.com/renderJSON/15744152944430.json", "room_area": 72, "style": "", "substrate": "颗粒板", "type": "衣柜", "uid": 4820 }], "setting": "", "total_price": "0.00", "uid": 4820 }</code></pre> <p><strong>返回示例</strong></p> <pre><code>{ "status": 1, "msg": "添加成功", "data": { "uid": 2150, "customer_id": 1, "buyer_address": "x", "buyer_phone": "hhahah", "measure_time": "2019-1-1 1:1:1", "install_time": "2019-1-1 1:1:1", "expand_area": 1.1000000000000001, "projective_area": 1.1000000000000001, "count": 1, "remark": "xx", "creator": "xx", "update_time": "2019-05-27 19:37:06", "room_ids": 10503, "id": 8312, "total_price":"888", "big_plate_num":10, "room": [ { "uid": 2150, "name": "hhahah", "plank_type": "xx", "type": "xx", "color": "xxx", "room_area": 1.1000000000000001, "expand_area": 1.1000000000000001, "projective_area": 1.1000000000000001, "style": "xxx", "remark": "xx", "json_url": "xx", "img_url": "xx", "obj_url": "xx", "mtl_url": "xx", "render_url":"", "creator": "xx", "update_time": "2019-05-27 19:37:06", "id": 10503, "plate": [ { "id": 254, "room_id": 10503, "type": "实木", "size": "300*300*18", "buyer_address": "x", "buyer": "", "create_time": "2019-05-27 19:37:06", "color": "红", "plate_num": "052719568693", "ggid": "7fJAR", "uid": 2150, "forcer_mark": 1, "plate_name":"aaaa" "unique_id":"ccccc", "plate_other":{} }, { "id": 255, "room_id": 10503, "type": "实木", "size": "300*300*18", "buyer_address": "x", "buyer": "", "create_time": "2019-05-27 19:37:06", "color": "绿", "plate_num": "052719563026", "ggid": "9138Q", "uid": 2150, "forcer_mark": 2, "plate_name":"zzzzzzzzzzzz", "unique_id":"kkkkkkkkk", "plate_other":{} } ], "forcer": [ { "id": 11, "room_id": 10503, "size": "", "projective_area": "0.33", "expand_area": "0.30", "price": "298.00", "total_price": "98.00", "buyer_address": "x", "create_time": "2019-05-27 19:37:06", "mark": 1, "uid": 2150, "forcer_name":"aabbaaaa" "unique_id":"ccccc" }, { "id": 12, "room_id": 10503, "size": "", "projective_area": "0.00", "expand_area": "0.30", "price": "0.00", "total_price": "0.00", "buyer_address": "x", "create_time": "2019-05-27 19:37:06", "mark": 2, "uid": 2150, "forcer_name":"ccccccccc" "unique_id":"kkkkkkkkk" } ] } ] } }</code></pre>

页面列表

ITEM_HTML