cgf
2025-08-23 9ec0a61f90ac2464eebc643bfe2d93ac9ba6e569
java110-db/src/main/resources/mapper/user/OwnerServiceDaoImplMapper.xml
@@ -6,9 +6,9 @@
    <!-- 保存业主信息 add by wuxw 2018-07-03 -->
    <insert id="saveBusinessOwnerInfo" parameterType="Map">
        insert into business_building_owner(operate, sex, name, link, remark, owner_id, b_id, user_id, age, member_id,
                                            owner_type_cd, community_id, id_card, state, owner_flag, address)
                                            owner_type_cd, community_id, id_card, state, owner_flag, address,other_address)
        values (#{operate}, #{sex}, #{name}, #{link}, #{remark}, #{ownerId}, #{bId}, #{userId}, #{age}, #{memberId},
                #{ownerTypeCd}, #{communityId}, #{idCard}, #{state}, #{ownerFlag}, #{address})
                #{ownerTypeCd}, #{communityId}, #{idCard}, #{state}, #{ownerFlag}, #{address},#{otherAddress})
    </insert>
    <!-- 查询业主信息(Business) add by wuxw 2018-07-03 -->
@@ -125,7 +125,7 @@
        t.user_id,t.user_id userId,t.age,t.member_id,t.member_id memberId,t.owner_type_cd,
        t.owner_type_cd ownerTypeCd,t.create_time createTime,t.community_id,
        t.community_id communityId,t.id_card, t.id_card idCard,t.state,td.name ownerTypeName,
        t.owner_flag,t.owner_flag ownerFlag,t.address,t.person_type personType,t.person_role personRole,
        t.owner_flag,t.owner_flag ownerFlag,t.address,t.other_address otherAddress,t.person_type personType,t.person_role personRole,
        t.concact_person concactPerson, t.concact_link concactLink,t.face_url faceUrl,td.name ownerTypeName,
        tdType.name personTypeName,tdRole.name personRoleName
        <if test="roomIds != null">
@@ -354,6 +354,9 @@
        <if test="address !=null and address != ''">
            , t.address= #{address}
        </if>
        <if test="otherAddress !=null and otherAddress != ''">
            ,t.other_address= #{otherAddress}
        </if>
        <if test="remark !=null and remark != ''">
            , t.remark= #{remark}
        </if>
@@ -506,7 +509,7 @@
        select t.sex,t.name,t.link,t.status_cd,t.status_cd statusCd,t.remark,t.owner_id,t.owner_id ownerId,t.b_id,t.b_id
        bId,t.user_id,t.user_id userId,t.age,t.member_id,t.member_id memberId,
        t.owner_type_cd,t.owner_type_cd ownerTypeCd,t.community_id,
        t.community_id communityId,t.id_card, t.id_card idCard,t.address
        t.community_id communityId,t.id_card, t.id_card idCard,t.address,t.other_address otherAddress
        FROM building_owner t
        WHERE
        t.`status_cd` = '0'
@@ -589,7 +592,7 @@
        bId,t.user_id,t.user_id userId,t.age,t.member_id,t.member_id memberId,t.owner_type_cd,t.owner_type_cd
        ownerTypeCd,
        r.`room_id` roomId,r.`room_num` roomNum,t.community_id,t.community_id communityId,t.id_card, t.id_card
        idCard,orr.start_time startTime ,orr.end_time endTime,t.address
        idCard,orr.start_time startTime ,orr.end_time endTime,t.address,t.other_address otherAddress
        FROM building_room r,building_owner_room_rel orr,building_owner t
        WHERE r.`room_id` = orr.`room_id`
        AND orr.`owner_id` = t.`owner_id`
@@ -614,7 +617,7 @@
    <!-- 根据停车位查询 -->
    <select id="queryOwnersByParkingSpace" parameterType="Map" resultType="Map">
        select ps.num,ps.ps_id psId,t.sex,t.name,t.link,t.status_cd,t.status_cd statusCd,t.remark,t.owner_id,t.owner_id
        ownerId,t.b_id,t.b_id bId,t.address,
        ownerId,t.b_id,t.b_id bId,t.address,t.other_address otherAddress,
        t.user_id,t.user_id userId,t.age,t.member_id,t.member_id memberId,
        t.owner_type_cd,t.owner_type_cd ownerTypeCd,t.id_card, t.id_card idCard
        from p_parking_space ps , owner_car oc,building_owner t