@csrf_exempt
def addChangeDbGroupInfo(request):
    '\n    新增数据库组\n    修改数据库组\n    '
    v_groupId = request.POST.get('group_id')
    v_businessName = request.POST.get('business_name')
    v_groupName = request.POST.get('group_name')
    v_groupStatus = request.POST.get('group_status')
    v_groupDesc = request.POST.get('group_desc')
    v_groupEnv = request.POST.get('group_env')
    print(v_groupId, v_businessName, v_groupName, v_groupEnv, v_groupStatus, v_groupDesc)
    logger.info('保存或修改数据库组信息，接收前端参数：', v_groupId, v_businessName, v_groupName, v_groupEnv, v_groupStatus, v_groupDesc)
    if ((v_groupId == '') or (v_groupId is None)):
        try:
            dbGroupObj = dbGroup(businessName=v_businessName, groupName=v_groupName, groupEnv=v_groupEnv, groupStatus=v_groupStatus, groupDesc=v_groupDesc)
            dbGroupObj.save()
            result = {'status': 1, 'msg': '保存成功!', 'data': ''}
            return HttpResponse(json.dumps(result), content_type='application/json')
        except Exception as e:
            logger.error(str(e))
            result = {'status': 2, 'msg': '保存失败!', 'data': ''}
            return HttpResponse(json.dumps(result), content_type='application/json')
    else:
        try:
            dbGroupObj = dbGroup.objects.filter(id=v_groupId)
            dbGroupObj.update(businessName=v_businessName, groupName=v_groupName, groupEnv=v_groupEnv, groupStatus=v_groupStatus, groupDesc=v_groupDesc)
            result = {'status': 1, 'msg': '修改成功!', 'data': ''}
            return HttpResponse(json.dumps(result), content_type='application/json')
        except Exception as e:
            logger.error(str(e))
            result = {'status': 2, 'msg': '修改失败!', 'data': ''}
            return HttpResponse(json.dumps(result), content_type='application/json')
新增数据库组
修改数据库组
@csrf_exempt
def addChangeDbGroupInfo(request):
    '\n    新增数据库组\n    修改数据库组\n    '
    v_groupId = request.POST.get('group_id')
    v_businessName = request.POST.get('business_name')
    v_groupName = request.POST.get('group_name')
    v_groupStatus = request.POST.get('group_status')
    v_groupDesc = request.POST.get('group_desc')
    v_groupEnv = request.POST.get('group_env')
    print(v_groupId, v_businessName, v_groupName, v_groupEnv, v_groupStatus, v_groupDesc)
    logger.info('保存或修改数据库组信息，接收前端参数：', v_groupId, v_businessName, v_groupName, v_groupEnv, v_groupStatus, v_groupDesc)
    if ((v_groupId == ) or (v_groupId is None)):
        try:
            dbGroupObj = dbGroup(businessName=v_businessName, groupName=v_groupName, groupEnv=v_groupEnv, groupStatus=v_groupStatus, groupDesc=v_groupDesc)
            dbGroupObj.save()
            result = {'status': 1, 'msg': '保存成功!', 'data': }
            return HttpResponse(json.dumps(result), content_type='application/json')
        except Exception as e:
            logger.error(str(e))
            result = {'status': 2, 'msg': '保存失败!', 'data': }
            return HttpResponse(json.dumps(result), content_type='application/json')
    else:
        try:
            dbGroupObj = dbGroup.objects.filter(id=v_groupId)
            dbGroupObj.update(businessName=v_businessName, groupName=v_groupName, groupEnv=v_groupEnv, groupStatus=v_groupStatus, groupDesc=v_groupDesc)
            result = {'status': 1, 'msg': '修改成功!', 'data': }
            return HttpResponse(json.dumps(result), content_type='application/json')
        except Exception as e:
            logger.error(str(e))
            result = {'status': 2, 'msg': '修改失败!', 'data': }
            return HttpResponse(json.dumps(result), content_type='application/json')