Lius
2024-05-16 5bbbefadb317d2d9c0c66d86c7ee7f8c3dcb19a3
lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/CalibrationOrderMapper.xml
@@ -206,7 +206,7 @@
        <if test="equipmentNum != null and equipmentNum != ''">
            and t1.num = #{equipmentNum}
        </if>
        <if test="equipmentIds.size()>0">
        <if test="equipmentIds != null">
            and  t1.id in
            <foreach collection='equipmentIds' index='index' item='item' open='(' separator=',' close=')'>#{item}</foreach>
        </if>
@@ -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>