| | |
| | | t1.equipment_id equipmentId, |
| | | MAX(t1.equipment_name) equipmentName, |
| | | MAX(t2.drive_type) driveType, |
| | | t1.the_date theDate, |
| | | t1.sequence_number sequenceNumber, |
| | | COUNT(*) processCount, |
| | | SUM(t1.duration) duration |
| | |
| | | </where> |
| | | GROUP BY |
| | | t1.equipment_id, |
| | | t1.the_date, |
| | | t1.sequence_number |
| | | </select> |
| | | |
| | | <select id="findDuration" resultType="java.math.BigDecimal"> |
| | | SELECT |
| | | SUM( duration ) |
| | | FROM |
| | | mdc_process_count |
| | | WHERE |
| | | equipment_id = #{ equipmentId } AND the_date LIKE CONCAT(#{ validDate }, '%') |
| | | </select> |
| | | |
| | | |
| | | <select id="findCount" resultType="java.math.BigDecimal"> |
| | | SELECT |
| | | count(*) |
| | | FROM |
| | | mdc_process_count |
| | | WHERE |
| | | equipment_id = #{ equipmentId } AND the_date LIKE CONCAT(#{ validDate }, '%') |
| | | </select> |
| | | </mapper> |