From a4e012dd9dcf364a9e4b1885cad55e8370ac10cc Mon Sep 17 00:00:00 2001 From: ping <1017253325@qq.com> Date: Tue, 19 Aug 2025 20:08:27 +0800 Subject: [PATCH] update --- b/product/get_firstpage_net_detail.dspy | 16 ++++++++-------- b/user/enterprise_audit_info_add.dspy | 11 ++++++++++- b/user/enterprise_audit_info_search.dspy | 2 +- 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/b/product/get_firstpage_net_detail.dspy b/b/product/get_firstpage_net_detail.dspy index 4e9f9fa..a1f671f 100644 --- a/b/product/get_firstpage_net_detail.dspy +++ b/b/product/get_firstpage_net_detail.dspy @@ -1113,7 +1113,7 @@ detailDataLJS = { { "title": "NVIDIA-4090-48G", "description": "High-performance GPU server with powerful computing capabilities, suitable for AI training, deep learning, etc.", - "price": "8800", + "price": "8000", "pre_price": None, "price_unit": "台/月", "discount": None, @@ -1207,7 +1207,7 @@ detailDataLJS = { { "title": "NVIDIA-4090", "description": "High-performance GPU server with powerful computing capabilities, suitable for AI training, deep learning, etc.", - "price": "7200", + "price": "6500", "pre_price": None, "price_unit": "台/月", "discount": None, @@ -1254,7 +1254,7 @@ detailDataLJS = { { "title": "NVIDIA-4090", "description": "High-performance GPU server with powerful computing capabilities, suitable for AI training, deep learning, etc.", - "price": "7000", + "price": "6200", "pre_price": None, "price_unit": "台/月", "discount": None, @@ -1263,31 +1263,31 @@ detailDataLJS = { { "id": 1, "name": "CPU", - "content": "AMD EPYC 7502/32核心/2.5GHz *1", + "content": "AMD EPYC 7542 32Core * 2", "icon": "https://www.kaiyuancloud.cn/idfile?path=firstpagehot/ssc2x.png" }, { "id": 2, "name": "内存", - "content": "64GB DDR4-3200ECCREG RDIMM *16", + "content": "512G / 64G 3200 MT/s DDR4*8", "icon": "https://www.kaiyuancloud.cn/idfile?path=firstpagehot/cpu2x.png" }, { "id": 3, "name": "GPU", - "content": "Geforce RTX4090 24GPCI-e 涡轮GPU卡 *8", + "content": "Geforce RTX4090 24GPCI-e *8", "icon": "https://www.kaiyuancloud.cn/idfile?path=firstpagehot/sdcard2x.png" }, { "id": 4, "name": "系统盘", - "content": "2.5\"480G SATA 读取密集 SSD *1", + "content": " 2.5"960G SATA SSD *2", "icon": "https://www.kaiyuancloud.cn/idfile?path=firstpagehot/servermini2x.png" }, { "id": 5, "name": "数据盘", - "content": "NVMe-SSD 3.84T *2", + "content": "NVMe-SSD 3.84T *1", "icon": "https://www.kaiyuancloud.cn/idfile?path=firstpagehot/serverpath2x.png" }, { diff --git a/b/user/enterprise_audit_info_add.dspy b/b/user/enterprise_audit_info_add.dspy index 5873196..0512a9f 100644 --- a/b/user/enterprise_audit_info_add.dspy +++ b/b/user/enterprise_audit_info_add.dspy @@ -12,7 +12,16 @@ async def enterprise_audit_info_add(ns={}): 'status': False, 'msg': 'user not found' } - orgid = user_list[0]['orgid'] + orgid = user_list[0]['orgid'] + + # 检查orgid在数据库是否存在 + orgid_exist = await sor.R('enterprise_audit_info', {'orgid': orgid, 'del_flg': '0'}) + if orgid_exist: + return { + 'status': False, + 'msg': 'orgid info already exists' + } + ns_dic = { 'id': uuid(), 'orgid': orgid, diff --git a/b/user/enterprise_audit_info_search.dspy b/b/user/enterprise_audit_info_search.dspy index 6294bb7..46be6f2 100644 --- a/b/user/enterprise_audit_info_search.dspy +++ b/b/user/enterprise_audit_info_search.dspy @@ -57,7 +57,7 @@ async def enterprise_audit_info_search(ns={}): orgid = user_list[0]['orgid'] user_role = await get_user_role({'userid': userid, 'sor': sor}) try: - if user_role == '客户': # 客户查询 + if user_role == '客户' or user_role == '管理员': # 客户查询 count_sql = """SELECT COUNT(*) AS total_count FROM enterprise_audit_info WHERE orgid = '%s' AND del_flg = '0';""" % orgid find_sql = """SELECT * FROM enterprise_audit_info WHERE orgid = '%s' AND del_flg = '0';""" % orgid else: # 运营查询 enterprise_audit_info和organization表关联查询 enterprise_audit_info中的orgid和organization表中的id关联查询