admin
2019-08-26 822e2bc06f9e95f357867d457c004e7bb1f67db8
fanli/src/main/java/com/yeshi/fanli/mapping/integral/IntegralTaskRecordMapper.xml
@@ -190,4 +190,33 @@
           AND TO_DAYS(tr.ir_create_time) = TO_DAYS('${date}') AND tr.ir_create_time <![CDATA[<=]]>'${date}'
   </select>
   
   <select id="listByCidAndUidAndCreateTime"  resultMap="BaseResultMap">
      select * from yeshi_ec_integral_task_record where ir_cid=#{cid}
       <if test="uid!=null">
            and  ir_uid=#{uid}
       </if>
       <if test="minTime!=null">
            and  ir_create_time>=#{minTime}
       </if>
       <if test="maxTime!=null">
            and #{maxTime}>ir_create_time
       </if>
       limit #{start},#{count}
   </select>
   <select id="countByCidAndUidAndCreateTime"  resultType="java.lang.Long">
      select count(ir_id) from yeshi_ec_integral_task_record where ir_cid=#{cid}
      <if test="uid!=null">
            and  ir_uid=#{uid}
       </if>
       <if test="minTime!=null">
            and  ir_create_time>=#{minTime}
       </if>
       <if test="maxTime!=null">
            and #{maxTime}>ir_create_time
       </if>
   </select>
</mapper>