质控图

This commit is contained in:
tangw 2026-01-27 18:18:29 +08:00
parent b124e1d4d3
commit 1f0fcbbf20
2 changed files with 4 additions and 4 deletions

View File

@ -137,8 +137,8 @@
<if test="yq != null and yq !=''">and qc_val.yq = #{yq}</if> <if test="yq != null and yq !=''">and qc_val.yq = #{yq}</if>
<if test="xmdh != null and xmdh !=''">and qc_val.xmdh = #{xmdh}</if> <if test="xmdh != null and xmdh !=''">and qc_val.xmdh = #{xmdh}</if>
<if test="zkph != null and zkph !=''">and qc_val.zkph = #{zkph}</if> <if test="zkph != null and zkph !=''">and qc_val.zkph = #{zkph}</if>
<if test="zkrq1 != null">and qc_val.ksrq>=(select min(ksrq) from qc_sample x where x.yq=qc_val.yq and x.xmdh=qc_val.xmdh and x.zkph=qc_val.zkph and qc_sample.zkpph=x.zkpph)</if> <if test="zkrq1 != null">and qc_val.zkrq>=(select min(ksrq) from qc_sample x where x.yq=qc_val.yq and x.xmdh=qc_val.xmdh and x.zkph=qc_val.zkph and qc_sample.zkpph=x.zkpph)</if>
<if test="zkrq2 != null">and #{zkrq2}>= qc_val.ksrq </if> <if test="zkrq2 != null">and #{zkrq2}>= qc_val.zkrq </if>
</where> </where>
and qc_sample.zkpph=s.zkpph and qc_sample.zkpph=s.zkpph
group by qc_val.yq,qc_val.zkph,qc_val.xmdh group by qc_val.yq,qc_val.zkph,qc_val.xmdh

View File

@ -44,8 +44,8 @@
<where> <where>
<if test="yq != null and yq !=''">and qc_val.yq = #{yq}</if> <if test="yq != null and yq !=''">and qc_val.yq = #{yq}</if>
<if test="zkph != null and zkph !=''">and qc_val.zkph = #{zkph}</if> <if test="zkph != null and zkph !=''">and qc_val.zkph = #{zkph}</if>
<if test="zkrq != null">and qc_val.ksrq>=(select min(ksrq) from qc_sample x where x.yq=qc_val.yq and x.xmdh=qc_val.xmdh and x.zkph=qc_val.zkph and qc_sample.zkpph=x.zkpph)</if> <if test="zkrq != null">and qc_val.zkrq>=(select min(ksrq) from qc_sample x where x.yq=qc_val.yq and x.xmdh=qc_val.xmdh and x.zkph=qc_val.zkph and qc_sample.zkpph=x.zkpph)</if>
<if test="zkrq != null">and convert(datetime,convert(char(8),DATEADD(month,1,#{zkrq}),120)+'01')>= qc_val.ksrq </if> <if test="zkrq != null">and convert(datetime,convert(char(8),DATEADD(month,1,#{zkrq}),120)+'01')>= qc_val.zkrq </if>
</where> </where>
and qc_sample.zkpph=s.zkpph and qc_sample.zkpph=s.zkpph
group by qc_val.yq,qc_val.zkph,qc_val.xmdh group by qc_val.yq,qc_val.zkph,qc_val.xmdh