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的更多相关文章
随机推荐
- 使用shell调用python中的函数
最近遇到一个需求,需要通过shell调用python中的一个函数,发现其实也挺简单的: python脚本如下: test.py: import ConfigParser config = Config ...
- Android(java)学习笔记15:匿名内部类实现多线程
1. 使用匿名内部类实现多线程 二话不说,首先利用代码体现出来,给大家直观的感觉: package cn.itcast_11; /* 4 * 匿名内部类的格式: 5 * new 类名或者接口名() { ...
- python:pymysql模块使用
一,基本使用 # 导入pymysql模块 import pymysql # 连接database conn = pymysql.connect(host=“你的数据库地址”, user=“用户名”,p ...
- L2范数惩罚项,高维线性回归
%matplotlib inline import mxnet from mxnet import nd,autograd from mxnet import gluon,init from mxne ...
- 【[NOI2013]矩阵游戏】
我们看到了及其可怕的数据范围 这个样子都没有办法直接读入的数据范围应该怎么算 我们观察一下递推式\(f[i][j]=a*f[i][j]+b(j!=1)\) \(f[i][1]=c*f[i-1][m]+ ...
- POJ 3764 The xor-longest Path 【01字典树&&求路径最大异或和&&YY】
题目传送门:http://poj.org/problem?id=3764 The xor-longest Path Time Limit: 2000MS Memory Limit: 65536K ...
- org.slf4j.impl.Log4jLoggerAdapter cannot be cast to ch.qos.logback.classic.Logger
https://stackoverflow.com/questions/31433246/classcastexception-org-slf4j-impl-log4jloggeradapter-ca ...
- Android学习笔记_50_(转 四种加载方式详解(standard singleTop singleTask singleInstance)
Android之四种加载方式 (http://marshal.easymorse.com/archives/2950 图片) 在多Activity开发中,有可能是自己应用之间的Activity跳转,或 ...
- 数据库——MySQL——权限管理
关于MySQL的权限管理,可以理解为是MySQL运行你做的事情.比如MySQL允许你执行select操作那么你就不能用update操作.如果你让你在某台机器上连接MySQL,那么你就不能在这个机器以外 ...
- 构建高可靠hadoop集群之3- Quorum Journal Manager
在正式环境中,搭建高可靠(ha)的系统是必须的. 例如oralce的rac,apache集群,windows服务器集群 本文不再赘言ha的重要性. 本文主要是对 http://hadoop.apach ...