Commit f58f2641 by 徐高华

企微托管

parent 6d08431f
...@@ -23,6 +23,14 @@ public class OpenStaffDTO implements Serializable { ...@@ -23,6 +23,14 @@ public class OpenStaffDTO implements Serializable {
* 成员id * 成员id
*/ */
private String staffId; private String staffId;
/**
* 成员名称
*/
private String staffName ;
/**
* 成员头像
*/
private String staffHeadImg ;
/** /**
* 创建时间 * 创建时间
...@@ -114,6 +122,22 @@ public class OpenStaffDTO implements Serializable { ...@@ -114,6 +122,22 @@ public class OpenStaffDTO implements Serializable {
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public String getStaffName() {
return staffName;
}
public void setStaffName(String staffName) {
this.staffName = staffName;
}
public String getStaffHeadImg() {
return staffHeadImg;
}
public void setStaffHeadImg(String staffHeadImg) {
this.staffHeadImg = staffHeadImg;
}
public String getLoginRemark() { public String getLoginRemark() {
return loginRemark; return loginRemark;
} }
......
...@@ -170,7 +170,10 @@ public class QywxOpenController { ...@@ -170,7 +170,10 @@ public class QywxOpenController {
return RestResponse.failure("9999",resp.getMessage()) ; return RestResponse.failure("9999",resp.getMessage()) ;
} }
Long openStaffId = resp.getResult() ; Long openStaffId = resp.getResult() ;
return RestResponse.successResult(this.openStaffApiService.getById(openStaffId).getResult()); OpenStaffDTO openStaffDTO = this.openStaffApiService.getById(openStaffId).getResult() ;
openStaffDTO.setStaffHeadImg(staff.getHeadImg());
openStaffDTO.setStaffName(staff.getStaffName());
return RestResponse.successResult(openStaffDTO);
} }
/** /**
...@@ -184,7 +187,11 @@ public class QywxOpenController { ...@@ -184,7 +187,11 @@ public class QywxOpenController {
if(!resp.isSuccess()) { if(!resp.isSuccess()) {
return RestResponse.failure("9999",resp.getMessage()) ; return RestResponse.failure("9999",resp.getMessage()) ;
} }
return RestResponse.successResult(resp.getResult()); OpenStaffDTO openStaffDTO = resp.getResult() ;
StaffDTO staff = this.staffApiService.selectById(openStaffDTO.getStaffId()) ;
openStaffDTO.setStaffHeadImg(staff.getHeadImg());
openStaffDTO.setStaffName(staff.getStaffName());
return RestResponse.successResult(openStaffDTO);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment