|
|
|
@ -25,23 +25,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectTcTbVo">
|
|
|
|
|
select id, area_id, dep_name, location_name,ip,state,file_url,tb_type,file_name,tb_time, create_id, create_by, create_time, update_id, update_by, update_time, remark from tc_tb
|
|
|
|
|
select id, area_id, dep_name, location_name,tb_type,tb_time, create_id, create_by, create_time, update_id, update_by, update_time, remark,ip,state,file_url,file_name from tc_tb
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectTcTbList" parameterType="TcTb" resultMap="TcTbResult">
|
|
|
|
|
<include refid="selectTcTbVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="areaId != null "> and area_id = #{areaId}</if>
|
|
|
|
|
<if test="ip != null "> and ip = #{ip}</if>
|
|
|
|
|
<if test="state != null "> and state = #{state}</if>
|
|
|
|
|
<if test="fileUrl != null "> and file_url = #{fileUrl}</if>
|
|
|
|
|
<if test="fileName != null "> and file_name = #{fileName}</if>
|
|
|
|
|
<if test="depName != null and depName != ''"> and dep_name like concat('%', #{depName}, '%')</if>
|
|
|
|
|
<if test="locationName != null and locationName != ''"> and location_name like concat('%', #{locationName}, '%')</if>
|
|
|
|
|
<if test="tbType != null "> and tb_type = #{tbType}</if>
|
|
|
|
|
<if test="tbTime != null "> and tb_time = #{tbTime}</if>
|
|
|
|
|
<if test="createId != null "> and create_id = #{createId}</if>
|
|
|
|
|
<if test="updateId != null "> and update_id = #{updateId}</if>
|
|
|
|
|
<if test="ip != null "> and ip = #{ip}</if>
|
|
|
|
|
<if test="state != null "> and state = #{state}</if>
|
|
|
|
|
<if test="fileUrl != null "> and file_url = #{fileUrl}</if>
|
|
|
|
|
<if test="fileName != null "> and file_name = #{fileName}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
@ -55,11 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="areaId != null">area_id,</if>
|
|
|
|
|
<if test="depName != null">dep_name,</if>
|
|
|
|
|
<if test="ip != null">ip,</if>
|
|
|
|
|
<if test="state != null">state,</if>
|
|
|
|
|
<if test="fileUrl != null">file_url,</if>
|
|
|
|
|
<if test="tbType != null">tb_type,</if>
|
|
|
|
|
<if test="fileName != null">file_name,</if>
|
|
|
|
|
<if test="locationName != null">location_name,</if>
|
|
|
|
|
<if test="tbTime != null">tb_time,</if>
|
|
|
|
|
<if test="createId != null">create_id,</if>
|
|
|
|
@ -69,6 +65,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
|
|
<if test="remark != null">remark,</if>
|
|
|
|
|
<if test="ip != null">ip,</if>
|
|
|
|
|
<if test="state != null">state,</if>
|
|
|
|
|
<if test="fileUrl != null">file_url,</if>
|
|
|
|
|
<if test="fileName != null">file_name,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="areaId != null">#{areaId},</if>
|
|
|
|
@ -76,10 +76,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="locationName != null">#{locationName},</if>
|
|
|
|
|
<if test="tbType != null">#{tbType},</if>
|
|
|
|
|
<if test="tbTime != null">#{tbTime},</if>
|
|
|
|
|
<if test="ip != null">#{ip},</if>
|
|
|
|
|
<if test="state != null">#{state},</if>
|
|
|
|
|
<if test="fileUrl != null">#{fileUrl},</if>
|
|
|
|
|
<if test="fileName != null">#{fileName},</if>
|
|
|
|
|
<if test="createId != null">#{createId},</if>
|
|
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
|
@ -87,6 +83,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
|
|
<if test="ip != null">#{ip},</if>
|
|
|
|
|
<if test="state != null">#{state},</if>
|
|
|
|
|
<if test="fileUrl != null">#{fileUrl},</if>
|
|
|
|
|
<if test="fileName != null">#{fileName},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|