找回密码
 注册成为天翎用户
查看: 924|回复: 4

视图如何用sql模式查询自己处理过的跟单

[复制链接]
成都顶呱呱 发表于 2015-6-30 15:30:20 | 显示全部楼层 |阅读模式
本帖最后由 johnson 于 2015-7-27 13:44 编辑

视图如何用sql模式查询自己处理过的跟单
qq:2355835958
darcy 发表于 2015-6-30 16:33:32 | 显示全部楼层
已办记录
var sql = "select * from tlk_stamp_carving where id in (select doc.mappingid from  T_DOCUMENT  doc,T_ACTORHIS ahis,T_RELATIONHIS rhis,T_FLOW_INTERVENTION pen,T_FLOWSTATERT fs where doc.id=rhis.docid and rhis.id = ahis.nodehis_id and doc.id = pen.id and doc.id =fs.docid and doc.parent is null and doc.state is not null and doc.statelabel is not null and doc.statelabel <> '未提交' and doc.formid='11e4-7088-f1ad0a64-84b2-818effacfb3f' and ahis.actorid in ('"+getWebUser().getId()+"'))";这个SQL语句是查询已经处理过的流程
回复

使用道具 举报

 楼主| 成都顶呱呱 发表于 2015-7-1 10:22:48 | 显示全部楼层
能拆分开 说下哪些东西是改替换的吗?
回复

使用道具 举报

darcy 发表于 2015-7-1 10:34:26 | 显示全部楼层
sql里面的Id需要替换成你数据库表里的
回复

使用道具 举报

johnson 发表于 2015-7-27 13:44:06 | 显示全部楼层
客户反映已解决,故结帖。
回复

使用道具 举报

本版积分规则

手机版|天翎MyApps技术社区 ( 粤ICP备11093750号 )

GMT+8, 2026-8-14 02:09

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表