From a43fd8f15c7da7f4a14ba4ebb79970dad4ce1fae Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期五, 02 八月 2024 15:18:25 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
modules/mainPart/src/main/java/com/zt/life/modules/mainPart/basicInfo/controller/TyProductModelController.java | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/modules/mainPart/src/main/java/com/zt/life/modules/mainPart/basicInfo/controller/TyProductModelController.java b/modules/mainPart/src/main/java/com/zt/life/modules/mainPart/basicInfo/controller/TyProductModelController.java
index 2243a17..06c55fe 100644
--- a/modules/mainPart/src/main/java/com/zt/life/modules/mainPart/basicInfo/controller/TyProductModelController.java
+++ b/modules/mainPart/src/main/java/com/zt/life/modules/mainPart/basicInfo/controller/TyProductModelController.java
@@ -6,6 +6,7 @@
import com.zt.common.annotation.QueryParam;
import com.zt.common.db.query.QueryFilter;
import com.zt.common.servlet.Result;
+import com.zt.common.utils.UUIDUtil;
import com.zt.common.validator.AssertUtils;
import com.zt.common.validator.ValidatorUtils;
import com.zt.common.validator.group.AddGroup;
@@ -63,7 +64,6 @@
@GetMapping("tree")
public Result<List<TyProductModel>> getTreeList() {
List<TyProductModel> list = tyProductModelService.getAllTree();
-
return Result.ok(list);
}
@@ -89,7 +89,7 @@
public Result insert(@RequestBody TyProductModel tyProductModel){
//鏁堥獙鏁版嵁
ValidatorUtils.validateEntity(tyProductModel, AddGroup.class, DefaultGroup.class);
- Integer no = tyProductModelService.getNo(tyProductModel.getPid());
+ Integer no = tyProductModelService.getNo(tyProductModel.getPid(),tyProductModel.getNodeType());
tyProductModel.setSort(no + 1);
tyProductModelService.insert(tyProductModel);
@@ -120,4 +120,11 @@
return Result.ok();
}
+ @GetMapping("getUuid")
+ @ApiOperation("淇℃伅")
+ public Result<Long> getUuid() {
+ Long uuid = UUIDUtil.generateId();
+ return Result.ok(uuid);
+ }
+
}
--
Gitblit v1.9.1