12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?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.api.games.dao.PushLogMapper">
- <resultMap id="BaseResultMap" type="com.api.games.model.PushLog">
- <!--
- WARNING - @mbg.generated
- -->
- <id column="id" jdbcType="BIGINT" property="id" />
- <result column="msg_id" jdbcType="VARCHAR" property="msgId" />
- <result column="push_time" jdbcType="TIMESTAMP" property="pushTime" />
- <result column="uid" jdbcType="BIGINT" property="uid" />
- <result column="alias" jdbcType="VARCHAR" property="alias" />
- <result column="type" jdbcType="INTEGER" property="type" />
- <result column="status" jdbcType="INTEGER" property="status" />
- <result column="device_id" jdbcType="VARCHAR" property="deviceId" />
- </resultMap>
- <delete id="deleteByUid">
- delete from push_log where uid = #{uid}
- </delete>
- <select id="listByGamePlayId" resultMap="BaseResultMap">
- select * from push_log where msg_id = #{id}
- </select>
- <select id="list" resultType="com.api.common.mybatis.ResultMap">
- select * from push_log
- left join sys_user su on (push_log.uid = su.id)
- where 1=1
- <if test="params.nickname!=null and params.nickname!=''">
- and su.nickname = #{params.nickname}
- </if>
- <if test="params.pushTime!=null and params.pushTime!=''">
- and date(push_time) = #{params.pushTime}
- </if>
- <if test="params.type!=null and params.type!=''">
- and push_log.type = #{params.type}
- </if>
- </select>
- </mapper>
|