|
@@ -3,7 +3,7 @@
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.caimei365.user.mapper.CmBrandLandingMapper">
|
|
<mapper namespace="com.caimei365.user.mapper.CmBrandLandingMapper">
|
|
-
|
|
|
|
|
|
+
|
|
<resultMap type="com.caimei365.user.model.po.CmBrandLanding" id="CmBrandLandingResult">
|
|
<resultMap type="com.caimei365.user.model.po.CmBrandLanding" id="CmBrandLandingResult">
|
|
<result property="id" column="id" />
|
|
<result property="id" column="id" />
|
|
<result property="authUserId" column="authUserId" />
|
|
<result property="authUserId" column="authUserId" />
|
|
@@ -31,9 +31,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectCmBrandLandingList" parameterType="com.caimei365.user.model.po.CmBrandLanding" resultMap="CmBrandLandingResult">
|
|
<select id="selectCmBrandLandingList" parameterType="com.caimei365.user.model.po.CmBrandLanding" resultMap="CmBrandLandingResult">
|
|
<include refid="selectCmBrandLandingVo"/>
|
|
<include refid="selectCmBrandLandingVo"/>
|
|
- <where>
|
|
|
|
|
|
+ <where> delFlag=0
|
|
<if test="authUserId != null "> and authUserId = #{authUserId}</if>
|
|
<if test="authUserId != null "> and authUserId = #{authUserId}</if>
|
|
- <if test="type != null "> and type = #{type}</if>
|
|
|
|
|
|
+ <if test="type != null and type != ''">
|
|
|
|
+ and type in
|
|
|
|
+ <foreach item="typeIn" collection="type.split(',')" open="(" separator="," close=")">
|
|
|
|
+ #{typeIn}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
<if test="headPcBanner != null and headPcBanner != ''"> and headPcBanner = #{headPcBanner}</if>
|
|
<if test="headPcBanner != null and headPcBanner != ''"> and headPcBanner = #{headPcBanner}</if>
|
|
<if test="headAppBanner != null and headAppBanner != ''"> and headAppBanner = #{headAppBanner}</if>
|
|
<if test="headAppBanner != null and headAppBanner != ''"> and headAppBanner = #{headAppBanner}</if>
|
|
<if test="jumpStatus != null "> and jumpStatus = #{jumpStatus}</if>
|
|
<if test="jumpStatus != null "> and jumpStatus = #{jumpStatus}</if>
|
|
@@ -51,12 +56,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="addTime != null "> and addTime = #{addTime}</if>
|
|
<if test="addTime != null "> and addTime = #{addTime}</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+
|
|
<select id="selectCmBrandLandingById" parameterType="String" resultMap="CmBrandLandingResult">
|
|
<select id="selectCmBrandLandingById" parameterType="String" resultMap="CmBrandLandingResult">
|
|
<include refid="selectCmBrandLandingVo"/>
|
|
<include refid="selectCmBrandLandingVo"/>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+
|
|
<insert id="insertCmBrandLanding" parameterType="com.caimei365.user.model.po.CmBrandLanding" useGeneratedKeys="true" keyProperty="id">
|
|
<insert id="insertCmBrandLanding" parameterType="com.caimei365.user.model.po.CmBrandLanding" useGeneratedKeys="true" keyProperty="id">
|
|
insert into cm_brand_landing
|
|
insert into cm_brand_landing
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -128,9 +133,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteCmBrandLandingByIds" parameterType="String">
|
|
<delete id="deleteCmBrandLandingByIds" parameterType="String">
|
|
- delete from cm_brand_landing where id in
|
|
|
|
|
|
+ delete from cm_brand_landing where id in
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
#{id}
|
|
#{id}
|
|
</foreach>
|
|
</foreach>
|
|
</delete>
|
|
</delete>
|
|
-</mapper>
|
|
|
|
|
|
+</mapper>
|