You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
535 B
XML

5 years ago
<?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.bsd.say.mapper.AwardListMapper">
<select id="selectByMaxId" resultType="com.bsd.say.entities.AwardList">
select `id`,`user_id`,`award_type`,`award_name`,`award_url`,`award_number`,`address`,
`create_date_time`,`update_date_time`,`state` from award_list
where id = (SELECT max(id) FROM award_list where state = 1)
</select>
</mapper>