java110
2022-01-17 48c9414db4b7c44a43524115570796025d38a653
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?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="propertyRightRegistrationDetailV1ServiceDaoImpl">
 
    <!-- 保存房屋产权证件详情信息 add by wuxw 2018-07-03 -->
    <insert id="savePropertyRightRegistrationDetailInfo" parameterType="Map">
        insert into property_right_registration_detail(prr_id, prrd_id, create_user, create_time, is_true, securities)
        values (#{prrId}, #{prrdId}, #{createUser}, #{createTime}, #{isTrue}, #{securities})
    </insert>
 
    <!-- 查询房屋产权证件详情信息 add by wuxw 2018-07-03 -->
    <select id="getPropertyRightRegistrationDetailInfo" parameterType="Map" resultType="Map">
        select t.prr_id,t.prr_id prrId,t.prrd_id,t.prrd_id prrdId,t.create_user,t.create_user
        createUser,t.status_cd,t.status_cd statusCd,t.securities,t.is_true,t.is_true isTrue,
        t.create_time,t.create_time createTime
        from property_right_registration_detail t
        where 1 =1
        <if test="prrId !=null and prrId != ''">
            and t.prr_id= #{prrId}
        </if>
        <if test="prrdId !=null and prrdId != ''">
            and t.prrd_id= #{prrdId}
        </if>
        <if test="createUser !=null and createUser != ''">
            and t.create_user= #{createUser}
        </if>
        <if test="statusCd !=null and statusCd != ''">
            and t.status_cd= #{statusCd}
        </if>
        <if test="isTrue !=null and isTrue != ''">
            and t.is_true= #{isTrue}
        </if>
        <if test="securities !=null and securities != ''">
            and t.securities= #{securities}
        </if>
        order by t.create_time desc
        <if test="page != -1 and page != null ">
            limit #{page}, #{row}
        </if>
    </select>
 
    <!-- 修改房屋产权证件详情信息 add by wuxw 2018-07-03 -->
    <update id="updatePropertyRightRegistrationDetailInfo" parameterType="Map">
        update property_right_registration_detail t set t.status_cd = #{statusCd}
        <if test="newBId != null and newBId != ''">
            ,t.b_id = #{newBId}
        </if>
        <if test="prrId !=null and prrId != ''">
            , t.prr_id= #{prrId}
        </if>
        <if test="createUser !=null and createUser != ''">
            , t.create_user= #{createUser}
        </if>
        <if test="isTrue !=null and isTrue != ''">
            , t.is_true= #{isTrue}
        </if>
        <if test="securities !=null and securities != ''">
            , t.securities= #{securities}
        </if>
        where 1=1
        <if test="prrdId !=null and prrdId != ''">
            and t.prrd_id= #{prrdId}
        </if>
    </update>
 
    <!-- 查询房屋产权证件详情数量 add by wuxw 2018-07-03 -->
    <select id="queryPropertyRightRegistrationDetailsCount" parameterType="Map" resultType="Map">
        select count(1) count
        from property_right_registration_detail t
        where 1 =1
        <if test="prrId !=null and prrId != ''">
            and t.prr_id= #{prrId}
        </if>
        <if test="prrdId !=null and prrdId != ''">
            and t.prrd_id= #{prrdId}
        </if>
        <if test="createUser !=null and createUser != ''">
            and t.create_user= #{createUser}
        </if>
        <if test="statusCd !=null and statusCd != ''">
            and t.status_cd= #{statusCd}
        </if>
        <if test="isTrue !=null and isTrue != ''">
            and t.is_true= #{isTrue}
        </if>
        <if test="securities !=null and securities != ''">
            and t.securities= #{securities}
        </if>
    </select>
</mapper>