| | |
| | | |
| | | <!--自定义分页查询--> |
| | | <select id="selectFirmInfoPage" resultType="org.springblade.modules.yw.vo.FirmInfoVO"> |
| | | select * from yw_firm_info where is_deleted = 0 |
| | | select |
| | | yfi.* |
| | | from yw_firm_info yfi |
| | | where yfi.is_deleted = 0 |
| | | <if test="firmInfo.name!=null and firmInfo.name!=''"> |
| | | and yfi.name like concat('%',#{firmInfo.name},'%') |
| | | </if> |
| | | </select> |
| | | |
| | | <!--自定义详情查询--> |
| | | <select id="getDetail" resultType="org.springblade.modules.yw.vo.FirmInfoVO"> |
| | | select |
| | | yfi.*, |
| | | yrt.per_in_cha as rescuePerName,yrt.per_in_cha_pho as rescuePerPhone |
| | | from yw_firm_info yfi |
| | | left join yw_rescue_team yrt on yrt.firm_id = yfi.id and yrt.is_deleted = 0 |
| | | where yfi.is_deleted = 0 |
| | | and yfi.id = #{firmInfo.id} |
| | | </select> |
| | | |
| | | </mapper> |