44323
2024-05-21 25743ef4cfb9da0be8d3e488c93f5429ffd02f8a
ruoyi-service/ruoyi-study/src/main/resources/mapper/sutdy/TIntegralRecordMapper.xml
@@ -2,6 +2,16 @@
<!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>
    </select>
</mapper>