|
|
|
@ -87,25 +87,25 @@ |
|
|
|
<select id="getDataByPpsIdAndApplyArea" resultMap="auditFileResultMap"> |
|
|
|
<select id="getDataByPpsIdAndApplyArea" resultMap="auditFileResultMap"> |
|
|
|
select a.* |
|
|
|
select a.* |
|
|
|
from QA_AUDIT_FILE a |
|
|
|
from QA_AUDIT_FILE a |
|
|
|
INNER JOIN BS_PROD_MARK b ON a.PQ_ID = b.ID |
|
|
|
INNER JOIN MES_QUALITY_GRADE b ON a.PQ_ID = b.ID |
|
|
|
where a.IS_DELETED = 0 |
|
|
|
where a.IS_DELETED = 0 |
|
|
|
and a.STATUS = 1 |
|
|
|
and a.STATUS = 1 |
|
|
|
and a.PPS_ID = #{ppsId} |
|
|
|
and a.PPS_ID = #{ppsId} |
|
|
|
and a.WC_ID = #{wcId} |
|
|
|
and a.WC_ID = #{wcId} |
|
|
|
and a.PROD_APPLY_AREA = #{prodApplyArea} |
|
|
|
and a.PROD_APPLY_AREA = #{prodApplyArea} |
|
|
|
and b.NAME = #{prodIdent} |
|
|
|
and b.QUALITY_GRADE = #{prodIdent} |
|
|
|
and a.CA_ID = #{caId} |
|
|
|
and a.CA_ID = #{caId} |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<select id="getDataByPpsIdAndPqName" resultMap="auditFileResultMap"> |
|
|
|
<select id="getDataByPpsIdAndPqName" resultMap="auditFileResultMap"> |
|
|
|
select a.* |
|
|
|
select a.* |
|
|
|
from QA_AUDIT_FILE a |
|
|
|
from QA_AUDIT_FILE a |
|
|
|
INNER JOIN BS_PROD_MARK b ON a.PQ_ID = b.ID |
|
|
|
INNER JOIN MES_QUALITY_GRADE b ON a.PQ_ID = b.ID |
|
|
|
where a.IS_DELETED = 0 |
|
|
|
where a.IS_DELETED = 0 |
|
|
|
and a.STATUS = 1 |
|
|
|
and a.STATUS = 1 |
|
|
|
and a.PPS_ID = #{ppsId} |
|
|
|
and a.PPS_ID = #{ppsId} |
|
|
|
and a.WC_ID = #{wcId} |
|
|
|
and a.WC_ID = #{wcId} |
|
|
|
and b.NAME = #{prodIdent} |
|
|
|
and b.QUALITY_GRADE = #{prodIdent} |
|
|
|
and a.CA_ID = #{caId} |
|
|
|
and a.CA_ID = #{caId} |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|