Commit 826b3ef4 by jinxin

Merge remote-tracking branch 'origin/feature/获取用户敏感信息' into developer

parents 209f4048 1b406b62
......@@ -185,11 +185,11 @@ public interface StaffApiService {
int updateOpenIdByStaffId(String staffId, String openId);
/**
* 根据员工id获取二维码
* 判断成员是否授权获取敏感信息,0否 1是
* @param staffId
* @return
*/
int getQrCodeByStaffId(String staffId);
int getSensitiveStatus(String staffId);
/**
* 更新二维码通过员工id
......
......@@ -742,7 +742,7 @@ public class StaffApiServiceImpl implements StaffApiService {
}
@Override
public int getQrCodeByStaffId(String staffId) {
public int getSensitiveStatus(String staffId) {
String qrCode = staffMapper.getQrCodeByStaffId(staffId);
if(StringUtils.isNotBlank(qrCode))
return 1;
......
......@@ -1830,7 +1830,7 @@ public class WxStaffController extends WebBaseController {
*/
@RequestMapping("get-sensitive-status")
public HaobanResponse getSensitiveStatus(String staffId){
int qrCodeByStaffId = staffApiService.getQrCodeByStaffId(staffId);
int qrCodeByStaffId = staffApiService.getSensitiveStatus(staffId);
return resultResponse(HaoBanErrCode.ERR_1, qrCodeByStaffId);
}
}
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