|
|
@ -12,6 +12,7 @@ |
|
|
<result property="type" column="type"/> |
|
|
<result property="type" column="type"/> |
|
|
<result property="hide" column="hide"/> |
|
|
<result property="hide" column="hide"/> |
|
|
<result property="level" column="level"/> |
|
|
<result property="level" column="level"/> |
|
|
|
|
|
<result property="sort" column="sort"/> |
|
|
<result property="creator" column="creator"/> |
|
|
<result property="creator" column="creator"/> |
|
|
<result property="createTime" column="create_time"/> |
|
|
<result property="createTime" column="create_time"/> |
|
|
<result property="updateBy" column="update_by"/> |
|
|
<result property="updateBy" column="update_by"/> |
|
|
@ -21,6 +22,7 @@ |
|
|
<sql id="selectSceneMedalVo"> |
|
|
<sql id="selectSceneMedalVo"> |
|
|
select guid, |
|
|
select guid, |
|
|
name, |
|
|
name, |
|
|
|
|
|
sort, |
|
|
icon_path, |
|
|
icon_path, |
|
|
achieve_icon_path, |
|
|
achieve_icon_path, |
|
|
scene_id, |
|
|
scene_id, |
|
|
@ -43,6 +45,7 @@ |
|
|
<if test="creator != null and creator != ''">and creator = #{creator}</if> |
|
|
<if test="creator != null and creator != ''">and creator = #{creator}</if> |
|
|
<if test="sceneId != null and sceneId != ''">and scene_id = #{sceneId}</if> |
|
|
<if test="sceneId != null and sceneId != ''">and scene_id = #{sceneId}</if> |
|
|
</where> |
|
|
</where> |
|
|
|
|
|
order by sort ASC |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="selectSceneMedalById" parameterType="String" resultMap="SceneMedalResult"> |
|
|
<select id="selectSceneMedalById" parameterType="String" resultMap="SceneMedalResult"> |
|
|
@ -61,6 +64,7 @@ |
|
|
<if test="type != null and type != ''">type,</if> |
|
|
<if test="type != null and type != ''">type,</if> |
|
|
<if test="hide != null">hide,</if> |
|
|
<if test="hide != null">hide,</if> |
|
|
<if test="level != null">level,</if> |
|
|
<if test="level != null">level,</if> |
|
|
|
|
|
<if test="sort != null">sort,</if> |
|
|
<if test="creator != null and creator != ''">creator,</if> |
|
|
<if test="creator != null and creator != ''">creator,</if> |
|
|
<if test="createTime != null ">create_time,</if> |
|
|
<if test="createTime != null ">create_time,</if> |
|
|
<if test="updateBy != null and updateBy != ''">update_by,</if> |
|
|
<if test="updateBy != null and updateBy != ''">update_by,</if> |
|
|
@ -75,6 +79,7 @@ |
|
|
<if test="type != null and type != ''">#{type},</if> |
|
|
<if test="type != null and type != ''">#{type},</if> |
|
|
<if test="hide != null">#{hide},</if> |
|
|
<if test="hide != null">#{hide},</if> |
|
|
<if test="level != null">#{level},</if> |
|
|
<if test="level != null">#{level},</if> |
|
|
|
|
|
<if test="sort != null">#{sort},</if> |
|
|
<if test="creator != null and creator != ''">#{creator},</if> |
|
|
<if test="creator != null and creator != ''">#{creator},</if> |
|
|
<if test="createTime != null ">#{createTime},</if> |
|
|
<if test="createTime != null ">#{createTime},</if> |
|
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if> |
|
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if> |
|
|
@ -92,6 +97,7 @@ |
|
|
<if test="type != null and type != ''">type = #{type},</if> |
|
|
<if test="type != null and type != ''">type = #{type},</if> |
|
|
<if test="hide != null ">hide = #{hide},</if> |
|
|
<if test="hide != null ">hide = #{hide},</if> |
|
|
<if test="level != null">level = #{level},</if> |
|
|
<if test="level != null">level = #{level},</if> |
|
|
|
|
|
<if test="sort != null">sort = #{sort},</if> |
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
|
|
<if test="updateTime != null ">update_time = #{updateTime},</if> |
|
|
<if test="updateTime != null ">update_time = #{updateTime},</if> |
|
|
</trim> |
|
|
</trim> |
|
|
@ -118,6 +124,14 @@ |
|
|
</foreach> |
|
|
</foreach> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<select id="selectMinSort" resultType="INTEGER"> |
|
|
|
|
|
select MAX(sort) as sort from scene_medal where type = #{type} |
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<select id="selectLastSort" resultMap="SceneMedalResult"> |
|
|
|
|
|
SELECT guid, sort FROM scene_medal WHERE sort = (SELECT MAX(sort) FROM scene_medal where sort < #{sort} and type = #{type}); |
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
<!-- <select id="selectSceneMedalListAll" parameterType="SceneMedal" resultMap="SceneMedalResult">--> |
|
|
<!-- <select id="selectSceneMedalListAll" parameterType="SceneMedal" resultMap="SceneMedalResult">--> |
|
|
<!-- select cu.guid, cu.name, zd.upload_path--> |
|
|
<!-- select cu.guid, cu.name, zd.upload_path--> |
|
|
<!-- from scene_medal as cu--> |
|
|
<!-- from scene_medal as cu--> |
|
|
|