| | |
| | | import com.boying.service.StreetService; |
| | | import com.boying.util.LngLatUtil; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @PostMapping("/findById") |
| | | @GetMapping("/findById") |
| | | public Object findById(Long id,int type) { |
| | | if(type==0){ |
| | | QueryWrapper<StreetReRoad> roadQueryWrapper = new QueryWrapper<>(); |
| | |
| | | } |
| | | } |
| | | |
| | | @PostMapping("/findList") |
| | | @GetMapping("/findList") |
| | | public Object findAll() { |
| | | Map<String,Object> map = new HashMap<>(); |
| | | QueryWrapper<Street> wrapper = new QueryWrapper<>(); |
| | |
| | | wrapper.lambda() |
| | | .eq(Street::getType,1); |
| | | map.put("list2",streetService.list(wrapper)); |
| | | |
| | | return R.ok(map); |
| | | } |
| | | |
| | | @GetMapping("/findList2") |
| | | public Object findAll2() { |
| | | return R.ok(streetService.list()); |
| | | } |
| | | |
| | | @PostMapping("findLogo") |
| | | public Object findLogo(String lng ,String lat) { |
| | | List<StreetLogo> all = streetLogoService.list(); |