qushaowei
2025-05-26 a72062286b8212d490804826b71c18f67e8f0fd2
lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/InspectionOrderMapper.xml
@@ -310,10 +310,10 @@
                LEFT JOIN mom_eam_inspection_order t2 ON t1.inspection_order_id= t2.id
                left join  mom_eam_inspection_project t3  on t1.inspection_project_id  = t3.id
                LEFT JOIN mom_eam_equipment t4 ON t2.equipment_id = t4.id
        WHERE
        WHERE 1=1
           <if test="equipmentNum != null and equipmentNum != ''">
               t4.num = #{equipmentNum}
              and t4.num = #{equipmentNum}
           </if>
           <if test="equipmentNum == null and equipmentNum == ''"> and t4.num = '-1' </if>
           <if test="dataTime != null and dataTime != ''">
@@ -334,7 +334,7 @@
            mom_eam_inspection_order t1
        LEFT JOIN mom_eam_equipment t2 ON t1.equipment_id = t2.id
        LEFT JOIN mom_eam_inspection_cycle t3 ON t1.inspection_cycle_id = t3.id
        WHERE
        WHERE 1=1 and
            t2.num = '0526' and t3.cycle_unit = #{cycleUnit}
    </select>
</mapper>