<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<mapper namespace="com.xcong.farmer.cms.modules.system.mapper.CompanyMapper">
|
|
<select id="selectAdminBelongInPage" resultType="com.xcong.farmer.cms.modules.system.vo.AdminCompanyVo">
|
SELECT
|
a.*
|
FROM
|
t_company a
|
<where>
|
<if test="record != null" >
|
<if test="record.name!=null">
|
and a.name like concat ('%',#{record.name},'%')
|
</if>
|
<if test="record.id!=null">
|
and a.id = #{record.id}
|
</if>
|
</if>
|
</where>
|
</select>
|
|
</mapper>
|