depotid里面的ID,是可以在页面显示数据的,但是传入到DS1里面就没有数据了,不知道哪错了

1607913523(1).jpg1607911423(1).jpg if OBJECT_ID('tempDB..#THFH')<>0 drop table #THFH

 select a.code,a.setdepot_id,d.depotid,c1.clothingid,c.styleid,b.nums,COUNT(TMID) smNUMS

 into #THFH

 from u_outindentset a 

 left join u_outindentsetsub b on  a.id=b.code

 left join u_outindentsetstyle f on b.style_code = f.id

 left join b_style c on f.style_id=c.id

 left join B_Clothing c1 on b.clothing_id=c1.id

 left join b_depot d on a.depot_id=d.id

 left join F100_Label.dbo.tm_formlist e on b.clothing_id=e.clothing_id and a.id=e.code

 --left join t18_tmlist e on b.clothingid=e.clothingid and a.outindentid=e.tmlistid

 where 

 a.setdepot_id in ('${id}')

 --a.setdepot_id = '6655674755462550467'

 --d.depotid = '25371013'and 

 and a.sure='1' and a.states = '2'

 and a.sure_date>='${begin}'

 --and a.sure_date>='2020-01-01'

 and a.sure_date-1<'${end}'

 --and a.sure_date-1<'2020-12-01'

 --and d.depotid='11203'

 group by a.code,a.setdepot_id,d.depotid,c1.clothingid,c.styleid,b.nums


 

 

 select a.code,a.depotid,b.s_name,a.clothingid,a.styleid,nums,smNUMS

 from #THFH a left join dbo.b_depot b on a.setdepot_id=b.id

 where nums>smNUMS 

1607910610(1).jpg

FineReport 用户y7163732 发布于 2020-12-14 09:53 (编辑于 2020-12-14 10:38)
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共1回答
最佳回答
0
luojian0323Lv7资深互助
发布于2020-12-14 09:57(编辑于 2020-12-14 09:57)

怎么传过去的呢?是通过单元格参数注入呢?

还是参数面板中的控件呢?

如果是参数面板中的控件,需要改一下控件的分隔符,默认是数组,改成字符:','

  • 2关注人数
  • 266浏览人数
  • 最后回答于:2020-12-14 10:38
    请选择关闭问题的原因
    确定 取消
    返回顶部