|
@@ -19,7 +19,7 @@ dim_handle = get_dim_handle(os.path.basename(__file__))
|
|
|
# @dim_handle.registry_prefix_func
|
|
|
async def prefix_func(dim_data: list):
|
|
|
print("前置程序:", dim_data)
|
|
|
- # raise ValueError("前置程序错误")
|
|
|
+ raise ValueError("前置程序错误")
|
|
|
|
|
|
pass
|
|
|
|
|
@@ -55,6 +55,11 @@ async def party_intersect(row_data: dict) -> dict:
|
|
|
async def open_ann_date(row_data: dict) -> dict:
|
|
|
# 过滤开庭时间早于建国时间问题
|
|
|
if 'start_date' in row_data:
|
|
|
+
|
|
|
+ if row_data['start_date']:
|
|
|
+ raise RulerValidationException("ccoa_002", "开庭时间为空")
|
|
|
+ pass
|
|
|
+
|
|
|
this_date = str_2_date_time(row_data['start_date'])
|
|
|
if this_date < establish_state_time:
|
|
|
raise RulerValidationException("ccoa_002", "开庭时间早于建国时间:%s" % row_data['start_date'])
|