From 4b7df08def4e5d0cdfbe91c383de242f8121af86 Mon Sep 17 00:00:00 2001
From: xusd <hugeinfo123>
Date: Mon, 14 Oct 2024 17:41:02 +0800
Subject: [PATCH] AI相关接口修正,增加风险提示接口
---
dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUserWebController.java | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUserWebController.java b/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUserWebController.java
index 4ca98a3..2335ef9 100644
--- a/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUserWebController.java
+++ b/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUserWebController.java
@@ -427,14 +427,20 @@
/**
* 人工配置-统一修改单位名称
* @url {ctx}/api/web/ctUser/updateUnitName
- * @param id 主键编号
* @return Object
* @throws Exception
*/
- @GetMapping("/getByIdupdateUnitNameRole")
+ @GetMapping("/updateUnitName")
public Object updateUnitName() {
try {
-
+ List<CtUser> ctUserList = service.list();
+ for (CtUser ctUser: ctUserList){
+ CtUnit ctUnit = ctUnitService.getById(ctUser.getUnitId());
+ if (ObjectUtils.isNotEmpty(ctUnit)) {
+ ctUser.setUnitName(ctUnit.getUnitName());
+ service.updateCtUser(ctUser);
+ }
+ }
return ReturnSucUtils.getRepInfo();
} catch (Exception e) {
return ReturnFailUtils.getRepInfo();
--
Gitblit v1.8.0