|
@@ -316,5 +316,16 @@
|
|
|
update employee set lock_flag_ = #{lockFlag} where user_id_ = #{userId}
|
|
|
</if>
|
|
|
</update>
|
|
|
+ <update id="logoffByPhone">
|
|
|
+ update sys_user set del_flag_ = 1, phone_ = concat(#{num},'D', phone_),update_time_ = now() where phone_ = #{phone}
|
|
|
+ </update>
|
|
|
+ <update id="updateLockStatusByPhone">
|
|
|
+ update student set lock_flag_ = 1 where user_id_ = (select id_ from sys_user where phone_ = #{phone});
|
|
|
+ update teacher set lock_flag_ = 1 where user_id_ = (select id_ from sys_user where phone_ = #{phone});
|
|
|
+ update employee set lock_flag_ = 1 where user_id_ = (select id_ from sys_user where phone_ = #{phone});
|
|
|
+ </update>
|
|
|
+ <select id="countByPhone" resultType="java.lang.Integer">
|
|
|
+ SELECT count(1) FROM sys_user WHERE phone_ LIKE CONCAT('%',#{phone},'%')
|
|
|
+ </select>
|
|
|
|
|
|
</mapper>
|