金蝶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语句的更多相关文章

  1. 金蝶K/3 报销相关SQL语句

    金蝶K/3 报销相关SQL语句 use AIS20180607113701 select fopenid,* from dbo.t_XunTong_User where Fname ='' go us ...

  2. 金蝶K/3 固定置产相关SQL语句

    金蝶K/3 固定置产相关SQL语句 select * from vw_fa_card --固定置产打印原始数据 select FAssetID,FAssetNumber,FAssetName,FGro ...

  3. SQL Server邮件相关SQL语句出现严重的ASYNC_NETWORK_IO等待事件案例

      DPA监控发现一台SQL Server服务器最近两天执行系统存储过程msdb.dbo.sp_MailItemResultSets中的某个SQL时,出现较严重的ASYNC_NETWORK_IO等待. ...

  4. MySQL相关sql语句

    登陆mysql: mysql -hlocalhost -uroot -proot 创建数据库:create database dbname charset utf8 查看数据库:show databa ...

  5. 数据库相关 sql 语句

    1.操作某数据库 use 数据库名称,然后可以操作该数据库下的某张表 2.$res=mysql_query($sql); 该语句如果用在封装的函数体里,则不用传入第二个参数$conn来指定连接,这样才 ...

  6. oracle表空间相关SQL语句

    Oracle 数据库查看表空间的使用情况 SELECT d.tablespace_name, space "SUM_SPACE(MB)", ) "USED_SPACE(M ...

  7. ORACLE基本SQL语句-用户及建表篇

    一.用户相关SQL语句 /*新建用户*/create user ; 说明:SA用户名,2013密码 /*授权connect,resource给用户sa*/grant connect,resource ...

  8. Sql Server CPU 性能排查及优化的相关 Sql

    Sql Server CPU 性能排查及优化的相关 Sql 语句,非常好的SQL语句,记录于此: --Begin Cpu 分析优化的相关 Sql --使用DMV来分析SQL Server启动以来累计使 ...

  9. postgresql Kill掉正在执行的SQL语句

    kill方式是杀掉进程,但是有时候需要取消相关SQL语句,采用以下方式 一.查看哪些SQL语句正在执行 语句如下:SELECT datname,procpid,query_start, current ...

随机推荐

  1. JPA 连表查询

    A表和B表 @Entity @Table(name = "A", schema = "kps", catalog = "kps") @Dyn ...

  2. yyb博客的几道神仙题

    该比赛链接 T5 题意: 给你一个\(n\times n\)的网格,开始有\(m\)个被涂成黑色的格子,如果存在三个格子\((x,y)\),\((y,z)\),\((z,x)\)满足\((x,y)\) ...

  3. 使pre的内容自动换行(转)

    <pre> 元素可定义预格式化的文本.被包围在 pre 元素中的文本通常会保留空格和换行符.而文本也会呈现为等宽字体. <pre> 标签的一个常见应用就是用来表示计算机的源代码 ...

  4. Luogu P2057 [SHOI2007]善意的投票

    题目链接 \(Click\) \(Here\) 考虑模型转换.变成文理分科二选一带收益模型,就一波带走了. 如果没有见过这个模型的话,这里讲的很详细. #include <bits/stdc++ ...

  5. codeforces-1140 (div2)

    A.维护一个前缀最大值,不断跳即可 #include <map> #include <set> #include <ctime> #include <cmat ...

  6. python 网络编程之TCP传输&粘包传输

    只有TCP有粘包现象,UDP永远不会粘包. 所谓粘包问题主要还是C/S两端数据传输时 因为接收方不知道消息之间的界限,不知道一次性提取多少字节的数据所造成的 根本原因:粘包是由TCP协议本身造成的,T ...

  7. Mybatis-PageHelper

    pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="htt ...

  8. kafka全部数据清空与某一topic数据清空

    1. Kafka全部数据清空 kafka全部数据清空的步骤为: 停止每台机器上的kafka: 删除kafka存储目录(server.properties文件log.dirs配置,默认为“/tmp/ka ...

  9. mysql用户管理与备份

    用户管理 我们知道在Mysql中root用户是最高权限的用户,其他用户的创建和权限授予都是通过root用户来操作的 查看用户 在root用户界面下 select user,host,password ...

  10. Geometric regularity criterion for NSE: the cross product of velocity and vorticity 1: $u\times \om$

    在 [Chae, Dongho. On the regularity conditions of suitable weak solutions of the 3D Navier-Stokes equ ...