Commit 92bdaf9b by jinxin

增加activeStatus字段

parent 26016914
...@@ -175,6 +175,7 @@ public interface StaffMapper { ...@@ -175,6 +175,7 @@ public interface StaffMapper {
void updateStaffInfoByWxOpenUserId(@Param("wxOpenUseId") String wxOpenUseId, void updateStaffInfoByWxOpenUserId(@Param("wxOpenUseId") String wxOpenUseId,
@Param("activeTime")Date activeTime, @Param("activeTime")Date activeTime,
@Param("expireTime")Date expireTime, @Param("expireTime")Date expireTime,
@Param("activeCode")String activeCode); @Param("activeCode")String activeCode,
@Param("activeStatus")Integer activeStatus);
} }
\ No newline at end of file
...@@ -948,10 +948,9 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -948,10 +948,9 @@ public class StaffApiServiceImpl implements StaffApiService {
//先查询转移成员的许可信息 //先查询转移成员的许可信息
TabHaobanStaff staffDTO = staffMapper.getStaffInfoByWxOpenUserId(a.getHandover_userid()); TabHaobanStaff staffDTO = staffMapper.getStaffInfoByWxOpenUserId(a.getHandover_userid());
//置空转移成员的许可信息 //置空转移成员的许可信息
staffMapper.updateStaffInfoByWxOpenUserId(a.getHandover_userid(),null,null,null); staffMapper.updateStaffInfoByWxOpenUserId(a.getHandover_userid(),null,null,null,0);
//更新接收成员的许可信息 //更新接收成员的许可信息
staffMapper.updateStaffInfoByWxOpenUserId(a.getTakeover_userid(),staffDTO.getActiveTime(),staffDTO.getExpireTime(), staffDTO.getActiveCode()); staffMapper.updateStaffInfoByWxOpenUserId(a.getTakeover_userid(),staffDTO.getActiveTime(),staffDTO.getExpireTime(), staffDTO.getActiveCode(),1);
}); });
return com.gic.api.base.commons.ServiceResponse.success(); return com.gic.api.base.commons.ServiceResponse.success();
} }
......
...@@ -615,7 +615,8 @@ ...@@ -615,7 +615,8 @@
update tab_haoban_staff set update tab_haoban_staff set
active_time = #{activeTime}, active_time = #{activeTime},
expire_time = #{expireTime}, expire_time = #{expireTime},
active_code = #{activeCode} active_code = #{activeCode},
active_status = #{activeStatus},
where wx_open_user_id = #{wxOpenUseId} where wx_open_user_id = #{wxOpenUseId}
</update> </update>
......
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