| | |
| | | from yeshi_ec_msg_device_read_state where mdrs_id = |
| | | #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <select id="selectByDeviceAndPlatformAndType" resultMap="BaseResultMap"> |
| | | <select id="selectByDeviceAndPlatformAndType" resultMap="BaseResultMap" useCache="false" flushCache="true"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_msg_device_read_state where mdrs_device=#{device} and |
| | | mdrs_platform=#{platform} and mdrs_type=#{type} |
| | | </select> |
| | | <select id="listByDeviceAndPlatform" resultMap="BaseResultMap"> |
| | | |
| | | <select id="selectByDeviceAndPlatformAndTypeForUpdate" resultMap="BaseResultMap" useCache="false" flushCache="true"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_msg_device_read_state where mdrs_device=#{device} and |
| | | mdrs_platform=#{platform} and mdrs_type=#{type} for update |
| | | </select> |
| | | |
| | | |
| | | <select id="listByDeviceAndPlatform" resultMap="BaseResultMap" useCache="false" flushCache="true"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_msg_device_read_state where mdrs_device=#{device} and |
| | |
| | | <if test="unReadCount != null">#{unReadCount,jdbcType=INTEGER},</if> |
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="latestContent != null">#{latestContent,jdbcType=VARCHAR}</if> |
| | | <if test="latestContent != null">#{latestContent,jdbcType=VARCHAR},</if> |
| | | <if test="latestContentTime != null">#{latestContentTime,jdbcType=TIMESTAMP}</if> |
| | | </trim> |
| | | </insert> |