| | |
| | | package com.ruoyi.system.controller.conslole; |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.system.api.domain.poji.config.SysTag; |
| | | import com.ruoyi.system.api.domain.dto.MgtUserIdByDept; |
| | | import com.ruoyi.system.api.domain.poji.config.Activeness; |
| | | import com.ruoyi.system.api.domain.poji.config.SysClassification; |
| | | import com.ruoyi.system.api.domain.poji.config.SysTag; |
| | | import com.ruoyi.system.service.config.ActivenessService; |
| | | import com.ruoyi.system.service.config.SysClassificationService; |
| | | import com.ruoyi.system.service.config.SysTagService; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.ruoyi.system.service.sys.ISysUserService; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | |
| | | |
| | | @Resource |
| | | private ActivenessService activenessService; |
| | | |
| | | @Resource |
| | | private SysClassificationService sysClassificationService; |
| | | |
| | | @Resource |
| | | private ISysUserService sysUserService; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 获取系统标签 |
| | |
| | | return R.ok(activenessList); |
| | | } |
| | | |
| | | /** |
| | | * 通过id获取分类 |
| | | * @return |
| | | */ |
| | | @PostMapping("/getSysClassification") |
| | | public R<SysClassification> getSysClassification(@RequestBody Long classId) |
| | | { |
| | | SysClassification sysClassification = sysClassificationService.getById(classId); |
| | | return R.ok(sysClassification); |
| | | } |
| | | |
| | | /** |
| | | * 通过ids获取分类 |
| | | * @return |
| | | */ |
| | | @PostMapping("/getSysClassificationList") |
| | | public R<Map<Long,SysClassification>> getSysClassificationList(@RequestBody List<Long> classIds) |
| | | { |
| | | Map<Long,SysClassification> sysClassificationMap = sysClassificationService.getSysClassificationList(classIds); |
| | | return R.ok(sysClassificationMap); |
| | | } |
| | | |
| | | /** |
| | | * @description 获取部门用户 |
| | | * @author jqs |
| | | * @date 2023/6/21 16:00 |
| | | * @param userIdByDept |
| | | * @return R<MgtShopIdByCodeDto> |
| | | */ |
| | | @PostMapping("/getUserIdByDept") |
| | | public R<MgtUserIdByDept> getUserIdByDept(@RequestBody MgtUserIdByDept userIdByDept) |
| | | { |
| | | userIdByDept = sysUserService.getUserIdByDept(userIdByDept); |
| | | return R.ok(userIdByDept); |
| | | } |
| | | |
| | | } |