1.公众号订阅新增type类型
This commit is contained in:
@@ -22,12 +22,21 @@
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_shop_open_id
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<select id="countByOpenId" resultType="com.chaozhanggui.system.cashierservice.entity.TbShopOpenId">
|
||||
select * from tb_shop_open_id
|
||||
where open_id=#{openId}
|
||||
and shop_id=#{shopId}
|
||||
<if test="type != null">and type=#{type}</if>
|
||||
|
||||
limit 1
|
||||
|
||||
</select>
|
||||
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
delete from tb_shop_open_id
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopOpenId" useGeneratedKeys="true">
|
||||
insert into tb_shop_open_id
|
||||
@@ -76,16 +85,16 @@
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopOpenId">
|
||||
update tb_shop_open_id
|
||||
set
|
||||
set
|
||||
shop_id = #{shopId,jdbcType=INTEGER},
|
||||
open_id = #{openId,jdbcType=VARCHAR},
|
||||
status = #{status,jdbcType=TINYINT},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user