请上传宽度大于 1200px,高度大于 164px 的封面图片
    调整图片尺寸与位置
    滚轮可以放大缩小图片尺寸,按住图片拖动可调整位置,多余的会自动被裁剪掉
取消
Clown.(uid:772359)
职业资格认证:FCA-FineReport
  • 数据集1:select  物料编码,批次号 from table where 1=1 ${if(len(物料编码) == 0,"","and 字段1 = '"+ 物料编码 + "'")}${if(len(批次号) == 0,"","and 字段2= '"+ 批次号 + "'")}数据集2:select  物料编码 from table where 1=1${if(len(物料编码) == 0,"","and 字段1 = '"+ 物料编码 + "'")}关联数据集1和2参数:物料编码:【文本】批次号:【文本】问题:查询批次号时,数据集2的数据也会被带出来需求:如何在查询批次的时候,物料编码或者说数据集2不查询
  • 有模板最好或者图上原教程链接,感谢
  • 离谱 and d.ACTUALSTARTDATE>=to_date('${start_time}','YYYY-MM-DD')                   and d.ACTUALSTARTDATE<=to_date('${end_time}','YYYY-MM-DD')+1  在SQL里可以是正确的,在控件上无法将控件值+1后返回给SQL里
  • 备注:该列被作为左父格
  • 如图:不管是点击开始还是结束日期位置,都会弹出双日历,并且首次点击和二次点击后自动框选区间的日期,不分前后,这个在report上能实现吗,实现方式又是什么呢
  • 语句如下:select ResultFile as '品种',BatchId as '批号',TestEnv as '测试状态',count(1) as '测试总量',count(case when  Result=1 then 1 end ) as '合格量',convert(decimal(18,4),(count(case when  Result=1 then 1 end) / (count(1)+0.0))) as '总良率',convert(decimal(18,4),(count(case when  IthResult=1 then 1 end) / (count(1)+0.0))) as ' Ith良率',convert(decimal(18,4),(count(case when  PfResult=1 then 1 end) / (count(1)+0.0))) as ' Pf良率',convert(decimal(18,4),(count(case when  SEResult=1 then 1 end) / (count(1)+0.0))) as ' SE良率',convert(decimal(18,4),(count(case when  RsResult=1 then 1 end) / (count(1)+0.0))) as ' Rs良率',convert(decimal(18,4),(count(case when  VfResult=1 then 1 end) / (count(1)+0.0))) as ' Vf良率',0 as 'Im良率',0 as 'Idk判定',convert(decimal(18,4),(count(case when  KinkResult=1 then 1 end) / (count(1)+0.0))) as ' Kink良率',convert(decimal(18,4),(count(case when  LostResult=1 then 1 end) / (count(1)+0.0))) as ' SE_Lost良率',convert(decimal(18,4),(count(case when  bSm0=1 then 1 end) / (count(1)+0.0))) as ' SMSR0良率',convert(decimal(18,4),(count(case when  bSm1=1 then 1 end) / (count(1)+0.0))) as ' SMSR1良率',0 as 'SMSR2良率',convert(decimal(18,4),(count(case when  bWd=1 then 1 end) / (count(1)+0.0))) as ' WavDiff良率',convert(decimal(18,4),(count(case when  PbResult=1 then 1 end) / (count(1)+0.0))) as ' Stop_band良率'From CHIP_TESTwhere 1=1group by ResultFile,BatchId,TestEnv参数条件如下:${if(type=="日报"," and date(TesTime )='"+ date +"'", if(type=="月报"," and strftime('%m',CHIP_TEST.TesTime )='"+ month+"'"+" and strftime('%Y',CHIP_TEST.TesTime )='"+ year+"'"," and strftime('%Y',CHIP_TEST.TesTime )='"+ year+"'"))} 参数不论放 1=1 后面 还是放group by 后面 都报错1=1 后面报 strftime 不存在函数group by  报错  and 错误
  • ${if(len(start_time)=0,""," and to_char(d.CREATEDDATE,'yyyy-mm-dd')>='"+start_time+"'")}${if(len(end_time)=0,""," and d.CREATEDDATE<='"+end_time+"'")} 上述两个都会报错,SQL命令未正确结束请问在report里,Oracle的日期区间怎么写? PS:别纠结开始和结束为什么没用同一函数,只是懒得写!
  • Oracle使用${if(len(参数名) == 0,"","and 字段 = '"+ 参数名 + "'")}时报错ORA-00933:SQL命令未正确执行如果把这个参数放在where  f.PRODUCTIONORDERNO='${参数名}'  就可以
  • 如:需要三个文本参数控件可以实现控件A/B/C【单】或者:控件A和控件B【双】或者控件A和控件C【双】或者控件B和控件C【双】或者控件A和控件B和控件C【叁】的联合查询吗如何可以,SQL的参数如何写?简单描述:能否实现控件独立查询的同时又能实现联合查询

49

157

49

10

个人成就
内容被浏览14,178
加入社区2年352天
返回顶部