コード例 #1
0
 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
コード例 #2
0
 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
コード例 #3
0
 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
コード例 #4
0
 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
コード例 #5
0
ファイル: ModDbaF5fm.py プロジェクト: Baxianxiahai/huicloud
 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
コード例 #6
0
 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
コード例 #7
0
 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