1.字典解析调整
2.用户对外接口添加
This commit is contained in:
@@ -8,6 +8,7 @@ import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.common.utils.LogUtil;
|
||||
import com.njcn.user.pojo.po.User;
|
||||
import com.njcn.user.service.IAppUserService;
|
||||
import com.njcn.web.annotation.ReturnMsg;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
@@ -28,6 +29,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
import springfox.documentation.annotations.ApiIgnore;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
@@ -177,4 +179,16 @@ public class AppUserController extends BaseController {
|
||||
appUserService.updateDevCode(userId,devCode);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取业务管理员信息
|
||||
*/
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON, operateType = OperateType.ADD)
|
||||
@PostMapping("getAdminInfo")
|
||||
@ApiOperation("获取业务管理员信息")
|
||||
public HttpResult<List<User>> getAdminInfo() {
|
||||
String methodDescribe = getMethodDescribe("getAdminInfo");
|
||||
List<User> list = appUserService.getAdminInfo();
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
package com.njcn.user.service;
|
||||
|
||||
import com.njcn.user.pojo.po.User;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author xuyang
|
||||
*/
|
||||
@@ -46,4 +50,9 @@ public interface IAppUserService {
|
||||
*/
|
||||
void updateDevCode(String userId, String devCode);
|
||||
|
||||
/**
|
||||
* 获取业务管理员信息
|
||||
*/
|
||||
List<User> getAdminInfo();
|
||||
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Random;
|
||||
|
||||
@@ -254,6 +255,11 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper, User> impleme
|
||||
this.update(lambdaUpdateWrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<User> getAdminInfo() {
|
||||
return this.lambdaQuery().eq(User::getLoginName,"njcnyw").eq(User::getState,1).list();
|
||||
}
|
||||
|
||||
/**
|
||||
* 自定义获取验证码,固定为字母和数字的组合
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user