From f6efc8f177cac9aa04a4cd4a99b0d39171fe4e79 Mon Sep 17 00:00:00 2001
From: zhouxiantao <1026371446@qq.com>
Date: Thu, 24 Oct 2024 19:47:04 +0800
Subject: [PATCH] fix:解纷态势-兼容化解结果和状态不一致数据
---
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