|
楼主 |
发表于 2017-12-29 10:02:03
|
显示全部楼层
2017-12-29 09:58:44 [SQL Time]sql 执行时间:14ms, exec KSQL: SELECT TM_QU_DETAIL.*,customSub2.QU_UNIT_PRICE2 as QU_UNIT_PRICE3,customSub2.BD_QU_ID2 as BD_QU_ID3 FROM TM_QU_DETAIL TM_QU_DETAIL optional join (select detail.BD_QU_ID as BD_QU_ID2, detail.QU_UNIT_PRICE as QU_UNIT_PRICE2 from TM_QU_DETAIL detail where detail.BID_FLAG = '1' order by detail.BID_DATE desc) customSub2 on TM_QU_DETAIL.BD_QU_ID = customSub2.BD_QU_ID2 WHERE ((TM_QU_DETAIL.QU_ID = 'C7D0012CC4100001EFA5A7B041709070')) LIMIT 0, 20
--> sql:SELECT TM_QU_DETAIL.AMT AS AMT, TM_QU_DETAIL.BD_QU_ID AS BD_QU_ID, TM_QU_DETAIL.BID_DATE AS BID_DATE, TM_QU_DETAIL.BID_FLAG AS BID_FLAG, TM_QU_DETAIL.BID_REVIEW_ID AS BID_REVIEW_ID, TM_QU_DETAIL.ITEM_CODE AS ITEM_CODE, TM_QU_DETAIL.ITEM_NAME AS ITEM_NAME, TM_QU_DETAIL.ITEM_NO AS ITEM_NO, TM_QU_DETAIL.QUOTA_CODE AS QUOTA_CODE, TM_QU_DETAIL.QU_AMT AS QU_AMT, TM_QU_DETAIL.QU_DIFF_AMT AS QU_DIFF_AMT, TM_QU_DETAIL.QU_ID AS QU_ID, TM_QU_DETAIL.QU_UNIT_PRICE AS QU_UNIT_PRICE, TM_QU_DETAIL.REF_WORK_QUAN AS REF_WORK_QUAN, TM_QU_DETAIL.REMARK AS REMARK, TM_QU_DETAIL.SITU_DESC AS SITU_DESC, TM_QU_DETAIL.SPEC AS SPEC, TM_QU_DETAIL.fID AS TM_QU_DETAIL, TM_QU_DETAIL.UNIT AS UNIT, TM_QU_DETAIL.UNIT_PRICE AS UNIT_PRICE, TM_QU_DETAIL.VERSION AS version FROM TM_QU_DETAIL TM_QU_DETAIL LEFT JOIN (SELECT detail.BD_QU_ID AS BD_QU_ID2, detail.QU_UNIT_PRICE AS QU_UNIT_PRICE2 FROM TM_QU_DETAIL detail WHERE (detail.BID_FLAG = ?) AND (detail.client_id = '1D3FA7FAD43E4A64B71971EA34FD0CA0') ORDER BY detail.BID_DATE DESC) customSub2 ON TM_QU_DETAIL.BD_QU_ID = customSub2.BD_QU_ID2 WHERE (TM_QU_DETAIL.QU_ID = ?) AND (TM_QU_DETAIL.client_id = '1D3FA7FAD43E4A64B71971EA34FD0CA0')
--> binds:[1, C7D0012CC4100001EFA5A7B041709070]
2017-12-29 09:58:44 [SQL Time]sql 执行时间:26ms, exec KSQL:
--> sql:SELECT count(*) FROM TM_QU_DETAIL TM_QU_DETAIL LEFT JOIN (SELECT detail.BD_QU_ID AS BD_QU_ID2, detail.QU_UNIT_PRICE AS QU_UNIT_PRICE2 FROM TM_QU_DETAIL detail WHERE (detail.BID_FLAG = ?) AND (detail.client_id = '1D3FA7FAD43E4A64B71971EA34FD0CA0') ORDER BY detail.BID_DATE DESC) customSub2 ON TM_QU_DETAIL.BD_QU_ID = customSub2.BD_QU_ID2 WHERE (TM_QU_DETAIL.QU_ID = ?) AND (TM_QU_DETAIL.client_id = '1D3FA7FAD43E4A64B71971EA34FD0CA0')
--> binds:[1, C7D0012CC4100001EFA5A7B041709070]
这是SQL语句,好像是有查到,但是为什么前台没有显示字段呢? |
|