feat: 完善高德地图地点搜索功能
This commit is contained in:
@@ -32,9 +32,12 @@ public class HrmTravelReqController extends BaseController {
|
||||
private final IHrmTravelReqService service;
|
||||
private final IHrmTravelReqService hrmTravelReqService;
|
||||
|
||||
@Value("${fad.amap.key}")
|
||||
@Value("${fad.amap.webkey}")
|
||||
private String amapKey;
|
||||
|
||||
@Value("${fad.amap.securitykey}")
|
||||
private String amapSecurityKey;
|
||||
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<HrmTravelReqVo> list(HrmTravelReqBo bo, PageQuery pageQuery) {
|
||||
return service.queryPageList(bo, pageQuery);
|
||||
@@ -66,10 +69,17 @@ public class HrmTravelReqController extends BaseController {
|
||||
public R<Void> earlyEnd(@PathVariable Long bizId) {
|
||||
return toAjax(hrmTravelReqService.earlyEnd(bizId));
|
||||
}
|
||||
|
||||
@GetMapping("/amapKey")
|
||||
public R<String> getAmapKey() {
|
||||
return R.ok(amapKey);
|
||||
}
|
||||
|
||||
@GetMapping("/amapSecurityKey")
|
||||
public R<String> getAmapSecurityKey() {
|
||||
return R.ok(amapSecurityKey);
|
||||
}
|
||||
|
||||
@GetMapping("/all")
|
||||
public R<List<HrmTravelReqVo>> all(HrmTravelReqBo bo) {
|
||||
return R.ok(service.queryList(bo));
|
||||
|
||||
Reference in New Issue
Block a user