质控图
This commit is contained in:
parent
b124e1d4d3
commit
1f0fcbbf20
@ -137,8 +137,8 @@
|
||||
<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="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="zkrq2 != null">and #{zkrq2}>= qc_val.ksrq </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.zkrq </if>
|
||||
</where>
|
||||
and qc_sample.zkpph=s.zkpph
|
||||
group by qc_val.yq,qc_val.zkph,qc_val.xmdh
|
||||
|
||||
@ -44,8 +44,8 @@
|
||||
<where>
|
||||
<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="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 convert(datetime,convert(char(8),DATEADD(month,1,#{zkrq}),120)+'01')>= qc_val.ksrq </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.zkrq </if>
|
||||
</where>
|
||||
and qc_sample.zkpph=s.zkpph
|
||||
group by qc_val.yq,qc_val.zkph,qc_val.xmdh
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user