Commit d437c666 by 徐高华

Merge branch 'feature/获取用户敏感信息' of…

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