修改抓取规则保存功能
This commit is contained in:
@@ -22,5 +22,18 @@
|
||||
select * from column_value where case_id=#{caseId}
|
||||
</select>
|
||||
|
||||
<select id="queryColumnValueList" parameterType="ColumnValue" resultMap="BaseResultMap">
|
||||
select * from column_value c
|
||||
<where>
|
||||
<if test="caseId != null">
|
||||
AND c.case_id = #{caseId}
|
||||
</if>
|
||||
<if test="isDefault != null">
|
||||
AND c.is_default = #{isDefault}
|
||||
</if>
|
||||
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -30,6 +30,39 @@
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectColumnandComment" parameterType="FatchRule" resultMap="BaseResultMap">
|
||||
select
|
||||
a.COLUMN_name as `column`,
|
||||
a.COLumn_comment as column_name
|
||||
from
|
||||
information_schema.COLUMNS a
|
||||
where
|
||||
TABLE_schema = #{databaseName}
|
||||
and TABLE_name in('case_application','case_affiliate')
|
||||
and COLUMN_NAME not in('id','case_appli_id','case_num','case_subject_amount',
|
||||
'register_date','arbitrat_method','case_status','hear_date','begin_video_date',
|
||||
'online_video_person','create_time','update_by','update_time','create_by',
|
||||
'arbitrator_id','arbitrator_name','pended_trial_arbitorid','pending_appoint_arbotrar',
|
||||
'case_name','case_result','is_agree_pend_tral','objection_add_eviden','open_court_hear',
|
||||
'paid_expenses','filearbitra_url','pay_type','adjudica_counter','proper_preser','objecti_juris',
|
||||
'is_absence','respon_cross_opin','applica_cross_opin','respon_defen_opini','appli_is_absen',
|
||||
'lock_status','room_id','import_flag','version','batch_number','template_id','applicant_agent_user_id','contract_number','identity_type','application_organ_id')
|
||||
|
||||
</select>
|
||||
|
||||
<select id="selectColumnbycomment" parameterType="FatchRule" resultMap="BaseResultMap">
|
||||
select
|
||||
COLUMN_NAME
|
||||
from
|
||||
information_schema.COLUMNS
|
||||
where
|
||||
TABLE_schema = #{databaseName}
|
||||
and TABLE_name in('case_application','case_affiliate')
|
||||
and COLumn_comment = #{columnName}
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectFatchRuleListIsDefault" parameterType="FatchRule" resultMap="BaseResultMap">
|
||||
SELECT f.id ,f.file_name ,f.start_content ,f.end_content ,
|
||||
f.`column` ,f.is_default ,f.columnName
|
||||
|
||||
Reference in New Issue
Block a user