| | |
| | | <result column="mm_create_time" property="createTime" jdbcType="TIMESTAMP" /> |
| | | <result column="mm_update_time" property="updateTime" jdbcType="TIMESTAMP" /> |
| | | <result column="mm_read" property="read" jdbcType="BOOLEAN" /> |
| | | <association property="user" column="mm_uid"> |
| | | <association property="user" column="mm_uid" javaType="com.yeshi.fanli.entity.bus.user.UserInfo"> |
| | | <id column="mm_uid" property="id" jdbcType="BIGINT" /> |
| | | </association> |
| | | <association property="extract" column="mm_source_id" |
| | | <association property="extract" column="mm_source_id_extract" |
| | | select="com.yeshi.fanli.dao.mybatis.ExtractMapper.selectByPrimaryKey"> |
| | | </association> |
| | | <association property="alipayAccountValid" column="mm_source_id" |
| | | <association property="alipayAccountValid" column="mm_source_id_alipayvalid" |
| | | select="com.yeshi.fanli.dao.mybatis.AlipayAccountValidNormalHistoryMapper.selectByPrimaryKey"> |
| | | </association> |
| | | </resultMap> |
| | |
| | | </select> |
| | | |
| | | |
| | | <select id="selectBySourceIdAndMsgType" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | <select id="selectBySourceIdAndMsgType" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_msg_money where mm_source_id = |
| | |
| | | </select> |
| | | |
| | | |
| | | <select id="listByUid" resultMap="BaseResultMap" parameterType="java.lang.Long"> |
| | | <select id="listByUid" resultMap="BaseResultMap" > |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | <include refid="Base_Column_List" />, |
| | | mm_source_id as mm_source_id_extract, |
| | | mm_source_id as mm_source_id_alipayvalid |
| | | from yeshi_ec_msg_money where mm_uid = #{uid,jdbcType=BIGINT} order by |
| | | mm_update_time desc limit #{start},#{count} |
| | | </select> |
| | |
| | | </set> |
| | | where mm_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | |
| | | <update id="setMsgReadByUid" parameterType="java.lang.Long"> |
| | | update |
| | | yeshi_ec_msg_money set mm_read=1 where mm_uid=#{0} |
| | | </update> |
| | | |
| | | </mapper> |