| | |
| | | operation_certificate_apply_id = #{mainId} </delete> |
| | | |
| | | <select id="selectByMainId" parameterType="java.lang.String" resultType="org.jeecg.modules.eam.entity.OperationCertificateApplyDetail"> |
| | | SELECT t1.*,t2.realname,t3.name equipmentNames |
| | | SELECT t1.*,t2.realname |
| | | FROM mom_eam_operation_certificate_apply_detail t1 |
| | | left join (select * from sys_user where del_flag = 0) t2 on t1.user_id = t2.username |
| | | left join (select * from mom_eam_equipment where del_flag = 0) t3 on t1.equipment_ids = t3.id |
| | | left join (select * from sys_user where del_flag = 0) t2 on t1.user_id = t2.id |
| | | WHERE |
| | | operation_certificate_apply_id = #{mainId} </select> |
| | | </mapper> |