| | |
| | | t1.check_period checkPeriod, |
| | | t1.next_technology_status_qualification_time nextTechnologyStatusQualificationTime, |
| | | t1.technology_status_qualification_time technologyStatusQualificationTime, |
| | | t1.technology_status_verification_type technologyStatusVerificationType |
| | | t1.technology_status_verification_type technologyStatusVerificationType, |
| | | t1.line_id lineId, |
| | | t1.is_meta isMeta, |
| | | t1.id showId, |
| | | t3.sumOfEquipment |
| | | from mom_eam_equipment t1 |
| | | left join (select * from mom_eam_equipment_category where del_flag = 0) t2 on t1.equipment_category_id = t2.id |
| | | left join (select * from mom_eam_equipment_category where del_flag = 0) t2 on t1.equipment_category_id = t2.id |
| | | left join(select count(id) sumOfEquipment,line_id from mom_eam_equipment where del_flag=0 group by line_id) t3 on t3.line_id = t1.id |
| | | where t1.del_flag = 0 |
| | | <if test="num != null and num != ''"> |
| | | and t1.num like concat('%',#{num},'%') |
| | |
| | | <if test="sql != null and sql != ''"> |
| | | and t2.equipment_category_uda1 = #{sql} |
| | | </if> |
| | | order by t1.create_time desc |
| | | <if test="lineId != null and lineId != ''"> |
| | | and t1.line_id = #{lineId} |
| | | </if> |
| | | order by (CASE WHEN t1.is_meta='yes' then GETDATE() else t1.create_time end) desc |
| | | </select> |
| | | <select id="getStandardList" resultType="org.jeecg.modules.eam.entity.DailyInspectionStandardDetail"> |
| | | select t9.* from ( select |