dingxin 6 år sedan
förälder
incheckning
b19c155fb6
46 ändrade filer med 2486 tillägg och 1279 borttagningar
  1. 8
    5
      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. 20
    0
      CODE/smart-community/operate-api/src/main/java/com/community/huiju/dao/TaSysMenuMapper.java
  15. 72
    0
      CODE/smart-community/operate-api/src/main/java/com/community/huiju/model/TaSysMenu.java
  16. 30
    0
      CODE/smart-community/operate-api/src/main/java/com/community/huiju/model/TaSysMenuImg.java
  17. 38
    2
      CODE/smart-community/operate-api/src/main/java/com/community/huiju/service/impl/CommunityServiceImpl.java
  18. 48
    0
      CODE/smart-community/operate-api/src/main/resources/mapper/TaSysMenuMapper.xml
  19. 142
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/AnnouncementTelController.java
  20. 2
    2
      CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/BillController.java
  21. 4
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/SysMenuController.java
  22. 96
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/TaSysMenuController.java
  23. 27
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/AnnouncementTelMapper.java
  24. 18
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TaSysMenuMapper.java
  25. 68
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/model/AnnouncementTel.java
  26. 9
    1
      CODE/smart-community/property-api/src/main/java/com/community/huiju/model/BillInvoice.java
  27. 72
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TaSysMenu.java
  28. 27
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/IAnnouncementTelService.java
  29. 1
    1
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/IBillService.java
  30. 16
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/ITaSysMenuService.java
  31. 52
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/AnnouncementTelServiceImpl.java
  32. 2
    1
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BillInvoiceServiceImpl.java
  33. 11
    5
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BillServiceImpl.java
  34. 20
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TaSysMenuServiceImpl.java
  35. 29
    0
      CODE/smart-community/property-api/src/main/resources/mapper/AnnouncementTelMapper.xml
  36. 5
    0
      CODE/smart-community/property-api/src/main/resources/mapper/TaSysMenuMapper.xml
  37. Binär
      CODE/smart-community/property-api/src/main/resources/缴费单模板.xls
  38. 30
    0
      VUECODE/smart-property-manage/src/router/index.js
  39. 2
    2
      VUECODE/smart-property-manage/src/views/bill/add/index.vue
  40. 22
    4
      VUECODE/smart-property-manage/src/views/bill/info/index.vue
  41. 95
    0
      VUECODE/smart-property-manage/src/views/systemResources/app/index.vue
  42. 47
    0
      VUECODE/smart-property-manage/src/views/systemResources/app/property/add/index.vue
  43. 47
    0
      VUECODE/smart-property-manage/src/views/systemResources/app/property/edi/index.vue
  44. 665
    617
      文档/MYSQL/smartCommunity.pdb
  45. 665
    617
      文档/MYSQL/smartCommunity.pdm
  46. Binär
      文档/计划/V1.5.0/智慧社区V1.5.0.mpp

+ 8
- 5
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/UserController.java Visa fil

@@ -92,7 +92,7 @@ public class UserController extends BaseController {
92 92
     }
93 93
     @ApiOperation(value = "修改用户名和性别", notes = "修改用户名和性别")
94 94
     @ApiImplicitParams({
95
-            @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "userName用户民和gender性别"),
95
+            @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "userName用户民和gender性别和idCard身份证"),
96 96
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
97 97
             @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 app"),
98 98
     })
@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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
 

+ 20
- 0
CODE/smart-community/operate-api/src/main/java/com/community/huiju/dao/TaSysMenuMapper.java Visa fil

@@ -0,0 +1,20 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.TaSysMenu;
4
+import com.community.huiju.model.TaSysMenuImg;
5
+import org.apache.ibatis.annotations.Mapper;
6
+import org.apache.ibatis.annotations.Param;
7
+
8
+import java.util.List;
9
+
10
+@Mapper
11
+public interface TaSysMenuMapper {
12
+	
13
+	List<TaSysMenu> getTaSysMenuListByCommunityId();
14
+	
15
+	int insertTaSysMenu(TaSysMenu taSysMenu);
16
+	
17
+	List<TaSysMenuImg> selectTaSysMenuImgById(@Param("taMenuId") Integer taMenuId);
18
+	
19
+	int batchInsertImg(List<TaSysMenuImg> imgList);
20
+}

+ 72
- 0
CODE/smart-community/operate-api/src/main/java/com/community/huiju/model/TaSysMenu.java Visa fil

@@ -0,0 +1,72 @@
1
+package com.community.huiju.model;
2
+
3
+import lombok.Data;
4
+import lombok.EqualsAndHashCode;
5
+import lombok.experimental.Accessors;
6
+
7
+import java.io.Serializable;
8
+
9
+/**
10
+ * <p>
11
+ * APP端菜单页面
12
+ * </p>
13
+ *
14
+ * @author jobob
15
+ * @since 2019-03-06
16
+ */
17
+@Data
18
+@EqualsAndHashCode(callSuper = false)
19
+@Accessors(chain = true)
20
+public class TaSysMenu implements Serializable {
21
+
22
+    private static final long serialVersionUID = 1L;
23
+
24
+    private Integer id;
25
+    
26
+    /**
27
+     * 小区id
28
+     */
29
+    private Integer communityId;
30
+
31
+    /**
32
+     * 菜单名称
33
+     */
34
+    private String menuName;
35
+
36
+    /**
37
+     * 菜单链接
38
+     */
39
+    private String menuUrl;
40
+
41
+    /**
42
+     * 父级菜单ID
43
+     */
44
+    private Integer parentId;
45
+
46
+    /**
47
+     * 排序
48
+     */
49
+    private Integer sort;
50
+
51
+    /**
52
+     * 菜单类型 0 H5  1原生开发
53
+     */
54
+    private String menuType;
55
+
56
+    /**
57
+     * 状态 0正常 1 是停用 9 删除
58
+     */
59
+    private String status;
60
+
61
+    /**
62
+     * face 代表人脸录入  monitor 代表是 公区监控
63
+     */
64
+    private String remark;
65
+
66
+    /**
67
+     * 说明
68
+     */
69
+    private String explain;
70
+
71
+
72
+}

+ 30
- 0
CODE/smart-community/operate-api/src/main/java/com/community/huiju/model/TaSysMenuImg.java Visa fil

@@ -0,0 +1,30 @@
1
+package com.community.huiju.model;
2
+
3
+import lombok.Data;
4
+import lombok.EqualsAndHashCode;
5
+import lombok.experimental.Accessors;
6
+
7
+import java.io.Serializable;
8
+
9
+/**
10
+ * <p>
11
+ * APP端菜单页面
12
+ * </p>
13
+ *
14
+ * @author jobob
15
+ * @since 2019-03-06
16
+ */
17
+@Data
18
+@EqualsAndHashCode(callSuper = false)
19
+@Accessors(chain = true)
20
+public class TaSysMenuImg implements Serializable {
21
+
22
+    private static final long serialVersionUID = 1L;
23
+
24
+    private Integer id;
25
+    
26
+    private Integer taMenuId;
27
+    
28
+    private String menuIconImg;
29
+    
30
+}

+ 38
- 2
CODE/smart-community/operate-api/src/main/java/com/community/huiju/service/impl/CommunityServiceImpl.java Visa fil

@@ -1,9 +1,12 @@
1 1
 package com.community.huiju.service.impl;
2 2
 
3 3
 import com.community.commom.constant.Constant;
4
+import com.community.huiju.dao.TaSysMenuMapper;
4 5
 import com.community.huiju.dao.ToCommunitiesMapper;
5 6
 import com.community.huiju.dao.TpUserCommunityMapper;
6 7
 import com.community.huiju.dao.TpUserMapper;
8
+import com.community.huiju.model.TaSysMenu;
9
+import com.community.huiju.model.TaSysMenuImg;
7 10
 import com.community.huiju.model.ToCommunities;
8 11
 import com.community.huiju.model.TpSysMenu;
9 12
 import com.community.huiju.model.TpSysRole;
@@ -28,7 +31,7 @@ import java.util.Map;
28 31
  * @date 2018-10-31
29 32
  */
30 33
 @Service("communityService")
31
-@Transactional
34
+@Transactional(rollbackFor = Exception.class)
32 35
 public class CommunityServiceImpl implements CommunityServiceI {
33 36
 	
34 37
 	@Autowired
@@ -40,6 +43,9 @@ public class CommunityServiceImpl implements CommunityServiceI {
40 43
 	@Autowired
41 44
 	private TpUserCommunityMapper tpUserCommunityMapper;
42 45
 	
46
+	@Autowired
47
+	private TaSysMenuMapper taSysMenuMapper;
48
+	
43 49
 	/**
44 50
 	 * 分页获取小区列表
45 51
 	 * @param toCommunities
@@ -79,9 +85,39 @@ public class CommunityServiceImpl implements CommunityServiceI {
79 85
 		tpUserMapper.insertSelective(tpUser);
80 86
 		//维护此用户的角色
81 87
 		addUserAndRole(tpUser.getId(), toCommunities.getId());
88
+		//维护这个小区的APP端的图标
89
+		addAppMenu(toCommunities.getId());
82 90
 		return size;
83 91
 	}
84
-
92
+	
93
+	/**
94
+	 * 维护这个小区的APP端的菜单和图标
95
+	 * @param communityId
96
+	 */
97
+	private void addAppMenu(Integer communityId) {
98
+		List<TaSysMenu>  list = taSysMenuMapper.getTaSysMenuListByCommunityId();
99
+		list.stream().forEach(e -> {
100
+			//插入APP菜单
101
+			TaSysMenu taSysMenu = new TaSysMenu();
102
+			taSysMenu.setCommunityId(communityId);
103
+			taSysMenu.setExplain(e.getExplain());
104
+			taSysMenu.setMenuName(e.getMenuName());
105
+			taSysMenu.setMenuType(e.getMenuType());
106
+			taSysMenu.setMenuUrl(e.getMenuUrl());
107
+			taSysMenu.setRemark(e.getRemark());
108
+			taSysMenu.setSort(e.getSort());
109
+			taSysMenu.setStatus("0");
110
+			taSysMenuMapper.insertTaSysMenu(taSysMenu);
111
+			//插入图标
112
+			List<TaSysMenuImg> imgList =  taSysMenuMapper.selectTaSysMenuImgById(e.getId());
113
+			imgList.stream().forEach(img -> {
114
+				img.setTaMenuId(taSysMenu.getId());
115
+			});
116
+			taSysMenuMapper.batchInsertImg(imgList);
117
+		});
118
+		
119
+	}
120
+	
85 121
 	/**
86 122
 	 * 维护住户端用户与社区关系表
87 123
 	 * @param tpUserId

+ 48
- 0
CODE/smart-community/operate-api/src/main/resources/mapper/TaSysMenuMapper.xml Visa fil

@@ -0,0 +1,48 @@
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.TaSysMenuMapper">
4
+
5
+    <select id="getTaSysMenuListByCommunityId" resultType="com.community.huiju.model.TaSysMenu">
6
+        SELECT
7
+            t.id,
8
+            t.community_id AS communityId,
9
+            t.menu_url AS menuUrl,
10
+            t.menu_name AS menuName,
11
+            t.parent_id AS paremtId,
12
+            t.sort,
13
+            t.menu_type AS menuType,
14
+            t.`status`,
15
+            t.remark,
16
+            t.`explain`
17
+        FROM
18
+            ta_sys_menu t
19
+        WHERE
20
+            community_id = '-1'
21
+    </select>
22
+
23
+    <insert id="insertTaSysMenu" parameterType="com.community.huiju.model.TaSysMenu" useGeneratedKeys="true" keyProperty="id">
24
+        insert into ta_sys_menu (community_id, menu_url, menu_name, sort, menu_type,  `status`, remark, `explain`)
25
+    values (#{communityId,jdbcType=INTEGER}, #{menuUrl,jdbcType=VARCHAR},
26
+      #{menuName,jdbcType=VARCHAR}, #{sort,jdbcType=VARCHAR}, #{menuType,jdbcType=VARCHAR},
27
+      #{status,jdbcType=CHAR}, #{remark,jdbcType=VARCHAR}, #{explain,jdbcType=VARCHAR})
28
+    </insert>
29
+
30
+    <select id="selectTaSysMenuImgById" resultType="com.community.huiju.model.TaSysMenuImg">
31
+        SELECT
32
+            id,
33
+            ta_menu_id as taMenuId,
34
+            menu_icon_img as menuIconImg
35
+        FROM
36
+            ta_sys_menu_img
37
+        WHERE
38
+            ta_menu_id = #{taMenuId,jdbcType=INTEGER}
39
+    </select>
40
+
41
+    <insert id="batchInsertImg" parameterType="list" >
42
+        insert into ta_sys_menu_img (ta_menu_id, menu_icon_img)
43
+        values
44
+        <foreach collection="list" item="item" index="index" separator="," >
45
+            (#{item.taMenuId,jdbcType=VARCHAR}, #{item.menuIconImg,jdbcType=VARCHAR})
46
+        </foreach>
47
+    </insert>
48
+</mapper>

+ 142
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/AnnouncementTelController.java Visa fil

@@ -0,0 +1,142 @@
1
+package com.community.huiju.controller;
2
+
3
+
4
+import com.community.commom.mode.ResponseBean;
5
+import com.community.commom.session.UserElement;
6
+import com.community.huiju.common.base.BaseController;
7
+import com.community.huiju.model.AnnouncementTel;
8
+import com.community.huiju.model.Bill;
9
+import com.community.huiju.service.IAnnouncementTelService;
10
+import io.swagger.annotations.Api;
11
+import io.swagger.annotations.ApiImplicitParam;
12
+import io.swagger.annotations.ApiImplicitParams;
13
+import io.swagger.annotations.ApiOperation;
14
+import org.springframework.beans.factory.annotation.Autowired;
15
+import org.springframework.cloud.context.config.annotation.RefreshScope;
16
+import org.springframework.web.bind.annotation.PathVariable;
17
+import org.springframework.web.bind.annotation.RequestBody;
18
+import org.springframework.web.bind.annotation.RequestMapping;
19
+import org.springframework.web.bind.annotation.RequestMethod;
20
+import org.springframework.web.bind.annotation.RequestParam;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+import javax.servlet.http.HttpServletRequest;
24
+import javax.servlet.http.HttpSession;
25
+import java.time.LocalDateTime;
26
+
27
+/**
28
+ * <p>
29
+ * 物业号码表 前端控制器
30
+ * </p>
31
+ *
32
+ * @author jobob
33
+ * @since 2019-03-05
34
+ */
35
+@RestController
36
+@RequestMapping("/")
37
+@RefreshScope
38
+@Api(value = "物业端号码 API", description = "物业端号码 API")
39
+public class AnnouncementTelController extends BaseController {
40
+	
41
+	@Autowired
42
+	private IAnnouncementTelService announcementTelService;
43
+	
44
+	@ApiOperation(value = "根据搜索条件获取物业端号码", notes = "根据搜索条件获取物业端号码")
45
+	@ApiImplicitParams({
46
+			@ApiImplicitParam(paramType = "query", dataType = "String", name = "name", value = "名称(模糊查询)"),
47
+			@ApiImplicitParam(paramType = "query", dataType = "String", name = "tel", value = "号码(模糊查询)"),
48
+			@ApiImplicitParam(paramType = "query", dataType = "String", name = "remark", value = "备注(模糊查询)"),
49
+			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
50
+			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度")
51
+	})
52
+	@RequestMapping(value = "/tels",method = RequestMethod.GET)
53
+	public ResponseBean getList(@RequestParam(value = "name", required = false) String name,
54
+	                            @RequestParam(value = "tel", required = false) String tel,
55
+	                            @RequestParam(value = "remark", required = false) String remark,
56
+	                            @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
57
+	                            @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize, HttpSession session){
58
+		ResponseBean responseBean = new ResponseBean();
59
+		UserElement userElement = getUserElement(session);
60
+		AnnouncementTel announcementTel = new AnnouncementTel();
61
+		announcementTel.setCommunityId(userElement.getCommunityId());
62
+		announcementTel.setName(name);
63
+		announcementTel.setTel(tel);
64
+		announcementTel.setRemark(remark);
65
+		responseBean = announcementTelService.getTelList(announcementTel,pageNum,pageSize);
66
+		return responseBean;
67
+	}
68
+	
69
+	@ApiOperation(value = "添加物业端号码", notes = "添加物业端号码")
70
+	@ApiImplicitParams({
71
+			@ApiImplicitParam(dataTypeClass = String.class, paramType = "AnnouncementTel", name = "announcementTel", value = "电话号码实体类"),
72
+			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
73
+	})
74
+	@RequestMapping(value = "/tel/add",method = RequestMethod.POST)
75
+	public ResponseBean addTel(@RequestBody AnnouncementTel announcementTel, HttpSession session){
76
+		ResponseBean responseBean = new ResponseBean();
77
+		UserElement userElement = getUserElement(session);
78
+		LocalDateTime time = LocalDateTime.now();
79
+		announcementTel.setCommunityId(userElement.getCommunityId());
80
+		announcementTel.setCreateUser(userElement.getId());
81
+		announcementTel.setUpdateUser(userElement.getId());
82
+		announcementTel.setCreateDate(time);
83
+		announcementTel.setUpdateDate(time);
84
+		boolean state = announcementTelService.save(announcementTel);
85
+		if (state){
86
+			responseBean.addSuccess("添加物业端号码成功");
87
+			return responseBean;
88
+		}
89
+		responseBean.addError("添加物业端号码失败");
90
+		return responseBean;
91
+	}
92
+	
93
+	@ApiOperation(value = "根据ID修改物业端号码", notes = "根据ID修改物业端号码")
94
+	@ApiImplicitParams({
95
+			@ApiImplicitParam(paramType = "body", dataType = "AnnouncementTel", name = "announcementTel", value = "电话号码实体类"),
96
+			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
97
+	})
98
+	@RequestMapping(value = "/tel/update", method = RequestMethod.PUT)
99
+	public ResponseBean updateTel(@RequestBody AnnouncementTel announcementTel, HttpSession session) {
100
+		ResponseBean responseBean = new ResponseBean();
101
+		UserElement userElement = getUserElement(session);
102
+		announcementTel.setUpdateUser(userElement.getId());
103
+		announcementTel.setUpdateDate(LocalDateTime.now());
104
+		boolean state = announcementTelService.updateById(announcementTel);
105
+		if (state){
106
+			responseBean.addSuccess("修改物业端号码成功");
107
+			return responseBean;
108
+		}
109
+		responseBean.addError("修改物业端号码失败");
110
+		return responseBean;
111
+	}
112
+	
113
+	@ApiOperation(value = "获取Id获取物业端号码详情", notes = "获取Id获取物业端号码详情")
114
+	@ApiImplicitParams({
115
+			@ApiImplicitParam(paramType = "Path", dataType = "integer", name = "id", value = "主键Id"),
116
+			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
117
+	})
118
+	@RequestMapping(value = "/tel/{id}",method = RequestMethod.GET)
119
+	public ResponseBean getNoticeById(@PathVariable(value ="id") Integer id, HttpServletRequest request){
120
+		ResponseBean responseBean = new ResponseBean();
121
+		AnnouncementTel announcementTel = announcementTelService.getById(id);
122
+		responseBean.addSuccess(announcementTel);
123
+		return responseBean;
124
+	}
125
+	
126
+	@ApiOperation(value = "根据ID删除物业端号码", notes = "根据ID删除物业端号码")
127
+	@ApiImplicitParams({
128
+			@ApiImplicitParam(paramType = "Path", dataType = "integer", name = "id", value = "主键Id"),
129
+			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
130
+	})
131
+	@RequestMapping(value = "/tel/delete/{id}", method = RequestMethod.DELETE)
132
+	public ResponseBean deleteNotice(@PathVariable(value ="id") Integer id,HttpSession session) {
133
+		ResponseBean responseBean = new ResponseBean();
134
+		boolean state = announcementTelService.removeById(id);
135
+		if (state){
136
+			responseBean.addSuccess("删除物业端号码成功");
137
+			return responseBean;
138
+		}
139
+		responseBean.addError("删除物业端号码失败");
140
+		return responseBean;
141
+	}
142
+}

+ 2
- 2
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/BillController.java Visa fil

@@ -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
 

+ 4
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/SysMenuController.java Visa fil

@@ -1,6 +1,8 @@
1 1
 package com.community.huiju.controller;
2 2
 
3 3
 
4
+import com.baomidou.mybatisplus.core.conditions.Wrapper;
5
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4 6
 import com.community.commom.mode.ResponseBean;
5 7
 import com.community.commom.session.UserElement;
6 8
 import com.community.huiju.common.base.BaseController;
@@ -12,6 +14,7 @@ import io.swagger.annotations.ApiImplicitParams;
12 14
 import io.swagger.annotations.ApiOperation;
13 15
 import org.springframework.beans.factory.annotation.Autowired;
14 16
 import org.springframework.cloud.context.config.annotation.RefreshScope;
17
+import org.springframework.web.bind.annotation.PathVariable;
15 18
 import org.springframework.web.bind.annotation.RequestBody;
16 19
 import org.springframework.web.bind.annotation.RequestMapping;
17 20
 import org.springframework.web.bind.annotation.RequestMethod;
@@ -19,6 +22,7 @@ import org.springframework.web.bind.annotation.RequestParam;
19 22
 import org.springframework.web.bind.annotation.RestController;
20 23
 
21 24
 import javax.servlet.http.HttpSession;
25
+import java.util.List;
22 26
 
23 27
 /**
24 28
  * <p>

+ 96
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/TaSysMenuController.java Visa fil

@@ -0,0 +1,96 @@
1
+package com.community.huiju.controller;
2
+
3
+
4
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
5
+import com.community.commom.mode.ResponseBean;
6
+import com.community.commom.session.UserElement;
7
+import com.community.huiju.common.base.BaseController;
8
+import com.community.huiju.model.TaSysMenu;
9
+import com.community.huiju.service.ITaSysMenuService;
10
+import io.swagger.annotations.ApiImplicitParam;
11
+import io.swagger.annotations.ApiImplicitParams;
12
+import io.swagger.annotations.ApiOperation;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestMapping;
16
+import org.springframework.web.bind.annotation.RequestMethod;
17
+import org.springframework.web.bind.annotation.RestController;
18
+
19
+import javax.servlet.http.HttpSession;
20
+import java.util.List;
21
+
22
+/**
23
+ * <p>
24
+ * APP端菜单页面 前端控制器
25
+ * </p>
26
+ *
27
+ * @author jobob
28
+ * @since 2019-03-06
29
+ */
30
+@RestController
31
+@RequestMapping("/")
32
+public class TaSysMenuController extends BaseController {
33
+	
34
+	@Autowired
35
+	private ITaSysMenuService taSysMenuService;
36
+	
37
+	@ApiOperation(value = "获取菜单列表", notes = "获取菜单列表")
38
+	@ApiImplicitParams({
39
+			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
40
+			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 web"),
41
+	})
42
+	@RequestMapping(value = "/ta/menu/list",method = RequestMethod.GET)
43
+	public ResponseBean getList(HttpSession session) {
44
+		ResponseBean responseBean = new ResponseBean();
45
+		UserElement userElement = getUserElement(session);
46
+		QueryWrapper<TaSysMenu> queryWrapper =  new QueryWrapper<>();
47
+		queryWrapper.eq("community_id",userElement.getCommunityId());
48
+		List<TaSysMenu> list = taSysMenuService.list(queryWrapper);
49
+		responseBean.addSuccess(list);
50
+		return responseBean;
51
+	}
52
+	
53
+	@ApiOperation(value = "启用菜单", notes = "启用菜单")
54
+	@ApiImplicitParams({
55
+			@ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "id", value = "编号id"),
56
+			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
57
+			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 web"),
58
+	})
59
+	@RequestMapping(value = "/ta/menu/enable/{id}",method = RequestMethod.POST)
60
+	public ResponseBean enableMenu(@PathVariable(value = "id") Integer id, HttpSession session) {
61
+		ResponseBean responseBean = new ResponseBean();
62
+		UserElement userElement = getUserElement(session);
63
+		TaSysMenu sysMenu = new TaSysMenu();
64
+		sysMenu.setId(id);
65
+		sysMenu.setStatus("0");
66
+		boolean stste = taSysMenuService.updateById(sysMenu);
67
+		if (stste){
68
+			responseBean.addSuccess("启用成功");
69
+			return responseBean;
70
+		}
71
+		responseBean.addSuccess("启用失败");
72
+		return responseBean;
73
+	}
74
+	
75
+	@ApiOperation(value = "停用菜单", notes = "停用菜单")
76
+	@ApiImplicitParams({
77
+			@ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "id", value = "编号id"),
78
+			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
79
+			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 web"),
80
+	})
81
+	@RequestMapping(value = "/ta/menu/disable/{id}",method = RequestMethod.POST)
82
+	public ResponseBean disableMenu(@PathVariable(value = "id") Integer id,HttpSession session) {
83
+		ResponseBean responseBean = new ResponseBean();
84
+		UserElement userElement = getUserElement(session);
85
+		TaSysMenu sysMenu = new TaSysMenu();
86
+		sysMenu.setId(id);
87
+		sysMenu.setStatus("1");
88
+		boolean stste = taSysMenuService.updateById(sysMenu);
89
+		if (stste){
90
+			responseBean.addSuccess("停用成功");
91
+			return responseBean;
92
+		}
93
+		responseBean.addSuccess("停用失败");
94
+		return responseBean;
95
+	}
96
+}

+ 27
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/AnnouncementTelMapper.java Visa fil

@@ -0,0 +1,27 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
5
+import com.community.huiju.model.AnnouncementTel;
6
+import org.apache.ibatis.annotations.Param;
7
+
8
+import java.util.List;
9
+
10
+/**
11
+ * <p>
12
+ * 物业号码表 Mapper 接口
13
+ * </p>
14
+ *
15
+ * @author jobob
16
+ * @since 2019-03-05
17
+ */
18
+public interface AnnouncementTelMapper extends BaseMapper<AnnouncementTel> {
19
+	
20
+	/**
21
+	 * 分页获取电话号码
22
+	 * @param page
23
+	 * @param announcementTel
24
+	 * @return
25
+	 */
26
+	List<AnnouncementTel> selectListByParams(Page page,@Param("announcementTel") AnnouncementTel announcementTel);
27
+}

+ 18
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TaSysMenuMapper.java Visa fil

@@ -0,0 +1,18 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.community.huiju.model.TaSysMenu;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * APP端菜单页面 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author jobob
13
+ * @since 2019-03-06
14
+ */
15
+@Mapper
16
+public interface TaSysMenuMapper extends BaseMapper<TaSysMenu> {
17
+
18
+}

+ 68
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/AnnouncementTel.java Visa fil

@@ -0,0 +1,68 @@
1
+package com.community.huiju.model;
2
+
3
+import com.baomidou.mybatisplus.annotation.TableField;
4
+import com.baomidou.mybatisplus.annotation.TableName;
5
+import lombok.Data;
6
+import lombok.EqualsAndHashCode;
7
+import lombok.experimental.Accessors;
8
+
9
+import java.io.Serializable;
10
+import java.time.LocalDateTime;
11
+
12
+/**
13
+ * <p>
14
+ * 物业号码表
15
+ * </p>
16
+ *
17
+ * @author jobob
18
+ * @since 2019-03-05
19
+ */
20
+@Data
21
+@EqualsAndHashCode(callSuper = false)
22
+@Accessors(chain = true)
23
+@TableName("tp_announcement_tel")
24
+public class AnnouncementTel implements Serializable {
25
+
26
+    private static final long serialVersionUID = 1L;
27
+
28
+    /**
29
+     * 小区id
30
+     */
31
+    private Integer communityId;
32
+
33
+    /**
34
+     * 电话名称
35
+     */
36
+    private String name;
37
+
38
+    private String tel;
39
+
40
+    private String remark;
41
+
42
+    /**
43
+     * 创建人
44
+     */
45
+    private Integer createUser;
46
+
47
+    /**
48
+     * 创建时间
49
+     */
50
+    private LocalDateTime createDate;
51
+
52
+    /**
53
+     * 更新人
54
+     */
55
+    private Integer updateUser;
56
+
57
+    /**
58
+     * 更新时间
59
+     */
60
+    private LocalDateTime updateDate;
61
+    
62
+    /**
63
+     * 更新人
64
+     */
65
+    @TableField(exist = false)
66
+    private String updateName;
67
+
68
+}

+ 9
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/BillInvoice.java Visa fil

@@ -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
      */

+ 72
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TaSysMenu.java Visa fil

@@ -0,0 +1,72 @@
1
+package com.community.huiju.model;
2
+
3
+import lombok.Data;
4
+import lombok.EqualsAndHashCode;
5
+import lombok.experimental.Accessors;
6
+
7
+import java.io.Serializable;
8
+
9
+/**
10
+ * <p>
11
+ * APP端菜单页面
12
+ * </p>
13
+ *
14
+ * @author jobob
15
+ * @since 2019-03-06
16
+ */
17
+@Data
18
+@EqualsAndHashCode(callSuper = false)
19
+@Accessors(chain = true)
20
+public class TaSysMenu implements Serializable {
21
+
22
+    private static final long serialVersionUID = 1L;
23
+
24
+    private Integer id;
25
+    
26
+    /**
27
+     * 小区id
28
+     */
29
+    private Integer communityId;
30
+
31
+    /**
32
+     * 菜单名称
33
+     */
34
+    private String menuName;
35
+
36
+    /**
37
+     * 菜单链接
38
+     */
39
+    private String menuUrl;
40
+
41
+    /**
42
+     * 父级菜单ID
43
+     */
44
+    private Integer parentId;
45
+
46
+    /**
47
+     * 排序
48
+     */
49
+    private Integer sort;
50
+
51
+    /**
52
+     * 菜单类型 0 H5  1原生开发
53
+     */
54
+    private String menuType;
55
+
56
+    /**
57
+     * 状态 0正常 1 是停用 9 删除
58
+     */
59
+    private String status;
60
+
61
+    /**
62
+     * face 代表人脸录入  monitor 代表是 公区监控
63
+     */
64
+    private String remark;
65
+
66
+    /**
67
+     * 说明
68
+     */
69
+    private String explain;
70
+
71
+
72
+}

+ 27
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/IAnnouncementTelService.java Visa fil

@@ -0,0 +1,27 @@
1
+package com.community.huiju.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.community.commom.mode.ResponseBean;
5
+import com.community.commom.session.UserElement;
6
+import com.community.huiju.model.AnnouncementTel;
7
+
8
+/**
9
+ * <p>
10
+ * 物业号码表 服务类
11
+ * </p>
12
+ *
13
+ * @author jobob
14
+ * @since 2019-03-05
15
+ */
16
+public interface IAnnouncementTelService extends IService<AnnouncementTel> {
17
+	
18
+	/**
19
+	 *
20
+	 * 获取物业号码列表
21
+	 * @param announcementTel
22
+	 * @param pageNum
23
+	 * @param pageSize
24
+	 * @return
25
+	 */
26
+	ResponseBean getTelList(AnnouncementTel announcementTel, Integer pageNum, Integer pageSize);
27
+}

+ 1
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/IBillService.java Visa fil

@@ -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, 解析 入库

+ 16
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/ITaSysMenuService.java Visa fil

@@ -0,0 +1,16 @@
1
+package com.community.huiju.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.community.huiju.model.TaSysMenu;
5
+
6
+/**
7
+ * <p>
8
+ * APP端菜单页面 服务类
9
+ * </p>
10
+ *
11
+ * @author jobob
12
+ * @since 2019-03-06
13
+ */
14
+public interface ITaSysMenuService extends IService<TaSysMenu> {
15
+
16
+}

+ 52
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/AnnouncementTelServiceImpl.java Visa fil

@@ -0,0 +1,52 @@
1
+package com.community.huiju.service.impl;
2
+
3
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
4
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
5
+import com.community.commom.mode.ResponseBean;
6
+import com.community.commom.session.UserElement;
7
+import com.community.huiju.model.AnnouncementTel;
8
+import com.community.huiju.dao.AnnouncementTelMapper;
9
+import com.community.huiju.model.Bill;
10
+import com.community.huiju.service.IAnnouncementTelService;
11
+import com.google.common.collect.Maps;
12
+import org.springframework.beans.factory.annotation.Autowired;
13
+import org.springframework.stereotype.Service;
14
+
15
+import java.util.List;
16
+import java.util.Map;
17
+
18
+/**
19
+ * <p>
20
+ * 物业号码表 服务实现类
21
+ * </p>
22
+ *
23
+ * @author jobob
24
+ * @since 2019-03-05
25
+ */
26
+@Service
27
+public class AnnouncementTelServiceImpl extends ServiceImpl<AnnouncementTelMapper, AnnouncementTel> implements IAnnouncementTelService {
28
+	
29
+	@Autowired
30
+	private AnnouncementTelMapper announcementTelMapper;
31
+	
32
+	/**
33
+	 * 获取物业号码列表
34
+	 *
35
+	 * @param announcementTel
36
+	 * @param pageNum
37
+	 * @param pageSize
38
+	 * @return
39
+	 */
40
+	@Override
41
+	public ResponseBean getTelList(AnnouncementTel announcementTel, Integer pageNum, Integer pageSize) {
42
+		ResponseBean responseBean = new ResponseBean();
43
+		Page page = new Page(pageNum,pageSize);
44
+		// 分页查询
45
+		List<AnnouncementTel> list = announcementTelMapper.selectListByParams(page,announcementTel);
46
+		Map<String, Object> map = Maps.newHashMap();
47
+		map.put("list",list);
48
+		map.put("total",page.getTotal());
49
+		responseBean.addSuccess(map);
50
+		return responseBean;
51
+	}
52
+}

+ 2
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BillInvoiceServiceImpl.java Visa fil

@@ -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 Visa fil

@@ -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)) {

+ 20
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TaSysMenuServiceImpl.java Visa fil

@@ -0,0 +1,20 @@
1
+package com.community.huiju.service.impl;
2
+
3
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
4
+import com.community.huiju.model.TaSysMenu;
5
+import com.community.huiju.dao.TaSysMenuMapper;
6
+import com.community.huiju.service.ITaSysMenuService;
7
+import org.springframework.stereotype.Service;
8
+
9
+/**
10
+ * <p>
11
+ * APP端菜单页面 服务实现类
12
+ * </p>
13
+ *
14
+ * @author jobob
15
+ * @since 2019-03-06
16
+ */
17
+@Service
18
+public class TaSysMenuServiceImpl extends ServiceImpl<TaSysMenuMapper, TaSysMenu> implements ITaSysMenuService {
19
+
20
+}

+ 29
- 0
CODE/smart-community/property-api/src/main/resources/mapper/AnnouncementTelMapper.xml Visa fil

@@ -0,0 +1,29 @@
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.AnnouncementTelMapper">
4
+    <select id="selectListByParams" resultType="com.community.huiju.model.AnnouncementTel">
5
+       SELECT
6
+            t.id,
7
+            t.community_id AS communityId,
8
+            t.NAME,
9
+            t.tel,
10
+            t.remark,
11
+            t.update_date,
12
+            u.user_name AS updateName
13
+        FROM
14
+            tp_announcement_tel t
15
+            LEFT JOIN tp_user u ON t.update_user = u.id
16
+        WHERE
17
+            1 = 1
18
+        AND t.community_id = #{announcementTel.communityId}
19
+        <if test="announcementTel.tel != null and announcementTel.tel != ''">
20
+          AND t.tel like concat('%',#{announcementTel.tel},'%')
21
+        </if>
22
+        <if test="announcementTel.remark != null and announcementTel.remark != ''">
23
+          AND t.remark like concat('%',#{announcementTel.remark},'%')
24
+        </if>
25
+        <if test="announcementTel.name != null and announcementTel.name != ''">
26
+          AND t.name like concat('%',#{announcementTel.name},'%')
27
+        </if>
28
+    </select>
29
+</mapper>

+ 5
- 0
CODE/smart-community/property-api/src/main/resources/mapper/TaSysMenuMapper.xml Visa fil

@@ -0,0 +1,5 @@
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.TaSysMenuMapper">
4
+
5
+</mapper>

Binär
CODE/smart-community/property-api/src/main/resources/缴费单模板.xls Visa fil


+ 30
- 0
VUECODE/smart-property-manage/src/router/index.js Visa fil

@@ -307,6 +307,36 @@ export const constantRouterMap = [
307 307
         meta: { title: '消息', icon: 'table' }
308 308
       }
309 309
     ]
310
+  },
311
+  {
312
+    path: '/systemResources',
313
+    component: Layout,
314
+    redirect: '/systemResources/index',
315
+    name: 'systemResources',
316
+    alwaysShow: true,
317
+    meta: { title: '系统资源', icon: 'zip' },
318
+    children: [
319
+      {
320
+        path: '/systemResources/app/index',
321
+        component: () => import('@/views/systemResources/app/index'),
322
+        name: 'app-index',
323
+        meta: { title: 'APP配置', icon: 'table' }
324
+      },
325
+      {
326
+        path: '/systemResources/app/property/add/index',
327
+        component: () => import('@/views/systemResources/app/property/add/index'),
328
+        name: 'property-add-index',
329
+        hidden: true,
330
+        meta: { title: '添加物业号码', icon: 'table' }
331
+      },
332
+      {
333
+        path: '/systemResources/app/property/edi/index',
334
+        component: () => import('@/views/systemResources/app/property/edi/index'),
335
+        name: 'property-edi-index',
336
+        hidden: true,
337
+        meta: { title: '修改物业号码', icon: 'table' }
338
+      }
339
+    ]
310 340
   }
311 341
 ]
312 342
 

+ 2
- 2
VUECODE/smart-property-manage/src/views/bill/add/index.vue Visa fil

@@ -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 Visa fil

@@ -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
 }

+ 95
- 0
VUECODE/smart-property-manage/src/views/systemResources/app/index.vue Visa fil

@@ -0,0 +1,95 @@
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">
7
+        <el-form :model="formInline" inline="true" class="form-inline">
8
+          <el-form-item label="名称">
9
+            <el-input v-model="formInline.name" placeholder="名称"/>
10
+          </el-form-item>
11
+          <el-form-item label="号码">
12
+            <el-input v-model="formInline.tel" placeholder="号码"/>
13
+          </el-form-item>
14
+          <el-form-item label="备注">
15
+            <el-input v-model="formInline.remark" placeholder="备注"/>
16
+          </el-form-item>
17
+          <el-form-item>
18
+            <el-button type="primary" @click="onSubmit">查询</el-button>
19
+          </el-form-item>
20
+        </el-form>
21
+        <div style="margin-left: 20px;">
22
+          <el-button type="primary" @click="add">添加</el-button>
23
+          <el-button type="warning" @click="edi">修改</el-button>
24
+          <el-button type="danger">删除</el-button>
25
+        </div>
26
+        <el-table
27
+          ref="multipleTable"
28
+          :data="propertyList"
29
+          border
30
+          tooltip-effect="dark"
31
+          style="width: 100%; margin-top: 20px;"
32
+          @selection-change="handleSelectionChange">
33
+          <el-table-column
34
+            type="selection"
35
+            width="55"/>
36
+          <el-table-column
37
+            prop="name"
38
+            label="名称"/>
39
+          <el-table-column
40
+            prop="tel"
41
+            label="号码"/>
42
+          <el-table-column
43
+            prop="remark"
44
+            label="备注"/>
45
+          <el-table-column
46
+            prop="updateName"
47
+            label="编辑人"/>
48
+          <el-table-column
49
+            prop="updateDate"
50
+            label="编辑时间"/>
51
+        </el-table>
52
+      </el-tab-pane>
53
+    </el-tabs>
54
+  </div>
55
+</template>
56
+
57
+<script>
58
+export default {
59
+  name: 'Index',
60
+  data() {
61
+    return {
62
+      activeName2: 'banner', // 默认banner选项卡
63
+      formInline: {
64
+        name: '',
65
+        tel: '',
66
+        remark: ''
67
+      },
68
+      propertyList: [] // 物业数据列表
69
+    }
70
+  },
71
+  methods: {
72
+    handleClick(tab, event) {
73
+      console.log(tab, event)
74
+    },
75
+    onSubmit() {
76
+      console.log('submit!')
77
+    },
78
+    handleSelectionChange(val) {
79
+      console.log(val)
80
+    },
81
+    add() { // 跳转添加物业号码
82
+      this.$router.push({ name: 'property-add-index' })
83
+    },
84
+    edi() { // 修改页面
85
+      this.$router.push({ name: 'property-edi-index' })
86
+    }
87
+  }
88
+}
89
+</script>
90
+
91
+<style scoped>
92
+.form-inline {
93
+  margin-left: 20px;
94
+}
95
+</style>

+ 47
- 0
VUECODE/smart-property-manage/src/views/systemResources/app/property/add/index.vue Visa fil

@@ -0,0 +1,47 @@
1
+<template>
2
+  <div id="root">
3
+    <el-form :model="formInline" label-width="80px" class="form-class">
4
+      <el-form-item label="名称">
5
+        <el-input v-model="formInline.name"/>
6
+      </el-form-item>
7
+      <el-form-item label="号码">
8
+        <el-input v-model="formInline.tel"/>
9
+      </el-form-item>
10
+      <el-form-item label="备注">
11
+        <el-input v-model="formInline.remark"/>
12
+      </el-form-item>
13
+      <div class="button-class">
14
+        <el-button type="info">取消</el-button>
15
+        <el-button type="primary">保存</el-button>
16
+      </div>
17
+    </el-form>
18
+  </div>
19
+</template>
20
+
21
+<script>
22
+export default {
23
+  name: 'Index',
24
+  data() {
25
+    return {
26
+      formInline: {
27
+        name: '',
28
+        tel: '',
29
+        remark: ''
30
+      }
31
+    }
32
+  }
33
+}
34
+</script>
35
+
36
+<style scoped>
37
+.form-class {
38
+  width: 400px;
39
+  margin-right: auto;
40
+  margin-left: auto;
41
+  margin-top: 20px;
42
+}
43
+.button-class {
44
+  display: flex;
45
+  justify-content: center;
46
+}
47
+</style>

+ 47
- 0
VUECODE/smart-property-manage/src/views/systemResources/app/property/edi/index.vue Visa fil

@@ -0,0 +1,47 @@
1
+<template>
2
+  <div id="root">
3
+    <el-form :model="formInline" label-width="80px" class="form-class">
4
+      <el-form-item label="名称">
5
+        <el-input v-model="formInline.name"/>
6
+      </el-form-item>
7
+      <el-form-item label="号码">
8
+        <el-input v-model="formInline.tel"/>
9
+      </el-form-item>
10
+      <el-form-item label="备注">
11
+        <el-input v-model="formInline.remark"/>
12
+      </el-form-item>
13
+      <div class="button-class">
14
+        <el-button type="info">取消</el-button>
15
+        <el-button type="primary">保存</el-button>
16
+      </div>
17
+    </el-form>
18
+  </div>
19
+</template>
20
+
21
+<script>
22
+export default {
23
+  name: 'Index',
24
+  data() {
25
+    return {
26
+      formInline: {
27
+        name: '',
28
+        tel: '',
29
+        remark: ''
30
+      }
31
+    }
32
+  }
33
+}
34
+</script>
35
+
36
+<style scoped>
37
+.form-class {
38
+  width: 400px;
39
+  margin-right: auto;
40
+  margin-left: auto;
41
+  margin-top: 20px;
42
+}
43
+.button-class {
44
+  display: flex;
45
+  justify-content: center;
46
+}
47
+</style>

+ 665
- 617
文档/MYSQL/smartCommunity.pdb
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 665
- 617
文档/MYSQL/smartCommunity.pdm
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


Binär
文档/计划/V1.5.0/智慧社区V1.5.0.mpp Visa fil