From b47d4a7accabce974e19d2a1ffb3c5c67507d74b Mon Sep 17 00:00:00 2001
From: wangwh <2397901735@qq.com>
Date: Wed, 28 Aug 2024 15:11:59 +0800
Subject: [PATCH] 1、组织架构的接口 2、事项登记接口
---
dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtAccountWebController.java | 27 +++++++++++++++++++++++----
1 files changed, 23 insertions(+), 4 deletions(-)
diff --git a/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtAccountWebController.java b/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtAccountWebController.java
index 372283b..3b2cd74 100644
--- a/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtAccountWebController.java
+++ b/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtAccountWebController.java
@@ -1,4 +1,4 @@
-package cn.huge.module.ctuser.controller;
+package cn.huge.module.ctuser.controller.web;
import cn.huge.base.common.bo.ReturnBO;
import cn.huge.base.common.utils.ReturnFailUtils;
@@ -6,6 +6,7 @@
import cn.huge.base.config.CurrentUser;
import cn.huge.module.constant.BaseConsts;
import cn.huge.module.ctuser.domain.po.CtAccount;
+import cn.huge.module.ctuser.domain.po.CtUnit;
import cn.huge.module.ctuser.dto.CtAccountLoginDTO;
import cn.huge.module.ctuser.dto.CtCipherDTO;
import cn.huge.module.ctuser.service.CtAccountService;
@@ -20,13 +21,14 @@
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
+import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
- * @title: 客户用户账号表接口api
- * @description: 客户用户账号表接口api
+ * @title: 客户用户账号表接口api-web端-web端
+ * @description: 客户用户账号表接口api-web端-web端
* @company: hugeinfo
* @author: liyj
* @time: 2024-08-19 20:04:18
@@ -82,7 +84,7 @@
/**
* web端-工作人员-修改密码
- * @url {ctx}/api/v1/ctAccount/changeCipher
+ * @url {ctx}/api/web/ctAccount/changeCipher
* @param ctCipherDTO 修改密码对象
* @return Object
*/
@@ -95,4 +97,21 @@
}
}
+ /**
+ * 微服务调用-数据迁移-批量新增
+ * @url {ctx}/api/web/ctAccount/saveCtAccountList
+ * @param targetCtAccountList 实体对象
+ * @return Object
+ */
+ @PostMapping("/saveCtAccountList")
+ public Object saveCtAccountList(@RequestBody List<CtAccount> targetCtAccountList) {
+ try {
+ service.saveBatch(targetCtAccountList,1000);
+ return ReturnSucUtils.getRepInfo();
+ } catch (Exception e) {
+ log.info(e.getMessage(), e);
+ return ReturnFailUtils.getRepInfo();
+ }
+ }
+
}
--
Gitblit v1.8.0