请上传宽度大于 1200px,高度大于 164px 的封面图片
    调整图片尺寸与位置
    滚轮可以放大缩小图片尺寸,按住图片拖动可调整位置,多余的会自动被裁剪掉
取消
帆软用户XpbwOTiAvi(uid:1222582)
职业资格认证:FCA-FineReport
  • 比如去重这个count(olr.remain_no)SELECT he.name as 姓名, count(olr.remain_no) as 差错FROM OMS_OE_ORDER_TYPES_REPORT T ,oms_oe_order_types tt,hr_employee he,sys_user su,OMS_LO_REMAIN olr,OMS_LO_RESPONSIBLE reswhere  tt.order_type_id=t.order_type_id and t.order_type_id =olr.order_type_id and res.CREATED_BY=olr.CREATED_BYand olr.created_by=su.employee_idand  he.EMPLOYEE_ID=su.EMPLOYEE_IDand T.PA_UNIT_CODE=${tp}AND tt.left_flag='Y'and olr.TYPES='遗留单' and olr.REMAIN_KIND=1and olr.remain_no is not nulland olr.status<>9${if(len(BookDates)=0,"and res.high_version='Y'","and res.START_DATE>=to_date('"+BookDates+"','yyyy-mm-dd') and res.high_version='Y'")}${if(len(BookDatee)=0,"and res.high_version='Y'","and res.START_DATE<=to_date('"+BookDatee+"','yyyy-mm-dd') and res.high_version='Y'")}${if(len(BookDates_c)=0,"","and res.PZ_DATE>=to_date('"+BookDates_c+"','yyyy-mm-dd')")}${if(len(BookDates_c)=0,"","and res.PZ_DATE<=to_date('"+BookDatee_c+"','yyyy-mm-dd')")}group by he.name 
  • 效果图如下:控件筛选
  • SELECT he.name as 姓名FROM OMS_OE_ORDER_TYPES_REPORT T ,oms_oe_order_types tt,hr_employee he,sys_user su,OMS_LO_REMAIN olr,OMS_LO_RESPONSIBLE reswhere  tt.order_type_id=t.order_type_id and t.order_type_id =olr.order_type_id --and tt.UNIT_ID=T.UNIT_ID--and tt.CREATED_BY=res.CREATED_BY--and su.CREATED_BY=res.CREATED_BYand res.CREATED_BY=olr.CREATED_BYand olr.created_by=su.employee_idand  he.EMPLOYEE_ID=su.EMPLOYEE_ID--and tt.LAST_UPDATED_BY=su.LAST_UPDATED_BY--and su.LAST_UPDATED_BY=res.LAST_UPDATED_BY--and res.LAST_UPDATED_BY=olr.LAST_UPDATED_BY--and su.LAST_UPDATE_LOGIN=olr.LAST_UPDATE_LOGINand T.PA_UNIT_CODE=${tp}AND tt.left_flag='Y'and olr.status<>9${if(len(BookDates)=0,"","and res.START_DATE>=to_date('"+BookDates+"','yyyy-mm-dd') and res.high_version='Y'")}${if(len(BookDates)=0,"","and res.START_DATE<=to_date('"+BookDatee+"','yyyy-mm-dd')and res.high_version='Y'")}${if(len(BookDates_c)=0,"","and res.PZ_DATE>=to_date('"+BookDates_c+"','yyyy-mm-dd')")}${if(len(BookDates_c)=0,"","and res.PZ_DATE<=to_date('"+BookDatee_c+"','yyyy-mm-dd')")}group by he.name--------------------------------------------------------------------------------------------SELECT count(olr.remain_no) as 差错FROM OMS_OE_ORDER_TYPES_REPORT T ,oms_oe_order_types tt,hr_employee he,sys_user su,OMS_LO_REMAIN olr,OMS_LO_RESPONSIBLE reswhere  tt.order_type_id=t.order_type_id and t.order_type_id =olr.order_type_id and res.CREATED_BY=olr.CREATED_BYand olr.created_by=su.employee_idand  he.EMPLOYEE_ID=su.EMPLOYEE_IDand T.PA_UNIT_CODE=${tp}AND tt.left_flag='Y'and olr.TYPES='遗留单' and olr.REMAIN_KIND=1and olr.remain_no is not nulland olr.status<>9${if(len(BookDates)=0,"","and res.START_DATE>=to_date('"+BookDates+"','yyyy-mm-dd') and res.high_version='Y'")}${if(len(BookDates)=0,"","and res.START_DATE<=to_date('"+BookDatee+"','yyyy-mm-dd')and res.high_version='Y'")}${if(len(BookDates_c)=0,"","and res.PZ_DATE>=to_date('"+BookDates_c+"','yyyy-mm-dd')")}${if(len(BookDates_c)=0,"","and res.PZ_DATE<=to_date('"+BookDatee_c+"','yyyy-mm-dd')")}
  • SELECT  he.name as 姓名,count(cou.num) as 差错,cou.pp,cou.ootiFROM OMS_OE_ORDER_TYPES_REPORT T ,oms_oe_order_types tt,hr_employee he,sys_user su,(selectdistinct olr.remain_no as num,to_char(res.PZ_DATE,'yyyy-mm') as pp,olr.order_type_id as ootifrom OMS_LO_REMAIN olr,OMS_LO_RESPONSIBLE res, sys_user suwhere res.CREATED_BY=olr.CREATED_BYand olr.created_by=su.employee_idand olr.TYPES='遗留单' and olr.REMAIN_KIND=1and olr.remain_no is not nulland olr.status<>9${if(len(BookDates)=0,"and res.high_version='Y'","and res.START_DATE>=to_date('"+BookDates+"','yyyy-mm-dd') and res.high_version='Y'")}${if(len(BookDatee)=0,"and res.high_version='Y'","and res.START_DATE<=to_date('"+BookDatee+"','yyyy-mm-dd') and res.high_version='Y'")}${if(len(BookDates_c)=0,"","and res.PZ_DATE>=to_date('"+BookDates_c+"','yyyy-mm-dd')")}${if(len(BookDates_c)=0,"","and res.PZ_DATE<=to_date('"+BookDatee_c+"','yyyy-mm-dd')")}group by to_char(res.PZ_DATE,'yyyy-mm'),olr.remain_no,olr.order_type_id )as couwhere  tt.order_type_id=t.order_type_id and t.order_type_id=cou.ooti--and t.order_type_id =olr.order_type_id --and res.CREATED_BY=olr.CREATED_BY--and olr.created_by=su.employee_idand  he.EMPLOYEE_ID=su.EMPLOYEE_IDand T.PA_UNIT_CODE=${tp}AND tt.left_flag='Y'${if(len(xm) == 0,"","and  he.name = '"+xm+"'")}group by he.name ,cou.pp,cou.ooti
  • ${if(len(BookDates)=0,"","and res.START_DATE>=to_date('"+BookDates+"','yyyy-mm-dd') and res.high_version='Y'")}${if(len(BookDates)=0,"","and res.START_DATE<=to_date('"+BookDatee+"','yyyy-mm-dd')and res.high_version='Y'")}${if(len(BookDates_c)=0,"","and res.PZ_DATE>=to_date('"+BookDates_c+"','yyyy-mm-dd')")}${if(len(BookDates_c)=0,"","and res.PZ_DATE<=to_date('"+BookDatee_c+"','yyyy-mm-dd')")}
  • SELECT he.name 姓名FROM OMS_OE_ORDER_TYPES_REPORT T ,oms_oe_order_types tt,hr_employee he,sys_user su,OMS_LO_REMAIN olr,OMS_LO_RESPONSIBLE reswhere  tt.order_type_id=t.order_type_id and t.order_type_id =olr.order_type_id --and tt.UNIT_ID=T.UNIT_ID--and tt.CREATED_BY=su.CREATED_BY--and su.CREATED_BY=res.CREATED_BY--and res.CREATED_BY=olr.CREATED_BYand olr.created_by=su.employee_id--and tt.LAST_UPDATED_BY=su.LAST_UPDATED_BY--and su.LAST_UPDATED_BY=res.LAST_UPDATED_BY--and res.LAST_UPDATED_BY=olr.LAST_UPDATED_BY--and su.LAST_UPDATE_LOGIN=olr.LAST_UPDATE_LOGINand T.PA_UNIT_CODE=${tp}AND tt.left_flag='Y'and res.high_version='Y'${if(len(BookDates)=0,"","and res.START_DATE>=to_date('"+BookDates+"','yyyy-mm-dd')")}${if(len(BookDates)=0,"","and res.START_DATE<=to_date('"+BookDatee+"','yyyy-mm-dd')")}${if(len(BookDates_c)=0,"","and res.PZ_DATE>=to_date('"+BookDates_c+"','yyyy-mm-dd')")}${if(len(BookDates_c)=0,"","and res.PZ_DATE<=to_date('"+BookDatee_c+"','yyyy-mm-dd')")}group by he.name
  • ${len(olr.remain_no)!=0}要olr.remain_no不能为空

11

0

11

10

12下一页
个人成就
内容被浏览3,702
加入社区2年165天
返回顶部