ScoreMapper.xml 586 B

12345678910111213
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.flyer.foster.mapper.IScoreMapper">
  4. <select id="isExist" resultType="com.flyer.foster.dto.app.AppScoreRespDTO">
  5. select app_user_id as appUserId,
  6. score as score
  7. from tb_score
  8. where app_user_id = #{queryDTO.appUserId}
  9. and action = #{queryDTO.action}
  10. and DATE_FORMAT(created_time, '%Y-%m-%d') = date_format(now(), '%Y-%m-%d')
  11. </select>
  12. </mapper>