| | |
| | | import com.dsh.guns.modular.system.service.*; |
| | | import com.dsh.guns.modular.system.util.HttpRequestUtil; |
| | | import com.dsh.guns.modular.system.util.ResultUtil; |
| | | |
| | | import groovyjarjarpicocli.CommandLine; |
| | | import net.bytebuddy.asm.Advice; |
| | | import org.aspectj.weaver.ast.Var; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | private SiteLockClient siteLockClient; |
| | | |
| | | |
| | | /** |
| | | * 选择市 返回场地列表 |
| | | */ |
| | | @ResponseBody |
| | | @RequestMapping(value = "/getSiteByCity") |
| | | public List<TSite> getSiteByCity(String oneId) { |
| | | if (oneId.equals("")){ |
| | | return siteService.list(new QueryWrapper<TSite>()); |
| | | } |
| | | return siteService.list(new QueryWrapper<TSite>().eq("cityCode",oneId)); |
| | | } |
| | | /** |
| | | * 跳转到场地管理首页 |
| | | */ |
| | |
| | | Region name = regionService.getOne(new QueryWrapper<Region>().eq("name", province)); |
| | | return regionService.list(new QueryWrapper<Region>().eq("parent_id", name.getId())); |
| | | } |
| | | |
| | | /** |
| | | * 添加场地管理 |
| | | */ |
| | |
| | | return ResultUtil.success("添加成功"); |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | |
| | | HashMap<String, String> map = new HashMap<>(); |
| | | map.put("sign","0DB011836143EEE2C2E072967C9F4E4B"); |
| | | map.put("name","测试场地"); |
| | | map.put("short_name","测试场地"); |
| | | map.put("location","成都"); |
| | | map.put("address","成都地址"); |
| | | map.put("telephone","17888888888"); |
| | | map.put("linkman","成都"); |
| | | map.put("business_time","[{\"start_time\":\"00:00\",\"close_time\":\"23:59\"}]"); |
| | | map.put("logo","https://we-park-life.oss-cn-beijing.aliyuncs.com/img/f325d449f2634855ad1fb0cc796465e8.png"); |
| | | map.put("remark","场地介绍"); |
| | | map.put("lat","30.670124"); |
| | | map.put("lng","103.929497"); |
| | | String s = HttpRequestUtil.postRequest("https://try.daowepark.com/v7/user_api/general/addSpace", map); |
| | | System.out.println(s); |
| | | } |
| | | |
| | | /** |
| | | * 编辑场地管理 |