瀏覽代碼

完成业务

weiximei 6 年之前
父節點
當前提交
55c6d77620
共有 23 個檔案被更改,包括 197 行新增42 行删除
  1. 7
    4
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/UserController.java
  2. 2
    3
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/VistorController.java
  3. 1
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaVisitorLicenseMapper.java
  4. 11
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaUser.java
  5. 13
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpBillInvoice.java
  6. 4
    2
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/ITaUserService.java
  7. 8
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/TaVistorServiceI.java
  8. 16
    4
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserServiceImpl.java
  9. 4
    2
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaVistorServiceImpl.java
  10. 2
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/WxPayServiceImpl.java
  11. 3
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/vo/TaUserVO.java
  12. 16
    4
      CODE/smart-community/app-api/src/main/resources/mapper/TaUserMapper.xml
  13. 16
    4
      CODE/smart-community/app-api/src/main/resources/mapper/TpBillInvoiceMapper.xml
  14. 2
    2
      CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/BillController.java
  15. 9
    1
      CODE/smart-community/property-api/src/main/java/com/community/huiju/model/BillInvoice.java
  16. 1
    1
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/IBillService.java
  17. 2
    1
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BillInvoiceServiceImpl.java
  18. 11
    5
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BillServiceImpl.java
  19. 二進制
      CODE/smart-community/property-api/src/main/resources/缴费单模板.xls
  20. 16
    0
      VUECODE/smart-property-manage/src/router/index.js
  21. 2
    2
      VUECODE/smart-property-manage/src/views/bill/add/index.vue
  22. 22
    4
      VUECODE/smart-property-manage/src/views/bill/info/index.vue
  23. 29
    0
      VUECODE/smart-property-manage/src/views/systemResources/app/index.vue

+ 7
- 4
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/UserController.java 查看文件

@@ -137,7 +137,8 @@ public class UserController extends BaseController {
137 137
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "userName(租客或者家属 姓名) " +
138 138
                     "phone(租客或者家属 手机号) " +
139 139
                     "gender(租客或者家属 性别 1男 2女) " +
140
-                    "type(2租客 3家属)"),
140
+                    "type(2租客 3家属)" +
141
+                    "idCard(身份证号)"),
141 142
             @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 app"),
142 143
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
143 144
     })
@@ -151,7 +152,7 @@ public class UserController extends BaseController {
151 152
         response = iTaUserService.addTenantsOrDependents(jsonObject.getString("userName"),
152 153
                 jsonObject.getString("phone"),jsonObject.getString("gender"),
153 154
                 userElement.getId(),
154
-                jsonObject.getInteger("type"));
155
+                jsonObject.getInteger("type"), jsonObject.getString("idCard"));
155 156
 
156 157
         return response;
157 158
 
@@ -163,7 +164,8 @@ public class UserController extends BaseController {
163 164
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "id(租客或者家属 ID) userName(租客或者家属 姓名) " +
164 165
                     "phone(租客或者家属 手机号) " +
165 166
                     "gender(租客或者家属 性别 1男 2女) " +
166
-                    "type(2租客 3家属)"),
167
+                    "type(2租客 3家属)" +
168
+                    "idCard(身份证号)"),
167 169
             @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 app"),
168 170
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
169 171
     })
@@ -178,7 +180,8 @@ public class UserController extends BaseController {
178 180
                 jsonObject.getString("phone"),jsonObject.getString("gender"),
179 181
                 userElement.getId(),
180 182
                 jsonObject.getInteger("type"),
181
-                jsonObject.getInteger("id"));
183
+                jsonObject.getInteger("id"),
184
+                jsonObject.getString("idCard"));
182 185
 
183 186
         return response;
184 187
 

+ 2
- 3
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/VistorController.java 查看文件

@@ -38,7 +38,7 @@ public class VistorController extends BaseController {
38 38
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
39 39
             @ApiImplicitParam(paramType = "path", dataType = "integer", name = "communityId", value = "小区Id"),
40 40
             @ApiImplicitParam(paramType = "body", dataType = "String", name = "parameter", value = "carLicense:车牌(数组),drivingStatus:0 是不开车 1是开车," +
41
-                    "visitorName:访问人姓名,visitorNum:访问人数,visitorTel:访问人电话,visitorStartTime:访问人开始时间,visitorEndTime:访问人结束时间")})
41
+                    "visitorName:访问人姓名,visitorNum:访问人数,visitorTel:访问人电话,visitorStartTime:访问人开始时间,visitorEndTime:访问人结束时间,payEntity:支付方式(owmer是由我承担  visitor是访客承担)")})
42 42
     public ResponseBean findVistorDetail(@PathVariable("communityId")Integer communityId, @RequestBody String parameter, HttpSession session) {
43 43
         ResponseBean responseBean = new ResponseBean();
44 44
 
@@ -68,8 +68,7 @@ public class VistorController extends BaseController {
68 68
 
69 69
         UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
70 70
         Integer userId = userElement.getId();
71
-        List<TaVisitor> taVisitors = vistorServiceI.invateHis(communityId, userId);
72
-        responseBean.addSuccess(taVisitors);
71
+        responseBean = vistorServiceI.invateHis(communityId, userId);
73 72
         return  responseBean;
74 73
     }
75 74
 }

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaVisitorLicenseMapper.java 查看文件

@@ -19,7 +19,7 @@ public interface TaVisitorLicenseMapper {
19 19
 
20 20
     int updateByPrimaryKey(TaVisitorLicense record);
21 21
 
22
-    void insertTaVistorLicense(TaVisitorLicense taVisitorLicense);
22
+    // void insertTaVistorLicense(TaVisitorLicense taVisitorLicense);
23 23
 
24 24
     List<String> findTaVistorLicenseById(Integer id);
25 25
 }

+ 11
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaUser.java 查看文件

@@ -39,6 +39,9 @@ public class TaUser {
39 39
 
40 40
     private Date updateDate;
41 41
 
42
+    // 身份证
43
+    private String idCard;
44
+
42 45
     // 海康UserId
43 46
     private Integer hkUserId;
44 47
 
@@ -248,4 +251,12 @@ public class TaUser {
248 251
     public void setHkPersonNo(Long hkPersonNo) {
249 252
         this.hkPersonNo = hkPersonNo;
250 253
     }
254
+
255
+    public String getIdCard() {
256
+        return idCard;
257
+    }
258
+
259
+    public void setIdCard(String idCard) {
260
+        this.idCard = idCard;
261
+    }
251 262
 }

+ 13
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpBillInvoice.java 查看文件

@@ -37,6 +37,11 @@ public class TpBillInvoice {
37 37
     
38 38
     private String billName;
39 39
 
40
+    /**
41
+     * 缴费方式  0:微信支付  1:线下缴费
42
+     */
43
+    private String payType;
44
+
40 45
     public Integer getId() {
41 46
         return id;
42 47
     }
@@ -172,4 +177,12 @@ public class TpBillInvoice {
172 177
     public void setBillName(String billName) {
173 178
         this.billName = billName;
174 179
     }
180
+
181
+    public String getPayType() {
182
+        return payType;
183
+    }
184
+
185
+    public void setPayType(String payType) {
186
+        this.payType = payType;
187
+    }
175 188
 }

+ 4
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/ITaUserService.java 查看文件

@@ -72,9 +72,10 @@ public interface ITaUserService {
72 72
      * @param gender
73 73
      * @param currentUserId 当前用户(业主)
74 74
      * @param type 2租客 3家属
75
+     * @param idCard 身份证号
75 76
      * @return
76 77
      */
77
-    ResponseBean addTenantsOrDependents(String userName, String phone, String gender,Integer currentUserId,Integer type);
78
+    ResponseBean addTenantsOrDependents(String userName, String phone, String gender,Integer currentUserId,Integer type, String idCard);
78 79
 
79 80
     /**
80 81
      * 修改租客或者家属
@@ -84,9 +85,10 @@ public interface ITaUserService {
84 85
      * @param currentUserId 当前用户(业主)
85 86
      * @param type 2租客 3家属
86 87
      * @param userId 用户ID
88
+     * @param idCard 身份证号
87 89
      * @return
88 90
      */
89
-    ResponseBean updateTenantsOrDependents(String userName, String phone, String gender,Integer currentUserId,Integer type,Integer userId);
91
+    ResponseBean updateTenantsOrDependents(String userName, String phone, String gender,Integer currentUserId,Integer type,Integer userId, String idCard);
90 92
 
91 93
     /**
92 94
      * 修改用户头像

+ 8
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/TaVistorServiceI.java 查看文件

@@ -20,5 +20,12 @@ public interface TaVistorServiceI {
20 20
      * @return
21 21
      */
22 22
     ResponseBean insertTaVistor(TaVisitor taVisitor, Integer communityId, Integer userId);
23
-    List<TaVisitor> invateHis(Integer communityId, Integer userId);
23
+
24
+    /**
25
+     * 访客邀请记录
26
+     * @param communityId
27
+     * @param userId
28
+     * @return
29
+     */
30
+    ResponseBean invateHis(Integer communityId, Integer userId);
24 31
 }

+ 16
- 4
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserServiceImpl.java 查看文件

@@ -488,7 +488,7 @@ public class TaUserServiceImpl implements ITaUserService {
488 488
 
489 489
     @Transactional(rollbackFor = Exception.class)
490 490
     @Override
491
-    public ResponseBean addTenantsOrDependents(String userName, String phone, String gender, Integer currentUserId, Integer type) {
491
+    public ResponseBean addTenantsOrDependents(String userName, String phone, String gender, Integer currentUserId, Integer type, String idCard) {
492 492
         ResponseBean response = new ResponseBean();
493 493
 
494 494
         TaUser taUser = taUserMapper.selectByPrimaryKey(currentUserId);
@@ -513,6 +513,11 @@ public class TaUserServiceImpl implements ITaUserService {
513 513
             return response;
514 514
         }
515 515
 
516
+        if (StringUtils.isEmpty(idCard)) {
517
+            response.addError("对不起! 身份证不允许为空!");
518
+            return response;
519
+        }
520
+
516 521
         Map<String,Object> parUserLogin = Maps.newHashMap();
517 522
         parUserLogin.put("loginName",phone);
518 523
         TaUser parUser = taUserMapper.selectByLoginName(parUserLogin);
@@ -536,6 +541,7 @@ public class TaUserServiceImpl implements ITaUserService {
536 541
         user.setAcceptAgreementStatus("1");
537 542
         user.setFaceStatus("0");
538 543
         user.setRemark("这是业主添加的!");
544
+        user.setIdCard(idCard);
539 545
         if (StringUtils.isEmpty(userName)) {
540 546
             user.setUserName(user.getLoginName());
541 547
         }
@@ -575,7 +581,7 @@ public class TaUserServiceImpl implements ITaUserService {
575 581
 
576 582
     @Override
577 583
     @Transactional(rollbackFor = Exception.class)
578
-    public ResponseBean updateTenantsOrDependents(String userName, String phone, String gender, Integer currentUserId, Integer type,Integer userId) {
584
+    public ResponseBean updateTenantsOrDependents(String userName, String phone, String gender, Integer currentUserId, Integer type,Integer userId, String idCard) {
579 585
         ResponseBean response = new ResponseBean();
580 586
 
581 587
         TaUser taUser = taUserMapper.selectByPrimaryKey(currentUserId);
@@ -590,13 +596,18 @@ public class TaUserServiceImpl implements ITaUserService {
590 596
         // 当前用户的身份
591 597
         TaSysRole role = taSysRoleMapper.findRoleByUserId(taUser.getId());
592 598
         if (!"OWNER".equals(role.getRoleName())) {
593
-            response.addError("对不起,您不是业主,不能添加家属或租客!");
599
+            response.addError("对不起,您不是业主,不能修改家属或租客!");
594 600
             return response;
595 601
         }
596 602
 
597 603
         int tempType = type;
598 604
         if (tempType != 2 && type != 3) {
599
-            response.addError("对不起! 您只能添加家属或者租客!");
605
+            response.addError("对不起! 您只能修改家属或者租客!");
606
+            return response;
607
+        }
608
+
609
+        if (StringUtils.isEmpty(idCard)) {
610
+            response.addError("对不起! 身份证不允许为空!");
600 611
             return response;
601 612
         }
602 613
 
@@ -607,6 +618,7 @@ public class TaUserServiceImpl implements ITaUserService {
607 618
         user.setUpdateDate(new Date());
608 619
         user.setUpdateUser(currentUserId);
609 620
         user.setParentId(currentUserId);
621
+        user.setIdCard(idCard);
610 622
         if (StringUtils.isEmpty(userName)) {
611 623
             user.setUserName(user.getLoginName());
612 624
         }

+ 4
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaVistorServiceImpl.java 查看文件

@@ -82,7 +82,8 @@ public class TaVistorServiceImpl implements TaVistorServiceI {
82 82
     }
83 83
 
84 84
     @Override
85
-    public List<TaVisitor> invateHis(Integer communityId, Integer userId) {
85
+    public ResponseBean invateHis(Integer communityId, Integer userId) {
86
+        ResponseBean responseBean = new ResponseBean();
86 87
         List<TaVisitor> taVisitors = taVisitorMapper.findAllVistors(communityId, userId);
87 88
 
88 89
         for (TaVisitor taVisitor : taVisitors){
@@ -91,7 +92,8 @@ public class TaVistorServiceImpl implements TaVistorServiceI {
91 92
                 taVisitor.setCarLicense(taVisitorLicenses);
92 93
             }
93 94
         }
94
-        return taVisitors;
95
+        responseBean.addSuccess(taVisitors);
96
+        return responseBean;
95 97
     }
96 98
 
97 99
     /**

+ 2
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/WxPayServiceImpl.java 查看文件

@@ -129,7 +129,8 @@ public class WxPayServiceImpl implements WxPayServiceI {
129 129
 		tpBillInvoice.setPayName(taUser.getUserName());
130 130
 		tpBillInvoice.setPayDate(new Date());
131 131
 		tpBillInvoice.setUpdateDate(new Date());
132
-		// tpBillInvoice.setUpdateUser(taUser.getId());
132
+		// 缴费方式  0:微信支付  1:线下缴费
133
+		tpBillInvoice.setPayType("0");
133 134
 		tpBillInvoiceMapper.updateByPrimaryKeySelective(tpBillInvoice);
134 135
 
135 136
 		//插入流水账单表

+ 3
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/vo/TaUserVO.java 查看文件

@@ -67,4 +67,7 @@ public class TaUserVO {
67 67
     /**业主ID**/
68 68
     private Integer proprietorID;
69 69
 
70
+    /** 身份证 **/
71
+    private String idCard;
72
+
70 73
 }

+ 16
- 4
CODE/smart-community/app-api/src/main/resources/mapper/TaUserMapper.xml 查看文件

@@ -24,11 +24,12 @@
24 24
     <result column="hk_user_id" property="hkUserId" jdbcType="INTEGER" />
25 25
     <result column="hk_card_no" property="hkCardNo" jdbcType="VARCHAR" />
26 26
     <result column="face_status" property="faceStatus" jdbcType="CHAR" />
27
+    <result column="id_card" property="idCard" jdbcType="INTEGER"/>
27 28
   </resultMap>
28 29
   <sql id="Base_Column_List" >
29 30
     id, community_id, building_owner_info_id, head_portrait, user_name, login_name, login_password,
30 31
     email, gender, status, remark, parent_id, accept_agreement_status, verify_status,
31
-    create_user, create_date, update_user, update_date, hk_person_no, hk_user_id, hk_card_no, face_status
32
+    create_user, create_date, update_user, update_date, hk_person_no, hk_user_id, hk_card_no, face_status, id_card
32 33
   </sql>
33 34
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
34 35
     select
@@ -47,7 +48,7 @@
47 48
       status, remark, parent_id,
48 49
       accept_agreement_status, verify_status, create_user,
49 50
       create_date, update_user, update_date, hk_person_no,
50
-      hk_user_id, hk_card_no, face_status
51
+      hk_user_id, hk_card_no, face_status, id_card
51 52
       )
52 53
     values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{buildingOwnerInfoId,jdbcType=INTEGER},
53 54
       #{headPortrait,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, #{loginName,jdbcType=VARCHAR},
@@ -55,7 +56,8 @@
55 56
       #{status,jdbcType=CHAR}, #{remark,jdbcType=VARCHAR}, #{parentId,jdbcType=INTEGER},
56 57
       #{acceptAgreementStatus,jdbcType=CHAR}, #{verifyStatus,jdbcType=CHAR}, #{createUser,jdbcType=INTEGER},
57 58
       #{createDate,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP},
58
-      #{hkPersonNo,jdbcType=BIGINT}, #{hkUserId,jdbcType=INTEGER}, #{hkCardNo,jdbcType=VARCHAR}, #{faceStatus,jdbcType=CHAR}
59
+      #{hkPersonNo,jdbcType=BIGINT}, #{hkUserId,jdbcType=INTEGER}, #{hkCardNo,jdbcType=VARCHAR}, #{faceStatus,jdbcType=CHAR},
60
+      #{idCard,jdbcType=VARCHAR}
59 61
       )
60 62
   </insert>
61 63
   <insert id="insertSelective" parameterType="com.community.huiju.model.TaUser" useGeneratedKeys="true" keyProperty="id" >
@@ -127,6 +129,9 @@
127 129
       <if test="faceStatus != null" >
128 130
         face_status,
129 131
       </if>
132
+      <if test="idCard != null">
133
+        id_card,
134
+      </if>
130 135
     </trim>
131 136
     <trim prefix="values (" suffix=")" suffixOverrides="," >
132 137
       <if test="id != null" >
@@ -195,6 +200,9 @@
195 200
       <if test="faceStatus != null" >
196 201
         #{faceStatus,jdbcType=CHAR},
197 202
       </if>
203
+      <if test="idCard != null">
204
+        #{idCard,jdbcType=VARCHAR},
205
+      </if>
198 206
     </trim>
199 207
   </insert>
200 208
   <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TaUser" >
@@ -263,6 +271,9 @@
263 271
       <if test="faceStatus != null" >
264 272
         face_status = #{faceStatus,jdbcType=CHAR},
265 273
       </if>
274
+      <if test="idCard != null">
275
+        id_card = #{idCard,jdbcType=VARCHAR},
276
+      </if>
266 277
     </set>
267 278
     where id = #{id,jdbcType=INTEGER}
268 279
   </update>
@@ -288,7 +299,8 @@
288 299
       hk_person_no = #{hkPersonNo,jdbcType=BIGINT},
289 300
       hk_user_id = #{hkUserId,jdbcType=INTEGER},
290 301
       hk_card_no = #{hkCardNo,jdbcType=VARCHAR},
291
-      face_status = #{faceStatus,jdbcType=CHAR}
302
+      face_status = #{faceStatus,jdbcType=CHAR},
303
+      id_card = #{idCard,jdbcType=VARCHAR}
292 304
     where id = #{id,jdbcType=INTEGER}
293 305
   </update>
294 306
 

+ 16
- 4
CODE/smart-community/app-api/src/main/resources/mapper/TpBillInvoiceMapper.xml 查看文件

@@ -17,11 +17,12 @@
17 17
     <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
18 18
     <result column="update_user" property="updateUser" jdbcType="INTEGER" />
19 19
     <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
20
+    <result column="pay_type" property="payType" jdbcType="CHAR" />
20 21
   </resultMap>
21 22
   <sql id="Base_Column_List" >
22 23
     id, community_id, bill_id, building_owner_info_id, ta_user_id, bill_invoice_explain, 
23 24
     pay_price, bill_statement_id, bill_status, pay_name, pay_date, create_user, create_date, 
24
-    update_user, update_date
25
+    update_user, update_date, pay_type
25 26
   </sql>
26 27
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
27 28
     select 
@@ -38,13 +39,14 @@
38 39
       building_owner_info_id, ta_user_id, bill_invoice_explain, 
39 40
       pay_price, bill_statement_id, bill_status, 
40 41
       pay_name, pay_date, create_user, 
41
-      create_date, update_user, update_date
42
+      create_date, update_user, update_date, pay_type
42 43
       )
43 44
     values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{billId,jdbcType=INTEGER}, 
44 45
       #{buildingOwnerInfoId,jdbcType=INTEGER}, #{taUserId,jdbcType=INTEGER}, #{billInvoiceExplain,jdbcType=VARCHAR}, 
45 46
       #{payPrice,jdbcType=INTEGER}, #{billStatementId,jdbcType=INTEGER}, #{billStatus,jdbcType=CHAR}, 
46 47
       #{payName,jdbcType=VARCHAR}, #{payDate,jdbcType=TIMESTAMP}, #{createUser,jdbcType=INTEGER}, 
47
-      #{createDate,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP}
48
+      #{createDate,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP},
49
+      #{payType,jdbcType=CHAR}
48 50
       )
49 51
   </insert>
50 52
   <insert id="insertSelective" parameterType="com.community.huiju.model.TpBillInvoice" >
@@ -95,6 +97,9 @@
95 97
       <if test="updateDate != null" >
96 98
         update_date,
97 99
       </if>
100
+      <if test="payType != null">
101
+          pay_type,
102
+      </if>
98 103
     </trim>
99 104
     <trim prefix="values (" suffix=")" suffixOverrides="," >
100 105
       <if test="id != null" >
@@ -142,6 +147,9 @@
142 147
       <if test="updateDate != null" >
143 148
         #{updateDate,jdbcType=TIMESTAMP},
144 149
       </if>
150
+      <if test="payType != null">
151
+        #{payType,jdbcType=CHAR},
152
+      </if>
145 153
     </trim>
146 154
   </insert>
147 155
   <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TpBillInvoice" >
@@ -189,6 +197,9 @@
189 197
       <if test="updateDate != null" >
190 198
         update_date = #{updateDate,jdbcType=TIMESTAMP},
191 199
       </if>
200
+      <if test="payType != null">
201
+        pay_type = #{payType,jdbcType=CHAR},
202
+      </if>
192 203
     </set>
193 204
     where id = #{id,jdbcType=INTEGER}
194 205
   </update>
@@ -207,7 +218,8 @@
207 218
       create_user = #{createUser,jdbcType=INTEGER},
208 219
       create_date = #{createDate,jdbcType=TIMESTAMP},
209 220
       update_user = #{updateUser,jdbcType=INTEGER},
210
-      update_date = #{updateDate,jdbcType=TIMESTAMP}
221
+      update_date = #{updateDate,jdbcType=TIMESTAMP},
222
+      pay_type = #{payType,jdbcType=CHAR}
211 223
     where id = #{id,jdbcType=INTEGER}
212 224
   </update>
213 225
 

+ 2
- 2
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/BillController.java 查看文件

@@ -80,9 +80,9 @@ public class BillController extends BaseController {
80 80
 
81 81
     @ApiOperation(value = "上传缴费项接口, 预览", notes = "上传缴费项接口, 预览")
82 82
     @PostMapping(value = "/bill/uploadExcel/get", consumes = "multipart/*", headers = "content-type=multipart/form-data")
83
-    public ResponseBean getUploadExcel(@RequestParam("file") MultipartFile file, @RequestParam("billExplain") String billExplain) {
83
+    public ResponseBean getUploadExcel(@RequestParam("file") MultipartFile file) {
84 84
         ResponseBean responseBean = new ResponseBean();
85
-        responseBean = iBillService.getExcelData(file, billExplain);
85
+        responseBean = iBillService.getExcelData(file);
86 86
         return responseBean;
87 87
     }
88 88
 

+ 9
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/BillInvoice.java 查看文件

@@ -67,7 +67,10 @@ public class BillInvoice implements Serializable {
67 67
     private Integer billStatementId;
68 68
 
69 69
     /**
70
-     * 缴费状态  0:未缴费  1:已线上缴费 2:已线下缴费
70
+     * 遗弃: 缴费状态  0:未缴费  1:已线上缴费 2:已线下缴费
71
+     *
72
+     * 缴费状态  0:未缴费  1: 已缴费 3: 正在支付中
73
+     *
71 74
      */
72 75
     private String billStatus;
73 76
 
@@ -111,6 +114,11 @@ public class BillInvoice implements Serializable {
111 114
      */
112 115
     private String outTradeNo;
113 116
 
117
+    /**
118
+     * 缴费方式  0:微信支付  1:线下缴费
119
+     */
120
+    private String payType;
121
+
114 122
     /**
115 123
      * 业主姓名
116 124
      */

+ 1
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/IBillService.java 查看文件

@@ -49,7 +49,7 @@ public interface IBillService extends IService<Bill> {
49 49
 	 * @param file
50 50
 	 * @return
51 51
 	 */
52
-    ResponseBean getExcelData(MultipartFile file, String billExplain);
52
+    ResponseBean getExcelData(MultipartFile file);
53 53
 
54 54
 	/**
55 55
 	 * 上传excel, 解析 入库

+ 2
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BillInvoiceServiceImpl.java 查看文件

@@ -160,7 +160,8 @@ public class BillInvoiceServiceImpl extends ServiceImpl<BillInvoiceMapper, BillI
160 160
                 throw new WisdomException("费用已缴,无法更改");
161 161
             }
162 162
 
163
-            billInvoice.setBillStatus("2");
163
+            billInvoice.setBillStatus("1");
164
+            billInvoice.setPayType("1");
164 165
             int rows = billInvoiceMapper.updateById(billInvoice);
165 166
             if (rows > 0) {
166 167
                 TpBuildingOwnerInfo buildingOwnerInfo = tpBuildingOwnerInfoMapper.selectById(billInvoice.getBuildingOwnerInfoId());

+ 11
- 5
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BillServiceImpl.java 查看文件

@@ -143,7 +143,7 @@ public class BillServiceImpl extends ServiceImpl<BillMapper, Bill> implements IB
143 143
 
144 144
     @Override
145 145
     @Transactional(rollbackFor = Exception.class)
146
-    public ResponseBean getExcelData(MultipartFile file, String billExplain) {
146
+    public ResponseBean getExcelData(MultipartFile file) {
147 147
         ResponseBean responseBean = new ResponseBean();
148 148
         if (file == null) {
149 149
             responseBean.addError("对象不能为空");
@@ -152,9 +152,6 @@ public class BillServiceImpl extends ServiceImpl<BillMapper, Bill> implements IB
152 152
 
153 153
         responseBean = getExcelData(file, responseBean);
154 154
         List<TempBill> tempBills = (List<TempBill>) responseBean.getData();
155
-        tempBills.forEach(e -> {
156
-            e.setBillExplain(billExplain);
157
-        });
158 155
 
159 156
         Map<String, Object> map = Maps.newHashMap();
160 157
         map.put("list", tempBills);
@@ -294,7 +291,7 @@ public class BillServiceImpl extends ServiceImpl<BillMapper, Bill> implements IB
294 291
                 if (null != taUser) {
295 292
                     billInvoice.setTaUserId(taUser.getId());
296 293
                 }
297
-                billInvoice.setBillInvoiceExplain(bill.getBillExplain());
294
+                billInvoice.setBillInvoiceExplain(e.getBillExplain());
298 295
                 billInvoice.setPayPrice(e.getPayPrice());
299 296
                 billInvoice.setBillStatus("0");
300 297
                 billInvoice.setCreateUser(userElement.getId());
@@ -374,7 +371,15 @@ public class BillServiceImpl extends ServiceImpl<BillMapper, Bill> implements IB
374 371
                 throw new WisdomException("第" + i + "行 业主姓名 不能为空");
375 372
             }
376 373
             String ownerName = cell.getStringCellValue().trim();
374
+
375
+            // 收费说明可以为空
377 376
             cell = getCell(row.getCell(6));
377
+            String billExplain = null;
378
+            if (null != cell) {
379
+                billExplain = cell.getStringCellValue().trim();
380
+            }
381
+
382
+            cell = getCell(row.getCell(7));
378 383
             if (null == cell) {
379 384
                 throw new WisdomException("第" + i + "行 金额 不能为空");
380 385
             }
@@ -388,6 +393,7 @@ public class BillServiceImpl extends ServiceImpl<BillMapper, Bill> implements IB
388 393
             temp.setUnit(unit);
389 394
             temp.setRoomNo(roomNo);
390 395
             temp.setOwnerName(ownerName);
396
+            temp.setBillExplain(billExplain);
391 397
 
392 398
 
393 399
             if (StringUtils.isNotBlank(money)) {

二進制
CODE/smart-community/property-api/src/main/resources/缴费单模板.xls 查看文件


+ 16
- 0
VUECODE/smart-property-manage/src/router/index.js 查看文件

@@ -285,6 +285,22 @@ export const constantRouterMap = [
285 285
         meta: { title: '工单详情', icon: 'table' }
286 286
       }
287 287
     ]
288
+  },
289
+  {
290
+    path: '/systemResources',
291
+    component: Layout,
292
+    redirect: '/systemResources/index',
293
+    name: 'systemResources',
294
+    alwaysShow: true,
295
+    meta: { title: '系统资源', icon: 'zip' },
296
+    children: [
297
+      {
298
+        path: '/systemResources/app/index',
299
+        component: () => import('@/views/systemResources/app/index'),
300
+        name: 'app-index',
301
+        meta: { title: 'APP配置', icon: 'table' }
302
+      }
303
+    ]
288 304
   }
289 305
 ]
290 306
 

+ 2
- 2
VUECODE/smart-property-manage/src/views/bill/add/index.vue 查看文件

@@ -22,9 +22,9 @@
22 22
             :on-exceed="handleExceed"
23 23
             :before-upload="beforeUpload"
24 24
             :data="ruleForm"
25
+            :action="uploadUrl"
25 26
             name="file"
26 27
             class="upload-demo"
27
-            :action="uploadUrl"
28 28
             multiple>
29 29
             <el-button slot="trigger" size="large" type="primary">选取文件并预览</el-button>
30 30
           </el-upload>
@@ -92,7 +92,7 @@ export default {
92 92
   },
93 93
   data() {
94 94
     return {
95
-      uploadUrl: process.env.BASE_API + "/bill/uploadExcel/get",
95
+      uploadUrl: process.env.BASE_API + '/bill/uploadExcel/get',
96 96
       ruleForm: {
97 97
         billName: '',
98 98
         billExplain: '',

+ 22
- 4
VUECODE/smart-property-manage/src/views/bill/info/index.vue 查看文件

@@ -128,6 +128,14 @@
128 128
           </span>
129 129
         </template>
130 130
       </el-table-column>
131
+      <el-table-column
132
+        prop="billStatus"
133
+        label="缴费途径"
134
+        align="center">
135
+        <template slot-scope="scope">
136
+          {{ showPayType(scope.row.payType) }}
137
+        </template>
138
+      </el-table-column>
131 139
       <el-table-column
132 140
         prop="payName"
133 141
         label="缴费人"
@@ -371,10 +379,7 @@ export default {
371 379
           str = '未缴费'
372 380
           break
373 381
         case '1':
374
-          str = '已线上缴费'
375
-          break
376
-        case '2':
377
-          str = '已线下缴费'
382
+          str = '已缴费'
378 383
           break
379 384
         case '3':
380 385
           str = '正在支付中'
@@ -466,6 +471,19 @@ export default {
466 471
       }).catch(() => {
467 472
         console.log('error ExportBillInvoiceExcel')
468 473
       })
474
+    },
475
+    showPayType(payType) { // 缴费途径
476
+      let str = ''
477
+      switch (payType) {
478
+        case '0':
479
+          str = '微信支付'
480
+          break
481
+        case '1':
482
+          str = '线下缴费'
483
+          break
484
+      }
485
+
486
+      return str
469 487
     }
470 488
   }
471 489
 }

+ 29
- 0
VUECODE/smart-property-manage/src/views/systemResources/app/index.vue 查看文件

@@ -0,0 +1,29 @@
1
+<template>
2
+  <div id="root">
3
+    <el-tabs v-model="activeName2" type="card" @tab-click="handleClick">
4
+      <el-tab-pane label="banner轮播" name="banner">banner轮播</el-tab-pane>
5
+      <el-tab-pane label="首页功能按钮" name="homeIndex">首页功能按钮</el-tab-pane>
6
+      <el-tab-pane label="物业号码" name="property">物业号码</el-tab-pane>
7
+    </el-tabs>
8
+  </div>
9
+</template>
10
+
11
+<script>
12
+export default {
13
+  name: 'Index',
14
+  data() {
15
+    return {
16
+      activeName2: 'banner' // 默认banner选项卡
17
+    }
18
+  },
19
+  methods: {
20
+    handleClick(tab, event) {
21
+      console.log(tab, event)
22
+    }
23
+  }
24
+}
25
+</script>
26
+
27
+<style scoped>
28
+
29
+</style>