优化
This commit is contained in:
@ -49,8 +49,8 @@ public class AppBgtUserController extends BaseController {
|
||||
@ApiOperation("获取后台管理包工头详细信息")
|
||||
@GetMapping("/{id}")
|
||||
public AjaxResult<BgtUser> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable("id") String id) {
|
||||
return AjaxResult.success(iBgtUserService.queryById(id));
|
||||
@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(iBgtUserService.selectUserByUserId(id));
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
package com.ruoyi.common.core.domain.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
@ -34,6 +35,7 @@ public class BgtUser implements Serializable {
|
||||
/** 唯一标识 */
|
||||
@Excel(name = "唯一标识")
|
||||
@ApiModelProperty("唯一标识")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long userId;
|
||||
|
||||
/** 姓名 */
|
||||
|
@ -1,6 +1,7 @@
|
||||
package com.ruoyi.wgz.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
@ -35,6 +36,7 @@ public class WgzUser implements Serializable {
|
||||
/** 唯一标识 */
|
||||
@Excel(name = "唯一标识")
|
||||
@ApiModelProperty("唯一标识")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long userId;
|
||||
|
||||
/** 姓名 */
|
||||
|
Reference in New Issue
Block a user