电子档案

liweidong
maxiangong 2 days ago
parent c9fb9ae9c5
commit 5776b28123
  1. 8
      blade-service/blade-desk/src/main/java/org/springblade/desk/quality/mapper/AuditFileMapper.xml

@ -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>

Loading…
Cancel
Save