|
|
|
@ -9,13 +9,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="name" column="name" /> |
|
|
|
<result property="sort" column="sort" /> |
|
|
|
<result property="hide" column="hide" /> |
|
|
|
<result property="pagePath" column="page_path" /> |
|
|
|
<result property="picIcon" column="pic_icon" /> |
|
|
|
<result property="creator" column="creator" /> |
|
|
|
<result property="createTime" column="create_time" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectSceneHomeVo"> |
|
|
|
select guid, name, sort, hide, pic_icon, creator, create_time from scene_home |
|
|
|
select guid, name, sort, hide, pic_icon, page_path, creator, create_time from scene_home |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectSceneHomeList" parameterType="SceneHome" resultMap="SceneHomeResult"> |
|
|
|
@ -38,6 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="guid != null ">guid,</if> |
|
|
|
<if test="name != null and name != ''">`name`,</if> |
|
|
|
<if test="picIcon != null and picIcon != ''">pic_icon,</if> |
|
|
|
<if test="pagePath != null and pagePath != ''">page_path,</if> |
|
|
|
<if test="sort != null ">sort,</if> |
|
|
|
<if test="hide != null and hide != ''">`hide`,</if> |
|
|
|
<if test="creator != null and creator != ''">creator,</if> |
|
|
|
@ -47,6 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="guid != null ">#{guid},</if> |
|
|
|
<if test="name != null and name != ''">#{name},</if> |
|
|
|
<if test="picIcon != null and picIcon != ''">#{picIcon},</if> |
|
|
|
<if test="pagePath != null and pagePath != ''">#{pagePath},</if> |
|
|
|
<if test="sort != null ">#{sort},</if> |
|
|
|
<if test="hide != null and hide != ''">#{hide},</if> |
|
|
|
<if test="creator != null and creator != ''">#{creator},</if> |
|
|
|
@ -59,6 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
|
<if test="name != null and name != ''">name = #{name},</if> |
|
|
|
<if test="picIcon != null and picIcon != ''">pic_icon = #{picIcon},</if> |
|
|
|
<if test="pagePath != null and pagePath != ''">page_path = #{pagePath},</if> |
|
|
|
<if test="sort != null ">sort = #{sort},</if> |
|
|
|
<if test="hide != null ">hide = #{hide},</if> |
|
|
|
<if test="creator != null and creator != ''">creator = #{creator},</if> |
|
|
|
@ -86,7 +90,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectSceneHomeListAll" parameterType="SceneHome" resultMap="SceneHomeResult"> |
|
|
|
select cu.guid, cu.name, zd.upload_path from scene_home as cu |
|
|
|
select cu.guid, cu.name, cu.page_path, zd.upload_path from scene_home as cu |
|
|
|
inner join zdxt_file as zd |
|
|
|
on cu.guid = zd.business_id |
|
|
|
where cu.hide = 1 |
|
|
|
|