12345678910111213 |
- <?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.flyer.foster.mapper.IScoreMapper">
- <select id="isExist" resultType="com.flyer.foster.dto.app.AppScoreRespDTO">
- select app_user_id as appUserId,
- score as score
- from tb_score
- where app_user_id = #{queryDTO.appUserId}
- and action = #{queryDTO.action}
- and DATE_FORMAT(created_time, '%Y-%m-%d') = date_format(now(), '%Y-%m-%d')
- </select>
- </mapper>
|