| | |
| | | <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> |
| | |
| | | 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> |