请上传宽度大于 1200px,高度大于 164px 的封面图片
    调整图片尺寸与位置
    滚轮可以放大缩小图片尺寸,按住图片拖动可调整位置,多余的会自动被裁剪掉
取消
难过的过(uid:1020997)
职业资格认证:FCA-FineReport | FCA-FineBI | FCP-报表交付工程师
  • WITH INFO AS (SELECT${if(WEEK="月","MT.FMONTH AS TMP, ","MT.FWEEK AS TMP, ")} ${if(WEIDU="按班组","WEH.SHIFT AS TMMP, ",IF(WEIDU="按员工","WEH.JOCKEY AS TMMP, ",IF(WEIDU="按产品contype","WEH.PRODUCT_TYPE AS TMMP, ",IF(WEIDU="按检验阶段","WEH.INSPECTION_STAGE AS TMMP, ",IF(WEIDU="按浸渍线","WEH.IMPREGNATION_LINE AS TMMP, ","")))))} WEH.HOLE_QUANTITY AS NUM,WEH.MACHINE,WEH.HOLE_AREAFROM MDM_TIME MTLEFT JOIN WR_ET_QUALITY_HOLE WEH ON MT.FYMDAY =  WEH.INVESTIGATION_DATE  WHERE MT.FYEAR = '${NIAN}' )SELECTTMP,TMMP,SUM(NUM) AS 数量,MACHINEFROM INFOWHERE 1=1${IF(LEN(MUN)=0,"","AND TMP= '"+MUN+"' ")}${IF(LEN(QUYU)=0,"","AND HOLE_AREA = '"+QUYU+"'")}GROUP BY TMP,TMMP,MACHINEORDER BY TMP+0
  • WITH WER AS (SELECTINVESTIGATION_DATE AS 调查时间,JOCKEY AS 操作工,SHIFT AS 班次, PRODUCT_TYPE AS 产品类型,INSPECTION_STAGE AS 检验阶段,HOLE_AREA AS 孔洞区域,HOLE_QUANTITY AS 孔洞数量FROM WR_ET_QUALITY_HOLE),QWR AS( SELECT  DISTINCT  MDM_TIME.FWEEK AS 周,MDM_TIME.FMONTH AS 月,WR_ET_QUALITY_HOLE.INVESTIGATION_DATE 日期FROM WR_ET_QUALITY_HOLELEFT JOIN MDM_TIME ON WR_ET_QUALITY_HOLE.INVESTIGATION_DATE = MDM_TIME.FYMDAY)SELECT WER.操作工,WER.检验阶段,WER.孔洞区域,WER.孔洞数量,WER.班次,WER.产品类型,QWR.周,QWR.月FROM WER LEFT JOIN QWR ON WER.调查时间= QWR.日期

26

4

26

10

123
个人成就
内容被浏览8,510
加入社区2年324天
返回顶部