后台接口修改
This commit is contained in:
parent
8c0c2dce34
commit
2239c6556c
@ -16,4 +16,8 @@ public class AddOrUpdateAdminUserReqVO {
|
||||
private String account;
|
||||
@ApiModelProperty(value = "密码")
|
||||
private String password;
|
||||
@ApiModelProperty(value = "名称")
|
||||
private String name;
|
||||
@ApiModelProperty(value = "手机号")
|
||||
private String phone;
|
||||
}
|
||||
|
@ -11,13 +11,9 @@ public class AdminUserListReqVO extends BaseQueryParameterReq {
|
||||
@ApiModelProperty(value = "姓名")
|
||||
private String name;
|
||||
@ApiModelProperty(value = "账号")
|
||||
private String account;
|
||||
@ApiModelProperty(value = "手机号")
|
||||
private String phone;
|
||||
@ApiModelProperty(value = "工号")
|
||||
private String jobNo;
|
||||
@ApiModelProperty(value = "组织ID")
|
||||
private String companyId;
|
||||
//@ApiModelProperty(value = "部门ID")
|
||||
//private String departmentId;
|
||||
@ApiModelProperty(value = "角色ID")
|
||||
private String roleId;
|
||||
}
|
||||
|
@ -4,27 +4,25 @@ import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "后台管理人员返回列表VO")
|
||||
public class AdminUserListRespVO {
|
||||
@ApiModelProperty(value = "id")
|
||||
private String id;
|
||||
@ApiModelProperty(value = "账号")
|
||||
private String account;
|
||||
@ApiModelProperty(value = "昵称")
|
||||
private String name;
|
||||
// @ApiModelProperty(value = "员工ID")
|
||||
// private String staffId;
|
||||
// @ApiModelProperty(value = "员工姓名")
|
||||
// private String staffName;
|
||||
@ApiModelProperty(value = "手机号")
|
||||
private String phone;
|
||||
// @ApiModelProperty(value = "工号")
|
||||
// private String jobNo;
|
||||
// @ApiModelProperty(value = "组织")
|
||||
// private String companyName;
|
||||
// @ApiModelProperty(value = "组织ID")
|
||||
// private String companyId;
|
||||
@ApiModelProperty(value = "角色")
|
||||
private String roleName;
|
||||
@ApiModelProperty(value = "角色ID")
|
||||
private String roleId;
|
||||
@ApiModelProperty(value = "状态")
|
||||
private Integer status;
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ public class RenderWorkerEntity {
|
||||
/**
|
||||
* 运行环境
|
||||
*/
|
||||
private String runTimeVersion;
|
||||
private String runtimeVersion;
|
||||
/**
|
||||
* 版本
|
||||
*/
|
||||
|
@ -34,7 +34,7 @@ public class RenderWorkerReqQuery extends BaseQueryParameterReq {
|
||||
* 运行环境
|
||||
*/
|
||||
@ApiModelProperty("运行环境")
|
||||
private String runTimeVersion;
|
||||
private String runtimeVersion;
|
||||
/**
|
||||
* 版本
|
||||
*/
|
||||
|
@ -31,7 +31,7 @@ public class RenderWorkerRespVO {
|
||||
* 运行环境
|
||||
*/
|
||||
@ApiModelProperty("运行环境")
|
||||
private String runTimeVersion;
|
||||
private String runtimeVersion;
|
||||
/**
|
||||
* 版本
|
||||
*/
|
||||
|
@ -10,6 +10,4 @@ import lombok.Data;
|
||||
public class RoleListReqVO extends BaseQueryParameterReq {
|
||||
@ApiModelProperty(value = "名字")
|
||||
private String name;
|
||||
// @ApiModelProperty(value = "0系统角色 1业务角色")
|
||||
// private Integer type;
|
||||
}
|
||||
|
@ -27,7 +27,7 @@
|
||||
|
||||
<update id="update" parameterType="com.ycwl.basic.model.pc.adminUser.req.AddOrUpdateAdminUserReqVO">
|
||||
update admin_user
|
||||
set `role_id` =#{roleId}
|
||||
set `role_id` =#{roleId}, `account`=#{account}, `name`=#{name}, `phone`=#{phone}
|
||||
where id = #{id}
|
||||
</update>
|
||||
<update id="updatePassword">
|
||||
@ -44,6 +44,9 @@
|
||||
au.id,
|
||||
au.phone,
|
||||
au.name,
|
||||
au.account,
|
||||
au.create_time,
|
||||
au.status,
|
||||
r.id as roleId,
|
||||
r.name as roleName
|
||||
from admin_user au,
|
||||
@ -54,6 +57,10 @@
|
||||
and
|
||||
locate(#{name},au.`name`) > 0
|
||||
</if>
|
||||
<if test="account!=null and account!=''">
|
||||
and
|
||||
locate(#{account},au.`account`) > 0
|
||||
</if>
|
||||
<if test="phone!=null and phone!=''">
|
||||
and
|
||||
locate(#{phone},au.`phone`) > 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user