qushaowei
2024-04-23 1def07febf17e36217228569a0b4352adaae6189
lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/CalibrationOrderMapper.xml
@@ -228,5 +228,15 @@
        where t1.del_flag = '0' and t1.user_id = #{username}
    </select>
    <select id="getEquipmentReportRepairCount"  parameterType="String" resultType="Map">
        SELECT
            count(0) AS repairCount
        FROM
            mom_eam_equipment_report_repair t1
        where t1.del_flag = '0'
        and SUBSTRING(CONVERT(VARCHAR(10), t1.fault_time, 120), 1, 7) = SUBSTRING(CONVERT(VARCHAR(10), GETDATE(), 120), 1, 7)
        and t1.equipment_id = #{equipmentId}
    </select>
</mapper>