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的更多相关文章
随机推荐
- POJ-2886 Who Gets the Most Candies?---线段树+约瑟夫环
题目链接: https://cn.vjudge.net/problem/POJ-2886 题目大意: N个人围成一圈第一个人跳出圈后会告诉你下一个谁跳出来跳出来的人(如果他手上拿的数为正数,从他左边数 ...
- BZOJ1033:[ZJOI2008]杀蚂蚁antbuster(模拟)
Description 最近,佳佳迷上了一款好玩的小游戏:antbuster.游戏规则非常简单:在一张地图上,左上角是蚂蚁窝,右 下角是蛋糕,蚂蚁会源源不断地从窝里爬出来,试图把蛋糕搬回蚂蚁窝.而你的 ...
- 利用babel自动编译es6文件
一.检查File-Watchers中Babel的Arguments,有一项presets的设置,把他更改为=es2015,详细设置如下: $FilePathRelativeToProjectRoot$ ...
- Graphics Card Notes | 烧卡日记(显卡常识笔记)
[ a comparison of several popular Graphics cards ]
- 【洛谷P3959】[NOIP2017] 宝藏
宝藏 题目链接 首先,打了一个prim,得了45分 #include<iostream> #include<cstring> #include<cstdio> #i ...
- 【luogu P3371 单源最短路径】 模板 SPFA
题目链接:https://www.luogu.org/problemnew/show/P3371 我永远都喜欢Flyod.dijkstra + heap.SPFA #include <cstdi ...
- andorid 网络通信最简单demo
要和后台进行通信 一开始发现接不到数据 后来发生了线程错误 在网上查到:在一些高版本中,与网络通信的操作因为要花费比较大的时间,所以应该放在单独的线程中去做. 但为什么一些网上demo没有放在单独的线 ...
- Vue nodejs商城项目-登录模块
一.登录功能 后端server/routes/users.js var User = require('./../models/users.js'); // 二级路由 // 登录接口 router ...
- 课时90.div和span(掌握)
为什么在这里讲解div和span呢,而不在html中讲解呢? 因为在我们的开发中div和span一般是配合css来使用的,来完成一定的效果,来设置一些属性,在前面我们没有学习css,所以体会不到它的效 ...
- 史上最简单的SpringCloud教程 | 第四篇:断路器(Hystrix)(Finchley版本)
转载请标明出处: 原文首发于:https://www.fangzhipeng.com/springcloud/2018/08/30/sc-f4-hystrix/ 本文出自方志朋的博客 在微服务架构中, ...