|
|
@ -3,20 +3,20 @@ |
|
|
|
<mapper namespace="com.guozhi.bloodanalysis.mapper.MetaBloodAnalysisMapper"> |
|
|
|
<insert id="insert" parameterType="com.guozhi.bloodanalysis.entity.MetaBloodAnalysis"> |
|
|
|
insert into meta_blood_analysis (id,proId,proName, |
|
|
|
targetSysCd,targetMdlName,targetTableName,targetTableCnName,targetColName,targetColCnName,targetColType, |
|
|
|
sourceSysCd,sourceMdlName,sourceTableName,sourceTableCnName,sourceColName,sourceColCnName,sourceColType) |
|
|
|
targetSysId,targetMdlName,targetTableName,targetTableCnName,targetColName,targetColCnName,targetColType, |
|
|
|
sourceSysId,sourceMdlName,sourceTableName,sourceTableCnName,sourceColName,sourceColCnName,sourceColType) |
|
|
|
values( |
|
|
|
#{blood.id,jdbcType=VARCHAR}, |
|
|
|
#{blood.proId,jdbcType=INTEGER}, |
|
|
|
#{blood.proName,jdbcType=VARCHAR}, |
|
|
|
#{blood.targetSysCd,jdbcType=VARCHAR}, |
|
|
|
#{blood.targetSysId,jdbcType=VARCHAR}, |
|
|
|
#{blood.targetMdlName,jdbcType=BOOLEAN}, |
|
|
|
#{blood.targetTableName,jdbcType=VARCHAR}, |
|
|
|
#{blood.targetTableCnName,jdbcType=VARCHAR}, |
|
|
|
#{blood.targetColName,jdbcType=VARCHAR}, |
|
|
|
#{blood.targetColCnName,jdbcType=VARCHAR}, |
|
|
|
#{blood.targetColType,jdbcType=VARCHAR}, |
|
|
|
#{blood.sourceSysCd,jdbcType=VARCHAR}, |
|
|
|
#{blood.sourceSysId,jdbcType=VARCHAR}, |
|
|
|
#{blood.sourceMdlName,jdbcType=BOOLEAN}, |
|
|
|
#{blood.sourceTableName,jdbcType=VARCHAR}, |
|
|
|
#{blood.sourceTableCnName,jdbcType=VARCHAR}, |
|
|
@ -26,7 +26,7 @@ |
|
|
|
) |
|
|
|
</insert> |
|
|
|
<select id="isColExis" resultType="com.guozhi.bloodanalysis.entity.MetaColumn"> |
|
|
|
select a.onum as onum,a.ssys_cd as ssysCd,a.mdl_name as mdlName,a.tab_eng_name as tabEngName, b.tab_cn_name as tabCnName, |
|
|
|
select a.onum as onum,a.ssys_id as ssysId,a.mdl_name as mdlName,a.tab_eng_name as tabEngName, b.tab_cn_name as tabCnName, |
|
|
|
a.fld_eng_name as fldEngName,a.fld_cn_name as fldCnName from t_metadata_fld_tab_extract_info a |
|
|
|
left join t_metadata_extract_info b on a.ssys_cd = b.ssys_cd and a.mdl_name = b.mdl_name and a.tab_eng_name = b.tab_eng_name |
|
|
|
where a.ssys_cd = #{db} and a.mdl_name = #{schema} and a.tab_eng_name = #{tableCode} and a.fld_eng_name = #{columnName} |
|
|
@ -42,7 +42,7 @@ |
|
|
|
</select> |
|
|
|
<select id="getColumnsByTable" resultType="java.util.Map"> |
|
|
|
select fld_eng_name as colCode, fld_cn_name as colName,fld_no as fldNo from t_metadata_fld_tab_extract_info a |
|
|
|
where ssys_cd =#{ssysCd} and mdl_name = #{mdlName} and tab_eng_name = #{tableName} |
|
|
|
where ssys_cd =#{ssysId} and mdl_name = #{mdlName} and tab_eng_name = #{tableName} |
|
|
|
order by fld_no |
|
|
|
|
|
|
|
</select> |
|
|
|