def execute(self, request): shop = ShopServer.get(request.shop_id) ShopServer.is_name_exist(request.shop_info["name"], shop) if 'channel_id' in request.shop_info: channel = ChannelServer.get(request.shop_info['channel_id']) request.shop_info.update({'channel': channel}) ShopServer.update(shop, **request.shop_info)
def execute(self, request): staff = self.auth_user shop = ShopServer.get(request.report_info["shop_id"]) request.report_info.update({'shop': shop, 'staff': staff}) MeasureShopServer.generate(**request.report_info)
def execute(self, request): shop = ShopServer.get(request.shop_id) return shop
def execute(self, request): shop = ShopServer.get(request.report_info["shop_id"]) request.report_info.update({"shop": shop}) MeasureShopServer.update(request.report_id, **request.report_info)