|
@@ -3,6 +3,7 @@
|
|
<mapper namespace="com.slodon.b2b2c.dao.write.seller.EnquiryReceiveMailSettingWriteMapper">
|
|
<mapper namespace="com.slodon.b2b2c.dao.write.seller.EnquiryReceiveMailSettingWriteMapper">
|
|
<resultMap id="resultMap" type="com.slodon.b2b2c.seller.pojo.EnquiryReceiveMailSetting">
|
|
<resultMap id="resultMap" type="com.slodon.b2b2c.seller.pojo.EnquiryReceiveMailSetting">
|
|
<id column="id" property="id" />
|
|
<id column="id" property="id" />
|
|
|
|
+ <result column="channel" property="channel" />
|
|
<result column="store_id" property="storeId" />
|
|
<result column="store_id" property="storeId" />
|
|
<result column="email" property="email" />
|
|
<result column="email" property="email" />
|
|
<result column="phone" property="phone" />
|
|
<result column="phone" property="phone" />
|
|
@@ -13,6 +14,9 @@
|
|
<!--除主键外的所有字段,用于插入操作-->
|
|
<!--除主键外的所有字段,用于插入操作-->
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
<trim suffixOverrides=",">
|
|
<trim suffixOverrides=",">
|
|
|
|
+ <if test="channel != null">
|
|
|
|
+ `channel`,
|
|
|
|
+ </if>
|
|
<if test="storeId != null">
|
|
<if test="storeId != null">
|
|
`store_id`,
|
|
`store_id`,
|
|
</if>
|
|
</if>
|
|
@@ -41,7 +45,27 @@
|
|
<sql id="whereCondition">
|
|
<sql id="whereCondition">
|
|
<if test="example != null">
|
|
<if test="example != null">
|
|
<trim prefix="WHERE" prefixOverrides="AND|OR">
|
|
<trim prefix="WHERE" prefixOverrides="AND|OR">
|
|
-
|
|
|
|
|
|
+ <if test="example.channel != null">
|
|
|
|
+ AND `channel` = #{example.channel}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="example.storeId != null">
|
|
|
|
+ AND `store_id` = #{example.storeId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="example.emailLike != null">
|
|
|
|
+ AND `email` like concat('%',#{example.emailLike},'%')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="example.email != null">
|
|
|
|
+ AND `email` = #{example.email}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="example.phoneLike != null">
|
|
|
|
+ AND `phone` like concat('%',#{example.phoneLike},'%')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="example.phone != null">
|
|
|
|
+ AND `phone` = #{example.phone}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="example.idNotEqualTo != null">
|
|
|
|
+ AND `id` != #{example.idNotEqualTo}
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</if>
|
|
</if>
|
|
</sql>
|
|
</sql>
|
|
@@ -167,6 +191,9 @@
|
|
)
|
|
)
|
|
VALUES(
|
|
VALUES(
|
|
<trim suffixOverrides=",">
|
|
<trim suffixOverrides=",">
|
|
|
|
+ <if test="channel != null">
|
|
|
|
+ #{channel},
|
|
|
|
+ </if>
|
|
<if test="storeId != null">
|
|
<if test="storeId != null">
|
|
#{storeId},
|
|
#{storeId},
|
|
</if>
|
|
</if>
|
|
@@ -192,6 +219,9 @@
|
|
<update id="updateByExampleSelective">
|
|
<update id="updateByExampleSelective">
|
|
UPDATE `enquiry_receive_mail_setting`
|
|
UPDATE `enquiry_receive_mail_setting`
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
+ <if test="record.channel != null">
|
|
|
|
+ `channel` = #{record.channel},
|
|
|
|
+ </if>
|
|
<if test="record.storeId != null">
|
|
<if test="record.storeId != null">
|
|
`store_id` = #{record.storeId},
|
|
`store_id` = #{record.storeId},
|
|
</if>
|
|
</if>
|
|
@@ -217,6 +247,9 @@
|
|
<update id="updateByPrimaryKeySelective">
|
|
<update id="updateByPrimaryKeySelective">
|
|
UPDATE `enquiry_receive_mail_setting`
|
|
UPDATE `enquiry_receive_mail_setting`
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
+ <if test="channel != null">
|
|
|
|
+ `channel` = #{channel},
|
|
|
|
+ </if>
|
|
<if test="storeId != null">
|
|
<if test="storeId != null">
|
|
`store_id` = #{storeId},
|
|
`store_id` = #{storeId},
|
|
</if>
|
|
</if>
|