| | |
| | | <!-- 保存业主信息信息 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,person_type,person_role,concact_person,concact_link,face_url) |
| | | community_id, age, member_id, address,person_type,person_role,concact_person,concact_link,face_url,other_address) |
| | | values (#{idCard}, #{sex}, #{link}, #{ownerTypeCd}, #{remark}, #{ownerId}, #{userId}, #{name}, #{state}, |
| | | #{communityId}, #{age}, #{memberId}, #{address},#{personType},#{personRole},#{concactPerson},#{concactLink},#{faceUrl}) |
| | | #{communityId}, #{age}, #{memberId}, #{address},#{personType},#{personRole},#{concactPerson},#{concactLink},#{faceUrl},#{otherAddress}) |
| | | </insert> |
| | | |
| | | <!-- 查询业主信息信息 add by wuxw 2018-07-03 --> |
| | |
| | | select t.id_card,t.id_card idCard,t.sex,t.link,t.owner_type_cd,t.owner_type_cd |
| | | ownerTypeCd,t.remark,t.status_cd,t.status_cd statusCd,t.owner_id,t.owner_id ownerId,t.user_id,t.user_id |
| | | userId,t.name,t.state,t.community_id,t.community_id communityId,t.age,t.member_id,t.member_id memberId, |
| | | t.address ,t.person_type personType,t.person_role personRole,t.concact_person concactPerson,td.name ownerTypeName, |
| | | t.address,t.other_address otherAddress ,t.person_type personType,t.person_role personRole,t.concact_person concactPerson,td.name ownerTypeName, |
| | | t.concact_link concactLink,t.face_url faceUrl,tdType.name personTypeName,tdRole.name personRoleName |
| | | from building_owner t |
| | | left join t_dict td on td.table_name = 'building_owner' and td.`table_columns` = 'owner_type_cd' and td.status_cd = t.owner_type_cd |
| | |
| | | <if test="address !=null and address != ''"> |
| | | ,t.address= #{address} |
| | | </if> |
| | | <if test="otherAddress !=null and otherAddress != ''"> |
| | | ,t.other_address= #{otherAddress} |
| | | </if> |
| | | <if test="ownerTypeCd !=null and ownerTypeCd != ''"> |
| | | ,t.owner_type_cd= #{ownerTypeCd} |
| | | </if> |