服务指令-缩减无用冗余字段

This commit is contained in:
曹磊 2026-01-16 15:17:37 +08:00
parent 93d3c99854
commit 41958767f7
1 changed files with 3 additions and 4 deletions

View File

@ -49,13 +49,12 @@
select count(*)
from nu_biz_nu_directive_order
where nu_id = #{nuId}
and elder_id = #{elderId}
and start_time >= #{optTime}
<if test="directiveId != null and directiveId != ''">
<if test="izPackage != null and izPackage != 'N'">
AND directive_id = #{directiveId}
</if>
<if test="packageId != null and packageId != ''">
AND package_id = #{packageId}
<if test="izPackage != null and izPackage != 'Y'">
AND package_id = #{directiveId}
</if>
</select>