|
|
@@ -11,14 +11,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="meridiansImgUrl" column="meridians_img_url" />
|
|
|
- <result property="qcField" column="qc_field" />
|
|
|
- <result property="jldhField" column="jldh_field" />
|
|
|
- <result property="xxtsField" column="xxts_field" />
|
|
|
- <result property="djxjField" column="djxj_field" />
|
|
|
+ <result property="firstField" column="first_field" />
|
|
|
+ <result property="secondField" column="second_field" />
|
|
|
+ <result property="thirdField" column="third_field" />
|
|
|
+ <result property="fourthField" column="fourth_field" />
|
|
|
+ <result property="firstContent" column="first_content" />
|
|
|
+ <result property="secondContent" column="second_content" />
|
|
|
+ <result property="thirdContent" column="third_content" />
|
|
|
+ <result property="fourthContent" column="fourth_content" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsProjectVo">
|
|
|
- select id, project_name, day_name, create_time, update_time, meridians_img_url, qc_field, jldh_field, xxts_field, djxj_field from fs_project
|
|
|
+ select id, project_name, day_name, create_time, update_time, meridians_img_url, first_field, second_field, third_field, fourth_field, first_content, second_content, third_content, fourth_content from fs_project
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsProjectList" parameterType="FsProject" resultMap="FsProjectResult">
|
|
|
@@ -27,9 +31,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="projectName != null and projectName != ''"> and project_name like concat('%', #{projectName}, '%')</if>
|
|
|
<if test="dayName != null and dayName != ''"> and day_name like concat('%', #{dayName}, '%')</if>
|
|
|
<if test="meridiansImgUrl != null and meridiansImgUrl != ''"> and meridians_img_url = #{meridiansImgUrl}</if>
|
|
|
- <if test="qcField != null and qcField != ''"> and qc_field = #{qcField}</if>
|
|
|
- <if test="jldhField != null and jldhField != ''"> and jldh_field = #{jldhField}</if>
|
|
|
- <if test="xxtsField != null and xxtsField != ''"> and xxts_field = #{xxtsField}</if>
|
|
|
+ <if test="firstField != null and firstField != ''"> and first_field = #{firstField}</if>
|
|
|
+ <if test="secondField != null and secondField != ''"> and second_field = #{secondField}</if>
|
|
|
+ <if test="thirdField != null and thirdField != ''"> and third_field = #{thirdField}</if>
|
|
|
+ <if test="fourthField != null and fourthField != ''"> and fourth_field = #{fourthField}</if>
|
|
|
+ <if test="firstContent != null and firstContent != ''"> and first_content = #{firstContent}</if>
|
|
|
+ <if test="secondContent != null and secondContent != ''"> and second_content = #{secondContent}</if>
|
|
|
+ <if test="thirdContent != null and thirdContent != ''"> and third_content = #{thirdContent}</if>
|
|
|
+ <if test="fourthContent != null and fourthContent != ''"> and fourth_content = #{fourthContent}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -46,10 +55,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="meridiansImgUrl != null">meridians_img_url,</if>
|
|
|
- <if test="qcField != null">qc_field,</if>
|
|
|
- <if test="jldhField != null">jldh_field,</if>
|
|
|
- <if test="xxtsField != null">xxts_field,</if>
|
|
|
- <if test="djxjField != null">djxj_field,</if>
|
|
|
+ <if test="firstField != null">first_field,</if>
|
|
|
+ <if test="secondField != null">second_field,</if>
|
|
|
+ <if test="thirdField != null">third_field,</if>
|
|
|
+ <if test="fourthField != null">fourth_field,</if>
|
|
|
+ <if test="firstContent != null">first_content,</if>
|
|
|
+ <if test="secondContent != null">second_content,</if>
|
|
|
+ <if test="thirdContent != null">third_content,</if>
|
|
|
+ <if test="fourthContent != null">fourth_content,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="projectName != null">#{projectName},</if>
|
|
|
@@ -57,10 +70,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="meridiansImgUrl != null">#{meridiansImgUrl},</if>
|
|
|
- <if test="qcField != null">#{qcField},</if>
|
|
|
- <if test="jldhField != null">#{jldhField},</if>
|
|
|
- <if test="xxtsField != null">#{xxtsField},</if>
|
|
|
- <if test="djxjField != null">#{djxjField},</if>
|
|
|
+ <if test="firstField != null">#{firstField},</if>
|
|
|
+ <if test="secondField != null">#{secondField},</if>
|
|
|
+ <if test="thirdField != null">#{thirdField},</if>
|
|
|
+ <if test="fourthField != null">#{fourthField},</if>
|
|
|
+ <if test="firstContent != null">#{firstContent},</if>
|
|
|
+ <if test="secondContent != null">#{secondContent},</if>
|
|
|
+ <if test="thirdContent != null">#{thirdContent},</if>
|
|
|
+ <if test="fourthContent != null">#{fourthContent},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -72,10 +89,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="meridiansImgUrl != null">meridians_img_url = #{meridiansImgUrl},</if>
|
|
|
- <if test="qcField != null">qc_field = #{qcField},</if>
|
|
|
- <if test="jldhField != null">jldh_field = #{jldhField},</if>
|
|
|
- <if test="xxtsField != null">xxts_field = #{xxtsField},</if>
|
|
|
- <if test="djxjField != null">djxj_field = #{djxjField},</if>
|
|
|
+ <if test="firstField != null">first_field = #{firstField},</if>
|
|
|
+ <if test="secondField != null">second_field = #{secondField},</if>
|
|
|
+ <if test="thirdField != null">third_field = #{thirdField},</if>
|
|
|
+ <if test="fourthField != null">fourth_field = #{fourthField},</if>
|
|
|
+ <if test="firstContent != null">first_content = #{firstContent},</if>
|
|
|
+ <if test="secondContent != null">second_content = #{secondContent},</if>
|
|
|
+ <if test="thirdContent != null">third_content = #{thirdContent},</if>
|
|
|
+ <if test="fourthContent != null">fourth_content = #{fourthContent},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|