feat: 临时授权记录
This commit is contained in:
+65
@@ -0,0 +1,65 @@
|
||||
package com.jero.modules.laws.standard.controller;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author: Mzaxd
|
||||
* @Date: 2023/12/12 17:03
|
||||
*/
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class TempAuthRecordQueryDto {
|
||||
|
||||
@ApiModelProperty(value = "权限Id")
|
||||
private String id;
|
||||
|
||||
/**授权到期日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||
@ApiModelProperty(value = "授权到期日期")
|
||||
private Date authExpireDate;
|
||||
|
||||
/**授权部门*/
|
||||
@ApiModelProperty(value = "授权部门")
|
||||
private String authDept;
|
||||
|
||||
/**授权人员*/
|
||||
@ApiModelProperty(value = "授权人员")
|
||||
private String authUser;
|
||||
|
||||
@ApiModelProperty(value = "标准Id")
|
||||
private String standardId;
|
||||
|
||||
@ApiModelProperty(value = "标准号")
|
||||
private String standardNumber;
|
||||
|
||||
private List<String> authUserList;
|
||||
|
||||
private List<String> authDeptList;
|
||||
|
||||
public void setAuthDept(String authDept) {
|
||||
this.authDept = authDept;
|
||||
if (StrUtil.isNotBlank(authDept)) {
|
||||
this.authDeptList = Arrays.asList(authDept.split(","));
|
||||
}
|
||||
}
|
||||
|
||||
public void setAuthUser(String authUser) {
|
||||
this.authUser = authUser;
|
||||
if (StrUtil.isNotBlank(authUser)) {
|
||||
this.authUserList = Arrays.asList(authUser.split(","));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user