Bladeren bron

缴费相关

傅行帆 6 jaren geleden
bovenliggende
commit
a9c6887d94

+ 8
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/BillController.java Bestand weergeven

@@ -0,0 +1,8 @@
1
+package com.community.huiju.controller;
2
+
3
+/**
4
+ * @author FXF
5
+ * @date 2018-10-25
6
+ */
7
+public class BillController {
8
+}

+ 17
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpBillInvoiceMapper.java Bestand weergeven

@@ -0,0 +1,17 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.TpBillInvoice;
4
+
5
+public interface TpBillInvoiceMapper {
6
+    int deleteByPrimaryKey(Integer id);
7
+
8
+    int insert(TpBillInvoice record);
9
+
10
+    int insertSelective(TpBillInvoice record);
11
+
12
+    TpBillInvoice selectByPrimaryKey(Integer id);
13
+
14
+    int updateByPrimaryKeySelective(TpBillInvoice record);
15
+
16
+    int updateByPrimaryKey(TpBillInvoice record);
17
+}

+ 17
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpBillMapper.java Bestand weergeven

@@ -0,0 +1,17 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.TpBill;
4
+
5
+public interface TpBillMapper {
6
+    int deleteByPrimaryKey(Integer id);
7
+
8
+    int insert(TpBill record);
9
+
10
+    int insertSelective(TpBill record);
11
+
12
+    TpBill selectByPrimaryKey(Integer id);
13
+
14
+    int updateByPrimaryKeySelective(TpBill record);
15
+
16
+    int updateByPrimaryKey(TpBill record);
17
+}

+ 17
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpBillStatementMapper.java Bestand weergeven

@@ -0,0 +1,17 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.TpBillStatement;
4
+
5
+public interface TpBillStatementMapper {
6
+    int deleteByPrimaryKey(Integer id);
7
+
8
+    int insert(TpBillStatement record);
9
+
10
+    int insertSelective(TpBillStatement record);
11
+
12
+    TpBillStatement selectByPrimaryKey(Integer id);
13
+
14
+    int updateByPrimaryKeySelective(TpBillStatement record);
15
+
16
+    int updateByPrimaryKey(TpBillStatement record);
17
+}

+ 145
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpBill.java Bestand weergeven

@@ -0,0 +1,145 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpBill {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private String billName;
11
+
12
+    private String billExplain;
13
+
14
+    private String payPrice;
15
+
16
+    private Integer payTotalNum;
17
+
18
+    private Integer payedNum;
19
+
20
+    private Integer unpayedNum;
21
+
22
+    private String billStatus;
23
+
24
+    private Date endDate;
25
+
26
+    private Integer createUser;
27
+
28
+    private Date createDate;
29
+
30
+    private Integer updateUser;
31
+
32
+    private Date updateDate;
33
+
34
+    public Integer getId() {
35
+        return id;
36
+    }
37
+
38
+    public void setId(Integer id) {
39
+        this.id = id;
40
+    }
41
+
42
+    public Integer getCommunityId() {
43
+        return communityId;
44
+    }
45
+
46
+    public void setCommunityId(Integer communityId) {
47
+        this.communityId = communityId;
48
+    }
49
+
50
+    public String getBillName() {
51
+        return billName;
52
+    }
53
+
54
+    public void setBillName(String billName) {
55
+        this.billName = billName == null ? null : billName.trim();
56
+    }
57
+
58
+    public String getBillExplain() {
59
+        return billExplain;
60
+    }
61
+
62
+    public void setBillExplain(String billExplain) {
63
+        this.billExplain = billExplain == null ? null : billExplain.trim();
64
+    }
65
+
66
+    public String getPayPrice() {
67
+        return payPrice;
68
+    }
69
+
70
+    public void setPayPrice(String payPrice) {
71
+        this.payPrice = payPrice == null ? null : payPrice.trim();
72
+    }
73
+
74
+    public Integer getPayTotalNum() {
75
+        return payTotalNum;
76
+    }
77
+
78
+    public void setPayTotalNum(Integer payTotalNum) {
79
+        this.payTotalNum = payTotalNum;
80
+    }
81
+
82
+    public Integer getPayedNum() {
83
+        return payedNum;
84
+    }
85
+
86
+    public void setPayedNum(Integer payedNum) {
87
+        this.payedNum = payedNum;
88
+    }
89
+
90
+    public Integer getUnpayedNum() {
91
+        return unpayedNum;
92
+    }
93
+
94
+    public void setUnpayedNum(Integer unpayedNum) {
95
+        this.unpayedNum = unpayedNum;
96
+    }
97
+
98
+    public String getBillStatus() {
99
+        return billStatus;
100
+    }
101
+
102
+    public void setBillStatus(String billStatus) {
103
+        this.billStatus = billStatus == null ? null : billStatus.trim();
104
+    }
105
+
106
+    public Date getEndDate() {
107
+        return endDate;
108
+    }
109
+
110
+    public void setEndDate(Date endDate) {
111
+        this.endDate = endDate;
112
+    }
113
+
114
+    public Integer getCreateUser() {
115
+        return createUser;
116
+    }
117
+
118
+    public void setCreateUser(Integer createUser) {
119
+        this.createUser = createUser;
120
+    }
121
+
122
+    public Date getCreateDate() {
123
+        return createDate;
124
+    }
125
+
126
+    public void setCreateDate(Date createDate) {
127
+        this.createDate = createDate;
128
+    }
129
+
130
+    public Integer getUpdateUser() {
131
+        return updateUser;
132
+    }
133
+
134
+    public void setUpdateUser(Integer updateUser) {
135
+        this.updateUser = updateUser;
136
+    }
137
+
138
+    public Date getUpdateDate() {
139
+        return updateDate;
140
+    }
141
+
142
+    public void setUpdateDate(Date updateDate) {
143
+        this.updateDate = updateDate;
144
+    }
145
+}

+ 155
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpBillInvoice.java Bestand weergeven

@@ -0,0 +1,155 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpBillInvoice {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private Integer billId;
11
+
12
+    private Integer buildingOwnerInfoId;
13
+
14
+    private Integer taUserId;
15
+
16
+    private String billInvoiceExplain;
17
+
18
+    private Integer payPrice;
19
+
20
+    private Integer billStatementId;
21
+
22
+    private String billStatus;
23
+
24
+    private String payName;
25
+
26
+    private Date payDate;
27
+
28
+    private Integer createUser;
29
+
30
+    private Date createDate;
31
+
32
+    private Integer updateUser;
33
+
34
+    private Date updateDate;
35
+
36
+    public Integer getId() {
37
+        return id;
38
+    }
39
+
40
+    public void setId(Integer id) {
41
+        this.id = id;
42
+    }
43
+
44
+    public Integer getCommunityId() {
45
+        return communityId;
46
+    }
47
+
48
+    public void setCommunityId(Integer communityId) {
49
+        this.communityId = communityId;
50
+    }
51
+
52
+    public Integer getBillId() {
53
+        return billId;
54
+    }
55
+
56
+    public void setBillId(Integer billId) {
57
+        this.billId = billId;
58
+    }
59
+
60
+    public Integer getBuildingOwnerInfoId() {
61
+        return buildingOwnerInfoId;
62
+    }
63
+
64
+    public void setBuildingOwnerInfoId(Integer buildingOwnerInfoId) {
65
+        this.buildingOwnerInfoId = buildingOwnerInfoId;
66
+    }
67
+
68
+    public Integer getTaUserId() {
69
+        return taUserId;
70
+    }
71
+
72
+    public void setTaUserId(Integer taUserId) {
73
+        this.taUserId = taUserId;
74
+    }
75
+
76
+    public String getBillInvoiceExplain() {
77
+        return billInvoiceExplain;
78
+    }
79
+
80
+    public void setBillInvoiceExplain(String billInvoiceExplain) {
81
+        this.billInvoiceExplain = billInvoiceExplain == null ? null : billInvoiceExplain.trim();
82
+    }
83
+
84
+    public Integer getPayPrice() {
85
+        return payPrice;
86
+    }
87
+
88
+    public void setPayPrice(Integer payPrice) {
89
+        this.payPrice = payPrice;
90
+    }
91
+
92
+    public Integer getBillStatementId() {
93
+        return billStatementId;
94
+    }
95
+
96
+    public void setBillStatementId(Integer billStatementId) {
97
+        this.billStatementId = billStatementId;
98
+    }
99
+
100
+    public String getBillStatus() {
101
+        return billStatus;
102
+    }
103
+
104
+    public void setBillStatus(String billStatus) {
105
+        this.billStatus = billStatus == null ? null : billStatus.trim();
106
+    }
107
+
108
+    public String getPayName() {
109
+        return payName;
110
+    }
111
+
112
+    public void setPayName(String payName) {
113
+        this.payName = payName == null ? null : payName.trim();
114
+    }
115
+
116
+    public Date getPayDate() {
117
+        return payDate;
118
+    }
119
+
120
+    public void setPayDate(Date payDate) {
121
+        this.payDate = payDate;
122
+    }
123
+
124
+    public Integer getCreateUser() {
125
+        return createUser;
126
+    }
127
+
128
+    public void setCreateUser(Integer createUser) {
129
+        this.createUser = createUser;
130
+    }
131
+
132
+    public Date getCreateDate() {
133
+        return createDate;
134
+    }
135
+
136
+    public void setCreateDate(Date createDate) {
137
+        this.createDate = createDate;
138
+    }
139
+
140
+    public Integer getUpdateUser() {
141
+        return updateUser;
142
+    }
143
+
144
+    public void setUpdateUser(Integer updateUser) {
145
+        this.updateUser = updateUser;
146
+    }
147
+
148
+    public Date getUpdateDate() {
149
+        return updateDate;
150
+    }
151
+
152
+    public void setUpdateDate(Date updateDate) {
153
+        this.updateDate = updateDate;
154
+    }
155
+}

+ 95
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpBillStatement.java Bestand weergeven

@@ -0,0 +1,95 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpBillStatement {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private Integer billInvoiceId;
11
+
12
+    private Integer taUserId;
13
+
14
+    private Integer payPrice;
15
+
16
+    private String payName;
17
+
18
+    private String payRemark;
19
+
20
+    private String payType;
21
+
22
+    private Date createTime;
23
+
24
+    public Integer getId() {
25
+        return id;
26
+    }
27
+
28
+    public void setId(Integer id) {
29
+        this.id = id;
30
+    }
31
+
32
+    public Integer getCommunityId() {
33
+        return communityId;
34
+    }
35
+
36
+    public void setCommunityId(Integer communityId) {
37
+        this.communityId = communityId;
38
+    }
39
+
40
+    public Integer getBillInvoiceId() {
41
+        return billInvoiceId;
42
+    }
43
+
44
+    public void setBillInvoiceId(Integer billInvoiceId) {
45
+        this.billInvoiceId = billInvoiceId;
46
+    }
47
+
48
+    public Integer getTaUserId() {
49
+        return taUserId;
50
+    }
51
+
52
+    public void setTaUserId(Integer taUserId) {
53
+        this.taUserId = taUserId;
54
+    }
55
+
56
+    public Integer getPayPrice() {
57
+        return payPrice;
58
+    }
59
+
60
+    public void setPayPrice(Integer payPrice) {
61
+        this.payPrice = payPrice;
62
+    }
63
+
64
+    public String getPayName() {
65
+        return payName;
66
+    }
67
+
68
+    public void setPayName(String payName) {
69
+        this.payName = payName == null ? null : payName.trim();
70
+    }
71
+
72
+    public String getPayRemark() {
73
+        return payRemark;
74
+    }
75
+
76
+    public void setPayRemark(String payRemark) {
77
+        this.payRemark = payRemark == null ? null : payRemark.trim();
78
+    }
79
+
80
+    public String getPayType() {
81
+        return payType;
82
+    }
83
+
84
+    public void setPayType(String payType) {
85
+        this.payType = payType == null ? null : payType.trim();
86
+    }
87
+
88
+    public Date getCreateTime() {
89
+        return createTime;
90
+    }
91
+
92
+    public void setCreateTime(Date createTime) {
93
+        this.createTime = createTime;
94
+    }
95
+}

+ 4
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/BillServiceI.java Bestand weergeven

@@ -0,0 +1,4 @@
1
+package com.community.huiju.service;
2
+
3
+public interface BillServiceI {
4
+}

+ 12
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/BillServiceImpl.java Bestand weergeven

@@ -0,0 +1,12 @@
1
+package com.community.huiju.service.impl;
2
+
3
+import com.community.huiju.service.BillServiceI;
4
+import org.springframework.stereotype.Service;
5
+
6
+/**
7
+ * @author FXF
8
+ * @date 2018-10-25
9
+ */
10
+@Service("billService")
11
+public class BillServiceImpl implements BillServiceI {
12
+}

+ 213
- 0
CODE/smart-community/app-api/src/main/resources/mapper/TpBillInvoiceMapper.xml Bestand weergeven

@@ -0,0 +1,213 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
+<mapper namespace="com.community.huiju.dao.TpBillInvoiceMapper" >
4
+  <resultMap id="BaseResultMap" type="com.community.huiju.model.TpBillInvoice" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="bill_id" property="billId" jdbcType="INTEGER" />
8
+    <result column="building_owner_info_id" property="buildingOwnerInfoId" jdbcType="INTEGER" />
9
+    <result column="ta_user_id" property="taUserId" jdbcType="INTEGER" />
10
+    <result column="bill_invoice_explain" property="billInvoiceExplain" jdbcType="VARCHAR" />
11
+    <result column="pay_price" property="payPrice" jdbcType="INTEGER" />
12
+    <result column="bill_statement_id" property="billStatementId" jdbcType="INTEGER" />
13
+    <result column="bill_status" property="billStatus" jdbcType="CHAR" />
14
+    <result column="pay_name" property="payName" jdbcType="VARCHAR" />
15
+    <result column="pay_date" property="payDate" jdbcType="TIMESTAMP" />
16
+    <result column="create_user" property="createUser" jdbcType="INTEGER" />
17
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
18
+    <result column="update_user" property="updateUser" jdbcType="INTEGER" />
19
+    <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
20
+  </resultMap>
21
+  <sql id="Base_Column_List" >
22
+    id, community_id, bill_id, building_owner_info_id, ta_user_id, bill_invoice_explain, 
23
+    pay_price, bill_statement_id, bill_status, pay_name, pay_date, create_user, create_date, 
24
+    update_user, update_date
25
+  </sql>
26
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
27
+    select 
28
+    <include refid="Base_Column_List" />
29
+    from tp_bill_invoice
30
+    where id = #{id,jdbcType=INTEGER}
31
+  </select>
32
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
33
+    delete from tp_bill_invoice
34
+    where id = #{id,jdbcType=INTEGER}
35
+  </delete>
36
+  <insert id="insert" parameterType="com.community.huiju.model.TpBillInvoice" >
37
+    insert into tp_bill_invoice (id, community_id, bill_id, 
38
+      building_owner_info_id, ta_user_id, bill_invoice_explain, 
39
+      pay_price, bill_statement_id, bill_status, 
40
+      pay_name, pay_date, create_user, 
41
+      create_date, update_user, update_date
42
+      )
43
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{billId,jdbcType=INTEGER}, 
44
+      #{buildingOwnerInfoId,jdbcType=INTEGER}, #{taUserId,jdbcType=INTEGER}, #{billInvoiceExplain,jdbcType=VARCHAR}, 
45
+      #{payPrice,jdbcType=INTEGER}, #{billStatementId,jdbcType=INTEGER}, #{billStatus,jdbcType=CHAR}, 
46
+      #{payName,jdbcType=VARCHAR}, #{payDate,jdbcType=TIMESTAMP}, #{createUser,jdbcType=INTEGER}, 
47
+      #{createDate,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP}
48
+      )
49
+  </insert>
50
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TpBillInvoice" >
51
+    insert into tp_bill_invoice
52
+    <trim prefix="(" suffix=")" suffixOverrides="," >
53
+      <if test="id != null" >
54
+        id,
55
+      </if>
56
+      <if test="communityId != null" >
57
+        community_id,
58
+      </if>
59
+      <if test="billId != null" >
60
+        bill_id,
61
+      </if>
62
+      <if test="buildingOwnerInfoId != null" >
63
+        building_owner_info_id,
64
+      </if>
65
+      <if test="taUserId != null" >
66
+        ta_user_id,
67
+      </if>
68
+      <if test="billInvoiceExplain != null" >
69
+        bill_invoice_explain,
70
+      </if>
71
+      <if test="payPrice != null" >
72
+        pay_price,
73
+      </if>
74
+      <if test="billStatementId != null" >
75
+        bill_statement_id,
76
+      </if>
77
+      <if test="billStatus != null" >
78
+        bill_status,
79
+      </if>
80
+      <if test="payName != null" >
81
+        pay_name,
82
+      </if>
83
+      <if test="payDate != null" >
84
+        pay_date,
85
+      </if>
86
+      <if test="createUser != null" >
87
+        create_user,
88
+      </if>
89
+      <if test="createDate != null" >
90
+        create_date,
91
+      </if>
92
+      <if test="updateUser != null" >
93
+        update_user,
94
+      </if>
95
+      <if test="updateDate != null" >
96
+        update_date,
97
+      </if>
98
+    </trim>
99
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
100
+      <if test="id != null" >
101
+        #{id,jdbcType=INTEGER},
102
+      </if>
103
+      <if test="communityId != null" >
104
+        #{communityId,jdbcType=INTEGER},
105
+      </if>
106
+      <if test="billId != null" >
107
+        #{billId,jdbcType=INTEGER},
108
+      </if>
109
+      <if test="buildingOwnerInfoId != null" >
110
+        #{buildingOwnerInfoId,jdbcType=INTEGER},
111
+      </if>
112
+      <if test="taUserId != null" >
113
+        #{taUserId,jdbcType=INTEGER},
114
+      </if>
115
+      <if test="billInvoiceExplain != null" >
116
+        #{billInvoiceExplain,jdbcType=VARCHAR},
117
+      </if>
118
+      <if test="payPrice != null" >
119
+        #{payPrice,jdbcType=INTEGER},
120
+      </if>
121
+      <if test="billStatementId != null" >
122
+        #{billStatementId,jdbcType=INTEGER},
123
+      </if>
124
+      <if test="billStatus != null" >
125
+        #{billStatus,jdbcType=CHAR},
126
+      </if>
127
+      <if test="payName != null" >
128
+        #{payName,jdbcType=VARCHAR},
129
+      </if>
130
+      <if test="payDate != null" >
131
+        #{payDate,jdbcType=TIMESTAMP},
132
+      </if>
133
+      <if test="createUser != null" >
134
+        #{createUser,jdbcType=INTEGER},
135
+      </if>
136
+      <if test="createDate != null" >
137
+        #{createDate,jdbcType=TIMESTAMP},
138
+      </if>
139
+      <if test="updateUser != null" >
140
+        #{updateUser,jdbcType=INTEGER},
141
+      </if>
142
+      <if test="updateDate != null" >
143
+        #{updateDate,jdbcType=TIMESTAMP},
144
+      </if>
145
+    </trim>
146
+  </insert>
147
+  <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TpBillInvoice" >
148
+    update tp_bill_invoice
149
+    <set >
150
+      <if test="communityId != null" >
151
+        community_id = #{communityId,jdbcType=INTEGER},
152
+      </if>
153
+      <if test="billId != null" >
154
+        bill_id = #{billId,jdbcType=INTEGER},
155
+      </if>
156
+      <if test="buildingOwnerInfoId != null" >
157
+        building_owner_info_id = #{buildingOwnerInfoId,jdbcType=INTEGER},
158
+      </if>
159
+      <if test="taUserId != null" >
160
+        ta_user_id = #{taUserId,jdbcType=INTEGER},
161
+      </if>
162
+      <if test="billInvoiceExplain != null" >
163
+        bill_invoice_explain = #{billInvoiceExplain,jdbcType=VARCHAR},
164
+      </if>
165
+      <if test="payPrice != null" >
166
+        pay_price = #{payPrice,jdbcType=INTEGER},
167
+      </if>
168
+      <if test="billStatementId != null" >
169
+        bill_statement_id = #{billStatementId,jdbcType=INTEGER},
170
+      </if>
171
+      <if test="billStatus != null" >
172
+        bill_status = #{billStatus,jdbcType=CHAR},
173
+      </if>
174
+      <if test="payName != null" >
175
+        pay_name = #{payName,jdbcType=VARCHAR},
176
+      </if>
177
+      <if test="payDate != null" >
178
+        pay_date = #{payDate,jdbcType=TIMESTAMP},
179
+      </if>
180
+      <if test="createUser != null" >
181
+        create_user = #{createUser,jdbcType=INTEGER},
182
+      </if>
183
+      <if test="createDate != null" >
184
+        create_date = #{createDate,jdbcType=TIMESTAMP},
185
+      </if>
186
+      <if test="updateUser != null" >
187
+        update_user = #{updateUser,jdbcType=INTEGER},
188
+      </if>
189
+      <if test="updateDate != null" >
190
+        update_date = #{updateDate,jdbcType=TIMESTAMP},
191
+      </if>
192
+    </set>
193
+    where id = #{id,jdbcType=INTEGER}
194
+  </update>
195
+  <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TpBillInvoice" >
196
+    update tp_bill_invoice
197
+    set community_id = #{communityId,jdbcType=INTEGER},
198
+      bill_id = #{billId,jdbcType=INTEGER},
199
+      building_owner_info_id = #{buildingOwnerInfoId,jdbcType=INTEGER},
200
+      ta_user_id = #{taUserId,jdbcType=INTEGER},
201
+      bill_invoice_explain = #{billInvoiceExplain,jdbcType=VARCHAR},
202
+      pay_price = #{payPrice,jdbcType=INTEGER},
203
+      bill_statement_id = #{billStatementId,jdbcType=INTEGER},
204
+      bill_status = #{billStatus,jdbcType=CHAR},
205
+      pay_name = #{payName,jdbcType=VARCHAR},
206
+      pay_date = #{payDate,jdbcType=TIMESTAMP},
207
+      create_user = #{createUser,jdbcType=INTEGER},
208
+      create_date = #{createDate,jdbcType=TIMESTAMP},
209
+      update_user = #{updateUser,jdbcType=INTEGER},
210
+      update_date = #{updateDate,jdbcType=TIMESTAMP}
211
+    where id = #{id,jdbcType=INTEGER}
212
+  </update>
213
+</mapper>

+ 199
- 0
CODE/smart-community/app-api/src/main/resources/mapper/TpBillMapper.xml Bestand weergeven

@@ -0,0 +1,199 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
+<mapper namespace="com.community.huiju.dao.TpBillMapper" >
4
+  <resultMap id="BaseResultMap" type="com.community.huiju.model.TpBill" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="bill_name" property="billName" jdbcType="VARCHAR" />
8
+    <result column="bill_explain" property="billExplain" jdbcType="VARCHAR" />
9
+    <result column="pay_price" property="payPrice" jdbcType="CHAR" />
10
+    <result column="pay_total_num" property="payTotalNum" jdbcType="INTEGER" />
11
+    <result column="payed_num" property="payedNum" jdbcType="INTEGER" />
12
+    <result column="unpayed_num" property="unpayedNum" jdbcType="INTEGER" />
13
+    <result column="bill_status" property="billStatus" jdbcType="CHAR" />
14
+    <result column="end_date" property="endDate" jdbcType="TIMESTAMP" />
15
+    <result column="create_user" property="createUser" jdbcType="INTEGER" />
16
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
17
+    <result column="update_user" property="updateUser" jdbcType="INTEGER" />
18
+    <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
19
+  </resultMap>
20
+  <sql id="Base_Column_List" >
21
+    id, community_id, bill_name, bill_explain, pay_price, pay_total_num, payed_num, unpayed_num, 
22
+    bill_status, end_date, create_user, create_date, update_user, update_date
23
+  </sql>
24
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
25
+    select 
26
+    <include refid="Base_Column_List" />
27
+    from tp_bill
28
+    where id = #{id,jdbcType=INTEGER}
29
+  </select>
30
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
31
+    delete from tp_bill
32
+    where id = #{id,jdbcType=INTEGER}
33
+  </delete>
34
+  <insert id="insert" parameterType="com.community.huiju.model.TpBill" >
35
+    insert into tp_bill (id, community_id, bill_name, 
36
+      bill_explain, pay_price, pay_total_num, 
37
+      payed_num, unpayed_num, bill_status, 
38
+      end_date, create_user, create_date, 
39
+      update_user, update_date)
40
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{billName,jdbcType=VARCHAR}, 
41
+      #{billExplain,jdbcType=VARCHAR}, #{payPrice,jdbcType=CHAR}, #{payTotalNum,jdbcType=INTEGER}, 
42
+      #{payedNum,jdbcType=INTEGER}, #{unpayedNum,jdbcType=INTEGER}, #{billStatus,jdbcType=CHAR}, 
43
+      #{endDate,jdbcType=TIMESTAMP}, #{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}, 
44
+      #{updateUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP})
45
+  </insert>
46
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TpBill" >
47
+    insert into tp_bill
48
+    <trim prefix="(" suffix=")" suffixOverrides="," >
49
+      <if test="id != null" >
50
+        id,
51
+      </if>
52
+      <if test="communityId != null" >
53
+        community_id,
54
+      </if>
55
+      <if test="billName != null" >
56
+        bill_name,
57
+      </if>
58
+      <if test="billExplain != null" >
59
+        bill_explain,
60
+      </if>
61
+      <if test="payPrice != null" >
62
+        pay_price,
63
+      </if>
64
+      <if test="payTotalNum != null" >
65
+        pay_total_num,
66
+      </if>
67
+      <if test="payedNum != null" >
68
+        payed_num,
69
+      </if>
70
+      <if test="unpayedNum != null" >
71
+        unpayed_num,
72
+      </if>
73
+      <if test="billStatus != null" >
74
+        bill_status,
75
+      </if>
76
+      <if test="endDate != null" >
77
+        end_date,
78
+      </if>
79
+      <if test="createUser != null" >
80
+        create_user,
81
+      </if>
82
+      <if test="createDate != null" >
83
+        create_date,
84
+      </if>
85
+      <if test="updateUser != null" >
86
+        update_user,
87
+      </if>
88
+      <if test="updateDate != null" >
89
+        update_date,
90
+      </if>
91
+    </trim>
92
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
93
+      <if test="id != null" >
94
+        #{id,jdbcType=INTEGER},
95
+      </if>
96
+      <if test="communityId != null" >
97
+        #{communityId,jdbcType=INTEGER},
98
+      </if>
99
+      <if test="billName != null" >
100
+        #{billName,jdbcType=VARCHAR},
101
+      </if>
102
+      <if test="billExplain != null" >
103
+        #{billExplain,jdbcType=VARCHAR},
104
+      </if>
105
+      <if test="payPrice != null" >
106
+        #{payPrice,jdbcType=CHAR},
107
+      </if>
108
+      <if test="payTotalNum != null" >
109
+        #{payTotalNum,jdbcType=INTEGER},
110
+      </if>
111
+      <if test="payedNum != null" >
112
+        #{payedNum,jdbcType=INTEGER},
113
+      </if>
114
+      <if test="unpayedNum != null" >
115
+        #{unpayedNum,jdbcType=INTEGER},
116
+      </if>
117
+      <if test="billStatus != null" >
118
+        #{billStatus,jdbcType=CHAR},
119
+      </if>
120
+      <if test="endDate != null" >
121
+        #{endDate,jdbcType=TIMESTAMP},
122
+      </if>
123
+      <if test="createUser != null" >
124
+        #{createUser,jdbcType=INTEGER},
125
+      </if>
126
+      <if test="createDate != null" >
127
+        #{createDate,jdbcType=TIMESTAMP},
128
+      </if>
129
+      <if test="updateUser != null" >
130
+        #{updateUser,jdbcType=INTEGER},
131
+      </if>
132
+      <if test="updateDate != null" >
133
+        #{updateDate,jdbcType=TIMESTAMP},
134
+      </if>
135
+    </trim>
136
+  </insert>
137
+  <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TpBill" >
138
+    update tp_bill
139
+    <set >
140
+      <if test="communityId != null" >
141
+        community_id = #{communityId,jdbcType=INTEGER},
142
+      </if>
143
+      <if test="billName != null" >
144
+        bill_name = #{billName,jdbcType=VARCHAR},
145
+      </if>
146
+      <if test="billExplain != null" >
147
+        bill_explain = #{billExplain,jdbcType=VARCHAR},
148
+      </if>
149
+      <if test="payPrice != null" >
150
+        pay_price = #{payPrice,jdbcType=CHAR},
151
+      </if>
152
+      <if test="payTotalNum != null" >
153
+        pay_total_num = #{payTotalNum,jdbcType=INTEGER},
154
+      </if>
155
+      <if test="payedNum != null" >
156
+        payed_num = #{payedNum,jdbcType=INTEGER},
157
+      </if>
158
+      <if test="unpayedNum != null" >
159
+        unpayed_num = #{unpayedNum,jdbcType=INTEGER},
160
+      </if>
161
+      <if test="billStatus != null" >
162
+        bill_status = #{billStatus,jdbcType=CHAR},
163
+      </if>
164
+      <if test="endDate != null" >
165
+        end_date = #{endDate,jdbcType=TIMESTAMP},
166
+      </if>
167
+      <if test="createUser != null" >
168
+        create_user = #{createUser,jdbcType=INTEGER},
169
+      </if>
170
+      <if test="createDate != null" >
171
+        create_date = #{createDate,jdbcType=TIMESTAMP},
172
+      </if>
173
+      <if test="updateUser != null" >
174
+        update_user = #{updateUser,jdbcType=INTEGER},
175
+      </if>
176
+      <if test="updateDate != null" >
177
+        update_date = #{updateDate,jdbcType=TIMESTAMP},
178
+      </if>
179
+    </set>
180
+    where id = #{id,jdbcType=INTEGER}
181
+  </update>
182
+  <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TpBill" >
183
+    update tp_bill
184
+    set community_id = #{communityId,jdbcType=INTEGER},
185
+      bill_name = #{billName,jdbcType=VARCHAR},
186
+      bill_explain = #{billExplain,jdbcType=VARCHAR},
187
+      pay_price = #{payPrice,jdbcType=CHAR},
188
+      pay_total_num = #{payTotalNum,jdbcType=INTEGER},
189
+      payed_num = #{payedNum,jdbcType=INTEGER},
190
+      unpayed_num = #{unpayedNum,jdbcType=INTEGER},
191
+      bill_status = #{billStatus,jdbcType=CHAR},
192
+      end_date = #{endDate,jdbcType=TIMESTAMP},
193
+      create_user = #{createUser,jdbcType=INTEGER},
194
+      create_date = #{createDate,jdbcType=TIMESTAMP},
195
+      update_user = #{updateUser,jdbcType=INTEGER},
196
+      update_date = #{updateDate,jdbcType=TIMESTAMP}
197
+    where id = #{id,jdbcType=INTEGER}
198
+  </update>
199
+</mapper>

+ 142
- 0
CODE/smart-community/app-api/src/main/resources/mapper/TpBillStatementMapper.xml Bestand weergeven

@@ -0,0 +1,142 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
+<mapper namespace="com.community.huiju.dao.TpBillStatementMapper" >
4
+  <resultMap id="BaseResultMap" type="com.community.huiju.model.TpBillStatement" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="bill_invoice_id" property="billInvoiceId" jdbcType="INTEGER" />
8
+    <result column="ta_user_id" property="taUserId" jdbcType="INTEGER" />
9
+    <result column="pay_price" property="payPrice" jdbcType="INTEGER" />
10
+    <result column="pay_name" property="payName" jdbcType="VARCHAR" />
11
+    <result column="pay_remark" property="payRemark" jdbcType="VARCHAR" />
12
+    <result column="pay_type" property="payType" jdbcType="CHAR" />
13
+    <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
14
+  </resultMap>
15
+  <sql id="Base_Column_List" >
16
+    id, community_id, bill_invoice_id, ta_user_id, pay_price, pay_name, pay_remark, pay_type, 
17
+    create_time
18
+  </sql>
19
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
20
+    select 
21
+    <include refid="Base_Column_List" />
22
+    from tp_bill_statement
23
+    where id = #{id,jdbcType=INTEGER}
24
+  </select>
25
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
26
+    delete from tp_bill_statement
27
+    where id = #{id,jdbcType=INTEGER}
28
+  </delete>
29
+  <insert id="insert" parameterType="com.community.huiju.model.TpBillStatement" >
30
+    insert into tp_bill_statement (id, community_id, bill_invoice_id, 
31
+      ta_user_id, pay_price, pay_name, 
32
+      pay_remark, pay_type, create_time
33
+      )
34
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{billInvoiceId,jdbcType=INTEGER}, 
35
+      #{taUserId,jdbcType=INTEGER}, #{payPrice,jdbcType=INTEGER}, #{payName,jdbcType=VARCHAR}, 
36
+      #{payRemark,jdbcType=VARCHAR}, #{payType,jdbcType=CHAR}, #{createTime,jdbcType=TIMESTAMP}
37
+      )
38
+  </insert>
39
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TpBillStatement" >
40
+    insert into tp_bill_statement
41
+    <trim prefix="(" suffix=")" suffixOverrides="," >
42
+      <if test="id != null" >
43
+        id,
44
+      </if>
45
+      <if test="communityId != null" >
46
+        community_id,
47
+      </if>
48
+      <if test="billInvoiceId != null" >
49
+        bill_invoice_id,
50
+      </if>
51
+      <if test="taUserId != null" >
52
+        ta_user_id,
53
+      </if>
54
+      <if test="payPrice != null" >
55
+        pay_price,
56
+      </if>
57
+      <if test="payName != null" >
58
+        pay_name,
59
+      </if>
60
+      <if test="payRemark != null" >
61
+        pay_remark,
62
+      </if>
63
+      <if test="payType != null" >
64
+        pay_type,
65
+      </if>
66
+      <if test="createTime != null" >
67
+        create_time,
68
+      </if>
69
+    </trim>
70
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
71
+      <if test="id != null" >
72
+        #{id,jdbcType=INTEGER},
73
+      </if>
74
+      <if test="communityId != null" >
75
+        #{communityId,jdbcType=INTEGER},
76
+      </if>
77
+      <if test="billInvoiceId != null" >
78
+        #{billInvoiceId,jdbcType=INTEGER},
79
+      </if>
80
+      <if test="taUserId != null" >
81
+        #{taUserId,jdbcType=INTEGER},
82
+      </if>
83
+      <if test="payPrice != null" >
84
+        #{payPrice,jdbcType=INTEGER},
85
+      </if>
86
+      <if test="payName != null" >
87
+        #{payName,jdbcType=VARCHAR},
88
+      </if>
89
+      <if test="payRemark != null" >
90
+        #{payRemark,jdbcType=VARCHAR},
91
+      </if>
92
+      <if test="payType != null" >
93
+        #{payType,jdbcType=CHAR},
94
+      </if>
95
+      <if test="createTime != null" >
96
+        #{createTime,jdbcType=TIMESTAMP},
97
+      </if>
98
+    </trim>
99
+  </insert>
100
+  <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TpBillStatement" >
101
+    update tp_bill_statement
102
+    <set >
103
+      <if test="communityId != null" >
104
+        community_id = #{communityId,jdbcType=INTEGER},
105
+      </if>
106
+      <if test="billInvoiceId != null" >
107
+        bill_invoice_id = #{billInvoiceId,jdbcType=INTEGER},
108
+      </if>
109
+      <if test="taUserId != null" >
110
+        ta_user_id = #{taUserId,jdbcType=INTEGER},
111
+      </if>
112
+      <if test="payPrice != null" >
113
+        pay_price = #{payPrice,jdbcType=INTEGER},
114
+      </if>
115
+      <if test="payName != null" >
116
+        pay_name = #{payName,jdbcType=VARCHAR},
117
+      </if>
118
+      <if test="payRemark != null" >
119
+        pay_remark = #{payRemark,jdbcType=VARCHAR},
120
+      </if>
121
+      <if test="payType != null" >
122
+        pay_type = #{payType,jdbcType=CHAR},
123
+      </if>
124
+      <if test="createTime != null" >
125
+        create_time = #{createTime,jdbcType=TIMESTAMP},
126
+      </if>
127
+    </set>
128
+    where id = #{id,jdbcType=INTEGER}
129
+  </update>
130
+  <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TpBillStatement" >
131
+    update tp_bill_statement
132
+    set community_id = #{communityId,jdbcType=INTEGER},
133
+      bill_invoice_id = #{billInvoiceId,jdbcType=INTEGER},
134
+      ta_user_id = #{taUserId,jdbcType=INTEGER},
135
+      pay_price = #{payPrice,jdbcType=INTEGER},
136
+      pay_name = #{payName,jdbcType=VARCHAR},
137
+      pay_remark = #{payRemark,jdbcType=VARCHAR},
138
+      pay_type = #{payType,jdbcType=CHAR},
139
+      create_time = #{createTime,jdbcType=TIMESTAMP}
140
+    where id = #{id,jdbcType=INTEGER}
141
+  </update>
142
+</mapper>