bug修改。
This commit is contained in:
parent
c0e59b8057
commit
460f3c7067
@ -82,6 +82,16 @@ public class UserArchivesAppController extends DefaultBaseController {
|
|||||||
return userArchivesService.get(userArchivesId);
|
return userArchivesService.get(userArchivesId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "人员自己的档案详情(通过ID)", notes = "人员自己的档案详情(通过ID)接口")
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "token", value = "token", paramType = "header")
|
||||||
|
})
|
||||||
|
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||||
|
@GetMapping("getByUserId")
|
||||||
|
public UserArchivesDTO getByUserId(@RequestHeader("token") String token) {
|
||||||
|
return userArchivesService.getByToken(token);
|
||||||
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "人员档案列表", notes = "人员档案列表接口")
|
@ApiOperation(value = "人员档案列表", notes = "人员档案列表接口")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = "token", value = "token", paramType = "header")
|
@ApiImplicitParam(name = "token", value = "token", paramType = "header")
|
||||||
|
@ -32,22 +32,32 @@ public class UserArchivesDTO {
|
|||||||
private String name;
|
private String name;
|
||||||
@ApiModelProperty(name = "sex", value = "性别")
|
@ApiModelProperty(name = "sex", value = "性别")
|
||||||
private String sex;
|
private String sex;
|
||||||
|
@ApiModelProperty(name = "sexName", value = "性别")
|
||||||
|
private String sexName;
|
||||||
@ApiModelProperty(name = "birthday", value = "出生日期")
|
@ApiModelProperty(name = "birthday", value = "出生日期")
|
||||||
private String birthday;
|
private String birthday;
|
||||||
@ApiModelProperty(name = "idCard", value = "身份证号码")
|
@ApiModelProperty(name = "idCard", value = "身份证号码")
|
||||||
private String idCard;
|
private String idCard;
|
||||||
@ApiModelProperty(name = "politicalOutlook", value = "政治面貌")
|
@ApiModelProperty(name = "politicalOutlook", value = "政治面貌")
|
||||||
private String politicalOutlook;
|
private String politicalOutlook;
|
||||||
|
@ApiModelProperty(name = "politicalOutlookName", value = "政治面貌")
|
||||||
|
private String politicalOutlookName;
|
||||||
@ApiModelProperty(name = "maritalStatus", value = "婚姻状况")
|
@ApiModelProperty(name = "maritalStatus", value = "婚姻状况")
|
||||||
private String maritalStatus;
|
private String maritalStatus;
|
||||||
|
@ApiModelProperty(name = "maritalStatusName", value = "婚姻状况")
|
||||||
|
private String maritalStatusName;
|
||||||
@ApiModelProperty(name = "nationality", value = "国籍")
|
@ApiModelProperty(name = "nationality", value = "国籍")
|
||||||
private String nationality;
|
private String nationality;
|
||||||
|
@ApiModelProperty(name = "nationalityName", value = "国籍")
|
||||||
|
private String nationalityName;
|
||||||
@ApiModelProperty(name = "nativeAddress", value = "籍贯")
|
@ApiModelProperty(name = "nativeAddress", value = "籍贯")
|
||||||
private String nativeAddress;
|
private String nativeAddress;
|
||||||
@ApiModelProperty(name = "residence", value = "户口")
|
@ApiModelProperty(name = "residence", value = "户口")
|
||||||
private String residence;
|
private String residence;
|
||||||
@ApiModelProperty(name = "residenceNature", value = "户口性质")
|
@ApiModelProperty(name = "residenceNature", value = "户口性质")
|
||||||
private String residenceNature;
|
private String residenceNature;
|
||||||
|
@ApiModelProperty(name = "residenceNatureName", value = "户口性质")
|
||||||
|
private String residenceNatureName;
|
||||||
@ApiModelProperty(name = "address", value = "家庭住址")
|
@ApiModelProperty(name = "address", value = "家庭住址")
|
||||||
private String address;
|
private String address;
|
||||||
@ApiModelProperty(name = "email", value = "电子邮箱")
|
@ApiModelProperty(name = "email", value = "电子邮箱")
|
||||||
@ -58,6 +68,8 @@ public class UserArchivesDTO {
|
|||||||
private String graduation;
|
private String graduation;
|
||||||
@ApiModelProperty(name = "major", value = "专业")
|
@ApiModelProperty(name = "major", value = "专业")
|
||||||
private String major;
|
private String major;
|
||||||
|
@ApiModelProperty(name = "majorName", value = "专业")
|
||||||
|
private String majorName;
|
||||||
@ApiModelProperty(name = "highestDegree", value = "最高学位")
|
@ApiModelProperty(name = "highestDegree", value = "最高学位")
|
||||||
private String highestDegree;
|
private String highestDegree;
|
||||||
@ApiModelProperty(name = "graduationDate", value = "毕业日期")
|
@ApiModelProperty(name = "graduationDate", value = "毕业日期")
|
||||||
@ -76,10 +88,16 @@ public class UserArchivesDTO {
|
|||||||
private String quitTime;
|
private String quitTime;
|
||||||
@ApiModelProperty(name = "dept", value = "所在部门")
|
@ApiModelProperty(name = "dept", value = "所在部门")
|
||||||
private String dept;
|
private String dept;
|
||||||
|
@ApiModelProperty(name = "deptName", value = "所在部门")
|
||||||
|
private String deptName;
|
||||||
@ApiModelProperty(name = "post", value = "岗位")
|
@ApiModelProperty(name = "post", value = "岗位")
|
||||||
private String post;
|
private String post;
|
||||||
|
@ApiModelProperty(name = "postName", value = "岗位")
|
||||||
|
private String postName;
|
||||||
@ApiModelProperty(name = "directSuperior", value = "直接上级")
|
@ApiModelProperty(name = "directSuperior", value = "直接上级")
|
||||||
private String directSuperior;
|
private String directSuperior;
|
||||||
|
@ApiModelProperty(name = "directSuperiorName", value = "直接上级")
|
||||||
|
private String directSuperiorName;
|
||||||
@ApiModelProperty(name = "bankAccount", value = "银行账号")
|
@ApiModelProperty(name = "bankAccount", value = "银行账号")
|
||||||
private String bankAccount;
|
private String bankAccount;
|
||||||
@ApiModelProperty(name = "fundAccount", value = "公积金号")
|
@ApiModelProperty(name = "fundAccount", value = "公积金号")
|
||||||
@ -88,10 +106,16 @@ public class UserArchivesDTO {
|
|||||||
private String securityAccount;
|
private String securityAccount;
|
||||||
@ApiModelProperty(name = "title", value = "职称")
|
@ApiModelProperty(name = "title", value = "职称")
|
||||||
private String title;
|
private String title;
|
||||||
|
@ApiModelProperty(name = "titleName", value = "职称")
|
||||||
|
private String titleName;
|
||||||
@ApiModelProperty(name = "titleGrade", value = "职称职等")
|
@ApiModelProperty(name = "titleGrade", value = "职称职等")
|
||||||
private String titleGrade;
|
private String titleGrade;
|
||||||
|
@ApiModelProperty(name = "titleGradeName", value = "职称职等")
|
||||||
|
private String titleGradeName;
|
||||||
@ApiModelProperty(name = "userType", value = "人员分类")
|
@ApiModelProperty(name = "userType", value = "人员分类")
|
||||||
private String userType;
|
private String userType;
|
||||||
|
@ApiModelProperty(name = "userTypeName", value = "人员分类")
|
||||||
|
private String userTypeName;
|
||||||
@ApiModelProperty(name = "creator", value = "")
|
@ApiModelProperty(name = "creator", value = "")
|
||||||
private String creator;
|
private String creator;
|
||||||
@ApiModelProperty(name = "gmtCreate", value = "")
|
@ApiModelProperty(name = "gmtCreate", value = "")
|
||||||
@ -110,7 +134,7 @@ public class UserArchivesDTO {
|
|||||||
private List<UserWorkDTO> workList;
|
private List<UserWorkDTO> workList;
|
||||||
|
|
||||||
public String getUserArchivesId() {
|
public String getUserArchivesId() {
|
||||||
return userArchivesId == null ? "" : userArchivesId.trim();
|
return userArchivesId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUserArchivesId(String userArchivesId) {
|
public void setUserArchivesId(String userArchivesId) {
|
||||||
@ -126,7 +150,7 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getArchivesNum() {
|
public String getArchivesNum() {
|
||||||
return archivesNum == null ? "" : archivesNum.trim();
|
return archivesNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setArchivesNum(String archivesNum) {
|
public void setArchivesNum(String archivesNum) {
|
||||||
@ -134,7 +158,7 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getLoginNum() {
|
public String getLoginNum() {
|
||||||
return loginNum == null ? "" : loginNum.trim();
|
return loginNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLoginNum(String loginNum) {
|
public void setLoginNum(String loginNum) {
|
||||||
@ -142,7 +166,7 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name == null ? "" : name.trim();
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName(String name) {
|
public void setName(String name) {
|
||||||
@ -150,15 +174,23 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getSex() {
|
public String getSex() {
|
||||||
return sex == null ? "" : sex.trim();
|
return sex;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSex(String sex) {
|
public void setSex(String sex) {
|
||||||
this.sex = sex;
|
this.sex = sex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getSexName() {
|
||||||
|
return sexName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSexName(String sexName) {
|
||||||
|
this.sexName = sexName;
|
||||||
|
}
|
||||||
|
|
||||||
public String getBirthday() {
|
public String getBirthday() {
|
||||||
return birthday == null ? "" : birthday.trim();
|
return birthday;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBirthday(String birthday) {
|
public void setBirthday(String birthday) {
|
||||||
@ -166,7 +198,7 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getIdCard() {
|
public String getIdCard() {
|
||||||
return idCard == null ? "" : idCard.trim();
|
return idCard;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIdCard(String idCard) {
|
public void setIdCard(String idCard) {
|
||||||
@ -174,31 +206,55 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getPoliticalOutlook() {
|
public String getPoliticalOutlook() {
|
||||||
return politicalOutlook == null ? "" : politicalOutlook.trim();
|
return politicalOutlook;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPoliticalOutlook(String politicalOutlook) {
|
public void setPoliticalOutlook(String politicalOutlook) {
|
||||||
this.politicalOutlook = politicalOutlook;
|
this.politicalOutlook = politicalOutlook;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getPoliticalOutlookName() {
|
||||||
|
return politicalOutlookName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPoliticalOutlookName(String politicalOutlookName) {
|
||||||
|
this.politicalOutlookName = politicalOutlookName;
|
||||||
|
}
|
||||||
|
|
||||||
public String getMaritalStatus() {
|
public String getMaritalStatus() {
|
||||||
return maritalStatus == null ? "" : maritalStatus.trim();
|
return maritalStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMaritalStatus(String maritalStatus) {
|
public void setMaritalStatus(String maritalStatus) {
|
||||||
this.maritalStatus = maritalStatus;
|
this.maritalStatus = maritalStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getMaritalStatusName() {
|
||||||
|
return maritalStatusName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMaritalStatusName(String maritalStatusName) {
|
||||||
|
this.maritalStatusName = maritalStatusName;
|
||||||
|
}
|
||||||
|
|
||||||
public String getNationality() {
|
public String getNationality() {
|
||||||
return nationality == null ? "" : nationality.trim();
|
return nationality;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNationality(String nationality) {
|
public void setNationality(String nationality) {
|
||||||
this.nationality = nationality;
|
this.nationality = nationality;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getNationalityName() {
|
||||||
|
return nationalityName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNationalityName(String nationalityName) {
|
||||||
|
this.nationalityName = nationalityName;
|
||||||
|
}
|
||||||
|
|
||||||
public String getNativeAddress() {
|
public String getNativeAddress() {
|
||||||
return nativeAddress == null ? "" : nativeAddress.trim();
|
return nativeAddress;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNativeAddress(String nativeAddress) {
|
public void setNativeAddress(String nativeAddress) {
|
||||||
@ -206,7 +262,7 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getResidence() {
|
public String getResidence() {
|
||||||
return residence == null ? "" : residence.trim();
|
return residence;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setResidence(String residence) {
|
public void setResidence(String residence) {
|
||||||
@ -214,15 +270,23 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getResidenceNature() {
|
public String getResidenceNature() {
|
||||||
return residenceNature == null ? "" : residenceNature.trim();
|
return residenceNature;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setResidenceNature(String residenceNature) {
|
public void setResidenceNature(String residenceNature) {
|
||||||
this.residenceNature = residenceNature;
|
this.residenceNature = residenceNature;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getResidenceNatureName() {
|
||||||
|
return residenceNatureName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setResidenceNatureName(String residenceNatureName) {
|
||||||
|
this.residenceNatureName = residenceNatureName;
|
||||||
|
}
|
||||||
|
|
||||||
public String getAddress() {
|
public String getAddress() {
|
||||||
return address == null ? "" : address.trim();
|
return address;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAddress(String address) {
|
public void setAddress(String address) {
|
||||||
@ -230,7 +294,7 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getEmail() {
|
public String getEmail() {
|
||||||
return email == null ? "" : email.trim();
|
return email;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEmail(String email) {
|
public void setEmail(String email) {
|
||||||
@ -238,7 +302,7 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getPhone() {
|
public String getPhone() {
|
||||||
return phone == null ? "" : phone.trim();
|
return phone;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPhone(String phone) {
|
public void setPhone(String phone) {
|
||||||
@ -246,7 +310,7 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getGraduation() {
|
public String getGraduation() {
|
||||||
return graduation == null ? "" : graduation.trim();
|
return graduation;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setGraduation(String graduation) {
|
public void setGraduation(String graduation) {
|
||||||
@ -254,15 +318,23 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getMajor() {
|
public String getMajor() {
|
||||||
return major == null ? "" : major.trim();
|
return major;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMajor(String major) {
|
public void setMajor(String major) {
|
||||||
this.major = major;
|
this.major = major;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getMajorName() {
|
||||||
|
return majorName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMajorName(String majorName) {
|
||||||
|
this.majorName = majorName;
|
||||||
|
}
|
||||||
|
|
||||||
public String getHighestDegree() {
|
public String getHighestDegree() {
|
||||||
return highestDegree == null ? "" : highestDegree.trim();
|
return highestDegree;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setHighestDegree(String highestDegree) {
|
public void setHighestDegree(String highestDegree) {
|
||||||
@ -270,7 +342,7 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getGraduationDate() {
|
public String getGraduationDate() {
|
||||||
return graduationDate == null ? "" : graduationDate.trim();
|
return graduationDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setGraduationDate(String graduationDate) {
|
public void setGraduationDate(String graduationDate) {
|
||||||
@ -278,7 +350,7 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getEmergencyContact() {
|
public String getEmergencyContact() {
|
||||||
return emergencyContact == null ? "" : emergencyContact.trim();
|
return emergencyContact;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEmergencyContact(String emergencyContact) {
|
public void setEmergencyContact(String emergencyContact) {
|
||||||
@ -286,7 +358,7 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getEmergencyContactPhone() {
|
public String getEmergencyContactPhone() {
|
||||||
return emergencyContactPhone == null ? "" : emergencyContactPhone.trim();
|
return emergencyContactPhone;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEmergencyContactPhone(String emergencyContactPhone) {
|
public void setEmergencyContactPhone(String emergencyContactPhone) {
|
||||||
@ -294,7 +366,7 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getPhoto() {
|
public String getPhoto() {
|
||||||
return photo == null ? "" : photo.trim();
|
return photo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPhoto(String photo) {
|
public void setPhoto(String photo) {
|
||||||
@ -302,7 +374,7 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getJoinTime() {
|
public String getJoinTime() {
|
||||||
return joinTime == null ? "" : joinTime.trim();
|
return joinTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setJoinTime(String joinTime) {
|
public void setJoinTime(String joinTime) {
|
||||||
@ -310,7 +382,7 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getCeremonialTime() {
|
public String getCeremonialTime() {
|
||||||
return ceremonialTime == null ? "" : ceremonialTime.trim();
|
return ceremonialTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCeremonialTime(String ceremonialTime) {
|
public void setCeremonialTime(String ceremonialTime) {
|
||||||
@ -318,7 +390,7 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getQuitTime() {
|
public String getQuitTime() {
|
||||||
return quitTime == null ? "" : quitTime.trim();
|
return quitTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setQuitTime(String quitTime) {
|
public void setQuitTime(String quitTime) {
|
||||||
@ -326,31 +398,55 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getDept() {
|
public String getDept() {
|
||||||
return dept == null ? "" : dept.trim();
|
return dept;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDept(String dept) {
|
public void setDept(String dept) {
|
||||||
this.dept = dept;
|
this.dept = dept;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getDeptName() {
|
||||||
|
return deptName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeptName(String deptName) {
|
||||||
|
this.deptName = deptName;
|
||||||
|
}
|
||||||
|
|
||||||
public String getPost() {
|
public String getPost() {
|
||||||
return post == null ? "" : post.trim();
|
return post;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPost(String post) {
|
public void setPost(String post) {
|
||||||
this.post = post;
|
this.post = post;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getPostName() {
|
||||||
|
return postName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPostName(String postName) {
|
||||||
|
this.postName = postName;
|
||||||
|
}
|
||||||
|
|
||||||
public String getDirectSuperior() {
|
public String getDirectSuperior() {
|
||||||
return directSuperior == null ? "" : directSuperior.trim();
|
return directSuperior;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDirectSuperior(String directSuperior) {
|
public void setDirectSuperior(String directSuperior) {
|
||||||
this.directSuperior = directSuperior;
|
this.directSuperior = directSuperior;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getDirectSuperiorName() {
|
||||||
|
return directSuperiorName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDirectSuperiorName(String directSuperiorName) {
|
||||||
|
this.directSuperiorName = directSuperiorName;
|
||||||
|
}
|
||||||
|
|
||||||
public String getBankAccount() {
|
public String getBankAccount() {
|
||||||
return bankAccount == null ? "" : bankAccount.trim();
|
return bankAccount;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBankAccount(String bankAccount) {
|
public void setBankAccount(String bankAccount) {
|
||||||
@ -358,7 +454,7 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getFundAccount() {
|
public String getFundAccount() {
|
||||||
return fundAccount == null ? "" : fundAccount.trim();
|
return fundAccount;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFundAccount(String fundAccount) {
|
public void setFundAccount(String fundAccount) {
|
||||||
@ -366,7 +462,7 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getSecurityAccount() {
|
public String getSecurityAccount() {
|
||||||
return securityAccount == null ? "" : securityAccount.trim();
|
return securityAccount;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSecurityAccount(String securityAccount) {
|
public void setSecurityAccount(String securityAccount) {
|
||||||
@ -374,31 +470,55 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getTitle() {
|
public String getTitle() {
|
||||||
return title == null ? "" : title.trim();
|
return title;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTitle(String title) {
|
public void setTitle(String title) {
|
||||||
this.title = title;
|
this.title = title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getTitleName() {
|
||||||
|
return titleName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTitleName(String titleName) {
|
||||||
|
this.titleName = titleName;
|
||||||
|
}
|
||||||
|
|
||||||
public String getTitleGrade() {
|
public String getTitleGrade() {
|
||||||
return titleGrade == null ? "" : titleGrade.trim();
|
return titleGrade;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTitleGrade(String titleGrade) {
|
public void setTitleGrade(String titleGrade) {
|
||||||
this.titleGrade = titleGrade;
|
this.titleGrade = titleGrade;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getTitleGradeName() {
|
||||||
|
return titleGradeName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTitleGradeName(String titleGradeName) {
|
||||||
|
this.titleGradeName = titleGradeName;
|
||||||
|
}
|
||||||
|
|
||||||
public String getUserType() {
|
public String getUserType() {
|
||||||
return userType == null ? "" : userType.trim();
|
return userType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUserType(String userType) {
|
public void setUserType(String userType) {
|
||||||
this.userType = userType;
|
this.userType = userType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getUserTypeName() {
|
||||||
|
return userTypeName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserTypeName(String userTypeName) {
|
||||||
|
this.userTypeName = userTypeName;
|
||||||
|
}
|
||||||
|
|
||||||
public String getCreator() {
|
public String getCreator() {
|
||||||
return creator == null ? "" : creator.trim();
|
return creator;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCreator(String creator) {
|
public void setCreator(String creator) {
|
||||||
@ -406,7 +526,7 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getGmtCreate() {
|
public String getGmtCreate() {
|
||||||
return gmtCreate == null ? "" : gmtCreate.trim();
|
return gmtCreate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setGmtCreate(String gmtCreate) {
|
public void setGmtCreate(String gmtCreate) {
|
||||||
@ -414,7 +534,7 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getModifier() {
|
public String getModifier() {
|
||||||
return modifier == null ? "" : modifier.trim();
|
return modifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setModifier(String modifier) {
|
public void setModifier(String modifier) {
|
||||||
@ -422,7 +542,7 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getGmtModified() {
|
public String getGmtModified() {
|
||||||
return gmtModified == null ? "" : gmtModified.trim();
|
return gmtModified;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setGmtModified(String gmtModified) {
|
public void setGmtModified(String gmtModified) {
|
||||||
@ -430,7 +550,7 @@ public class UserArchivesDTO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Integer getIsDelete() {
|
public Integer getIsDelete() {
|
||||||
return isDelete == null ? 0 : isDelete;
|
return isDelete;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIsDelete(Integer isDelete) {
|
public void setIsDelete(Integer isDelete) {
|
||||||
|
@ -110,11 +110,6 @@ public class FileTypeServiceImpl extends DefaultBaseService implements IFileType
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FileTypeDTO get(Map<String, Object> params) {
|
public FileTypeDTO get(Map<String, Object> params) {
|
||||||
/*if(null != params.get("typeBelong")) {
|
|
||||||
if("共享文档".equals(params.get("typeBelong").toString())) {
|
|
||||||
params.put("typeBelong", "个人文档");
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
return fileTypeDao.get(params);
|
return fileTypeDao.get(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -164,23 +159,54 @@ public class FileTypeServiceImpl extends DefaultBaseService implements IFileType
|
|||||||
params.put("typeBelong", "个人文档");
|
params.put("typeBelong", "个人文档");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
List<FileTypeDTO> fileTypeDTOList = fileTypeDao.list(params);
|
List<FileTypeDTO> fileTypeDTOList = null;
|
||||||
|
fileTypeDTOList = fileTypeDao.list(params);
|
||||||
Iterator<FileTypeDTO> it = fileTypeDTOList.iterator();
|
Iterator<FileTypeDTO> it = fileTypeDTOList.iterator();
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
FileTypeDTO fileTypeDTO = it.next();
|
FileTypeDTO fileTypeDTO = it.next();
|
||||||
|
params.put("fileUploadId", fileTypeDTO.getFileTypeId());
|
||||||
|
FileRoleDTO fileRoleDTO = fileRoleService.get(params);
|
||||||
if(null != params.get("method")) {
|
if(null != params.get("method")) {
|
||||||
if("新增".equals(params.get("method"))) {
|
if("新增".equals(params.get("method"))) {
|
||||||
if("否".equals(fileTypeDTO.getAddRole())) {
|
if(null != fileRoleDTO && "否".equals(fileTypeDTO.getAddRole())) {
|
||||||
it.remove();
|
it.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if("修改".equals(params.get("method"))) {
|
if("修改".equals(params.get("method"))) {
|
||||||
if("否".equals(fileTypeDTO.getEditRole())) {
|
if(null != fileRoleDTO && "否".equals(fileTypeDTO.getEditRole())) {
|
||||||
it.remove();
|
it.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!it.hasNext()) {
|
||||||
|
List<FileRoleDTO> fileRoleDTOList = fileRoleService.list(params);
|
||||||
|
if(null != fileRoleDTOList && fileRoleDTOList.size() > 0) {
|
||||||
|
fileTypeDTOList = new ArrayList<>();
|
||||||
|
for(FileRoleDTO fileRoleDTO: fileRoleDTOList) {
|
||||||
|
params.put("fileTypeId", fileRoleDTO.getFileUploadId());
|
||||||
|
params.remove("creator");
|
||||||
|
FileTypeDTO fileTypeDTO = get(params);
|
||||||
|
if(null != fileTypeDTO) {
|
||||||
|
fileTypeDTO.setAddRole(fileRoleDTO.getAddRole());
|
||||||
|
fileTypeDTO.setDelRole(fileRoleDTO.getDelRole());
|
||||||
|
fileTypeDTO.setEditRole(fileRoleDTO.getEditRole());
|
||||||
|
fileTypeDTO.setShareRole(fileRoleDTO.getShareRole());
|
||||||
|
if ("新增".equals(params.get("method"))) {
|
||||||
|
if ("是".equals(fileRoleDTO.getAddRole())) {
|
||||||
|
fileTypeDTOList.add(fileTypeDTO);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ("修改".equals(params.get("method"))) {
|
||||||
|
if ("是".equals(fileRoleDTO.getEditRole())) {
|
||||||
|
fileTypeDTOList.add(fileTypeDTO);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
return fileTypeDTOList;
|
return fileTypeDTOList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ import cn.com.tenlion.systemoa.pojo.dtos.fileupload.FileUploadDTO;
|
|||||||
import cn.com.tenlion.systemoa.pojo.pos.fileupload.FileUploadPO;
|
import cn.com.tenlion.systemoa.pojo.pos.fileupload.FileUploadPO;
|
||||||
import cn.com.tenlion.systemoa.pojo.vos.fileupload.FileUploadVO;
|
import cn.com.tenlion.systemoa.pojo.vos.fileupload.FileUploadVO;
|
||||||
import cn.com.tenlion.systemoa.service.filecatalogue.IFileCatalogueService;
|
import cn.com.tenlion.systemoa.service.filecatalogue.IFileCatalogueService;
|
||||||
|
import cn.com.tenlion.systemoa.service.filerole.IFileRoleService;
|
||||||
import cn.com.tenlion.systemoa.service.filetype.IFileTypeService;
|
import cn.com.tenlion.systemoa.service.filetype.IFileTypeService;
|
||||||
import cn.com.tenlion.systemoa.service.fileupload.IFileUploadService;
|
import cn.com.tenlion.systemoa.service.fileupload.IFileUploadService;
|
||||||
import cn.com.tenlion.systemoa.utils.OfficeToPDFUtils;
|
import cn.com.tenlion.systemoa.utils.OfficeToPDFUtils;
|
||||||
@ -64,6 +65,8 @@ public class FileUploadServiceImpl extends DefaultBaseService implements IFileUp
|
|||||||
private ConfigPro configPro;
|
private ConfigPro configPro;
|
||||||
@Autowired
|
@Autowired
|
||||||
private FileProperties fileProperties;
|
private FileProperties fileProperties;
|
||||||
|
@Autowired
|
||||||
|
private IFileRoleService fileRoleService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void save(FileUploadVO fileUploadVO) {
|
public void save(FileUploadVO fileUploadVO) {
|
||||||
@ -226,7 +229,7 @@ public class FileUploadServiceImpl extends DefaultBaseService implements IFileUp
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
List<FileUploadDTO> fileUploadDTOList = fileUploadDao.list(params);
|
/*List<FileUploadDTO> fileUploadDTOList = fileUploadDao.list(params);
|
||||||
if(null != fileUploadDTOList && fileUploadDTOList.size() > 0) {
|
if(null != fileUploadDTOList && fileUploadDTOList.size() > 0) {
|
||||||
Iterator it = fileUploadDTOList.iterator();
|
Iterator it = fileUploadDTOList.iterator();
|
||||||
while(it.hasNext()) {
|
while(it.hasNext()) {
|
||||||
@ -265,7 +268,115 @@ public class FileUploadServiceImpl extends DefaultBaseService implements IFileUp
|
|||||||
fileUploadDTO.setCatalogueName(fileTypeDTO1.getTypeName());
|
fileUploadDTO.setCatalogueName(fileTypeDTO1.getTypeName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}*/
|
||||||
|
// 新逻辑
|
||||||
|
List<FileUploadDTO> fileUploadDTOList = null;
|
||||||
|
if(null != params.get("typeBelong")) {
|
||||||
|
String typeBelong = params.get("typeBelong").toString();
|
||||||
|
String creator = params.get("creator").toString();
|
||||||
|
if("个人文档".equals(params.get("typeBelong").toString())) {
|
||||||
|
fileUploadDTOList = fileUploadDao.list(params);
|
||||||
|
if(null != fileUploadDTOList && fileUploadDTOList.size() > 0) {
|
||||||
|
Iterator<FileUploadDTO> iterator = fileUploadDTOList.iterator();
|
||||||
|
while (iterator.hasNext()) {
|
||||||
|
FileUploadDTO fileUploadDTO = iterator.next();
|
||||||
|
params.put("fileTypeId", fileUploadDTO.getFileTypeId());
|
||||||
|
params.remove("typeBelong");
|
||||||
|
params.remove("creator");
|
||||||
|
FileTypeDTO fileTypeDTO = fileTypeService.get(params);
|
||||||
|
if(null != fileTypeDTO && "公共文档".equals(fileTypeDTO.getTypeBelong())) {
|
||||||
|
iterator.remove();
|
||||||
|
}
|
||||||
|
fileUploadDTO.setCatalogueName(fileTypeDTO.getTypeName());
|
||||||
|
fileUploadDTO.setCatalogueType(fileTypeDTO.getTypeBelong());
|
||||||
|
}
|
||||||
|
for(FileUploadDTO fileUploadDTO: fileUploadDTOList) {
|
||||||
|
fileUploadDTO.setAddRole("是");
|
||||||
|
fileUploadDTO.setDelRole("是");
|
||||||
|
fileUploadDTO.setEditRole("是");
|
||||||
|
fileUploadDTO.setShareRole("是");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
params.put("typeBelong", typeBelong);
|
||||||
|
if("共享文档".equals(params.get("typeBelong").toString())) {
|
||||||
|
List<FileRoleDTO> fileRoleDTOList = fileRoleService.list(params);
|
||||||
|
if(null != fileRoleDTOList && fileRoleDTOList.size() > 0) {
|
||||||
|
fileUploadDTOList = new ArrayList<>();
|
||||||
|
for(FileRoleDTO fileRoleDTO: fileRoleDTOList) {
|
||||||
|
params.put("fileUploadId", fileRoleDTO.getFileUploadId());
|
||||||
|
params.remove("creator");
|
||||||
|
FileUploadDTO fileUploadDTO = get(params);
|
||||||
|
if(null != fileUploadDTO) {
|
||||||
|
fileUploadDTO.setAddRole(fileRoleDTO.getAddRole());
|
||||||
|
fileUploadDTO.setDelRole(fileRoleDTO.getDelRole());
|
||||||
|
fileUploadDTO.setEditRole(fileRoleDTO.getEditRole());
|
||||||
|
fileUploadDTO.setShareRole(fileRoleDTO.getShareRole());
|
||||||
|
params.put("fileTypeId", fileUploadDTO.getFileTypeId());
|
||||||
|
params.remove("creator");
|
||||||
|
FileTypeDTO fileTypeDTO = fileTypeService.get(params);
|
||||||
|
if(null != fileTypeDTO) {
|
||||||
|
fileUploadDTO.setCatalogueName(fileTypeDTO.getTypeName());
|
||||||
|
fileUploadDTO.setCatalogueType(fileTypeDTO.getTypeBelong());
|
||||||
|
}
|
||||||
|
fileUploadDTOList.add(fileUploadDTO);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if("公共文档".equals(params.get("typeBelong").toString())) {
|
||||||
|
params.remove("creator");
|
||||||
|
fileUploadDTOList = fileUploadDao.list(params);
|
||||||
|
if(null != fileUploadDTOList && fileUploadDTOList.size() > 0) {
|
||||||
|
Iterator<FileUploadDTO> it = fileUploadDTOList.iterator();
|
||||||
|
while(it.hasNext()) {
|
||||||
|
FileUploadDTO fileUploadDTO = it.next();
|
||||||
|
params.put("fileTypeId", fileUploadDTO.getFileTypeId());
|
||||||
|
params.remove("typeBelong");
|
||||||
|
params.remove("creator");
|
||||||
|
FileTypeDTO fileTypeDTO = fileTypeService.get(params);
|
||||||
|
if(null != fileTypeDTO) {
|
||||||
|
if("个人文档".equals(fileTypeDTO.getTypeBelong())) {
|
||||||
|
it.remove();
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if(null != fileTypeDTO) {
|
||||||
|
fileUploadDTO.setCatalogueName(fileTypeDTO.getTypeName());
|
||||||
|
fileUploadDTO.setCatalogueType(fileTypeDTO.getTypeBelong());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// params.put("typeBelong", typeBelong);
|
||||||
|
params.put("creator", creator);
|
||||||
|
params.put("userId", creator);
|
||||||
|
FileRoleDTO fileRoleDTO = fileRoleService.get(params);
|
||||||
|
if(null != fileRoleDTO) {
|
||||||
|
fileUploadDTO.setAddRole(fileRoleDTO.getAddRole());
|
||||||
|
fileUploadDTO.setDelRole(fileRoleDTO.getDelRole());
|
||||||
|
fileUploadDTO.setEditRole(fileRoleDTO.getEditRole());
|
||||||
|
fileUploadDTO.setShareRole(fileRoleDTO.getShareRole());
|
||||||
|
}else {
|
||||||
|
FileUploadDTO fileUploadDTO1 = get(params);
|
||||||
|
if(null != fileUploadDTO1) {
|
||||||
|
fileUploadDTO.setAddRole("是");
|
||||||
|
fileUploadDTO.setDelRole("是");
|
||||||
|
fileUploadDTO.setEditRole("是");
|
||||||
|
fileUploadDTO.setShareRole("是");
|
||||||
|
}else {
|
||||||
|
fileUploadDTO.setAddRole("否");
|
||||||
|
fileUploadDTO.setDelRole("否");
|
||||||
|
fileUploadDTO.setEditRole("否");
|
||||||
|
fileUploadDTO.setShareRole("否");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return fileUploadDTOList;
|
return fileUploadDTOList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -191,4 +191,6 @@ public interface IUserArchivesService {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
UserArchivesDTO getByUserId(String userId);
|
UserArchivesDTO getByUserId(String userId);
|
||||||
|
|
||||||
|
UserArchivesDTO getByToken(String token);
|
||||||
}
|
}
|
@ -7,9 +7,17 @@ import cn.com.tenlion.systemoa.pojo.vos.userwork.UserWorkVO;
|
|||||||
import cn.com.tenlion.systemoa.service.usereducation.IUserEducationService;
|
import cn.com.tenlion.systemoa.service.usereducation.IUserEducationService;
|
||||||
import cn.com.tenlion.systemoa.service.userwork.IUserWorkService;
|
import cn.com.tenlion.systemoa.service.userwork.IUserWorkService;
|
||||||
import ink.wgink.common.base.DefaultBaseService;
|
import ink.wgink.common.base.DefaultBaseService;
|
||||||
|
import ink.wgink.module.dictionary.pojo.dtos.DataDTO;
|
||||||
|
import ink.wgink.module.dictionary.service.IDataService;
|
||||||
import ink.wgink.pojo.ListPage;
|
import ink.wgink.pojo.ListPage;
|
||||||
|
import ink.wgink.pojo.app.AppTokenUser;
|
||||||
|
import ink.wgink.pojo.dtos.department.DepartmentDTO;
|
||||||
|
import ink.wgink.pojo.dtos.user.UserDTO;
|
||||||
import ink.wgink.pojo.result.SuccessResult;
|
import ink.wgink.pojo.result.SuccessResult;
|
||||||
import ink.wgink.pojo.result.SuccessResultList;
|
import ink.wgink.pojo.result.SuccessResultList;
|
||||||
|
import ink.wgink.service.department.service.IDepartmentService;
|
||||||
|
import ink.wgink.service.department.service.IDepartmentUserService;
|
||||||
|
import ink.wgink.service.user.service.IUserService;
|
||||||
import ink.wgink.util.map.HashMapUtil;
|
import ink.wgink.util.map.HashMapUtil;
|
||||||
import ink.wgink.util.UUIDUtil;
|
import ink.wgink.util.UUIDUtil;
|
||||||
import cn.com.tenlion.systemoa.dao.userarchives.IUserArchivesDao;
|
import cn.com.tenlion.systemoa.dao.userarchives.IUserArchivesDao;
|
||||||
@ -43,6 +51,12 @@ public class UserArchivesServiceImpl extends DefaultBaseService implements IUser
|
|||||||
private IUserEducationService userEducationService;
|
private IUserEducationService userEducationService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private IUserWorkService userWorkService;
|
private IUserWorkService userWorkService;
|
||||||
|
@Autowired
|
||||||
|
private IDataService dataService;
|
||||||
|
@Autowired
|
||||||
|
private IDepartmentService departmentService;
|
||||||
|
@Autowired
|
||||||
|
private IUserService userService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void save(UserArchivesVO userArchivesVO) {
|
public void save(UserArchivesVO userArchivesVO) {
|
||||||
@ -70,13 +84,14 @@ public class UserArchivesServiceImpl extends DefaultBaseService implements IUser
|
|||||||
setAppSaveInfo(token, params);
|
setAppSaveInfo(token, params);
|
||||||
}
|
}
|
||||||
params.put("archivesNum", creatArchivesNum());
|
params.put("archivesNum", creatArchivesNum());
|
||||||
|
params.put("userId", params.get("creator"));
|
||||||
userArchivesDao.save(params);
|
userArchivesDao.save(params);
|
||||||
|
|
||||||
List<UserEducationVO> userEducationVOList = userArchivesVO.getEducationList();
|
List<UserEducationVO> userEducationVOList = userArchivesVO.getEducationList();
|
||||||
if(null != userEducationVOList && userEducationVOList.size() > 0) {
|
if(null != userEducationVOList && userEducationVOList.size() > 0) {
|
||||||
for(UserEducationVO userEducationVO: userEducationVOList) {
|
for(UserEducationVO userEducationVO: userEducationVOList) {
|
||||||
userEducationVO.setUserArchivesId(userArchivesId);
|
userEducationVO.setUserArchivesId(userArchivesId);
|
||||||
userEducationService.save(userEducationVO);
|
userEducationService.save(token, userEducationVO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -84,7 +99,7 @@ public class UserArchivesServiceImpl extends DefaultBaseService implements IUser
|
|||||||
if(null != userWorkVOList && userWorkVOList.size() > 0) {
|
if(null != userWorkVOList && userWorkVOList.size() > 0) {
|
||||||
for(UserWorkVO userWorkVO: userWorkVOList) {
|
for(UserWorkVO userWorkVO: userWorkVOList) {
|
||||||
userWorkVO.setUserArchivesId(userArchivesId);
|
userWorkVO.setUserArchivesId(userArchivesId);
|
||||||
userWorkService.save(userWorkVO);
|
userWorkService.save(token, userWorkVO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return userArchivesId;
|
return userArchivesId;
|
||||||
@ -150,7 +165,7 @@ public class UserArchivesServiceImpl extends DefaultBaseService implements IUser
|
|||||||
userEducationService.removeByUserArchivesId(null, userArchivesId);
|
userEducationService.removeByUserArchivesId(null, userArchivesId);
|
||||||
for(UserEducationVO userEducationVO: userEducationVOList) {
|
for(UserEducationVO userEducationVO: userEducationVOList) {
|
||||||
userEducationVO.setUserArchivesId(userArchivesId);
|
userEducationVO.setUserArchivesId(userArchivesId);
|
||||||
userEducationService.save(userEducationVO);
|
userEducationService.save(token, userEducationVO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -159,7 +174,7 @@ public class UserArchivesServiceImpl extends DefaultBaseService implements IUser
|
|||||||
userWorkService.removeByUserArchivesId(null, userArchivesId);
|
userWorkService.removeByUserArchivesId(null, userArchivesId);
|
||||||
for(UserWorkVO userWorkVO: userWorkVOList) {
|
for(UserWorkVO userWorkVO: userWorkVOList) {
|
||||||
userWorkVO.setUserArchivesId(userArchivesId);
|
userWorkVO.setUserArchivesId(userArchivesId);
|
||||||
userWorkService.save(userWorkVO);
|
userWorkService.save(token, userWorkVO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
userArchivesDao.update(params);
|
userArchivesDao.update(params);
|
||||||
@ -169,6 +184,76 @@ public class UserArchivesServiceImpl extends DefaultBaseService implements IUser
|
|||||||
public UserArchivesDTO get(Map<String, Object> params) {
|
public UserArchivesDTO get(Map<String, Object> params) {
|
||||||
UserArchivesDTO userArchivesDTO = userArchivesDao.get(params);
|
UserArchivesDTO userArchivesDTO = userArchivesDao.get(params);
|
||||||
if(null != userArchivesDTO) {
|
if(null != userArchivesDTO) {
|
||||||
|
params.put("userArchivesId", userArchivesDTO.getUserArchivesId());
|
||||||
|
// 获取字典相关汉字
|
||||||
|
if(!StringUtils.isEmpty(userArchivesDTO.getSex())) {
|
||||||
|
DataDTO dataDTO = dataService.get(userArchivesDTO.getSex());
|
||||||
|
if(null != dataDTO) {
|
||||||
|
userArchivesDTO.setSexName(dataDTO.getDataName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!StringUtils.isEmpty(userArchivesDTO.getPoliticalOutlook())) {
|
||||||
|
DataDTO dataDTO = dataService.get(userArchivesDTO.getPoliticalOutlook());
|
||||||
|
if(null != dataDTO) {
|
||||||
|
userArchivesDTO.setPoliticalOutlookName(dataDTO.getDataName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(!StringUtils.isEmpty(userArchivesDTO.getMaritalStatus())) {
|
||||||
|
DataDTO dataDTO = dataService.get(userArchivesDTO.getMaritalStatus());
|
||||||
|
if(null != dataDTO) {
|
||||||
|
userArchivesDTO.setMaritalStatusName(dataDTO.getDataName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(!StringUtils.isEmpty(userArchivesDTO.getResidenceNature())) {
|
||||||
|
DataDTO dataDTO = dataService.get(userArchivesDTO.getResidenceNature());
|
||||||
|
if(null != dataDTO) {
|
||||||
|
userArchivesDTO.setResidenceNatureName(dataDTO.getDataName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(!StringUtils.isEmpty(userArchivesDTO.getMajor())) {
|
||||||
|
DataDTO dataDTO = dataService.get(userArchivesDTO.getMajor());
|
||||||
|
if(null != dataDTO) {
|
||||||
|
userArchivesDTO.setMajorName(dataDTO.getDataName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(!StringUtils.isEmpty(userArchivesDTO.getDept())) {
|
||||||
|
DepartmentDTO departmentDTO = departmentService.get(userArchivesDTO.getDept());
|
||||||
|
if(null != departmentDTO) {
|
||||||
|
userArchivesDTO.setDeptName(departmentDTO.getDepartmentName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(!StringUtils.isEmpty(userArchivesDTO.getPost())) {
|
||||||
|
DataDTO dataDTO = dataService.get(userArchivesDTO.getPost());
|
||||||
|
if(null != dataDTO) {
|
||||||
|
userArchivesDTO.setPostName(dataDTO.getDataName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(!StringUtils.isEmpty(userArchivesDTO.getDirectSuperior())) {
|
||||||
|
UserDTO userDTO = userService.get(userArchivesDTO.getDirectSuperior());
|
||||||
|
if(null != userDTO) {
|
||||||
|
userArchivesDTO.setDirectSuperiorName(userDTO.getUserName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(!StringUtils.isEmpty(userArchivesDTO.getTitle())) {
|
||||||
|
DataDTO dataDTO = dataService.get(userArchivesDTO.getTitle());
|
||||||
|
if(null != dataDTO) {
|
||||||
|
userArchivesDTO.setTitleName(dataDTO.getDataName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(!StringUtils.isEmpty(userArchivesDTO.getTitleGrade())) {
|
||||||
|
DataDTO dataDTO = dataService.get(userArchivesDTO.getTitleGrade());
|
||||||
|
if(null != dataDTO) {
|
||||||
|
userArchivesDTO.setTitleGradeName(dataDTO.getDataName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(!StringUtils.isEmpty(userArchivesDTO.getUserType())) {
|
||||||
|
DataDTO dataDTO = dataService.get(userArchivesDTO.getUserType());
|
||||||
|
if(null != dataDTO) {
|
||||||
|
userArchivesDTO.setUserTypeName(dataDTO.getDataName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
List<UserEducationDTO> userEducationDTOList = userEducationService.list(params);
|
List<UserEducationDTO> userEducationDTOList = userEducationService.list(params);
|
||||||
if(null != userEducationDTOList && userEducationDTOList.size() > 0) {
|
if(null != userEducationDTOList && userEducationDTOList.size() > 0) {
|
||||||
userArchivesDTO.setEducationList(userEducationDTOList);
|
userArchivesDTO.setEducationList(userEducationDTOList);
|
||||||
@ -249,4 +334,18 @@ public class UserArchivesServiceImpl extends DefaultBaseService implements IUser
|
|||||||
return get(params);
|
return get(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public UserArchivesDTO getByToken(String token) {
|
||||||
|
if(null != token) {
|
||||||
|
AppTokenUser appTokenUser = getAppTokenUser(token);
|
||||||
|
String userId = appTokenUser.getId();
|
||||||
|
UserArchivesDTO userArchivesDTO = getByUserId(userId);
|
||||||
|
if(null == userArchivesDTO) {
|
||||||
|
return new UserArchivesDTO();
|
||||||
|
}
|
||||||
|
return userArchivesDTO;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -235,6 +235,9 @@
|
|||||||
t1.id LIKE CONCAT('%', #{keywords}, '%')
|
t1.id LIKE CONCAT('%', #{keywords}, '%')
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
|
<if test="creator != null and creator != ''">
|
||||||
|
AND FIND_IN_SET(#{creator}, t1.user_id)
|
||||||
|
</if>
|
||||||
<if test="fileUploadId != null and fileUploadId != ''">
|
<if test="fileUploadId != null and fileUploadId != ''">
|
||||||
AND t1.file_upload_id = #{fileUploadId}
|
AND t1.file_upload_id = #{fileUploadId}
|
||||||
</if>
|
</if>
|
||||||
|
@ -123,7 +123,7 @@
|
|||||||
</update>
|
</update>
|
||||||
|
|
||||||
<!-- 文件类型详情 -->
|
<!-- 文件类型详情 -->
|
||||||
<select id="get" parameterType="map" resultMap="fileTypeDTO">
|
<!--<select id="get" parameterType="map" resultMap="fileTypeDTO">
|
||||||
SELECT
|
SELECT
|
||||||
t1.type_name,
|
t1.type_name,
|
||||||
t1.remake,
|
t1.remake,
|
||||||
@ -157,6 +157,29 @@
|
|||||||
</if>
|
</if>
|
||||||
</if>
|
</if>
|
||||||
LIMIT 0, 1
|
LIMIT 0, 1
|
||||||
|
</select>-->
|
||||||
|
<select id="get" parameterType="map" resultMap="fileTypeDTO">
|
||||||
|
SELECT
|
||||||
|
t1.type_name,
|
||||||
|
t1.remake,
|
||||||
|
t1.type_belong,
|
||||||
|
t1.code,
|
||||||
|
t1.file_type_id,
|
||||||
|
1
|
||||||
|
FROM
|
||||||
|
data_file_type t1
|
||||||
|
WHERE
|
||||||
|
t1.is_delete = 0
|
||||||
|
<if test="fileTypeId != null and fileTypeId != ''">
|
||||||
|
AND t1.file_type_id = #{fileTypeId}
|
||||||
|
</if>
|
||||||
|
<if test="typeBelong != null and typeBelong != ''">
|
||||||
|
AND t1.type_belong = #{typeBelong}
|
||||||
|
</if>
|
||||||
|
<if test="creator != null and creator != ''">
|
||||||
|
AND FIND_IN_SET(#{creator}, t1.creator)
|
||||||
|
</if>
|
||||||
|
LIMIT 0, 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getName" parameterType="map" resultMap="fileTypeDTO">
|
<select id="getName" parameterType="map" resultMap="fileTypeDTO">
|
||||||
@ -235,7 +258,7 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 文件类型列表 -->
|
<!-- 文件类型列表 -->
|
||||||
<select id="list" parameterType="map" resultMap="fileTypeDTO">
|
<!--<select id="list" parameterType="map" resultMap="fileTypeDTO">
|
||||||
SELECT
|
SELECT
|
||||||
DISTINCT
|
DISTINCT
|
||||||
t1.file_type_id,
|
t1.file_type_id,
|
||||||
@ -294,6 +317,55 @@
|
|||||||
#{fileTypeIds[${index}]}
|
#{fileTypeIds[${index}]}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
|
</select>-->
|
||||||
|
|
||||||
|
<select id="list" parameterType="map" resultMap="fileTypeDTO">
|
||||||
|
SELECT
|
||||||
|
DISTINCT
|
||||||
|
t1.file_type_id,
|
||||||
|
t1.type_name,
|
||||||
|
t1.remake,
|
||||||
|
t1.type_belong,
|
||||||
|
t1.code,
|
||||||
|
t1.creator,
|
||||||
|
t1.gmt_create,
|
||||||
|
t1.modifier,
|
||||||
|
t1.gmt_modified,
|
||||||
|
t1.is_delete,
|
||||||
|
1
|
||||||
|
FROM
|
||||||
|
data_file_type t1
|
||||||
|
WHERE
|
||||||
|
t1.is_delete = 0
|
||||||
|
<if test="keywords != null and keywords != ''">
|
||||||
|
AND (
|
||||||
|
t1.type_name LIKE CONCAT('%', #{keywords}, '%')
|
||||||
|
OR t1.remake LIKE CONCAT('%', #{keywords}, '%')
|
||||||
|
OR t1.code LIKE CONCAT('%', #{keywords}, '%')
|
||||||
|
OR t1.type_belong LIKE CONCAT('%', #{keywords}, '%')
|
||||||
|
)
|
||||||
|
</if>
|
||||||
|
<if test="typeBelong != null and typeBelong != ''">
|
||||||
|
AND t1.type_belong = #{typeBelong}
|
||||||
|
</if>
|
||||||
|
<if test="creator != null and creator != ''">
|
||||||
|
AND FIND_IN_SET(#{creator}, t1.creator)
|
||||||
|
</if>
|
||||||
|
<if test="startTime != null and startTime != ''">
|
||||||
|
AND
|
||||||
|
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
||||||
|
</if>
|
||||||
|
<if test="endTime != null and endTime != ''">
|
||||||
|
AND
|
||||||
|
LEFT(t1.gmt_create, 10) <![CDATA[ <= ]]> #{endTime}
|
||||||
|
</if>
|
||||||
|
<if test="fileTypeIds != null and fileTypeIds.size > 0">
|
||||||
|
AND
|
||||||
|
t1.file_type_id IN
|
||||||
|
<foreach collection="fileTypeIds" index="index" open="(" separator="," close=")">
|
||||||
|
#{fileTypeIds[${index}]}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 文件类型列表 -->
|
<!-- 文件类型列表 -->
|
||||||
|
@ -172,6 +172,10 @@
|
|||||||
AND
|
AND
|
||||||
t1.file_upload_id = #{fileUploadId}
|
t1.file_upload_id = #{fileUploadId}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="creator != null and creator != ''">
|
||||||
|
AND FIND_IN_SET(#{creator}, t1.creator)
|
||||||
|
</if>
|
||||||
|
LIMIT 0, 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 文档上传详情 -->
|
<!-- 文档上传详情 -->
|
||||||
@ -227,6 +231,66 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 文档上传列表 -->
|
<!-- 文档上传列表 -->
|
||||||
|
<select id="listByPublic" parameterType="map" resultMap="fileUploadDTO">
|
||||||
|
SELECT
|
||||||
|
DISTINCT
|
||||||
|
t1.file_upload_id,
|
||||||
|
t1.catalogue_id,
|
||||||
|
t1.file_type_id,
|
||||||
|
t1.file_id,
|
||||||
|
t1.file_type,
|
||||||
|
t1.content,
|
||||||
|
t1.remake,
|
||||||
|
t1.file_modular,
|
||||||
|
t1.pdf_file_path,
|
||||||
|
t1.creator,
|
||||||
|
t1.gmt_create,
|
||||||
|
t1.modifier,
|
||||||
|
t1.gmt_modified,
|
||||||
|
t1.is_delete,
|
||||||
|
t2.add_role,
|
||||||
|
t2.edit_role,
|
||||||
|
t2.del_role,
|
||||||
|
t2.share_role,
|
||||||
|
1
|
||||||
|
FROM
|
||||||
|
data_file_upload t1
|
||||||
|
LEFT JOIN data_file_role t2 ON t1.file_upload_id = t2.file_upload_id AND t1.is_delete = 0
|
||||||
|
WHERE
|
||||||
|
t1.is_delete = 0
|
||||||
|
<if test="keywords != null and keywords != ''">
|
||||||
|
AND (
|
||||||
|
t1.file_type_id LIKE CONCAT('%', #{keywords}, '%')
|
||||||
|
OR t1.content LIKE CONCAT('%', #{keywords}, '%')
|
||||||
|
OR t1.remake LIKE CONCAT('%', #{keywords}, '%')
|
||||||
|
OR t1.file_modular LIKE CONCAT('%', #{keywords}, '%')
|
||||||
|
OR t1.file_type LIKE CONCAT('%', #{keywords}, '%')
|
||||||
|
)
|
||||||
|
</if>
|
||||||
|
<if test="creator != null and creator != ''">
|
||||||
|
AND FIND_IN_SET(#{creator}, t1.creator)
|
||||||
|
OR FIND_IN_SET(#{creator}, t2.user_id)
|
||||||
|
</if>
|
||||||
|
<if test="catalogueId != null and catalogueId != ''">
|
||||||
|
AND t1.catalogue_id = #{catalogueId}
|
||||||
|
</if>
|
||||||
|
<if test="startTime != null and startTime != ''">
|
||||||
|
AND
|
||||||
|
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
||||||
|
</if>
|
||||||
|
<if test="endTime != null and endTime != ''">
|
||||||
|
AND
|
||||||
|
LEFT(t1.gmt_create, 10) <![CDATA[ <= ]]> #{endTime}
|
||||||
|
</if>
|
||||||
|
<if test="fileUploadIds != null and fileUploadIds.size > 0">
|
||||||
|
AND
|
||||||
|
t1.file_upload_id IN
|
||||||
|
<foreach collection="fileUploadIds" index="index" open="(" separator="," close=")">
|
||||||
|
#{fileUploadIds[${index}]}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
|
||||||
<select id="list" parameterType="map" resultMap="fileUploadDTO">
|
<select id="list" parameterType="map" resultMap="fileUploadDTO">
|
||||||
SELECT
|
SELECT
|
||||||
DISTINCT
|
DISTINCT
|
||||||
@ -244,40 +308,31 @@
|
|||||||
t1.modifier,
|
t1.modifier,
|
||||||
t1.gmt_modified,
|
t1.gmt_modified,
|
||||||
t1.is_delete,
|
t1.is_delete,
|
||||||
<if test="typeBelong != null and typeBelong != '' and typeBelong != '个人文档'">
|
1
|
||||||
t2.add_role,
|
|
||||||
t2.edit_role,
|
|
||||||
t2.del_role,
|
|
||||||
t2.share_role,
|
|
||||||
</if>
|
|
||||||
1
|
|
||||||
FROM
|
FROM
|
||||||
data_file_upload t1
|
data_file_upload t1
|
||||||
<if test="typeBelong != null and typeBelong != '' and typeBelong != '个人文档'">
|
|
||||||
LEFT JOIN data_file_role t2 ON t1.file_upload_id = t2.file_upload_id
|
|
||||||
</if>
|
|
||||||
WHERE
|
WHERE
|
||||||
t1.is_delete = 0
|
t1.is_delete = 0
|
||||||
<if test="keywords != null and keywords != ''">
|
<if test="keywords != null and keywords != ''">
|
||||||
AND (
|
AND (
|
||||||
t1.file_type_id LIKE CONCAT('%', #{keywords}, '%')
|
t1.file_type_id LIKE CONCAT('%', #{keywords}, '%')
|
||||||
OR t1.content LIKE CONCAT('%', #{keywords}, '%')
|
OR t1.content LIKE CONCAT('%', #{keywords}, '%')
|
||||||
OR t1.remake LIKE CONCAT('%', #{keywords}, '%')
|
OR t1.remake LIKE CONCAT('%', #{keywords}, '%')
|
||||||
OR t1.file_modular LIKE CONCAT('%', #{keywords}, '%')
|
OR t1.file_modular LIKE CONCAT('%', #{keywords}, '%')
|
||||||
OR t1.file_type LIKE CONCAT('%', #{keywords}, '%')
|
OR t1.file_type LIKE CONCAT('%', #{keywords}, '%')
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="creator != null and creator != ''">
|
<if test="creator != null and creator != ''">
|
||||||
AND FIND_IN_SET(#{creator}, t1.creator)
|
AND FIND_IN_SET(#{creator}, t1.creator)
|
||||||
<if test="typeBelong != null and typeBelong != '' and typeBelong != '个人文档'">
|
</if>
|
||||||
OR FIND_IN_SET(#{creator}, t2.user_id)
|
<if test="fileTypeId != null and fileTypeId != ''">
|
||||||
</if>
|
AND FIND_IN_SET(#{fileTypeId}, t1.file_type_id)
|
||||||
</if>
|
</if>
|
||||||
<if test="catalogueId != null and catalogueId != ''">
|
<if test="catalogueId != null and catalogueId != ''">
|
||||||
AND t1.catalogue_id = #{catalogueId}
|
AND t1.catalogue_id = #{catalogueId}
|
||||||
</if>
|
</if>
|
||||||
<if test="startTime != null and startTime != ''">
|
<if test="startTime != null and startTime != ''">
|
||||||
AND
|
AND
|
||||||
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
||||||
</if>
|
</if>
|
||||||
<if test="endTime != null and endTime != ''">
|
<if test="endTime != null and endTime != ''">
|
||||||
@ -285,7 +340,7 @@
|
|||||||
LEFT(t1.gmt_create, 10) <![CDATA[ <= ]]> #{endTime}
|
LEFT(t1.gmt_create, 10) <![CDATA[ <= ]]> #{endTime}
|
||||||
</if>
|
</if>
|
||||||
<if test="fileUploadIds != null and fileUploadIds.size > 0">
|
<if test="fileUploadIds != null and fileUploadIds.size > 0">
|
||||||
AND
|
AND
|
||||||
t1.file_upload_id IN
|
t1.file_upload_id IN
|
||||||
<foreach collection="fileUploadIds" index="index" open="(" separator="," close=")">
|
<foreach collection="fileUploadIds" index="index" open="(" separator="," close=")">
|
||||||
#{fileUploadIds[${index}]}
|
#{fileUploadIds[${index}]}
|
||||||
|
@ -326,6 +326,9 @@
|
|||||||
<if test="photo != null and photo != ''">
|
<if test="photo != null and photo != ''">
|
||||||
photo = #{photo},
|
photo = #{photo},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="photo == null or photo == ''">
|
||||||
|
photo = '',
|
||||||
|
</if>
|
||||||
<if test="joinTime != null and joinTime != ''">
|
<if test="joinTime != null and joinTime != ''">
|
||||||
join_time = #{joinTime},
|
join_time = #{joinTime},
|
||||||
</if>
|
</if>
|
||||||
@ -364,6 +367,9 @@
|
|||||||
</if>
|
</if>
|
||||||
<if test="resume != null and resume != ''">
|
<if test="resume != null and resume != ''">
|
||||||
resume = #{resume},
|
resume = #{resume},
|
||||||
|
</if>
|
||||||
|
<if test="resume == null or resume == ''">
|
||||||
|
resume = '',
|
||||||
</if>
|
</if>
|
||||||
gmt_modified = #{gmtModified},
|
gmt_modified = #{gmtModified},
|
||||||
modifier = #{modifier},
|
modifier = #{modifier},
|
||||||
|
@ -29,11 +29,11 @@
|
|||||||
<input type="text" id="userName" name="userName" class="layui-input" value="" placeholder="点击选择被共享人员" maxlength="36">
|
<input type="text" id="userName" name="userName" class="layui-input" value="" placeholder="点击选择被共享人员" maxlength="36">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-form-item" pane style="display: none;">
|
<div class="layui-form-item" pane>
|
||||||
<label class="layui-form-label">新增权限</label>
|
<label class="layui-form-label">新增权限</label>
|
||||||
<div class="layui-input-block">
|
<div class="layui-input-block">
|
||||||
<input type="radio" name="addRole" lay-filter="addRole" value="是" title="是">
|
<input type="radio" name="addRole" lay-filter="addRole" value="是" title="是" checked>
|
||||||
<input type="radio" name="addRole" lay-filter="addRole" value="否" title="否" checked>
|
<input type="radio" name="addRole" lay-filter="addRole" value="否" title="否">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-form-item" pane>
|
<div class="layui-form-item" pane>
|
||||||
|
@ -220,7 +220,7 @@
|
|||||||
// 文档共享
|
// 文档共享
|
||||||
if('share' == obj.event) {
|
if('share' == obj.event) {
|
||||||
console.log(data)
|
console.log(data)
|
||||||
share(data.fileUploadId, data.typeBelong);
|
share(data.fileTypeId, data.typeBelong);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -298,21 +298,12 @@
|
|||||||
reloadTable(1);
|
reloadTable(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
function getRole(fileTypeId, id) {
|
function getRole(fileTypeId, id, role) {
|
||||||
var loadLayerIndex;
|
if('否' == role) {
|
||||||
top.restAjax.get(top.restAjax.path('api/filetype/get/{fileTypeId}', [fileTypeId]), {}, null, function(code, data) {
|
top.dialog.msg('当前用户无删除权限');
|
||||||
if('否' == data.delRole) {
|
}else {
|
||||||
top.dialog.msg('当前用户无删除权限');
|
removeData(id);
|
||||||
}else {
|
}
|
||||||
removeData(id);
|
|
||||||
}
|
|
||||||
}, function(code, data) {
|
|
||||||
top.dialog.msg(data.msg);
|
|
||||||
}, function() {
|
|
||||||
loadLayerIndex = top.dialog.msg(top.dataMessage.loading, {icon: 16, time: 0, shade: 0.3});
|
|
||||||
}, function() {
|
|
||||||
top.dialog.close(loadLayerIndex);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 事件 - 增删改
|
// 事件 - 增删改
|
||||||
@ -335,6 +326,7 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if(layEvent === 'updateEvent') {
|
} else if(layEvent === 'updateEvent') {
|
||||||
|
console.log(checkDatas)
|
||||||
if(checkDatas.length === 0) {
|
if(checkDatas.length === 0) {
|
||||||
top.dialog.msg(top.dataMessage.table.selectEdit);
|
top.dialog.msg(top.dataMessage.table.selectEdit);
|
||||||
} else if(checkDatas.length > 1) {
|
} else if(checkDatas.length > 1) {
|
||||||
@ -347,7 +339,7 @@
|
|||||||
area: ['100%', '100%'],
|
area: ['100%', '100%'],
|
||||||
shadeClose: true,
|
shadeClose: true,
|
||||||
anim: 2,
|
anim: 2,
|
||||||
content: top.restAjax.path('route/fileupload/update?fileUploadId={fileUploadId}&typeBelong={typeBelong}', [checkDatas[0].fileUploadId, checkDatas[0].catalogueName]),
|
content: top.restAjax.path('route/fileupload/update?fileUploadId={fileUploadId}&typeBelong={typeBelong}&editRole={editRole}', [checkDatas[0].fileUploadId, checkDatas[0].catalogueName, checkDatas[0].editRole]),
|
||||||
end: function() {
|
end: function() {
|
||||||
reloadTable();
|
reloadTable();
|
||||||
}
|
}
|
||||||
@ -359,7 +351,8 @@
|
|||||||
}else {
|
}else {
|
||||||
var ids = '';
|
var ids = '';
|
||||||
for(var i = 0, item; item = checkDatas[i++];) {
|
for(var i = 0, item; item = checkDatas[i++];) {
|
||||||
getRole(item.fileTypeId, item['fileUploadId']);
|
console.log(item);
|
||||||
|
getRole(item.fileTypeId, item['fileUploadId'], item['delRole']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -152,6 +152,9 @@
|
|||||||
|
|
||||||
// 初始化文档类型
|
// 初始化文档类型
|
||||||
function initFileTypeIdSelect() {
|
function initFileTypeIdSelect() {
|
||||||
|
if(!typeBelong) {
|
||||||
|
typeBelong = '';
|
||||||
|
}
|
||||||
top.restAjax.get(top.restAjax.path('api/filetype/list?typeBelong={typeBelong}&method={method}', [typeBelong, '新增']), {}, null, function(code, data, args) {
|
top.restAjax.get(top.restAjax.path('api/filetype/list?typeBelong={typeBelong}&method={method}', [typeBelong, '新增']), {}, null, function(code, data, args) {
|
||||||
laytpl(document.getElementById('fileTypeIdSelectTemplate').innerHTML).render(data, function(html) {
|
laytpl(document.getElementById('fileTypeIdSelectTemplate').innerHTML).render(data, function(html) {
|
||||||
document.getElementById('fileTypeIdSelectTemplateBox').innerHTML = html;
|
document.getElementById('fileTypeIdSelectTemplateBox').innerHTML = html;
|
||||||
|
@ -187,6 +187,7 @@
|
|||||||
var fileUploadId = top.restAjax.params(window.location.href).fileUploadId;
|
var fileUploadId = top.restAjax.params(window.location.href).fileUploadId;
|
||||||
var typeBelong = top.restAjax.params(window.location.href).typeBelong;
|
var typeBelong = top.restAjax.params(window.location.href).typeBelong;
|
||||||
var isView = top.restAjax.params(window.location.href).isView;
|
var isView = top.restAjax.params(window.location.href).isView;
|
||||||
|
var editRole = top.restAjax.params(window.location.href).editRole;
|
||||||
|
|
||||||
var wangEditor = window.wangEditor;
|
var wangEditor = window.wangEditor;
|
||||||
var wangEditorObj = {};
|
var wangEditorObj = {};
|
||||||
@ -978,6 +979,9 @@
|
|||||||
if(isView == 'yes') {
|
if(isView == 'yes') {
|
||||||
$('#submitBtn').hide();
|
$('#submitBtn').hide();
|
||||||
}
|
}
|
||||||
|
if(editRole == '否') {
|
||||||
|
$('#submitBtn').hide();
|
||||||
|
}
|
||||||
var loadLayerIndex;
|
var loadLayerIndex;
|
||||||
top.restAjax.get(top.restAjax.path('api/fileupload/get/{fileUploadId}', [fileUploadId]), {}, null, function(code, data) {
|
top.restAjax.get(top.restAjax.path('api/fileupload/get/{fileUploadId}', [fileUploadId]), {}, null, function(code, data) {
|
||||||
data.oldFileTyleId = data.fileTypeId;
|
data.oldFileTyleId = data.fileTypeId;
|
||||||
|
@ -140,6 +140,7 @@
|
|||||||
function getUserArchives(userId, userUsername) {
|
function getUserArchives(userId, userUsername) {
|
||||||
var loadLayerIndex;
|
var loadLayerIndex;
|
||||||
top.restAjax.get(top.restAjax.path('api/userarchives/getByUserId/{userId}', [userId]), {}, null, function(code, data) {
|
top.restAjax.get(top.restAjax.path('api/userarchives/getByUserId/{userId}', [userId]), {}, null, function(code, data) {
|
||||||
|
console.log(data)
|
||||||
if(!data) {
|
if(!data) {
|
||||||
// 没有数据
|
// 没有数据
|
||||||
toSavePage(userId, userUsername);
|
toSavePage(userId, userUsername);
|
||||||
|
@ -669,6 +669,7 @@
|
|||||||
// 初始化直接上级下拉选择
|
// 初始化直接上级下拉选择
|
||||||
function initDirectSuperiorSelect(deptId) {
|
function initDirectSuperiorSelect(deptId) {
|
||||||
top.restAjax.get(top.restAjax.path('api/department/user/list/{dataParentId}', [deptId]), {}, null, function(code, data, args) {
|
top.restAjax.get(top.restAjax.path('api/department/user/list/{dataParentId}', [deptId]), {}, null, function(code, data, args) {
|
||||||
|
console.log(data)
|
||||||
laytpl(document.getElementById('directSuperiorSelectTemplate').innerHTML).render(data, function(html) {
|
laytpl(document.getElementById('directSuperiorSelectTemplate').innerHTML).render(data, function(html) {
|
||||||
document.getElementById('directSuperiorSelectTemplateBox').innerHTML = html;
|
document.getElementById('directSuperiorSelectTemplateBox').innerHTML = html;
|
||||||
});
|
});
|
||||||
|
@ -480,7 +480,7 @@
|
|||||||
<div class="layui-input-block">
|
<div class="layui-input-block">
|
||||||
<div class="layui-footer" style="left: 0;">
|
<div class="layui-footer" style="left: 0;">
|
||||||
<button type="button" class="layui-btn" lay-submit lay-filter="submitForm">提交新增</button>
|
<button type="button" class="layui-btn" lay-submit lay-filter="submitForm">提交新增</button>
|
||||||
<button type="button" class="layui-btn view-file">查看</button>
|
<!--<button type="button" class="layui-btn view-file">查看</button>-->
|
||||||
<button type="button" class="layui-btn layui-btn-primary close">返回上级</button>
|
<button type="button" class="layui-btn layui-btn-primary close">返回上级</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user