| 12345678910111213141516171819202122232425262728293031323334 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="cn.reghao.tnb.content.app.geo.db.mapper.MallReplyMapper">
- <insert id="save" useGeneratedKeys="true" keyProperty="id">
- insert into geo_mall_reply
- (`id`,`deleted`,`create_time`,`update_time`,`item_type`,`item_id`,`reply_id`,`reply_content`,`append_content`,`extra`,`username`,`avatar_url`)
- values
- (#{id},#{deleted},#{createTime},#{updateTime},#{itemType},#{itemId},#{replyId},#{replyContent},#{appendContent},#{extra},#{username},#{avatarUrl})
- </insert>
- <select id="findAll" resultType="cn.reghao.tnb.content.app.geo.model.po.MallReply">
- select *
- from geo_mall_reply
- limit 1000
- </select>
- <select id="findByItemType" resultType="cn.reghao.tnb.content.app.geo.model.po.MallReply">
- select *
- from geo_mall_reply
- where item_type=#{itemType}
- order by id asc
- limit 500
- </select>
- <select id="findByReplyId" resultType="cn.reghao.tnb.content.app.geo.model.po.MallReply">
- select *
- from geo_mall_reply
- where reply_id=#{reply_id}
- </select>
- <select id="findByItemId" resultType="cn.reghao.tnb.content.app.geo.model.po.MallReply">
- select *
- from geo_mall_reply
- where item_id=#{itemId}
- </select>
- </mapper>
|