feat: 1:景区二维码列表增删改查修改,去掉单独的二维码列表管理
This commit is contained in:
+2
-1
@@ -89,7 +89,8 @@ public class QrCodeController {
|
||||
if (result.getResp_code() == 0){
|
||||
Tourism tourism = tourismService.getTourismById(qrCode.getTourismId());
|
||||
Assert.notNull(tourism, "请选择景区数据");
|
||||
qrCode.setTenantId(tourism.getTenantId());
|
||||
// qrCode.setTenantId(tourism.getTenantId());
|
||||
qrCode.setTenantId(qrCode.getTenantId());
|
||||
qrCode.setCodeId(codeId);
|
||||
qrCode.setFilePath(result.getData().get("filePath").toString());
|
||||
qrCode.setFileId(result.getData().get("fileId").toString());
|
||||
|
||||
+16
-1
@@ -92,4 +92,19 @@ public class VideoTemplateController {
|
||||
return Result.failed("获取失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Operation(summary = "根据模板ID(templateId)获取模板信息")
|
||||
@GetMapping("/templateId/{templateId}")
|
||||
public Result<VideoTemplate> getByTemplateId(@PathVariable String templateId) {
|
||||
try {
|
||||
VideoTemplate template = videoTemplateService.lambdaQuery()
|
||||
.eq(VideoTemplate::getTemplateId, templateId)
|
||||
.last("limit 1")
|
||||
.one();
|
||||
return Result.succeed(template);
|
||||
} catch (Exception e) {
|
||||
log.error("根据模板ID查询模板失败, templateId={}", templateId, e);
|
||||
return Result.failed("查询失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user