<?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="org.springblade.modules.ownersCommittee.mapper.OwnersCommitteeMemberMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="ownersCommitteeResultMap"
|
type="org.springblade.modules.ownersCommittee.entity.OwnersCommitteeMemberEntity">
|
</resultMap>
|
|
|
<select id="selectOwnersCommitteeMemberPage" resultMap="ownersCommitteeResultMap">
|
<include refid="selectOwnersCommitteeMember"/>
|
<where>
|
<if test="ownersCommittee.id != null ">and id = #{ownersCommittee.id}</if>
|
<if test="ownersCommittee.areaId != null ">and area_id = #{ownersCommittee.areaId}</if>
|
<if test="ownersCommittee.createId != null ">and create_id = #{ownersCommittee.createId}</if>
|
<if test="ownersCommittee.education != null and ownersCommittee.education != ''">and education = #{ownersCommittee.education}</if>
|
<if test="ownersCommittee.identityNum != null ">and identity_num = #{ownersCommittee.identityNum}</if>
|
<if test="ownersCommittee.identityType != null ">and identity_type = #{ownersCommittee.identityType}</if>
|
<if test="ownersCommittee.imageUrl != null and ownersCommittee.imageUrl != ''">and image_url = #{ownersCommittee.imageUrl}</if>
|
<if test="ownersCommittee.joinTime != null ">and join_time = #{ownersCommittee.joinTime}</if>
|
<if test="ownersCommittee.mobile != null and ownersCommittee.mobile != ''">and mobile = #{ownersCommittee.mobile}</if>
|
<if test="ownersCommittee.name != null and ownersCommittee.name != ''">and name like concat('%',#{ownersCommittee.name},'%') </if>
|
<if test="ownersCommittee.ownersCommitteeName != null and ownersCommittee.ownersCommitteeName != ''">and owners_committee_name =
|
#{ownersCommittee.ownersCommitteeName}
|
</if>
|
<if test="ownersCommittee.ownersId != null ">and owners_id = #{ownersCommittee.ownersId}</if>
|
<if test="ownersCommittee.politicalStatus != null and ownersCommittee.politicalStatus != ''">and political_status = #{ownersCommittee.politicalStatus}</if>
|
<if test="ownersCommittee.post != null and ownersCommittee.post != ''">and post = #{ownersCommittee.post}</if>
|
<if test="ownersCommittee.profile != null and ownersCommittee.profile != ''">and profile = #{ownersCommittee.profile}</if>
|
<if test="ownersCommittee.sex != null and ownersCommittee.sex != ''">and sex = #{ownersCommittee.sex}</if>
|
<if test="ownersCommittee.sort != null ">and sort = #{ownersCommittee.sort}</if>
|
<if test="ownersCommittee.status != null ">and status = #{ownersCommittee.status}</if>
|
<if test="ownersCommittee.updateId != null ">and update_id = #{ownersCommittee.updateId}</if>
|
<if test="ownersCommittee.updateTime != null ">and update_time = #{ownersCommittee.updateTime}</if>
|
<if test="ownersCommittee.createTime != null ">and create_time = #{ownersCommittee.createTime}</if>
|
<if test="ownersCommittee.deleteFlag != null ">and delete_flag = #{ownersCommittee.deleteFlag}</if>
|
</where>
|
</select>
|
|
<resultMap type="org.springblade.modules.ownersCommittee.dto.OwnersCommitteeMemberDTO"
|
id="OwnersCommitteeMemberDTOResult">
|
<result property="id" column="id"/>
|
<result property="areaId" column="area_id"/>
|
<result property="createId" column="create_id"/>
|
<result property="education" column="education"/>
|
<result property="identityNum" column="identity_num"/>
|
<result property="identityType" column="identity_type"/>
|
<result property="imageUrl" column="image_url"/>
|
<result property="joinTime" column="join_time"/>
|
<result property="mobile" column="mobile"/>
|
<result property="name" column="name"/>
|
<result property="ownersCommitteeName" column="owners_committee_name"/>
|
<result property="ownersId" column="owners_id"/>
|
<result property="politicalStatus" column="political_status"/>
|
<result property="post" column="post"/>
|
<result property="profile" column="profile"/>
|
<result property="sex" column="sex"/>
|
<result property="sort" column="sort"/>
|
<result property="status" column="status"/>
|
<result property="updateId" column="update_id"/>
|
<result property="updateTime" column="update_time"/>
|
<result property="createTime" column="create_time"/>
|
<result property="deleteFlag" column="delete_flag"/>
|
<result property="userId" column="user_id"/>
|
</resultMap>
|
|
<sql id="selectOwnersCommitteeMember">
|
select id,
|
area_id,
|
create_id,
|
education,
|
identity_num,
|
identity_type,
|
image_url,
|
join_time,
|
mobile,
|
name,
|
owners_committee_name,
|
owners_id,
|
political_status,
|
post,
|
profile,
|
sex,
|
sort,
|
status,
|
update_id,
|
update_time,
|
create_time,
|
delete_flag,
|
user_id
|
from jczz_owners_committee_member
|
</sql>
|
|
<select id="selectOwnersCommitteeMemberById" parameterType="int" resultMap="OwnersCommitteeMemberDTOResult">
|
<include refid="selectOwnersCommitteeMember"/>
|
where
|
id = #{id}
|
</select>
|
|
<select id="selectOwnersCommitteeMemberList"
|
parameterType="org.springblade.modules.ownersCommittee.dto.OwnersCommitteeMemberDTO"
|
resultMap="OwnersCommitteeMemberDTOResult">
|
<include refid="selectOwnersCommitteeMember"/>
|
<where>
|
<if test="id != null ">and id = #{id}</if>
|
<if test="areaId != null ">and area_id = #{areaId}</if>
|
<if test="createId != null ">and create_id = #{createId}</if>
|
<if test="education != null and education != ''">and education = #{education}</if>
|
<if test="identityNum != null ">and identity_num = #{identityNum}</if>
|
<if test="identityType != null ">and identity_type = #{identityType}</if>
|
<if test="imageUrl != null and imageUrl != ''">and image_url = #{imageUrl}</if>
|
<if test="joinTime != null ">and join_time = #{joinTime}</if>
|
<if test="mobile != null and mobile != ''">and mobile = #{mobile}</if>
|
<if test="name != null and name != ''">and name = #{name}</if>
|
<if test="ownersCommitteeName != null and ownersCommitteeName != ''">and owners_committee_name =
|
#{ownersCommitteeName}
|
</if>
|
<if test="ownersId != null ">and owners_id = #{ownersId}</if>
|
<if test="politicalStatus != null and politicalStatus != ''">and political_status = #{politicalStatus}</if>
|
<if test="post != null and post != ''">and post = #{post}</if>
|
<if test="profile != null and profile != ''">and profile = #{profile}</if>
|
<if test="sex != null and sex != ''">and sex = #{sex}</if>
|
<if test="sort != null ">and sort = #{sort}</if>
|
<if test="status != null ">and status = #{status}</if>
|
<if test="updateId != null ">and update_id = #{updateId}</if>
|
<if test="updateTime != null ">and update_time = #{updateTime}</if>
|
<if test="createTime != null ">and create_time = #{createTime}</if>
|
<if test="deleteFlag != null ">and delete_flag = #{deleteFlag}</if>
|
</where>
|
</select>
|
|
</mapper>
|