手机端查人接口 以及 部分涉及到开耀的接口 加了备注 我先改了一下 等开耀回来看一下
This commit is contained in:
@@ -9,6 +9,7 @@ import com.adc.da.http.Result;
|
||||
import com.adc.da.sys.constant.ValidFlagEnum;
|
||||
import com.adc.da.sys.entity.RoleEO;
|
||||
import com.adc.da.sys.entity.UserEO;
|
||||
import com.adc.da.sys.entity.UserPhoneDTO;
|
||||
import com.adc.da.sys.page.UserEOPage;
|
||||
import com.adc.da.sys.service.IOrgEOService;
|
||||
import com.adc.da.sys.service.IRoleEOService;
|
||||
@@ -66,6 +67,16 @@ public class UserEOController extends BaseController<UserEO> {
|
||||
return Result.success(userVO);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value = "|UserEO|详情")
|
||||
@GetMapping("/getUserByPhone")
|
||||
// @RequiresPermissions("sys:user:get")
|
||||
public ResponseMessage<List<UserPhoneDTO>> getUserByName(@RequestParam(required = false,value = "name")String name){
|
||||
List<UserPhoneDTO> userPhoneDTOS=userEOService.getUserByName(name);
|
||||
return Result.success(userPhoneDTOS);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|UserEO|详情接口")
|
||||
@GetMapping("/getById")
|
||||
public ResponseMessage<UserVO> getByIdFeignClient(String id) throws Exception {
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.adc.da.sys.dao;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.sys.entity.UserEO;
|
||||
import com.adc.da.sys.entity.UserPhoneDTO;
|
||||
import com.adc.da.sys.page.RoleUserEOPage;
|
||||
import com.adc.da.sys.page.UserEOPage;
|
||||
import com.adc.da.sys.vo.RoleUserVO;
|
||||
@@ -171,5 +172,7 @@ public interface UserEODao extends BaseMapper<UserEO> {
|
||||
|
||||
public UserEO getUserEOByAccountNotDeleted(String account);
|
||||
|
||||
//手机端接口 只查人
|
||||
List<UserPhoneDTO> getUserByName(@Param("name") String name);
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.adc.da.sys.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class UserPhoneDTO {
|
||||
|
||||
private String usId;
|
||||
|
||||
private String userName;
|
||||
|
||||
|
||||
}
|
||||
@@ -3,6 +3,7 @@ package com.adc.da.sys.service;
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.sys.entity.UserEO;
|
||||
import com.adc.da.sys.entity.UserPhoneDTO;
|
||||
import com.adc.da.sys.page.RoleUserEOPage;
|
||||
import com.adc.da.sys.page.UserEOPage;
|
||||
import com.adc.da.sys.vo.RoleUserVO;
|
||||
@@ -75,5 +76,8 @@ public interface IUserEOService extends IService<UserEO> {
|
||||
|
||||
public UserEO getUserByLoginNameNotDeleted(String userName);
|
||||
|
||||
//手机端接口 只查人
|
||||
List<UserPhoneDTO> getUserByName(String name);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -8,10 +8,7 @@ import com.adc.da.sys.constant.ValidFlagEnum;
|
||||
import com.adc.da.sys.dao.OrgEODao;
|
||||
import com.adc.da.sys.dao.UserEODao;
|
||||
import com.adc.da.sys.dao.UserInfoEODao;
|
||||
import com.adc.da.sys.entity.OrgEO;
|
||||
import com.adc.da.sys.entity.UserEO;
|
||||
import com.adc.da.sys.entity.UserInfoEO;
|
||||
import com.adc.da.sys.entity.UserOrgEO;
|
||||
import com.adc.da.sys.entity.*;
|
||||
import com.adc.da.sys.page.RoleUserEOPage;
|
||||
import com.adc.da.sys.page.UserEOPage;
|
||||
import com.adc.da.sys.service.IOrgEOService;
|
||||
@@ -514,4 +511,9 @@ public class UserEOServiceImpl extends ServiceImpl<UserEODao, UserEO> implements
|
||||
return userEO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UserPhoneDTO> getUserByName(String name) {
|
||||
return this.baseMapper.getUserByName(name);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user