This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
需求分析与整理:
1、要根据业务场景来对各表维护进行串联。
2、添加学校或教辅单位时,需要给定area_code,同时有单位类型代码,可以根据这些创建单位管理员
t_base_organization,t_base_teacher,t_sys_loginperson,t_base_role四张表。--->OK
3、如果启用的是教育局,因为教育局是黄海通过程序代码初始化完的,现在需要判断是不是b_use正在发生变化,如果是变为零,
需要检查下面是不是有隶属的单位或人员(b_use=1),如果存在,不允许禁用。如果不存在,可以禁用,需要在t_base_organization和
t_base_teacher,t_sys_loginperson三张表上b_use=-1.
如果是设置了b_use=1,则需要检查原来对应的各表中是否存在旧数据,如存在,直接恢复b_use=1,如不存在,则需要创建之。
(1) t_base_organization--->这个不用添加,只需修改b_use
(2) t_base_teacher---->需要添加
(3) t_sys_loginperson--->需要添加
(4) t_base_role----> 需要添加