B端 部分接口3
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
<result column="update_user_id" jdbcType="VARCHAR" property="updateUserId" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, parent_id, area_name, area_path, background_banner, detail_banner, area_status,
|
||||
id, parent_id, area_name, area_path, background_banner, detail_banner, area_status,
|
||||
deleted, create_time, update_time, update_user_id
|
||||
</sql>
|
||||
<insert id="insertSelective" parameterType="com.cool.store.entity.HyOpenAreaInfoDO" keyProperty="record.id" useGeneratedKeys="true">
|
||||
@@ -123,6 +123,59 @@
|
||||
</update>
|
||||
|
||||
|
||||
|
||||
<update id="batchUpdateById">
|
||||
update hy_open_area_info
|
||||
<set>
|
||||
<if test="backgroundBanner != null">
|
||||
background_banner = #{backgroundBanner},
|
||||
</if>
|
||||
<if test="detailBanner != null">
|
||||
detail_banner = #{detailBanner},
|
||||
</if>
|
||||
<if test="areaStatus != null">
|
||||
area_status = #{areaStatus},
|
||||
</if>
|
||||
<if test="updateUserId != null">
|
||||
update_user_id = #{updateUserId},
|
||||
</if>
|
||||
</set>
|
||||
<where>
|
||||
<if test="ids !=null and ids.size>0">
|
||||
<foreach collection="ids" item="id" open="and id in (" close=")" separator=",">
|
||||
#{id}
|
||||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
</update>
|
||||
|
||||
|
||||
|
||||
<update id="batchUpdateByParentId">
|
||||
update hy_open_area_info
|
||||
<set>
|
||||
<if test="backgroundBanner != null">
|
||||
background_banner = #{backgroundBanner},
|
||||
</if>
|
||||
<if test="detailBanner != null">
|
||||
detail_banner = #{detailBanner},
|
||||
</if>
|
||||
<if test="areaStatus != null">
|
||||
area_status = #{areaStatus},
|
||||
</if>
|
||||
<if test="updateUserId != null">
|
||||
update_user_id = #{updateUserId},
|
||||
</if>
|
||||
</set>
|
||||
<where>
|
||||
<if test="parentIdList !=null and parentIdList.size>0">
|
||||
<foreach collection="parentIdList" item="parentId" open="and parent_id in (" close=")" separator=",">
|
||||
#{parentId}
|
||||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
</update>
|
||||
|
||||
<select id="queryKeyOpenArea" resultMap="BaseResultMap">
|
||||
select * from
|
||||
hy_open_area_info
|
||||
@@ -182,4 +235,17 @@
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectByIds" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List"></include>
|
||||
from hy_open_area_info
|
||||
<where>
|
||||
<if test="idList !=null and idList.size>0">
|
||||
<foreach collection="idList" item="id" open="and id in (" close=")" separator=",">
|
||||
#{id}
|
||||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user