|
@@ -7,6 +7,7 @@
|
|
<resultMap type="ZhjqAppCarousel" id="ZhjqAppCarouselResult">
|
|
<resultMap type="ZhjqAppCarousel" id="ZhjqAppCarouselResult">
|
|
<result property="id" column="id"/>
|
|
<result property="id" column="id"/>
|
|
<result property="appName" column="app_name"/>
|
|
<result property="appName" column="app_name"/>
|
|
|
|
+ <result property="sort" column="sort"/>
|
|
<result property="appUrl" column="app_url"/>
|
|
<result property="appUrl" column="app_url"/>
|
|
<result property="createBy" column="create_by"/>
|
|
<result property="createBy" column="create_by"/>
|
|
<result property="createName" column="create_name"/>
|
|
<result property="createName" column="create_name"/>
|
|
@@ -20,12 +21,14 @@
|
|
<resultMap type="ZhjqAppCarouselDto" id="ZhjqAppCarouselDtoResult">
|
|
<resultMap type="ZhjqAppCarouselDto" id="ZhjqAppCarouselDtoResult">
|
|
<result property="id" column="id"/>
|
|
<result property="id" column="id"/>
|
|
<result property="appName" column="app_name"/>
|
|
<result property="appName" column="app_name"/>
|
|
|
|
+ <result property="sort" column="sort"/>
|
|
<result property="appUrl" column="app_url"/>
|
|
<result property="appUrl" column="app_url"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectZhjqAppCarouselVo">
|
|
<sql id="selectZhjqAppCarouselVo">
|
|
select id,
|
|
select id,
|
|
app_name,
|
|
app_name,
|
|
|
|
+ sort,
|
|
app_url,
|
|
app_url,
|
|
create_by,
|
|
create_by,
|
|
create_name,
|
|
create_name,
|
|
@@ -67,81 +70,46 @@
|
|
<insert id="insertZhjqAppCarousel" parameterType="ZhjqAppCarousel">
|
|
<insert id="insertZhjqAppCarousel" parameterType="ZhjqAppCarousel">
|
|
insert into zhjq_app_carousel
|
|
insert into zhjq_app_carousel
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
- <if test="id != null">id,
|
|
|
|
- </if>
|
|
|
|
- <if test="appName != null">app_name,
|
|
|
|
- </if>
|
|
|
|
- <if test="appUrl != null">app_url,
|
|
|
|
- </if>
|
|
|
|
- <if test="createBy != null">create_by,
|
|
|
|
- </if>
|
|
|
|
- <if test="createName != null">create_name,
|
|
|
|
- </if>
|
|
|
|
- <if test="createTime != null">create_time,
|
|
|
|
- </if>
|
|
|
|
- <if test="updateBy != null">update_by,
|
|
|
|
- </if>
|
|
|
|
- <if test="updateName != null">update_name,
|
|
|
|
- </if>
|
|
|
|
- <if test="updateTime != null">update_time,
|
|
|
|
- </if>
|
|
|
|
- <if test="dataStatus != null">data_status,
|
|
|
|
- </if>
|
|
|
|
|
|
+ <if test="id != null">id,</if>
|
|
|
|
+ <if test="appName != null">app_name,</if>
|
|
|
|
+ <if test="sort != null">sort,</if>
|
|
|
|
+ <if test="appUrl != null">app_url,</if>
|
|
|
|
+ <if test="createBy != null">create_by,</if>
|
|
|
|
+ <if test="createName != null">create_name,</if>
|
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
|
+ <if test="updateBy != null">update_by,</if>
|
|
|
|
+ <if test="updateName != null">update_name,</if>
|
|
|
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
|
+ <if test="dataStatus != null">data_status,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
- <if test="id != null">#{id},
|
|
|
|
- </if>
|
|
|
|
- <if test="appName != null">#{appName},
|
|
|
|
- </if>
|
|
|
|
- <if test="appUrl != null">#{appUrl},
|
|
|
|
- </if>
|
|
|
|
- <if test="createBy != null">#{createBy},
|
|
|
|
- </if>
|
|
|
|
- <if test="createName != null">#{createName},
|
|
|
|
- </if>
|
|
|
|
- <if test="createTime != null">#{createTime},
|
|
|
|
- </if>
|
|
|
|
- <if test="updateBy != null">#{updateBy},
|
|
|
|
- </if>
|
|
|
|
- <if test="updateName != null">#{updateName},
|
|
|
|
- </if>
|
|
|
|
- <if test="updateTime != null">#{updateTime},
|
|
|
|
- </if>
|
|
|
|
- <if test="dataStatus != null">#{dataStatus},
|
|
|
|
- </if>
|
|
|
|
|
|
+ <if test="id != null">#{id},</if>
|
|
|
|
+ <if test="appName != null">#{appName},</if>
|
|
|
|
+ <if test="sort != null">#{sort},</if>
|
|
|
|
+ <if test="appUrl != null">#{appUrl},</if>
|
|
|
|
+ <if test="createBy != null">#{createBy},</if>
|
|
|
|
+ <if test="createName != null">#{createName},</if>
|
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
|
+ <if test="updateBy != null">#{updateBy},</if>
|
|
|
|
+ <if test="updateName != null">#{updateName},</if>
|
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
|
+ <if test="dataStatus != null">#{dataStatus},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<update id="updateZhjqAppCarousel" parameterType="ZhjqAppCarousel">
|
|
<update id="updateZhjqAppCarousel" parameterType="ZhjqAppCarousel">
|
|
update zhjq_app_carousel
|
|
update zhjq_app_carousel
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
- <if test="appName != null">app_name =
|
|
|
|
- #{appName},
|
|
|
|
- </if>
|
|
|
|
- <if test="appUrl != null">app_url =
|
|
|
|
- #{appUrl},
|
|
|
|
- </if>
|
|
|
|
- <if test="createBy != null">create_by =
|
|
|
|
- #{createBy},
|
|
|
|
- </if>
|
|
|
|
- <if test="createName != null">create_name =
|
|
|
|
- #{createName},
|
|
|
|
- </if>
|
|
|
|
- <if test="createTime != null">create_time =
|
|
|
|
- #{createTime},
|
|
|
|
- </if>
|
|
|
|
- <if test="updateBy != null">update_by =
|
|
|
|
- #{updateBy},
|
|
|
|
- </if>
|
|
|
|
- <if test="updateName != null">update_name =
|
|
|
|
- #{updateName},
|
|
|
|
- </if>
|
|
|
|
- <if test="updateTime != null">update_time =
|
|
|
|
- #{updateTime},
|
|
|
|
- </if>
|
|
|
|
- <if test="dataStatus != null">data_status =
|
|
|
|
- #{dataStatus},
|
|
|
|
- </if>
|
|
|
|
|
|
+ <if test="appName != null">app_name = #{appName},</if>
|
|
|
|
+ <if test="sort != null">sort = #{sort},</if>
|
|
|
|
+ <if test="appUrl != null">app_url = #{appUrl},</if>
|
|
|
|
+ <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
+ <if test="createName != null">create_name = #{createName},</if>
|
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
+ <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
+ <if test="updateName != null">update_name = #{updateName},</if>
|
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
+ <if test="dataStatus != null">data_status = #{dataStatus},</if>
|
|
</trim>
|
|
</trim>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|
|
@@ -162,9 +130,10 @@
|
|
<select id="selectcarouselList" parameterType="ZhjqAppCarouselDto" resultMap="ZhjqAppCarouselDtoResult">
|
|
<select id="selectcarouselList" parameterType="ZhjqAppCarouselDto" resultMap="ZhjqAppCarouselDtoResult">
|
|
select id,
|
|
select id,
|
|
app_name,
|
|
app_name,
|
|
|
|
+ sort,
|
|
app_url
|
|
app_url
|
|
from zhjq_app_carousel
|
|
from zhjq_app_carousel
|
|
where data_status = 1
|
|
where data_status = 1
|
|
- order by id
|
|
|
|
|
|
+ order by sort asc
|
|
</select>
|
|
</select>
|
|
</mapper>
|
|
</mapper>
|