|
@@ -12,11 +12,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="jump_url_type" column="jumpUrlType" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
+ <result property="weight" column="weight" />
|
|
|
<result property="status" column="status" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCarouselChartInfoVo">
|
|
|
- select id, picture_name, file_id ,jump_url, jump_url_type, create_time, update_time, status from carousel_chart_info
|
|
|
+ select id, picture_name, file_id ,jump_url, jump_url_type, create_time, update_time, weight, status from carousel_chart_info
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectCarouselChartInfoList" resultType="com.miaxis.carousel.vo.CarouselChartInfoVo">
|
|
@@ -27,6 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
ci.jump_url as jumpUrl,
|
|
|
ci.jump_url_type as jumpUrlType,
|
|
|
f.file_url as fileUrl,
|
|
|
+ ci.weight,
|
|
|
ci.status
|
|
|
from carousel_chart_info ci
|
|
|
LEFT JOIN file_info f on f.file_id = ci.file_id
|
|
@@ -35,6 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="fileId != null "> and file_id = #{fileId}</if>
|
|
|
<if test="status != null "> and status = #{status}</if>
|
|
|
</where>
|
|
|
+ ORDER BY ci.weight DESC
|
|
|
</select>
|
|
|
|
|
|
<select id="getCarouselChartById" resultType="com.miaxis.carousel.vo.CarouselChartInfoVo">
|
|
@@ -45,6 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
ci.jump_url as jumpUrl,
|
|
|
ci.jump_url_type as jumpUrlType,
|
|
|
f.file_url as fileUrl,
|
|
|
+ ci.weight,
|
|
|
ci.status
|
|
|
from carousel_chart_info ci
|
|
|
LEFT JOIN file_info f on f.file_id = ci.file_id
|