feat(后台管理):新增航线管理,优化平台管理个页面的新增修改等功能

This commit is contained in:
2025-03-30 14:25:50 +08:00
parent f761f434b6
commit 57a8951954
33 changed files with 2256 additions and 952 deletions
@@ -73,22 +73,23 @@ public class QrCodeController {
@Operation(summary = "生成景区二维码")
@PostMapping
public Result<QrCode> saveOrUpdateQrcode(@RequestBody QrCode qrCode) throws Exception {
String codeId = "";
if (qrCode.getId() == null){
codeId = UUID.randomUUID().toString();
}
Result<Map> result = fileCenterService.uploadQrCodeFile(codeId);
if (result.getResp_code() == 0){
qrCode.setCodeId(codeId);
qrCode.setFilePath(result.getData().get("filePath").toString());
qrCode.setFileId(result.getData().get("fileId").toString());
boolean res = qrCodeService.saveOrUpdate(qrCode);
if (res) {
return Result.succeed(qrCode,"qrcode创建成功");
} else {
return Result.failed("qrcode创建失败");
if (qrCode.getId() == null){
String codeId = UUID.randomUUID().toString();
Result<Map> result = fileCenterService.uploadQrCodeFile(codeId);
if (result.getResp_code() == 0){
qrCode.setCodeId(codeId);
qrCode.setFilePath(result.getData().get("filePath").toString());
qrCode.setFileId(result.getData().get("fileId").toString());
if (qrCodeService.saveOrUpdate(qrCode)) {
return Result.succeed(qrCode,"qrcode创建成功");
} else {
return Result.failed("qrcode创建失败");
}
}
}else {
qrCodeService.saveOrUpdate(qrCode);
return Result.succeed(qrCode,"qrcode修改成功");
}
return Result.failed("创建失败");
@@ -38,8 +38,7 @@ public class Tourism extends SuperEntity {
private Date createTime;
@TableField(fill = FieldFill.INSERT_UPDATE)
private Date updateTime;
private Long createId;
//租户ID
private Long tenantId;
private String company;