| | |
| | | |
| | | @ApiOperation("链接-->获取样品名称") |
| | | @GetMapping("/material") |
| | | @AuthHandler |
| | | public Result<?> getMaterialIdAndName(@RequestHeader("link") String link) { |
| | | String redisLink = RedisUtil.get("viewId").toString(); |
| | | if (linkBasicInformationService.isIfViewUUID(redisLink)){ |
| | |
| | | |
| | | @ApiOperation("链接-->获取规格型号") |
| | | @GetMapping("/specification") |
| | | @AuthHandler |
| | | public Result<?> getSpecificationIdAndName(@RequestHeader("link") String link, String materialId) { |
| | | String redisLink = RedisUtil.get("viewId").toString(); |
| | | if (linkBasicInformationService.isIfViewUUID(redisLink)){ |
| | |
| | | @ApiImplicitParam(name = "modelId", value = "型号id", dataTypeClass = Integer.class, required = true) |
| | | }) |
| | | @GetMapping("/chooseProject") |
| | | @AuthHandler |
| | | public Result<?> chooseProject(@RequestHeader("link") String link, Integer modelId) { |
| | | String redisLink = RedisUtil.get("viewId").toString(); |
| | | if (linkBasicInformationService.isIfViewUUID(redisLink)){ |
| | |
| | | |
| | | @ApiOperation("链接-->添加委托报检申请单") |
| | | @PostMapping("/addInspection") |
| | | @AuthHandler |
| | | public Result<?> addLinkBasicInformation(@RequestHeader("link") String link, @RequestBody LinkBasicInformation linkBasicInformation) { |
| | | String redisLink = RedisUtil.get("viewId").toString(); |
| | | if (linkBasicInformationService.isIfViewUUID(redisLink)){ |
| | |
| | | |
| | | @ApiOperation(value = "生成二维码所需的唯一码") |
| | | @GetMapping("/getViewUUID") |
| | | @AuthHandler |
| | | public Result<?> getViewUUID(int day){ |
| | | return Result.success("生成成功",linkBasicInformationService.getViewUUID(day)); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询二维码所需的唯一码") |
| | | @GetMapping("/selectViewUUID") |
| | | @AuthHandler |
| | | public Result<?> selectViewUUID(){ |
| | | return Result.success("查询成功",linkBasicInformationService.selectViewUUID()); |
| | | } |
| | | |
| | | @ApiOperation(value = "检验唯一码是否有效") |
| | | @GetMapping("/isIfViewUUID") |
| | | @AuthHandler |
| | | public Result<?> isIfViewUUID(String viewId){ |
| | | return Result.success("查询成功",linkBasicInformationService.isIfViewUUID(viewId)); |
| | | } |