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>