zjz 4 жил өмнө
parent
commit
ce0c188b3d

+ 3 - 1
Controller/MealManage.py

@@ -129,7 +129,7 @@ class MealManage(View):
             return response.json(444)
         qs = Store_Meal.objects.values("id", "title", "price", "content", "day", "add_time", "update_time", "currency"
                                        , "bucket_id", "bucket__bucket", "bucket__area", "commodity_type", "commodity_code",
-                                       "bucket__storeDay", "virtual_price", "is_discounts", "discount_price", "discount_content", "expire")
+                                       "bucket__storeDay", "virtual_price", "is_discounts", "discount_price", "discount_content", "expire", "symbol")
         res = {}
         if qs.exists():
             ql = list(qs)
@@ -164,6 +164,7 @@ class MealManage(View):
         discount_price = request_dict.get('discount_price', None)
         discount_content = request_dict.get('discount_content', None)
         expire = request_dict.get('expire', None)
+        symbol = request_dict.get('symbol', None)
         type = request_dict.get('type', None)
         if not id or not title or not price or not content or not day or not type:
             return response.json(444, 'id, title, price, content, day,type')
@@ -184,6 +185,7 @@ class MealManage(View):
             store_meal.discount_price = discount_price
             store_meal.discount_content = discount_content
             store_meal.expire = expire
+            store_meal.symbol = symbol
             store_meal.day = day
             if bucketID:
                 store_meal.bucket_id = bucketID