请上传宽度大于 1200px,高度大于 164px 的封面图片
    调整图片尺寸与位置
    滚轮可以放大缩小图片尺寸,按住图片拖动可调整位置,多余的会自动被裁剪掉
取消
用户N0188713(uid:499205)
职业资格认证:尚未取得认证
  • select part_dt,store_id,business_volume ,valid_order,unit_pricefrom ads_mkt_platform_store_day where 1=1 ${IF(frequency="1","AND part_dt >= '"+startDate+"' AND part_dt< '"+endDate+"'" ,IF(frequency="2","AND part_dt >= '"+startDate+"' AND part_dt< '"+endDate+"'",IF(frequency="3","AND part_dt >= '"+startDate+"' AND part_dt< '"+endDate+"'","AND part_dt >= '"+startDate+"' AND part_dt< '"+endDate+"'")))}and store_id in ( '${store_id}')数据库是mysql,part_dt是日分区,存放的格式20010203的字符串,startDate,endDate是传参,想通过date_format()函数转换日期格式报错,哪位大佬指教一下,怎么转日期格式,还有就是取到昨天,去年同一天的日期?,if 条件中frequency 表示取 日 周 三个时间维度,查看数据select part_dt,store_id,business_volume ,valid_order,unit_pricefrom ads_mkt_platform_store_day where 1=1 ${IF(frequency="1","AND part_dt >= '"+date_format(startDate,'%Y%m%d')+"' AND part_dt< '"+date_format(endDate,'%Y%m%d')+"'" ,IF(frequency="2","AND part_dt >= '"+date_format(startDate,'%Y%m%d')+"' AND part_dt< '"+date_format(endDate,'%Y%m%d')+"'",IF(frequency="3","AND part_dt >= '"+date_format(startDate,'%Y%m%d')+"' AND part_dt< '"+date_format(endDate,'%Y%m%d')+"'","AND part_dt >= '"+date_format(startDate,'%Y%m%d')+"' AND part_dt< '"+date_format(endDate,'%Y%m%d')+"'")))}and store_id in ( '${store_id}')
  • select   ${IF(frequency="1","AA",IF(frequency="2","BB",IF(frequency="3","CC","")))} AS part_dt, sum(business_volume) as Sales, sum(valid_order) as TC from  ( select  part_dt, store_id, business_volume , valid_order from ads_platform_store_day    where 1=1  ${IF(frequency="1","AND part_dt >= '"+format(dateinweek(endDate,1),'yyyyMMdd')+"' AND part_dt<= '"+format(endDate,'yyyyMMdd')+"'" , IF(frequency="2","AND part_dt >= '"+format(dateinmonth(endDate,1),'yyyyMMdd')+"' AND part_dt<= '"+format(endDate,'yyyyMMdd')+"'", IF(frequency="3","AND part_dt >= '"+format(dateinyear(endDate,1),'yyyyMMdd')+"' AND part_dt<= '"+format(endDate,'yyyyMMdd')+"'" ,"")))} and store_id in ( '${store_id}') )a 如上SQL,运行后报错:请教一下,是否可以用参数做逻辑判断,如果不能,该怎么解决
  • 求上一个月的日期函数,比如当前时间是2022-03-01,finebi用什么函数可以求出上一个月日期2022-02-01
  • finereport 做的决策报表,手机模板,有几个TAB块,查看报表时,TAB块的数据是预先加载完,还是查询的时候才去加载数据?

14

3

14

10

12
个人成就
内容被浏览6,413
加入社区4年85天
返回顶部