Commit 07b81366 authored by libin's avatar libin

营地

parent 610e10ac
...@@ -15,10 +15,7 @@ import org.apache.commons.lang3.StringUtils; ...@@ -15,10 +15,7 @@ import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import tk.mybatis.mapper.entity.Example; import tk.mybatis.mapper.entity.Example;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -53,7 +50,11 @@ public class GroupController extends BaseController<GroupBiz, Group> { ...@@ -53,7 +50,11 @@ public class GroupController extends BaseController<GroupBiz, Group> {
return baseBiz.selectByExample(example); return baseBiz.selectByExample(example);
} }
@GetMapping(value = "/list_all")
@ResponseBody
public List<Group> listAll() {
return baseBiz.selectListAll();
}
@RequestMapping(value = "/{id}/user", method = RequestMethod.PUT) @RequestMapping(value = "/{id}/user", method = RequestMethod.PUT)
......
...@@ -95,6 +95,9 @@ public class CampsiteShopPageDTO implements Serializable { ...@@ -95,6 +95,9 @@ public class CampsiteShopPageDTO implements Serializable {
@ApiModelProperty(value = "電話") @ApiModelProperty(value = "電話")
private String phone; private String phone;
@ApiModelProperty("地址")
private String address;
@Override @Override
public boolean equals(Object o) { public boolean equals(Object o) {
if (this == o) { if (this == o) {
......
...@@ -100,4 +100,7 @@ public class CampsiteShopPageVo implements Serializable { ...@@ -100,4 +100,7 @@ public class CampsiteShopPageVo implements Serializable {
@ApiModelProperty(value = "電話") @ApiModelProperty(value = "電話")
private String phone; private String phone;
@ApiModelProperty("地址")
private String address;
} }
...@@ -37,14 +37,14 @@ ...@@ -37,14 +37,14 @@
<!--根据类型查询全部--> <!--根据类型查询全部-->
<select id="findAllCampsiteShopsByType" resultType="com.xxfc.platform.campsite.dto.CampsiteShopPageDTO"> <select id="findAllCampsiteShopsByType" resultType="com.xxfc.platform.campsite.dto.CampsiteShopPageDTO">
select cs.id as `id`,cs.name as `name`,cs.logo as `logo`,cs.url as `url`,cs.province_name as `provinceName`,cs.city_name as `cityName`,cs.service_phone as `phone`, select cs.id as `id`,cs.name as `name`,cs.logo as `logo`,cs.url as `url`,cs.province_name as `provinceName`,cs.city_name as `cityName`,cs.service_phone as `phone`,
cs.longitude as `longitude`,cs.latitude as `latitude`,cs.hot as `hot`,cs.crt_time as `crtTime`,ct.id as `storeId`,ct.name as `storeTypeName` cs.longitude as `longitude`,cs.latitude as `latitude`,`address` as `address`,cs.hot as `hot`,cs.crt_time as `crtTime`,ct.id as `storeId`,ct.name as `storeTypeName`
FROM `campsite_shop_tag` cst FROM `campsite_shop_tag` cst
left JOIN `campsite_shop` cs on cst.shop_id=cs.id left JOIN `campsite_shop` cs on cst.shop_id=cs.id
left JOIN `campsite_tag` ct on cst.tag_id=ct.id left JOIN `campsite_tag` ct on cst.tag_id=ct.id
where cs.sale_state=1 and cs.is_del=0 where cs.sale_state=1 and cs.is_del=0
<if test="typeId!=null"> <if test="typeId!=null">
and cst.tag_id=#{typeId} and cst.tag_id=#{typeId}
</if> </if> order by `crtTime` DESC
</select> </select>
<!--首页查询全部--> <!--首页查询全部-->
......
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