结果判定等处理
This commit is contained in:
@@ -79,9 +79,12 @@
|
||||
AND tbatd.TENANT_ID = 1
|
||||
AND tbatd.IS_ASN_TSKD = 1
|
||||
AND tbssag.SMP_STS = '已收样'
|
||||
<if test="reqVO.assayDepartmentId != null and reqVO.assayDepartmentId != ''">
|
||||
<if test="reqVO.assayDepartmentId != null and reqVO.assayDepartmentId != ''">
|
||||
AND tbssag.ASY_DEPT_ID = #{reqVO.assayDepartmentId}
|
||||
</if>
|
||||
</if>
|
||||
<if test="reqVO.sampleReceiveTime != null and reqVO.sampleReceiveTime.length == 2">
|
||||
AND tbssag.SMP_RCV_TM BETWEEN #{reqVO.sampleReceiveTime[0]} AND #{reqVO.sampleReceiveTime[1]}
|
||||
</if>
|
||||
GROUP BY
|
||||
tbatd.TENANT_ID ,
|
||||
tbatd.BSN_SB_PRN_SMP_ID ,
|
||||
@@ -96,6 +99,9 @@
|
||||
t.CFG_ASY_MTHD_ID = tcam.ID
|
||||
AND t.TENANT_ID = tcam.TENANT_ID
|
||||
WHERE t.RPOD_STS in ('pending_report', 'pending_assessment', 're_inspected')
|
||||
<if test="reqVO.configAssayMethodName != null and reqVO.configAssayMethodName != ''">
|
||||
AND tcam.NAME like '%' || #{reqVO.configAssayMethodName} || '%'
|
||||
</if>
|
||||
GROUP BY
|
||||
t.CFG_ASY_MTHD_ID,
|
||||
t.ASY_TP,
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
AND tbssa.RPOD_STS = 'reported'
|
||||
AND tbspsa.IS_RPOD = 0
|
||||
<if test="reqVO.configAssayMethodName != null and reqVO.configAssayMethodName != ''">
|
||||
AND tcam.NAME like '%' || #{reqVO.assayDepartmentId} || '%'
|
||||
AND tcam.NAME like '%' || #{reqVO.configAssayMethodName} || '%'
|
||||
</if>
|
||||
<if test="reqVO.assayDepartmentId != null and reqVO.assayDepartmentId != ''">
|
||||
AND tcam.ASY_DEPT_ID = #{reqVO.assayDepartmentId}
|
||||
|
||||
Reference in New Issue
Block a user