- 一般用法:SELECT * FROM [用户密码] where 密码='${password}'
- 加密用法:SELECT * FROM [用户密码] where 密码='${password+"123"}'
- 一般复选框:${if(len(xm_lx)=0,""," and xm_lx in ("+CONCATENATE("'",replace(xm_lx,",","','"),"'")+") ")}
- 一般模糊查询:${if(len(yg)=0,""," and c_yg like '%"+yg+"%'")}
- 高级用法:1:一般公司划分逻辑,${if(zb=="总部",if(len(gsmc)==0,""," and c_gsmc='"+gsmc+"'"),if(js==3||js==1," and c_gsmc='"+gsmc+"'",
if(js==4," and c_gsmc='"+gsmc+"' and xm_gs in("+CONCATENATE("'",replace(city,",","','"),"'")+")"," and c_gsmc='"+gsmc+"' and c_fzr='"+tbr+"'")));2:时间划分逻辑,${if(yf=="01"," and ((nf='"+nf+"' and yf='"+yf+"') or ( nf='"+sum(nf,-1)+"' and yf='1s2'))"," and ((nf='"+nf+"' and yf='"+yf+"') or (nf='"+nf+"' and yf='"+mid(sum(concatenate("1",yf),-1),2,2)+"'))")};3:权限划分逻辑,${if(zb=="总部","",if(sql("zsk","select count(*) from T_USER_ROLE t left join t_user t1 on t.C_USERID=t1.C_USERID left join T_ROLE t2 on t.C_ROLEID=t2.C_ROLEID where t1.C_USERNAME='"+mmduser()+"' and t2.C_ROLENAME in ('DYY_XMFZR','DYY_BM_PYR','gt_dyy_zb_fzr')",1,1)!=0,""," and xm_id in(select xm_id from dyy_power where xm_tbr_id='"+mmduser()+"')"))}
相关文章
- 10-22RDLC中添加参数,用来显示报表中数据集之外的信息。
- 10-22帆软报表 快速复用数据集,避免重复劳动
- 10-22[Pytorch系列-41]:卷积神经网络 - 模型参数的恢复/加载 - 搭建LeNet-5网络与MNIST数据集手写数字识别
- 10-22基于MNIST数据集的最优参数的比较
- 10-22帆软报表 快速复用数据集,避免重复劳动
- 10-22Darknet 训练YoloV3数据集变换扩充与参数配置说明
- 10-22结果集一组数据的第几条ROW_NUMBER基本用法
- 10-22finereport报表,使用带参数的sql存储过程,报没有返回数据集的错
- 10-22帆软报表如何实现开始时间-结束时间-时间间隔(时,日、周、月、年)分段显示数据
- 10-22【数据挖掘】高斯混合模型 ( 模型简介 | 软聚类 | 概率作用 | 高斯分布 | 概率密度函数 | 高斯混合模型参数 | 概率密度函数 )