|
|
|
|
@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="hzName" column="hz_name" />
|
|
|
|
|
<result property="tableHeader" column="table_header" />
|
|
|
|
|
<result property="tableData" column="table_data" />
|
|
|
|
|
<result property="titleStr" column="title_str" />
|
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
|
<result property="createTime" column="create_time" />
|
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
|
@ -17,15 +18,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectKhGatherVo">
|
|
|
|
|
select id, hz_name, table_header, table_data, create_by, create_time, update_by, update_time, remark from kh_gather
|
|
|
|
|
select id, hz_name, table_header, table_data,title_str, create_by, create_time, update_by, update_time, remark from kh_gather
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectKhGatherList" parameterType="KhGather" resultMap="KhGatherResult">
|
|
|
|
|
<include refid="selectKhGatherVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="hzName != null and hzName != ''"> and hz_name like concat('%', #{hzName}, '%')</if>
|
|
|
|
|
<if test="tableHeader != null and tableHeader != ''"> and table_header = #{tableHeader}</if>
|
|
|
|
|
<if test="tableData != null and tableData != ''"> and table_data = #{tableData}</if>
|
|
|
|
|
<!--<if test="tableHeader != null and tableHeader != ''"> and table_header = #{tableHeader}</if>
|
|
|
|
|
<if test="tableData != null and tableData != ''"> and table_data = #{tableData}</if>-->
|
|
|
|
|
<if test="titleStr != null and titleStr != ''"> and title_str = #{titleStr}</if>
|
|
|
|
|
</where>
|
|
|
|
|
ORDER BY id DESC
|
|
|
|
|
</select>
|
|
|
|
|
@ -41,6 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="hzName != null">hz_name,</if>
|
|
|
|
|
<if test="tableHeader != null">table_header,</if>
|
|
|
|
|
<if test="tableData != null">table_data,</if>
|
|
|
|
|
<if test="titleStr != null">title_str,</if>
|
|
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
|
|
@ -51,6 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="hzName != null">#{hzName},</if>
|
|
|
|
|
<if test="tableHeader != null">#{tableHeader},</if>
|
|
|
|
|
<if test="tableData != null">#{tableData},</if>
|
|
|
|
|
<if test="titleStr != null">#{titleStr},</if>
|
|
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
|
|
@ -65,6 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="hzName != null">hz_name = #{hzName},</if>
|
|
|
|
|
<if test="tableHeader != null">table_header = #{tableHeader},</if>
|
|
|
|
|
<if test="tableData != null">table_data = #{tableData},</if>
|
|
|
|
|
<if test="titleStr != null">title_str = #{titleStr},</if>
|
|
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
|
|