From 78c1f87d61d1411356a422ab841afde67342d228 Mon Sep 17 00:00:00 2001 From: wangwh <2397901735@qq.com> Date: Wed, 04 Sep 2024 20:52:15 +0800 Subject: [PATCH] 1、事项登记、详情查询接口 2、ocr识别文字接口 3、办理流转-查询下属人员、选择经办人、获取工作人员信息、添加办理反馈、获取办理反馈信息、修改办理反馈信息 4、督办-添加督办、回复督办、查询督办列表 5、查询评价 --- dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/service/CtUseroleService.java | 26 ++++++++++++++++++++++++-- 1 files changed, 24 insertions(+), 2 deletions(-) diff --git a/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/service/CtUseroleService.java b/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/service/CtUseroleService.java index cdc2a85..dbf5483 100644 --- a/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/service/CtUseroleService.java +++ b/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/service/CtUseroleService.java @@ -12,13 +12,11 @@ import org.springframework.data.redis.core.RedisTemplate; import org.springframework.stereotype.Service; import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageRequest; import org.springframework.transaction.annotation.Transactional; -import javax.annotation.PostConstruct; import java.util.Date; import java.util.List; import java.util.Map; @@ -155,4 +153,28 @@ public List<String> listRoleCode(String userId){ return mapper.listRoleCode(userId); } + + /** + * 根据用户编号物理删除 + * @param userId 用户编号 + */ + public void deleteByUserId(String userId){ + try{ + QueryWrapper<CtUserole> ctUseroleQueryWrapper = new QueryWrapper<>(); + ctUseroleQueryWrapper.eq("user_id", userId); + mapper.delete(ctUseroleQueryWrapper); + }catch (Exception e){ + log.error("[CtUseroleService.deleteByUserId]调用失败,异常信息:"+e, e); + throw new ServiceException("CtUseroleService.deleteByUserId", e); + } + } + + /** + * 根据用户编号获取其角色名称 + * @param userId 用户编号 + * @return List<String> + */ + public List<String> listRoleName(String userId){ + return mapper.listRoleName(userId); + } } \ No newline at end of file -- Gitblit v1.8.0