EAS_Table
SHR人力
成品demo
会议室
百利装备下属部门
OA领导 (左王乔赵... 顺序)
select
PERSON.fname_l2 as pname,
POSITION.fname_l2 as pwork,
POSITION.findex as pindex,
BaseUnit.fname_l2,
BaseUnit.fid,
BaseUnit.fnumber as fnumber
from T_BD_PERSON as PERSON
left join T_ORG_POSITIONMEMBER as POSITIONMEMBER on PERSON.fid = POSITIONMEMBER.fpersonid
left join T_ORG_POSITION as POSITION on POSITION.fid = POSITIONMEMBER.fpositionid
left join T_ORG_BaseUnit as BaseUnit on BaseUnit.fid = POSITION.fadminorgunitid
where POSITIONMEMBER.fisprimary = '' and BaseUnit.fid = 'xt0AAAAAC3/M567U'
and PERSON.fname_l2 not in ('温辉','吴树元')
union
select
PERSON.fname_l2 as pname,
POSITION.fname_l2 as pwork,
POSITION.findex as pindex,
BaseUnit.fname_l2,
BaseUnit.fid,
BaseUnit.fnumber as fnumber
from T_BD_PERSON as PERSON
left join T_ORG_POSITIONMEMBER as POSITIONMEMBER on PERSON.fid = POSITIONMEMBER.fpersonid
left join T_ORG_POSITION as POSITION on POSITION.fid = POSITIONMEMBER.fpositionid
left join T_ORG_BaseUnit as BaseUnit on BaseUnit.fid = POSITION.fadminorgunitid
where POSITIONMEMBER.fisprimary = ''
and PERSON.fname_l2 in ('杨川','宋春林')
order by fnumber,pindex
部室以及领导名称
select
PERSON.fid as fid,
PERSON.fname_l2 as pname,
BaseUnit.fname_l2 as buname
from T_BD_PERSON as PERSON
left join T_ORG_POSITIONMEMBER as POSITIONMEMBER on PERSON.fid = POSITIONMEMBER.fpersonid
left join T_ORG_POSITION as POSITION on POSITION.fid = POSITIONMEMBER.fpositionid
left join T_ORG_BaseUnit as BaseUnit on BaseUnit.fid = POSITION.fadminorgunitid
where POSITIONMEMBER.fisprimary = ''
and POSITION.FISRESPPOSITION =1 --是否部门负责人
and BaseUnit.FPARENTID = 'xt0AAAAAC3/M567U'
order by POSITION.findex
全局期间
年:
SELECT distinct fperiodyear
FROM t_bd_period
月:
SELECT distinct fperiodnumber
FROM t_bd_period order by fperiodnumber
全局期间:
SELECT period.fnumber
FROM CT_CUS_GeneralPeriod as GeneralPeriod
left join t_bd_period as period on period.fid = GeneralPeriod.CFDataPeriodID
order by period.fnumber desc
EAS_Table的更多相关文章
随机推荐
- 林锐:5 C++/C程序的基本概念
5.1.1 main 不能重载 不能内联 不能定义为static 不能取其地址 不能由用户直接调用 5.1.3内部名称 struct Sample_1 { int count; }; struct S ...
- Python3基本数据类型(五、字典)
一.定义 字典是另一种可变容器模型,且可存储任意类型对象. 字典的每个键值(key=>value)对用冒号(:)分割,每个对之间用逗号(,)分割,整个字典包括在花括号中: dic = {key: ...
- 2018.10.30 mac环境下卸载和安装mysql及安装过程遇到的一些问题解决方案
Mac下mysql的安装与卸载 配置初始化密码修改 第一:首先去官网网站下载Mysql软件 https://downloads.mysql.com/archives/community/ 记住选择对应 ...
- Django-rest-framework(六)filter,ordering,search
filter queryset 使用request.user相关的queryset class PurchaseList(generics.ListAPIView): serializer_class ...
- Python基础—15-正则表达式
正则表达式 应用场景 特定规律字符串的查找替换切割等 邮箱格式.URL.IP等的校验 爬虫项目中,特定内容的提取 使用原则 只要是能够使用字符串函数解决的问题,就不要使用正则 正则的效率较低,还会降低 ...
- 转:Zookeeper客户端Curator使用详解
原文:https://www.jianshu.com/p/70151fc0ef5d Zookeeper客户端Curator使用详解 前提 最近刚好用到了zookeeper,做了一个基于SpringBo ...
- docker安装MySQL 8.0及初始化错误处理
Preface Several days ago,I've implement a docker environmnet,I'm gonna Install a MySQL 8. ...
- Keras模型的保存方式
Keras模型的保存方式 在运行并且训练出一个模型后获得了模型的结构与许多参数,为了防止再次训练以及需要更好地去使用,我们需要保存当前状态 基本保存方式 h5 # 此处假设model为一个已经训练好的 ...
- 利用nginx使ftp可以通过http访问
./nginx 启动服务./nginx -s stop 关闭服务./nginx -s reload 重新加载配置文件 搭建nginx映射ftp服务:打开nginx的配置文件nginx.conf(位于n ...
- 【mvrp多协议vlan注册协议给予三种注册方式的验证】
MVRP 多vlan注册协议给予三种注册模式的配置 一:根据项目需求搭建好拓扑图如下 二:配置: 首先对项目做理论分析,sw1,sw2,sw3所组成的直连网络中,为使不同的PC之间进行通信,按vlan ...