feat(后台管理):新增航线管理,优化平台管理个页面的新增修改等功能
This commit is contained in:
+4
@@ -114,4 +114,8 @@ public class ApiDeviceController {
|
||||
|
||||
}
|
||||
|
||||
@GetMapping("/wayline")
|
||||
public Result<String> getWayline(@RequestParam String no){
|
||||
return Result.succeed(orderCenterService.getOrderStatusByOrderNo(no));
|
||||
}
|
||||
}
|
||||
|
||||
+15
-14
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user