|
|
|
@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="id" column="id" />
|
|
|
|
|
<result property="areaId" column="area_id" />
|
|
|
|
|
<result property="type" column="type" />
|
|
|
|
|
<result property="name" column="name" />
|
|
|
|
|
<result property="materialsName" column="materials_name" />
|
|
|
|
|
<result property="fabuTime" column="fabu_time" />
|
|
|
|
|
<result property="materialsFileName" column="materials_file_name" />
|
|
|
|
@ -22,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectTcWorkDongtaiVo">
|
|
|
|
|
select id, area_id, type, materials_name, fabu_time, materials_file_name, materials_file_url, create_id, create_by, create_time, update_id, update_by, update_time, remark from tc_work_dongtai
|
|
|
|
|
select id, area_id, type, materials_name, name,fabu_time, materials_file_name, materials_file_url, create_id, create_by, create_time, update_id, update_by, update_time, remark from tc_work_dongtai
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectTcWorkDongtaiList" parameterType="TcWorkDongtai" resultMap="TcWorkDongtaiResult">
|
|
|
|
@ -30,6 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<where>
|
|
|
|
|
<if test="areaId != null "> and area_id = #{areaId}</if>
|
|
|
|
|
<if test="type != null and type != ''"> and type = #{type}</if>
|
|
|
|
|
<if test="name != null and name != ''"> and name = #{name}</if>
|
|
|
|
|
<if test="materialsName != null and materialsName != ''"> and materials_name like concat('%', #{materialsName}, '%')</if>
|
|
|
|
|
<if test="fabuTime != null "> and fabu_time = #{fabuTime}</if>
|
|
|
|
|
<if test="materialsFileName != null and materialsFileName != ''"> and materials_file_name like concat('%', #{materialsFileName}, '%')</if>
|
|
|
|
@ -50,6 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="id != null">id,</if>
|
|
|
|
|
<if test="areaId != null">area_id,</if>
|
|
|
|
|
<if test="type != null">type,</if>
|
|
|
|
|
<if test="name != null">name,</if>
|
|
|
|
|
<if test="materialsName != null">materials_name,</if>
|
|
|
|
|
<if test="fabuTime != null">fabu_time,</if>
|
|
|
|
|
<if test="materialsFileName != null">materials_file_name,</if>
|
|
|
|
@ -66,6 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="id != null">#{id},</if>
|
|
|
|
|
<if test="areaId != null">#{areaId},</if>
|
|
|
|
|
<if test="type != null">#{type},</if>
|
|
|
|
|
<if test="name != null">#{name},</if>
|
|
|
|
|
<if test="materialsName != null">#{materialsName},</if>
|
|
|
|
|
<if test="fabuTime != null">#{fabuTime},</if>
|
|
|
|
|
<if test="materialsFileName != null">#{materialsFileName},</if>
|
|
|
|
@ -85,6 +89,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
<if test="areaId != null">area_id = #{areaId},</if>
|
|
|
|
|
<if test="type != null">type = #{type},</if>
|
|
|
|
|
<if test="name != null">name = #{name},</if>
|
|
|
|
|
<if test="materialsName != null">materials_name = #{materialsName},</if>
|
|
|
|
|
<if test="fabuTime != null">fabu_time = #{fabuTime},</if>
|
|
|
|
|
<if test="materialsFileName != null">materials_file_name = #{materialsFileName},</if>
|
|
|
|
|