<?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="com.ruoyi.study.mapper.TIntegralRecordMapper">
|
|
<select id="integralDetail" resultType="com.ruoyi.study.domain.TIntegralRecord">
|
SELECT *
|
FROM t_integral_record
|
<where>
|
<if test="time != null and time != ''">
|
DATE_FORMAT(createTime, '%Y-%m') = #{time}
|
</if>
|
<if test="userId != null and userId != ''">
|
and userId = #{userId}
|
</if>
|
</where>
|
order by createTime desc
|
</select>
|
</mapper>
|