Browse Source

试验数据看板

cr 1 ngày trước cách đây
mục cha
commit
e9a00358a7

+ 3 - 1
blade-service/blade-business/src/main/java/org/springblade/business/mapper/TrialSelfInspectionRecordMapper.xml

@@ -177,7 +177,9 @@
         FROM u_trial_self_inspection_record
         WHERE contract_id = #{contractId}
         AND is_deleted = 0,
-        AND type=#{type}
+        <if test="type !=null and type !=''">
+            AND type=#{type}
+        </if>
         <if test="nodeIds != null and nodeIds.size() > 0">
             AND node_id IN (
             <foreach collection="nodeIds" item="nodeId" separator=",">