|
|
|
@ -8,6 +8,7 @@
|
|
|
|
<result property="id" column="id" />
|
|
|
|
<result property="id" column="id" />
|
|
|
|
<result property="pcId" column="pc_id" />
|
|
|
|
<result property="pcId" column="pc_id" />
|
|
|
|
<result property="pcName" column="pc_name" />
|
|
|
|
<result property="pcName" column="pc_name" />
|
|
|
|
|
|
|
|
<result property="temName" column="tem_name" />
|
|
|
|
<result property="tableHeader" column="table_header" />
|
|
|
|
<result property="tableHeader" column="table_header" />
|
|
|
|
<result property="tableData" column="table_data" />
|
|
|
|
<result property="tableData" column="table_data" />
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
@ -18,7 +19,7 @@
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectKhKhrwResultVo">
|
|
|
|
<sql id="selectKhKhrwResultVo">
|
|
|
|
select id, pc_id, pc_name, table_header, table_data, create_by, create_time, update_by, update_time, remark from kh_khrw_result
|
|
|
|
select id, pc_id, pc_name,tem_name, table_header, table_data, create_by, create_time, update_by, update_time, remark from kh_khrw_result
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectKhKhrwResultList" parameterType="KhKhrwResult" resultMap="KhKhrwResultResult">
|
|
|
|
<select id="selectKhKhrwResultList" parameterType="KhKhrwResult" resultMap="KhKhrwResultResult">
|
|
|
|
@ -26,6 +27,7 @@
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="pcId != null "> and pc_id = #{pcId}</if>
|
|
|
|
<if test="pcId != null "> and pc_id = #{pcId}</if>
|
|
|
|
<if test="pcName != null and pcName != ''"> and pc_name like concat('%', #{pcName}, '%')</if>
|
|
|
|
<if test="pcName != null and pcName != ''"> and pc_name like concat('%', #{pcName}, '%')</if>
|
|
|
|
|
|
|
|
<if test="temName != null and temName != ''"> and tem_name like concat('%', #{temName}, '%')</if>
|
|
|
|
<if test="tableHeader != null and tableHeader != ''"> and table_header = #{tableHeader}</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="tableData != null and tableData != ''"> and table_data = #{tableData}</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
@ -41,6 +43,7 @@
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="pcId != null">pc_id,</if>
|
|
|
|
<if test="pcId != null">pc_id,</if>
|
|
|
|
<if test="pcName != null">pc_name,</if>
|
|
|
|
<if test="pcName != null">pc_name,</if>
|
|
|
|
|
|
|
|
<if test="temName != null">tem_name,</if>
|
|
|
|
<if test="tableHeader != null">table_header,</if>
|
|
|
|
<if test="tableHeader != null">table_header,</if>
|
|
|
|
<if test="tableData != null">table_data,</if>
|
|
|
|
<if test="tableData != null">table_data,</if>
|
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
|
@ -52,6 +55,7 @@
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="pcId != null">#{pcId},</if>
|
|
|
|
<if test="pcId != null">#{pcId},</if>
|
|
|
|
<if test="pcName != null">#{pcName},</if>
|
|
|
|
<if test="pcName != null">#{pcName},</if>
|
|
|
|
|
|
|
|
<if test="temName != null">#{temName},</if>
|
|
|
|
<if test="tableHeader != null">#{tableHeader},</if>
|
|
|
|
<if test="tableHeader != null">#{tableHeader},</if>
|
|
|
|
<if test="tableData != null">#{tableData},</if>
|
|
|
|
<if test="tableData != null">#{tableData},</if>
|
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
|
@ -67,6 +71,7 @@
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
<if test="pcId != null">pc_id = #{pcId},</if>
|
|
|
|
<if test="pcId != null">pc_id = #{pcId},</if>
|
|
|
|
<if test="pcName != null">pc_name = #{pcName},</if>
|
|
|
|
<if test="pcName != null">pc_name = #{pcName},</if>
|
|
|
|
|
|
|
|
<if test="temName != null">tem_name = #{temName},</if>
|
|
|
|
<if test="tableHeader != null">table_header = #{tableHeader},</if>
|
|
|
|
<if test="tableHeader != null">table_header = #{tableHeader},</if>
|
|
|
|
<if test="tableData != null">table_data = #{tableData},</if>
|
|
|
|
<if test="tableData != null">table_data = #{tableData},</if>
|
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
|