| | |
| | | operation_certificate_id = #{mainId} </delete> |
| | | |
| | | <select id="selectByMainId" parameterType="java.lang.String" resultType="org.jeecg.modules.eam.entity.OperationCertificateDetail"> |
| | | SELECT * |
| | | FROM mom_eam_operation_certificate_detail |
| | | SELECT t1.*,t3.name equipmentName,t4.deduction_score deductionScore,t4.content deductionScoreName |
| | | FROM mom_eam_operation_certificate_detail t1 |
| | | left join mom_eam_operation_certificate t2 on t1.operation_certificate_id = t2.id |
| | | left join mom_eam_equipment t3 on t3.id = t1.equipment_id |
| | | left join mom_eam_base_deduction_item t4 on t4.id = t1.deduction_item |
| | | WHERE |
| | | operation_certificate_id = #{mainId} </select> |
| | | </mapper> |