linwe
2024-08-09 8b7258c9427882bb1798f1502eaa35184c6e374e
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
<?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.property.mapper.PropertyChargeRecordMapper">
 
 
    <select id="getPage" resultType="org.springblade.modules.property.vo.PropertyChargeRecordVO">
        SELECT * FROM jczz_property_charge_record where is_deleted = 0
    </select>
 
 
    <resultMap type="org.springblade.modules.property.dto.PropertyChargeRecordDTO" id="PropertyChargeRecordDTOResult">
        <result property="id"    column="id"    />
        <result property="propertyId"    column="property_id"    />
        <result property="chargeId"    column="charge_id"    />
        <result property="no"    column="no"    />
        <result property="payUser"    column="pay_user"    />
        <result property="payTime"    column="pay_time"    />
        <result property="payFunc"    column="pay_func"    />
        <result property="payPrice"    column="pay_price"    />
        <result property="houseCode"    column="house_code"    />
        <result property="payContent"    column="pay_content"    />
        <result property="createTime"    column="create_time"    />
        <result property="createUser"    column="create_user"    />
        <result property="createDept"    column="create_dept"    />
        <result property="updateUser"    column="update_user"    />
        <result property="updateTime"    column="update_time"    />
        <result property="status"    column="status"    />
        <result property="isDeleted"    column="is_deleted"    />
        <result property="startTime"    column="start_time"    />
        <result property="endTime"    column="end_time"    />
    </resultMap>
 
    <sql id="selectPropertyChargeRecord">
        select
            id,
            property_id,
            charge_id,
            no,
            pay_user,
            pay_time,
            pay_func,
            pay_price,
            house_code,
            pay_content,
            create_time,
            create_user,
            create_dept,
            update_user,
            update_time,
            status,
            is_deleted,
            start_time,
            end_time
        from
            jczz_property_charge_record
    </sql>
 
    <select id="selectPropertyChargeRecordById" parameterType="long" resultMap="PropertyChargeRecordDTOResult">
        <include refid="selectPropertyChargeRecord"/>
        where
        id = #{id}
    </select>
 
    <select id="selectPropertyChargeRecordList" parameterType="org.springblade.modules.property.dto.PropertyChargeRecordDTO" resultMap="PropertyChargeRecordDTOResult">
        <include refid="selectPropertyChargeRecord"/>
        <where>
            <if test="id != null "> and id = #{id}</if>
            <if test="propertyId != null  and propertyId != ''"> and property_id = #{propertyId}</if>
            <if test="chargeId != null  and chargeId != ''"> and charge_id = #{chargeId}</if>
            <if test="no != null  and no != ''"> and no = #{no}</if>
            <if test="payUser != null  and payUser != ''"> and pay_user = #{payUser}</if>
            <if test="payTime != null "> and pay_time = #{payTime}</if>
            <if test="payFunc != null  and payFunc != ''"> and pay_func = #{payFunc}</if>
            <if test="payPrice != null "> and pay_price = #{payPrice}</if>
            <if test="houseCode != null  and houseCode != ''"> and house_code = #{houseCode}</if>
            <if test="payContent != null  and payContent != ''"> and pay_content = #{payContent}</if>
            <if test="createTime != null "> and create_time = #{createTime}</if>
            <if test="createUser != null "> and create_user = #{createUser}</if>
            <if test="createDept != null "> and create_dept = #{createDept}</if>
            <if test="updateUser != null "> and update_user = #{updateUser}</if>
            <if test="updateTime != null "> and update_time = #{updateTime}</if>
            <if test="status != null "> and status = #{status}</if>
            <if test="isDeleted != null "> and is_deleted = #{isDeleted}</if>
            <if test="startTime != null "> and start_time = #{startTime}</if>
            <if test="endTime != null "> and end_time = #{endTime}</if>
        </where>
    </select>
</mapper>