|
本帖最后由 梦冷亦寒 于 2016-4-11 13:38 编辑
select tabInPlanInfo.*,tabBOM.fSingleQty as fSingleQty,tabPlaneModelBatch.fBatchNo as fBatchNo,tabPlaneModelBatch.fShipQty as fShipQty,tabBaseBomInfo.fName as fName,tabBaseBomInfo.fPartNo as fPartNo,tabBaseBomInfo.fBrand as fBrand,tabBaseBomInfo.fSize as fSize,tabBaseBomInfo.fStandard as fStandard,tabBaseBomInfo.fItemState as fItemState,tabBaseBomInfo.fItemType as fItemType,tabBaseBomInfo.fUnit as fUnit,tabBaseBomInfo.fOneClass as fOneClass,tabBaseBomInfo.fTwoClass as fTwoClass,tabBaseBomInfo.fThreeClass as fThreeClass,tabHistoryPrice.fHistoryPrice as fHistoryPrice,tabHistoryPrice.fSupplierName as fSupplierName,tabPlaneModel.fModelName as fModelName,tabPlaneModel.fModelCode as fModelCode,tabHistoryPrice.fBaseBomInfoId as fBaseBomInfoId,tabMaterielPrivilege.fPlannerId as fPlannerId,tabMaterielPrivilege.fPlannerName as fPlannerName,tabBOM.fPlaneModelBatchId as fPlaneModelBatchI
from tabInPlanInfo tabInPlanInfo
optional join tabBOM tabBOM on tabInPlanInfo.fBOMId = tabBOM
optional join tabPlaneModelBatch tabPlaneModelBatch on tabBOM.fPlaneModelBatchId = tabPlaneModelBatch
optional join tabBaseBomInfo tabBaseBomInfo on tabBOM.fBaseBomInfoId = tabBaseBomInfo
optional join tabHistoryPrice tabHistoryPrice on tabHistoryPrice.fBaseBomInfoId = tabBaseBomInfo
optional join tabPlaneModel tabPlaneModel on tabPlaneModel = tabPlaneModelBatch.fPlaneModelId
optional join tabMaterielPrivilege tabMaterielPrivilege on tabBaseBomInfo = tabMaterielPrivilege.fBaseBomInfoId
optional join (select (max(tabWare.fBaseBomInfoId)) as fBaseBomInfoId,(sum(tabWare.fTotaQty)) as fTotaQty from tabWare tabWare group by tabWare.fBaseBomInfoId, tabWare.fTotaQty) w on w.fBaseBomInfoId = tabBOM.fBaseBomInfoId
order by tabInPlanInfo.fPlanType asc
提示ksql中的本体,在定义的dataModel中不存在,这会导致运行时错误
测试ksql有数据,如最后的数量,但是.w页面看不到这个字段的列
|
-
-
|