| | |
| | | <sql id="Base_Column_List"> |
| | | id, oldster_name, oldster_age, oldster_sex, contact_phone, guardian_name, guardian_phone, passport_photo, id_card, birth_date, oldster_type, address, create_time, update_time, create_by, update_by, disabled |
| | | </sql> |
| | | <select id="pageList" resultType="com.ruoyi.system.model.TOldster"> |
| | | select t1.* from t_oldster t1 |
| | | where 1=1 |
| | | <if test="query.oldsterName != null and query.oldsterName != ''"> |
| | | and t1.oldster_name like concat('%',#{query.oldsterName},'%') |
| | | </if> |
| | | <if test="query.oldsterType != null and query.oldsterType != ''"> |
| | | and t1.oldster_type = #{query.oldsterType} |
| | | </if> |
| | | <if test="query.contactPhone != null and query.contactPhone != ''"> |
| | | and t1.contact_phone like concat('%',#{query.contactPhone},'%') |
| | | </if> |
| | | AND t1.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | |
| | | order by t1.create_time desc |
| | | </select> |
| | | |
| | | </mapper> |