|
@@ -107,7 +107,7 @@ def check_params(func, param_rows: dict, is_check_type=False) -> (bool, list):
|
|
|
"""
|
|
|
函数传参数
|
|
|
"""
|
|
|
- _default_params = {"attach_text": {}, "bidamount": 0, "budget": 0,"s_winner":"","bidopentime":0,"publishtime":0,"subtype":"","supervisorrate":0,"district":"金水区","com_package":[],"buyer":""} # 必要参数的默认值
|
|
|
+ _default_params = {"attach_text": {}, "bidamount": 0, "budget": 0,"s_winner":"","bidopentime":0,"publishtime":0,"subtype":"","s_topscopeclass":"","supervisorrate":0,"district":"金水区","com_package":[],"buyer":""} # 必要参数的默认值
|
|
|
func_params = inspect.getfullargspec(func) # 取出函数的参数
|
|
|
args_annotations = func_params.annotations # 参数类型dict,取出参数类型
|
|
|
args_list = func_params.args # 参数list
|
|
@@ -276,7 +276,7 @@ if __name__ == '__main__':
|
|
|
"projectname" : "二连浩特市人民医院台式计算机(等)直接订购",
|
|
|
"purchasing_tag" : "台式计算机,计算机,摄像头,液晶显示器,DR,M9,液晶,4G",
|
|
|
"s_subscopeclass" : "信息技术_其他,行政办公_通用办公设备",
|
|
|
- "s_topscopeclass" : "行政办公,信息技术,建筑工程",
|
|
|
+ # "s_topscopeclass" : "行政办公,信息技术,建筑工程",
|
|
|
"s_winner" : "玖宸(北京)科技有限公司",
|
|
|
"subscopeclass" : [
|
|
|
"信息技术_其他",
|