天翎MyApps技术社区 - 低代码平台 | 流程管理系统 | BPM软件

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

[版本升级] SQL模式问题

[复制链接]
萧雨 发表于 2011-4-29 16:48:12 | 显示全部楼层 |阅读模式
var user = getWebUser();
var userId = user.getId();
var depts = user.getDepartments();
if (depts!=null && depts.size()>0){
   var dpt = depts.get(0);
   dptId = dpt.getId();

}
var sql = "select * from tlk_fm_apply_sub where item_apply_sub_peopleId = ' "+userId+" ' and item_apply_sub_depId = ' "+dptId+" ' and item_apply_sub_date=' "+getMonth(getToday())+" ' ";
sql;
技术人员您好,请问在sql模式(该视图没有查询表单)中能否获取用户ID,部门ID和当前月份么?
cynthia1 发表于 2011-4-29 17:10:37 | 显示全部楼层
你可以试一下看看,也不影响你的功能的。

本版积分规则

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

GMT+8, 2026-8-12 13:35

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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