inspection-server/src/main/resources/mapper/ReportMapper.xml
@@ -39,6 +39,9 @@ join inspection i on r.inspection_id = i.id join inspection_material im on i.id = im.inspection_id <where> <if test="status == null"> and r.status in (0, 1) </if> <if test="status != null"> and r.status = #{status} </if>