|
|
|
@ -6,25 +6,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="generalInterfaceList" resultType="java.util.HashMap" parameterType="java.util.HashMap">
|
|
|
|
|
SELECT * FROM TABLE (${method})
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM TABLE(${method})
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="homePageInterface" resultType="java.util.HashMap" parameterType="java.util.HashMap">
|
|
|
|
|
select ROWNUM ROWSEQ,
|
|
|
|
|
select bi.OBJ_ID,
|
|
|
|
|
ROWNUM ROWSEQ,
|
|
|
|
|
boi.FACTORY_CODE,
|
|
|
|
|
bi.PRODUCT_LINE_NAME,
|
|
|
|
|
boi.ORDER_CODE,
|
|
|
|
|
boi.SALEORDER_CODE,
|
|
|
|
|
boi.MATERIAL_CODE,
|
|
|
|
|
boi.MATERIAL_NAME,
|
|
|
|
|
TO_CHAR(boi.BEGIN_DATE, 'YYYY-MM-DD') PLAN_CODE,
|
|
|
|
|
CASE
|
|
|
|
|
WHEN TO_CHAR(boi.BEGIN_DATE, 'YYYY-MM-DD') = TO_CHAR(SYSDATE, 'YYYY-MM-DD') THEN 0
|
|
|
|
|
ELSE 1 END STATUS,
|
|
|
|
|
boi.ORDER_AMOUNT,
|
|
|
|
|
boi.COMPLETE_AMOUNT,
|
|
|
|
|
ROUND(boi.COMPLETE_AMOUNT / boi.ORDER_AMOUNT * 100, 0) || '%' RATE
|
|
|
|
|
from BASE_ORDERINFO boi
|
|
|
|
|
JOIN BASE_MATERIALINFO bm ON bm.MATERIAL_CODE = boi.material_code AND bm.DISPO IN ('100')
|
|
|
|
|
left join BASE_PRODUCTLINE bi ON bi.WORK_CENTER_CODE = boi.WORK_CENTER_CODE
|
|
|
|
|
WHERE TO_CHAR(boi.BEGIN_DATE, 'YYYY-MM-DD') = TO_CHAR(SYSDATE, 'YYYY-MM-DD')
|
|
|
|
|
ORDER BY RATE
|
|
|
|
|
WHERE TO_CHAR(SYSDATE, 'YYYY-MM-DD') >= TO_CHAR(boi.BEGIN_DATE, 'YYYY-MM-DD')
|
|
|
|
|
AND TO_CHAR(boi.BEGIN_DATE, 'YYYY-MM-DD') >= TO_CHAR(SYSDATE - 7, 'YYYY-MM-DD')
|
|
|
|
|
ORDER BY boi.BEGIN_DATE DESC
|
|
|
|
|
</select>
|
|
|
|
|
<select id="homeColumnarInterface" resultType="java.util.HashMap" parameterType="java.util.HashMap">
|
|
|
|
|
SELECT TO_CHAR(boi.BEGIN_DATE, 'YYYY-MM-DD') BEGIN_DATE,
|
|
|
|
@ -47,11 +54,39 @@
|
|
|
|
|
ORDER BY BEGIN_DATE
|
|
|
|
|
</select>
|
|
|
|
|
<select id="homePieChartInterface" resultType="java.util.HashMap" parameterType="java.util.HashMap">
|
|
|
|
|
SELECT QUALITY_DEFECT_NAME,COUNT(*) SUM FROM
|
|
|
|
|
SELECT QUALITY_DEFECT_NAME, COUNT(*) SUM
|
|
|
|
|
FROM
|
|
|
|
|
REPORT_QUALITY_INSPECTION
|
|
|
|
|
WHERE QUALITY_DEFECT_NAME IS NOT NULL
|
|
|
|
|
GROUP BY QUALITY_DEFECT_NAME
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="boxFoamingProductionInterface" resultType="java.util.HashMap" parameterType="java.util.HashMap">
|
|
|
|
|
SELECT BD.SORT EQUIPMENT_CODE,
|
|
|
|
|
VBF.FIXTUREBOXTYPE,
|
|
|
|
|
CASE WHEN VBF.FIXTURESTATUS = 1 THEN '生产中' ELSE '停用中' END FIXTURESTATUS,
|
|
|
|
|
TO_NUMBER(BCD.CUSTOM_DATA) TARGET,
|
|
|
|
|
VBF.ORDER_CODE,
|
|
|
|
|
VBF.PRODUCTION PRO_SUM,
|
|
|
|
|
VBF.ANHOUR,
|
|
|
|
|
VBF.TWOHOUR,
|
|
|
|
|
VBF.THREEHOUR,
|
|
|
|
|
VBF.FOURHOUR,
|
|
|
|
|
VBF.FIVEHOUR,
|
|
|
|
|
VBF.SIXHOUR,
|
|
|
|
|
VBF.SEVENHOUR,
|
|
|
|
|
VBF.EIGHTHOUR,
|
|
|
|
|
VBF.NINEHOUR,
|
|
|
|
|
VBF.TENHOUR,
|
|
|
|
|
VBF.ELEVENHOUR,
|
|
|
|
|
VBF.TWELVEHOUR,
|
|
|
|
|
VBF.ACTUALVALUE,
|
|
|
|
|
TO_CHAR(VBF.UPDATETIME, 'YYYY-MM-DD HH24:MI:SS') UPDATETIME
|
|
|
|
|
FROM VIEW_BOX_FOAMDATA VBF
|
|
|
|
|
LEFT JOIN VIEW_BOX_DEVICEINFO BD ON BD.OBJ_ID = VBF.MAINID
|
|
|
|
|
LEFT JOIN BASE_CUSTOM_DATA BCD ON BCD.CUSTOM_CODE = 'XTFP_TARGET'
|
|
|
|
|
WHERE VBF.PRODUCT_LINE_CODE = 'CX_01'
|
|
|
|
|
ORDER BY BD.SORT
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
|