New file |
| | |
| | | package com.kidgrow.usercenter.controller; |
| | | |
| | | import com.kidgrow.common.model.SysUserOrg; |
| | | import com.kidgrow.usercenter.service.ISysOrganizationService; |
| | | import com.kidgrow.usercenter.service.ISysUserOrgService; |
| | | import io.swagger.annotations.Api; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/sysuserorg") |
| | | @Api(tags = "用户与部门") |
| | | public class SysUserOrgController { |
| | | @Autowired |
| | | private ISysUserOrgService iSysUserOrgService; |
| | | @PostMapping("getListByMap") |
| | | public List<SysUserOrg> getListByMap(@RequestParam Map<String,Object> map){ |
| | | List<SysUserOrg> sysUserOrgs = iSysUserOrgService.listByMap(map); |
| | | return sysUserOrgs; |
| | | } |
| | | } |