| | |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springblade.modules.yw.entity.FirmInfo; |
| | | import org.springblade.modules.yw.vo.FirmInfoVO; |
| | | |
| | |
| | | * @param firmInfo |
| | | * @return |
| | | */ |
| | | List<FirmInfoVO> selectFirmInfoPage(IPage page, FirmInfoVO firmInfo); |
| | | List<FirmInfoVO> selectFirmInfoPage(IPage page,@Param("firmInfo") FirmInfoVO firmInfo); |
| | | |
| | | } |
| | |
| | | |
| | | <!--自定义分页查询--> |
| | | <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 is_deleted = 0 |
| | | <if test="firmInfo.name!=null and firmInfo.name!=''"> |
| | | and yfi.name like concat('%',#{firmInfo.name},'%') |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |