|
@@ -11,7 +11,7 @@
|
|
|
<result property="name" column="name" />
|
|
|
<result property="startTime" column="start_time" />
|
|
|
<result property="endTime" column="end_time" />
|
|
|
- <result property="state" column="state" />
|
|
|
+ <result property="status" column="status" />
|
|
|
<result property="collectionsNumber" column="collections_number" />
|
|
|
<result property="collectionsStory" column="collections_story" />
|
|
|
<result property="image" column="image" />
|
|
@@ -19,11 +19,11 @@
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="createUser" column="create_user" />
|
|
|
<result property="updateUser" column="update_user" />
|
|
|
- <result property="isDeleted" column="is_deleted" />
|
|
|
+ <result property="delFlag" column="del_flag" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectPostCollectionsVo">
|
|
|
- select id, system_id, issuer_id, name, start_time, end_time, state, collections_number, collections_story, image, create_time, update_time, create_user, update_user, is_deleted from post_collections
|
|
|
+ select id, system_id, issuer_id, name, start_time, end_time, status, collections_number, collections_story, image, create_time, update_time, create_user, update_user, del_flag from post_collections
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectPostCollectionsList" parameterType="PostCollections" resultMap="PostCollectionsResult">
|
|
@@ -34,13 +34,12 @@
|
|
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
|
<if test="startTime != null "> and start_time = #{startTime}</if>
|
|
|
<if test="endTime != null "> and end_time = #{endTime}</if>
|
|
|
- <if test="state != null "> and state = #{state}</if>
|
|
|
+ <if test="status != null and status != ''"> and status = #{status}</if>
|
|
|
<if test="collectionsNumber != null "> and collections_number = #{collectionsNumber}</if>
|
|
|
<if test="collectionsStory != null and collectionsStory != ''"> and collections_story = #{collectionsStory}</if>
|
|
|
<if test="image != null and image != ''"> and image = #{image}</if>
|
|
|
<if test="createUser != null and createUser != ''"> and create_user = #{createUser}</if>
|
|
|
<if test="updateUser != null and updateUser != ''"> and update_user = #{updateUser}</if>
|
|
|
- <if test="isDeleted != null "> and is_deleted = #{isDeleted}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -57,7 +56,7 @@
|
|
|
<if test="name != null">name,</if>
|
|
|
<if test="startTime != null">start_time,</if>
|
|
|
<if test="endTime != null">end_time,</if>
|
|
|
- <if test="state != null">state,</if>
|
|
|
+ <if test="status != null">status,</if>
|
|
|
<if test="collectionsNumber != null">collections_number,</if>
|
|
|
<if test="collectionsStory != null">collections_story,</if>
|
|
|
<if test="image != null">image,</if>
|
|
@@ -65,7 +64,7 @@
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="createUser != null">create_user,</if>
|
|
|
<if test="updateUser != null">update_user,</if>
|
|
|
- <if test="isDeleted != null">is_deleted,</if>
|
|
|
+ <if test="delFlag != null">del_flag,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="systemId != null">#{systemId},</if>
|
|
@@ -73,7 +72,7 @@
|
|
|
<if test="name != null">#{name},</if>
|
|
|
<if test="startTime != null">#{startTime},</if>
|
|
|
<if test="endTime != null">#{endTime},</if>
|
|
|
- <if test="state != null">#{state},</if>
|
|
|
+ <if test="status != null">#{status},</if>
|
|
|
<if test="collectionsNumber != null">#{collectionsNumber},</if>
|
|
|
<if test="collectionsStory != null">#{collectionsStory},</if>
|
|
|
<if test="image != null">#{image},</if>
|
|
@@ -81,7 +80,7 @@
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="createUser != null">#{createUser},</if>
|
|
|
<if test="updateUser != null">#{updateUser},</if>
|
|
|
- <if test="isDeleted != null">#{isDeleted},</if>
|
|
|
+ <if test="delFlag != null">#{delFlag},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -93,7 +92,7 @@
|
|
|
<if test="name != null">name = #{name},</if>
|
|
|
<if test="startTime != null">start_time = #{startTime},</if>
|
|
|
<if test="endTime != null">end_time = #{endTime},</if>
|
|
|
- <if test="state != null">state = #{state},</if>
|
|
|
+ <if test="status != null">status = #{status},</if>
|
|
|
<if test="collectionsNumber != null">collections_number = #{collectionsNumber},</if>
|
|
|
<if test="collectionsStory != null">collections_story = #{collectionsStory},</if>
|
|
|
<if test="image != null">image = #{image},</if>
|
|
@@ -101,7 +100,7 @@
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="createUser != null">create_user = #{createUser},</if>
|
|
|
<if test="updateUser != null">update_user = #{updateUser},</if>
|
|
|
- <if test="isDeleted != null">is_deleted = #{isDeleted},</if>
|
|
|
+ <if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|