Commit d4249204 by jinxin

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

parents 059829e2 d3d251f7
...@@ -200,6 +200,14 @@ public interface StaffApiService { ...@@ -200,6 +200,14 @@ public interface StaffApiService {
*/ */
int updateQrCodeByStaffId(String staffId, String qrCode); int updateQrCodeByStaffId(String staffId, String qrCode);
/**
* 通过userID更新员工二维码
* @param userId
* @param qrCode
* @return
*/
int updateQrCodeByUserId(String userId, String qrCode);
/** /**
* 获取职员id二维码 * 获取职员id二维码
......
...@@ -85,6 +85,14 @@ public interface StaffMapper { ...@@ -85,6 +85,14 @@ public interface StaffMapper {
int updateQrCodeByStaffId(@Param("staffId") String staffId, @Param("qrCode") String qrCode); int updateQrCodeByStaffId(@Param("staffId") String staffId, @Param("qrCode") String qrCode);
/** /**
* 通过userID更新员工二维码
* @param userId
* @param qrCode
* @return
*/
int updateQrCodeByUserId(@Param("userId") String userId, @Param("qrCode") String qrCode);
/**
* 选择电话号码和企业标识 * 选择电话号码和企业标识
*/ */
TabHaobanStaff selectByPhoneNumberAndEnterpriseId(@Param("phoneNumber") String phoneNumber, TabHaobanStaff selectByPhoneNumberAndEnterpriseId(@Param("phoneNumber") String phoneNumber,
......
...@@ -755,6 +755,11 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -755,6 +755,11 @@ public class StaffApiServiceImpl implements StaffApiService {
} }
@Override @Override
public int updateQrCodeByUserId(String userId, String qrCode) {
return staffMapper.updateQrCodeByUserId(userId,qrCode);
}
@Override
public StaffQrCodeDTO getQrCodeByClerkId(String clerkId) { public StaffQrCodeDTO getQrCodeByClerkId(String clerkId) {
StaffClerkRelationDTO staffClerkRelationDTO = staffClerkRelationService.getByClerkId(clerkId); StaffClerkRelationDTO staffClerkRelationDTO = staffClerkRelationService.getByClerkId(clerkId);
if (staffClerkRelationDTO == null) { if (staffClerkRelationDTO == null) {
......
...@@ -453,6 +453,13 @@ ...@@ -453,6 +453,13 @@
where staff_id = #{staffId} where staff_id = #{staffId}
</update> </update>
<update id="updateQrCodeByUserId" parameterType="com.gic.haoban.manage.service.entity.TabHaobanStaff">
update tab_haoban_staff
set qr_code = #{qrCode},
update_time = now()
where wx_user_id = #{userId} or wx_open_user_id = #{userId}
</update>
<select id="selectByPhoneNumberAndEnterpriseId" resultMap="BaseResultMap" parameterType="java.lang.String"> <select id="selectByPhoneNumberAndEnterpriseId" resultMap="BaseResultMap" parameterType="java.lang.String">
select select
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
......
...@@ -1821,7 +1821,7 @@ public class WxStaffController extends WebBaseController { ...@@ -1821,7 +1821,7 @@ public class WxStaffController extends WebBaseController {
//更新staff的qr_code //更新staff的qr_code
if(null!=result){ if(null!=result){
logger.info("成员的user_id:{},qr_code:{}", result.getUserid(),result.getQr_code()); logger.info("成员的user_id:{},qr_code:{}", result.getUserid(),result.getQr_code());
staffApiService.updateQrCodeByStaffId(result.getUserid(), result.getQr_code()); staffApiService.updateQrCodeByUserId(result.getUserid(), result.getQr_code());
} }
return resultResponse(HaoBanErrCode.ERR_1); return resultResponse(HaoBanErrCode.ERR_1);
} }
......
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