考勤表,考勤状态表,规则表添加
This commit is contained in:
		
							
								
								
									
										1091
									
								
								util/train_ddl.py
									
									
									
									
									
								
							
							
						
						
									
										1091
									
								
								util/train_ddl.py
									
									
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -3,7 +3,7 @@ from typing import Optional | ||||
| from orjson import orjson | ||||
|  | ||||
| keywords = { | ||||
|     "gender":{"1":"男","2":"女"}, | ||||
|     # "gender":{"1":"男","2":"女"}, | ||||
|     "person_status":{"1":"草稿","2":"审批中","3":"制卡中","4":"已入库","5":"停用"}, | ||||
|     "pass_type":{"1":"集团公司员工","2":"借调人员","3":"借用人员","4":"外部监管人员","5":"外协服务人员","6":"工勤人员","7":"来访人员"}, | ||||
|     "person_type": {"YG":"正式员工","PQ":"劳务派遣人员","QT":"其他柔性引进人员","WHZ":"合作单位","WLS":"临时访客","WQT":"其他外部人员"}, | ||||
| @@ -90,10 +90,12 @@ def deal_result(data: list) -> list: | ||||
|             for key, map_value in keywords.items(): | ||||
|                 if key in item: | ||||
|                     new_key = item.get(key) | ||||
|                     item[key] = map_value[new_key] | ||||
|                     if new_key in map_value: | ||||
|                         item[key] = map_value[new_key] | ||||
|         print("data----------{0}".format(data)) | ||||
|         return data | ||||
|     except Exception as e: | ||||
|         print("1111111111111111111111111111111111111111",e) | ||||
|         raise Exception(f"sql执行结果处理失败:{str(e)}") | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 yujj128
					yujj128