| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | import java.util.stream.Stream; |
| | |
| | | |
| | | /** |
| | | * web端-工作人员-修改密码 |
| | | * @url {ctx}/api/v1/ctAccount/changeCipher |
| | | * @url {ctx}/api/web/ctAccount/changeCipher |
| | | * @param ctCipherDTO 修改密码对象 |
| | | * @return Object |
| | | */ |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 微服务调用-数据迁移-批量新增 |
| | | * @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(); |
| | | } |
| | | } |
| | | |
| | | } |