金蝶K/3 审批相关SQL语句
金蝶K/3 审批相关SQL语句
--http://127.0.0.1/lightApp/todocheckTask.aspx?AccID=84&&FClasstypeID=1071&&FBillID=1312 select xt.fuserid ,xt.fname,u.fname as fusername ,e.FName as fempname from t_xuntong_user xt with (nolock)
inner join t_user u with (nolock) on xt.fuserid=u.fuserid
inner join t_Emp e with(nolock) on u.FEmpID=e.FItemID
where u.FUserID>=16384 and xt.fopenid='5b025f91e4b0d301fd093ca3' use AIS20180607113701
select fopenid,* from dbo.t_XunTong_User where Fname ='landv'
go use [KDAcctDB]
select facctid,* from dbo.t_ad_kdAccount_gl where FAcctName ='landv'
go select DB_ID('AIS20180607113701') SELECT TOP 100 FID,FPushTypeID,FBillTypeID,FInterID,FEntryID,FStatus,FExtInfo
FROM t_SuspendWorkPushQueue WITH(NOLOCK)
ORDER BY FID ASC select xt.fuserid ,xt.fname,u.fname as fusername ,e.FName as fempname from t_xuntong_user xt with (nolock)
inner join t_user u with (nolock) on xt.fuserid=u.fuserid
inner join t_Emp e with(nolock) on u.FEmpID=e.FItemID
where u.FUserID>=16384 and xt.fopenid='5b025f91e4b0d301fd093ca3' --查询已办的集合
select * from (select top 7 t1.FClassTypeID as DocTypeID,i1.FName_CHS as DocTypeName,t1.FBillID as DocID,t4.FName as PrevPerson,i2.FtableName,
t1.FUpdateDate as PrevDate,t1.FContent as Title,substring(FContent,charindex(':',FContent)+1,CHARINDEX(',',FContent)-CHARINDEX(':',FContent)-1) as DocNo,t1.FReaded as ReadStatus ,t2.FTaskID as FTaskID
from ICClassMCTaskCenter t1 with (nolock) inner join (--支持移动审批的单据集合
select FClassTypeID,FName_CHS from (
select tb2.FID as FClassTypeID,tb2.FName_CHS as FName_CHS from (
select FClassTypeID from ICMobileBillType
union
select fid as FClassTypeID from icclasstype where FID>=200000000 and FBillTypeID=3
union
select fid as FClassTypeID FROM ICClassType where FID>1000000 and FFunctionID=259 and FBillTypeID=3 and (FControl & 1) = 1
) tb1
inner join ICClassType tb2 on tb1.FClassTypeID=tb2.FID
where tb2.FMobileControl&2=2
)s1 ) i1 on t1.FClassTypeID=i1.FClassTypeID
left join ICClassMCTaskUser t2 with (nolock) on t1.FID=t2.FTaskID
left join t_user t4 with (nolock) on t1.FSenderID=t4.FUserID
left join icclasstype i2 with (nolock) on i2.FID=t1.FClassTypeID where 1=1 and t1.FStatus = 1 and t1.FProcessUserID = 16398 and(t2.FMobileDeletedStatus is null or t2.FMobileDeletedStatus<>1) and ((t2.FMobileDeletedStatusUserId is null or t2.FMobileDeletedStatusUserId=0) or t2.FMobileDeletedStatusUserId=16398) and t2.FUserID in (select FGroupID from t_group where FUserID = 16398 union select 16398) order by t1.FUpdateDate Desc ) Re where 1=1 select * from ICClassType where FID=''select * from ICClassTypeEntry where FParentID=''select * from ICClassTableInfo where FClassTypeID=''
金蝶K/3 审批相关SQL语句的更多相关文章
- 金蝶K/3 报销相关SQL语句
金蝶K/3 报销相关SQL语句 use AIS20180607113701 select fopenid,* from dbo.t_XunTong_User where Fname ='' go us ...
- 金蝶K/3 固定置产相关SQL语句
金蝶K/3 固定置产相关SQL语句 select * from vw_fa_card --固定置产打印原始数据 select FAssetID,FAssetNumber,FAssetName,FGro ...
- SQL Server邮件相关SQL语句出现严重的ASYNC_NETWORK_IO等待事件案例
DPA监控发现一台SQL Server服务器最近两天执行系统存储过程msdb.dbo.sp_MailItemResultSets中的某个SQL时,出现较严重的ASYNC_NETWORK_IO等待. ...
- MySQL相关sql语句
登陆mysql: mysql -hlocalhost -uroot -proot 创建数据库:create database dbname charset utf8 查看数据库:show databa ...
- 数据库相关 sql 语句
1.操作某数据库 use 数据库名称,然后可以操作该数据库下的某张表 2.$res=mysql_query($sql); 该语句如果用在封装的函数体里,则不用传入第二个参数$conn来指定连接,这样才 ...
- oracle表空间相关SQL语句
Oracle 数据库查看表空间的使用情况 SELECT d.tablespace_name, space "SUM_SPACE(MB)", ) "USED_SPACE(M ...
- ORACLE基本SQL语句-用户及建表篇
一.用户相关SQL语句 /*新建用户*/create user ; 说明:SA用户名,2013密码 /*授权connect,resource给用户sa*/grant connect,resource ...
- Sql Server CPU 性能排查及优化的相关 Sql
Sql Server CPU 性能排查及优化的相关 Sql 语句,非常好的SQL语句,记录于此: --Begin Cpu 分析优化的相关 Sql --使用DMV来分析SQL Server启动以来累计使 ...
- postgresql Kill掉正在执行的SQL语句
kill方式是杀掉进程,但是有时候需要取消相关SQL语句,采用以下方式 一.查看哪些SQL语句正在执行 语句如下:SELECT datname,procpid,query_start, current ...
随机推荐
- c提高第三次作业
1. char buf[] = "abcdef"; //下面有啥区别? const char *p = buf; //p指向的内存不能变 char const *p = buf; ...
- js 图片瀑布流效果实现
/** * Created by wwtliu on 14/9/5. */$(document).ready(function(){ $(window).on("load",fun ...
- javaWeb1之Servlet
Servlet Servlet 环境设置 servlet是扩展web服务器功能的组件规范.浏览器发送请求给web服务器,如果是动态资源的请求,web服务器会将请求转发给servlet容器来处理(由容器 ...
- poj 3764 The xor-longest Path (01 Trie)
链接:http://poj.org/problem?id=3764 题面: The xor-longest Path Time Limit: 2000MS Memory Limit: 65536K ...
- 从Java角度修复SQL注入漏洞
很多情况因为过滤不严导致很多网站存在sql注入,这里以用户登陆为例,简单举例 首先创建一个测试的数据库 比较基础,不写创建过程了 java代码如下: package cn.basic.jdbc; im ...
- 深入理解JVM(4)——对象的创建和访问
1.对象的创建 在语言层面上,创建对象(例如克隆,反序列化)通常仅仅是一个new关键字而已. 在虚拟机中,对象(文中讨论的对象限于普通 Java 对象,不包括数组和 Class 对象等)的创建过程如下 ...
- 【洛谷P1313 计算系数】
题目连接 #include<algorithm> #include<iostream> #include<cstring> #include<cstdio&g ...
- 模型评估【PR|ROC|AUC】
这里主要讲的是对分类模型的评估. 1.准确率(Accuracy) 准确率的定义是:[分类正确的样本] / [总样本个数],其中分类正确的样本是不分正负样本的 优点:简单粗暴 缺点:当正负样本分布不均衡 ...
- 从Socket入门到BIO,PIO,NIO,multiplexing,AIO(未完待续)
Socket入门 最简单的Server端读取Client端内容的demo public class Server { public static void main(String [] args) t ...
- Ubuntu 开机自动挂载硬盘
1.查看Linux硬盘信息: $ sudo fdisk -l 2.格式化硬盘(根据需要确定文件系统): sudo mkfs.xfs /dev/sdb 3.创建/data目录 sudo mkdir /d ...