| | |
| | | <if test="mdcEquipment.driveType != null and mdcEquipment.driveType != '' "> |
| | | AND t1.drive_type = #{mdcEquipment.driveType} |
| | | </if> |
| | | <if test="mdcEquipment.deviceLevel != null and mdcEquipment.deviceLevel != '' "> |
| | | AND t1.device_level = #{mdcEquipment.deviceLevel} |
| | | </if> |
| | | <if test="mdcEquipment.deviceCategory != null and mdcEquipment.deviceCategory != '' "> |
| | | AND t1.device_category = #{mdcEquipment.deviceCategory} |
| | | </if> |
| | | <if test="mdcEquipment.productionIds != null and mdcEquipment.productionIds.size() > 0 "> |
| | | AND t3.id IN |
| | | <foreach collection="mdcEquipment.productionIds" index="index" item="id" open="(" separator="," close=")"> |
| | |
| | | </if> |
| | | </where> |
| | | order by t1.sort_no |
| | | </select> |
| | | |
| | | |
| | | <select id="getWorkLineLast" resultType="org.jeecg.modules.mdc.dto.MdcEquipmentDto"> |
| | | select top 1 spindlespeed, actualspindlespeed from [${tableName}] order by CollectTime desc |
| | | </select> |
| | | |
| | | <select id="exportXlsList" resultType="org.jeecg.modules.mdc.entity.MdcEquipment"> |
| | |
| | | AND t1.equipment_name = #{mdcEquipment.equipmentModel} |
| | | </if> |
| | | <if test="mdcEquipment.equipmentType != null and mdcEquipment.equipmentType != '' "> |
| | | AND t1.equipmentType = #{mdcEquipment.equipmentType} |
| | | AND t1.equipment_type = #{mdcEquipment.equipmentType} |
| | | </if> |
| | | <if test="mdcEquipment.driveType != null and mdcEquipment.driveType != '' "> |
| | | AND t1.drive_type = #{mdcEquipment.driveType} |
| | |
| | | order by t1.sort_no |
| | | </select> |
| | | |
| | | <!--查询单表数据--> |
| | | <select id="findWorkLineLast" resultType="org.jeecg.modules.mdc.dto.MdcEquipmentDto"> |
| | | select top 1 spindlespeed, actualspindlespeed from [${tableName}] order by CollectTime desc |
| | | </select> |
| | | |
| | | </mapper> |