Commit 243436d4 authored by 周健威's avatar 周健威

Merge remote-tracking branch 'origin/dev' into dev

parents ff786cb9 6d12fea3
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<mapper namespace="com.xxfc.platform.campsite.mapper.CampsiteShopMapper"> <mapper namespace="com.xxfc.platform.campsite.mapper.CampsiteShopMapper">
<!-- 可根据自己的需求,是否要使用 --> <!-- 可根据自己的需求,是否要使用 -->
<resultMap type="com.xxfc.platform.campsite.entity.CampsiteShop" id="campsiteShopMap"> <resultMap type="com.xxfc.platform.campsite.entity.CampsiteShop" id="campsiteShopMap">
<result property="id" column="id"/> <result property="id" column="id"/>
<result property="name" column="name"/> <result property="name" column="name"/>
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
and cst.tag_id=#{typeId} and cst.tag_id=#{typeId}
</if> </if>
<if test="proviceCode != null"> <if test="proviceCode != null">
and cs.`province`=#{proviceCode} and cs.`province`=#{proviceCode}
</if> </if>
<if test="cityCode != null"> <if test="cityCode != null">
and cs.`city`=#{cityCode} and cs.`city`=#{cityCode}
...@@ -101,27 +101,28 @@ ...@@ -101,27 +101,28 @@
<!--根据id查询详情--> <!--根据id查询详情-->
<select id="findCampsiteShopDetailById" resultType="com.xxfc.platform.campsite.dto.CampsiteShopDetailDTO"> <select id="findCampsiteShopDetailById" resultType="com.xxfc.platform.campsite.dto.CampsiteShopDetailDTO">
select `name` as `name`,`province_name` as `provinceName`,`city_name` as `cityName`,`address` as `address`,`service_phone` as `phone`,`logo` as `logo`,`poster_background` as `posterBackground` , select `name` as `name`,`province_name` as `provinceName`,`city_name` as `cityName`,`address` as `address`,`service_phone` as `phone`,`logo` as `logo`,`poster_background` as `posterBackground` ,
`content` as `content`,`configure` as `configure`,`longitude` as `longitude`,`latitude` as `latitude`,`alt`,cs.img_title as `imgTitle`,cs.img_keyword as `imgKeyword`,cs.img_desc as `imgDesc` from `campsite_shop` where `id`=#{id} `content` as `content`,`configure` as `configure`,`longitude` as `longitude`,`latitude` as `latitude`,`alt`,img_title as `imgTitle`,img_keyword as `imgKeyword`,img_desc as `imgDesc` from `campsite_shop` where `id`=#{id}
</select> </select>
<!--根据查询条件分页查询--> <!--根据查询条件分页查询-->
<select id="findAllCampsiteShops" parameterType="com.xxfc.platform.campsite.dto.CampsiteShopAdminFindDTO" resultType="com.xxfc.platform.campsite.dto.CampsiteShopAdminPageDTO"> <select id="findAllCampsiteShops" parameterType="com.xxfc.platform.campsite.dto.CampsiteShopAdminFindDTO"
SELECT `id`,`name`,`hot`,`crt_time` as `crtTime`,`start_time` as `shopStartTime`,`sale_state` as resultType="com.xxfc.platform.campsite.dto.CampsiteShopAdminPageDTO">
SELECT `id`,`name`,`hot`,`crt_time` as `crtTime`,`start_time` as `shopStartTime`,`sale_state` as
`saleState` FROM `campsite_shop` `saleState` FROM `campsite_shop`
where `is_del`=0 where `is_del`=0
<if test="startTime != null and endTime!=null"> <if test="startTime != null and endTime!=null">
and start_time between #{startTime} and #{endTime} and start_time between #{startTime} and #{endTime}
</if> </if>
<if test="startTime != null and endTime==null"> <if test="startTime != null and endTime==null">
and <![CDATA[ start_time >= #{startTime} ]]> and <![CDATA[ start_time >= #{startTime} ]]>
</if> </if>
<if test="endTime != null and startTime==null"> <if test="endTime != null and startTime==null">
and <![CDATA[ start_time <= #{endTime} ]]> and <![CDATA[ start_time <= #{endTime} ]]>
</if> </if>
<if test="name != null and name != ''"> <if test="name != null and name != ''">
and `name` like concat('%',#{name},'%') and `name` like concat('%',#{name},'%')
</if> </if>
ORDER BY `hot` DESC ORDER BY `hot` DESC
</select> </select>
<!--根据id更新营地状态--> <!--根据id更新营地状态-->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment