def dft_calculation_day_data(self): try: with transaction.atomic(): DappDbF3dm_view = DappDbF3dm.dct_classDbiL3apF3dm() result = DappDbF3dm_view.dft_dbi_calculation_day_data() except Exception: result = False return result
def dft_dbi_aqyc_current_report_php(self, inputData): try: with transaction.atomic(): DappDbF3dm_view = DappDbF3dm.dct_classDbiL3apF3dm() result = DappDbF3dm_view.dft_dbi_aqyc_current_report_php_view( inputData) except Exception: result = {"status": "false"} return result
def dft_calculation_hour_data(self): try: with transaction.atomic(): DappDbF3dm_view = DappDbF3dm.dct_classDbiL3apF3dm() result = DappDbF3dm_view.dft_dbi_calculation_hour_data() result = {"status": 'true'} except Exception: result = {"status": 'false'} return result
def dft_dbi_HCU_Info_Query(self, inputData): try: with transaction.atomic(): DappDbF3dm_view = DappDbF3dm.dct_classDbiL3apF3dm() result = DappDbF3dm_view.dft_dbi_HCU_Info_Query(inputData) except Exception: result = { 'status': 'true', 'auth': 'true', 'msg': '获取设备状态失败', 'ret': [] } return result
def dft_dbi_fstt_dev_currentvalue_req(self, inputData): try: with transaction.atomic(): DappDbF3dm_view = DappDbF3dm.dct_classDbiL3apF3dm() result = DappDbF3dm_view.dft_dbi_fstt_dev_currentvalue_req_view( inputData) except Exception: result = { "body": { "status": "true", "auth": "false", "admin": "false" }, "msg": "数据库发生错误,请重试" } return result
def dft_dbi_favourite_count_process(self, inputData): try: with transaction.atomic(): DappDbF3dm_view = DappDbF3dm.dct_classDbiL3apF3dm() DappDbF3dm_view.dft_dbi_favourite_count_process(inputData) result = True except Exception: result = { "body": { "status": "true", "auth": "false", "admin": "false" }, "msg": "数据库发生错误,请重试" } return result
def dft_dbi_bfsc_user_dataaggregate_req(self, inputData): try: with transaction.atomic(): DappDbF3dm_view = DappDbF3dm.dct_classDbiL3apF3dm() result = DappDbF3dm_view.dft_dbi_bfsc_user_dataaggregate_req( inputData) except Exception: result = { "body": { "status": "true", "auth": "false", "admin": "false" }, "msg": "数据库发生错误,请重试" } return result