|
@@ -1,19 +1,20 @@
|
|
package com.ruoyi.visitor.controller;
|
|
package com.ruoyi.visitor.controller;
|
|
|
|
|
|
import com.ruoyi.asset.domain.TbAssetInformation;
|
|
import com.ruoyi.asset.domain.TbAssetInformation;
|
|
|
|
+import com.ruoyi.asset.domain.dto.TbLocationDTO;
|
|
import com.ruoyi.asset.service.ITbAssetInformationService;
|
|
import com.ruoyi.asset.service.ITbAssetInformationService;
|
|
import com.ruoyi.asset.service.ITbLocationService;
|
|
import com.ruoyi.asset.service.ITbLocationService;
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
|
+import java.util.ArrayList;
|
|
|
|
+import java.util.Arrays;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("/visitor")
|
|
@RequestMapping("/visitor")
|
|
@@ -36,11 +37,14 @@ public class VController extends BaseController {
|
|
/*
|
|
/*
|
|
* 接口:/visitor/location/{number}
|
|
* 接口:/visitor/location/{number}
|
|
* */
|
|
* */
|
|
- @GetMapping(value = "/location/{number}")
|
|
|
|
- public AjaxResult getLocationByNumber(@PathVariable("number") String number)
|
|
|
|
|
|
+ @PostMapping(value = "/location/list")
|
|
|
|
+ public AjaxResult getLocationByNumber(@RequestBody TbLocationDTO tbLocationDTO)
|
|
{
|
|
{
|
|
- return success(locationService.selectTbLocationByNumber(number));
|
|
|
|
|
|
+ System.out.println(tbLocationDTO.getNumbers());
|
|
|
|
+ return success(locationService.selectTbLocationListByNumbers(tbLocationDTO.getNumbers()));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|