| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.eam.mapper.PrecisionInspectionMapper"> |
| | | |
| | | <select id="getPrecisionInspectionList" parameterType="Map" resultType="Map"> |
| | | SELECT |
| | | t1.id, |
| | | t1.maintenance_order_id AS maintenanceOrderId, |
| | | t2.depart_name AS maintenanceUnitName, |
| | | t3.realname AS precisionInspectionUserName, |
| | | t4.realname AS repairDirectorUserName, |
| | | t5.realname AS equipmentInspectorUserName, |
| | | t6.realname AS useUnitDirectorUserName, |
| | | t7.realname AS equipmentInspectorSignUserName, |
| | | t1.each_tolerance AS eachTolerance, |
| | | t1.part_tolerance AS partTolerance, |
| | | t1.process_pass AS processPass, |
| | | t1.meet_process_require AS meetProcessRequire, |
| | | t1.judgment_result AS judgmentResult, |
| | | t1.remark, |
| | | t8.name AS equipmentName, |
| | | t8.model AS equipmentModel, |
| | | t8.num AS equipmentNum, |
| | | t9.depart_name AS useUnitName |
| | | FROM |
| | | mom_eam_precision_inspection t1 |
| | | LEFT JOIN sys_depart t2 ON t1.maintenance_unit = t2.id |
| | | LEFT JOIN sys_user t3 ON t1.precision_inspection_user = t3.id |
| | | LEFT JOIN sys_user t4 ON t1.repair_director_user = t4.id |
| | | LEFT JOIN sys_user t5 ON t1.equipment_inspector_user = t5.id |
| | | LEFT JOIN sys_user t6 ON t1.use_unit_director_user = t6.id |
| | | LEFT JOIN sys_user t7 ON t1.equipment_inspector_sign_user = t7.id |
| | | LEFT JOIN mom_eam_equipment t8 ON t1.equipment_id = t8.id |
| | | LEFT JOIN sys_depart t9 ON t1.use_unit = t9.id |
| | | where t1.del_flag = '0' and t1.maintenance_order_id = #{maintenanceOrderId} |
| | | </select> |
| | | </mapper> |