yujian
2019-01-22 88b54772dbcf5ecab1e2316e4e4626ac901b8908
fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgMoneyDetailMapper.xml
@@ -16,13 +16,13 @@
      <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>
@@ -36,8 +36,7 @@
   </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 =
@@ -45,9 +44,11 @@
   </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>
@@ -145,4 +146,11 @@
      </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>