|
@@ -199,7 +199,7 @@
|
|
|
#{workshopId}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="factoryId != null and factoryId != 'ALL'">and a1.TENANTID = #{factoryId}</if>
|
|
|
+ <if test="factoryId != null and factoryId != '' and factoryId != 'ALL'">and a1.TENANTID = #{factoryId}</if>
|
|
|
<if test="startTime != null ">and a1.PLANSTARTDATE >= #{startTime}</if>
|
|
|
<if test="endTime != null ">and a1.PLANENDDATE <= #{endTime}</if>
|
|
|
<if test="orderNos !=null and orderNos.size()>0">
|