| | |
| | | <!-- 保存业主信息信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveOwnerInfo" parameterType="Map"> |
| | | insert into building_owner(id_card, sex, link, owner_type_cd, remark, owner_id, user_id, name, state, |
| | | community_id, age, member_id, address) |
| | | community_id, age, member_id, address) |
| | | values (#{idCard}, #{sex}, #{link}, #{ownerTypeCd}, #{remark}, #{ownerId}, #{userId}, #{name}, #{state}, |
| | | #{communityId}, #{age}, #{memberId}, #{address}) |
| | | #{communityId}, #{age}, #{memberId}, #{address}) |
| | | </insert> |
| | | |
| | | <!-- 查询业主信息信息 add by wuxw 2018-07-03 --> |
| | |
| | | <if test="ownerTypeCd !=null and ownerTypeCd != ''"> |
| | | and t.owner_type_cd= #{ownerTypeCd} |
| | | </if> |
| | | <if test="ownerTypeCds != null"> |
| | | and t.owner_type_cd in |
| | | <foreach collection="ownerTypeCds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="remark !=null and remark != ''"> |
| | | and t.remark= #{remark} |
| | | </if> |
| | |
| | | </if> |
| | | <if test="name !=null and name != ''"> |
| | | and t.name= #{name} |
| | | </if> |
| | | <if test="nameLike !=null and nameLike != ''"> |
| | | and t.name like concat('%',#{nameLike},'%') |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | and t.state= #{state} |
| | |
| | | <if test="ownerTypeCd !=null and ownerTypeCd != ''"> |
| | | and t.owner_type_cd= #{ownerTypeCd} |
| | | </if> |
| | | <if test="ownerTypeCds != null"> |
| | | and t.owner_type_cd in |
| | | <foreach collection="ownerTypeCds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="remark !=null and remark != ''"> |
| | | and t.remark= #{remark} |
| | | </if> |
| | |
| | | </if> |
| | | <if test="name !=null and name != ''"> |
| | | and t.name= #{name} |
| | | </if> |
| | | <if test="nameLike !=null and nameLike != ''"> |
| | | and t.name like concat('%',#{nameLike},'%') |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | and t.state= #{state} |
| | |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="queryOwnerMembersCount" parameterType="Map" resultType="Map"> |
| | | select t.owner_id ownerId,count(1) memberCount |
| | | from |
| | | building_owner t |
| | | where t.status_cd = '0' |
| | | and t.owner_type_cd != '1001' |
| | | and t.owner_id in |
| | | <foreach collection="ownerIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | group by t.owner_id |
| | | </select> |
| | | |
| | | |
| | | </mapper> |