Commit 09de8d79 by 徐高华

qwuserid不能关联2个成员

parent 11bc9e4b
......@@ -134,6 +134,11 @@ public class OpenStaffApiServiceImpl implements OpenStaffApiService {
log.info("只能托管一个企业={},{}", uuid, corpName);
return ServiceResponse.failure("9999", "只能托管一个企业");
}
if(!openStaff.getStaffId().equals(staff.getStaffId())) {
this.openStaffService.logout(uuid, "userid不能关联2个成员", 0, null);
log.info("userid不能关联2个成员={},{},{}", openStaff.getStaffId(), staff.getStaffId(),qwUserId);
return ServiceResponse.failure("9999", "userid不能关联2个成员");
}
openStaff.setWxCorpId(qwCorpId);
openStaff.setQwUserId(qwUserId);
if (null == openStaff.getFirstAuthTime()) {
......
......@@ -205,6 +205,7 @@
select
<include refid="Base_Column_List"/>
from tab_haoban_open_staff where qw_user_id = #{qwUserId} and delete_flag = 0
order by status_flag , update_time desc limit 1
</select>
<select id="listAllStaffId" resultType="java.lang.String">
......
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