| | |
| | | </if> |
| | | </where> |
| | | ORDER BY rec.operateDt DESC |
| | | <if test="pageCurr != null and pageSize != null"> |
| | | LIMIT ${pageCurr}, ${pageSize} |
| | | </if> |
| | | <trim prefix="limit " > |
| | | <if test="start != null and count != null"> |
| | | #{start,javaType=Integer,jdbcType=INTEGER}, #{count,javaType=Integer,jdbcType=INTEGER} |
| | | </if> |
| | | </trim> |
| | | </select> |
| | | |
| | | <select id="selectByCardId" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from se_recharge |
| | | where cardId = #{cardId,jdbcType=BIGINT} |
| | | ORDER BY operateDt DESC |
| | | limit 0,1 |
| | | </select> |
| | | </mapper> |