|
|
|
@ -36,47 +36,75 @@
|
|
|
|
|
ORDER BY ORDER_RATE
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="productionExecutionReportList" resultType="java.util.HashMap">
|
|
|
|
|
<select id="productionExecutionReportList" resultType="java.util.HashMap" parameterType="java.util.HashMap">
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM VIEW_MATERIAL_COMPLETION
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="WIPInquiryReportList" resultType="java.util.HashMap">
|
|
|
|
|
<select id="WIPInquiryReportList" resultType="java.util.HashMap" parameterType="java.util.HashMap">
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM VIEW_MATERIAL_COMPLETION
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="qualityDefectsStatisticalAnalysisList" resultType="java.util.HashMap">
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM VIEW_MATERIAL_COMPLETION
|
|
|
|
|
<select id="qualityDefectsStatisticalAnalysisList" resultType="java.util.HashMap" parameterType="java.util.HashMap">
|
|
|
|
|
SELECT FY.FACTORY_NAME,
|
|
|
|
|
BPP.PRODUCT_LINE_NAME,
|
|
|
|
|
BP.PRODUCT_LINE_CODE,
|
|
|
|
|
BP.PRODUCT_LINE_NAME STATION_NAME,
|
|
|
|
|
COUNT(*) INSPECTION_NUMBER,
|
|
|
|
|
SUM(REWORK_NUMBER) REWORK_NUMBER,
|
|
|
|
|
ROUND((1 - SUM(REWORK_NUMBER) / COUNT(*)) * 100, 0) || '%' RATE
|
|
|
|
|
FROM REPORT_QUALITY_INSPECTION RQI
|
|
|
|
|
LEFT JOIN BASE_PRODUCTLINE BP ON BP.PRODUCT_LINE_CODE = RQI.STATION_CODE
|
|
|
|
|
LEFT JOIN BASE_PRODUCTLINE BPP ON BPP.PRODUCT_LINE_CODE = BP.PARENT_ID
|
|
|
|
|
LEFT JOIN BASE_FACTORY FY ON FY.FACTORY_CODE = BPP.PLANT_CODE
|
|
|
|
|
<where>
|
|
|
|
|
<if test="PRODUCT_LINE_CODE != null and PRODUCT_LINE_CODE != ''">
|
|
|
|
|
AND BPP.PRODUCT_LINE_CODE = #{PRODUCT_LINE_CODE}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="STATION_CODE != null and STATION_CODE != ''">
|
|
|
|
|
AND BP.PRODUCT_LINE_CODE = #{STATION_CODE}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="beginBeginTime != null and beginBeginTime != '' and endBeginTime != null and endBeginTime != ''">
|
|
|
|
|
AND TO_CHAR(RQI.INSPECTOR_TIME, 'YYYY-MM-DD HH24:MI:SS') BETWEEN #{beginBeginTime} AND #{endBeginTime}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
GROUP BY FY.FACTORY_NAME, BPP.PRODUCT_LINE_NAME, BP.PRODUCT_LINE_CODE, BP.PRODUCT_LINE_NAME
|
|
|
|
|
ORDER BY PRODUCT_LINE_CODE
|
|
|
|
|
</select>
|
|
|
|
|
<select id="fewerMistakesReportList" resultType="java.util.HashMap">
|
|
|
|
|
<select id="fewerMistakesReportList" resultType="java.util.HashMap" parameterType="java.util.HashMap">
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM VIEW_MATERIAL_COMPLETION
|
|
|
|
|
</select>
|
|
|
|
|
<select id="qualityIssuesReportList" resultType="java.util.HashMap">
|
|
|
|
|
<select id="qualityIssuesReportList" resultType="java.util.HashMap" parameterType="java.util.HashMap">
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM VIEW_MATERIAL_COMPLETION
|
|
|
|
|
</select>
|
|
|
|
|
<select id="productTraceabilityReportList" resultType="java.util.HashMap">
|
|
|
|
|
<select id="productTraceabilityReportList" resultType="java.util.HashMap" parameterType="java.util.HashMap">
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM VIEW_MATERIAL_COMPLETION
|
|
|
|
|
</select>
|
|
|
|
|
<select id="ScanOfflineRecordReportList" resultType="java.util.HashMap">
|
|
|
|
|
<select id="ScanOfflineRecordReportList" resultType="java.util.HashMap" parameterType="java.util.HashMap">
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM VIEW_PRODUCT_OFFLINE
|
|
|
|
|
</select>
|
|
|
|
|
<select id="temperatureRecordReportList" resultType="java.util.HashMap">
|
|
|
|
|
<select id="temperatureRecordReportList" resultType="java.util.HashMap" parameterType="java.util.HashMap">
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM VIEW_RECORD_TEMPERATURE
|
|
|
|
|
</select>
|
|
|
|
|
<select id="pourRecordReportList" resultType="java.util.HashMap">
|
|
|
|
|
<select id="pourRecordReportList" resultType="java.util.HashMap" parameterType="java.util.HashMap">
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM VIEW_PERFUSION_RECORD
|
|
|
|
|
</select>
|
|
|
|
|
<select id="foamFillingRecordReportList" resultType="java.util.HashMap">
|
|
|
|
|
<select id="foamFillingRecordReportList" resultType="java.util.HashMap" parameterType="java.util.HashMap">
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM VIEW_BOX_LASTSHOTRECORD
|
|
|
|
|
ORDER BY CREATE_TIME DESC
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="qualityDefectsDetailList" resultType="java.util.HashMap" parameterType="java.util.HashMap">
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM VIEW_BOX_FOAMDATARECORD
|
|
|
|
|
FROM VIEW_PERFUSION_RECORD
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|