Quellcode durchsuchen

Merge branch '2.0.0' of http://git.ycjcjy.com/fuxingfan/smartCommunity into 2.0.0

傅行帆 vor 6 Jahren
Ursprung
Commit
153349047b

+ 12
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpActivityMapper.java Datei anzeigen

@@ -4,6 +4,8 @@ package com.community.huiju.dao;
4 4
 import com.community.huiju.model.TpActivity;
5 5
 import org.apache.ibatis.annotations.Mapper;
6 6
 import org.apache.ibatis.annotations.Param;
7
+import org.apache.ibatis.annotations.ResultMap;
8
+import org.apache.ibatis.annotations.Select;
7 9
 
8 10
 import java.util.List;
9 11
 
@@ -40,4 +42,14 @@ public interface TpActivityMapper {
40 42
     List<TpActivity> selecttpActivity(@Param("id") Integer id, @Param("communityId") Integer communityId);
41 43
 
42 44
     TpActivity selectActivity(@Param("activityId") Integer activityId);
45
+
46
+    /**
47
+     * 根据id 查询数据活动
48
+     * @param activityId
49
+     * @return
50
+     */
51
+    @ResultMap("BaseResultMap")
52
+    @Select("select * from tp_activity where id=#{activityId}")
53
+    TpActivity selectById(@Param("activityId") Integer activityId);
54
+
43 55
 }

+ 12
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java Datei anzeigen

@@ -268,7 +268,18 @@ public class SocialServiceImpl implements SocialServiceI {
268 268
     @Override
269 269
     public ResponseBean findTaUserInfo(UserElement userElement, Integer activityId, Integer communityId, String remark) {
270 270
         ResponseBean responseBean = new ResponseBean();
271
-        TpActivity tpActivity = tpActivityMapper.selectByPrimaryKey(activityId, communityId);
271
+        TpActivity tpActivity = tpActivityMapper.selectById(activityId);
272
+
273
+        if (null == tpActivity) {
274
+            responseBean.addError("活动不存在");
275
+            return responseBean;
276
+        }
277
+
278
+        if (communityId.intValue() != tpActivity.getCommunityId().intValue()) {
279
+            responseBean.addError("活动不属于当前小区,请到个人中心切换房产后再报名");
280
+            return responseBean;
281
+        }
282
+
272 283
         //判断是否已经过了报名截至时间
273 284
         Date registrEndTime = tpActivity.getRegistrationEndTime();
274 285
         if (registrEndTime.compareTo(new Date()) < 0) {

+ 14
- 14
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BillInvoiceServiceImpl.java Datei anzeigen

@@ -436,7 +436,7 @@ public class BillInvoiceServiceImpl extends ServiceImpl<BillInvoiceMapper, BillI
436 436
     @Override
437 437
     public ResponseBean exportExcel(UserElement userElement, Integer billId) {
438 438
         ResponseBean responseBean = new ResponseBean();
439
-        String [] title = new String[] { "收费单号","房屋信息","业主姓名","收费单说明","金额(元)","流水","缴费状态","缴费人","缴费时间","新建时间","新建人","修改人","修改时间" };
439
+        String [] title = new String[] { "收费单号","房屋信息","收费单说明","金额(元)","流水","缴费状态","缴费人","缴费时间","新建时间","新建人","修改人","修改时间" };
440 440
 
441 441
         HSSFWorkbook excel = excel(title, userElement, billId,null);
442 442
         responseBean.addSuccess(excel);
@@ -499,53 +499,53 @@ public class BillInvoiceServiceImpl extends ServiceImpl<BillInvoiceMapper, BillI
499 499
                 cell.setCellValue(records.get(t).getPhase() + records.get(t).getBuilding() + records.get(t).getUnit() + records.get(t).getRoomNo());
500 500
                 cell.setCellStyle(style);
501 501
                 // 业主姓名
502
-                cell = row.createCell(2);
503
-                cell.setCellValue(records.get(t).getOwnerName());
504
-                cell.setCellStyle(style);
502
+//                cell = row.createCell(2);
503
+//                cell.setCellValue(records.get(t).getOwnerName());
504
+//                cell.setCellStyle(style);
505 505
                 // 收费单说明
506
-                cell = row.createCell(3);
506
+                cell = row.createCell(2);
507 507
                 cell.setCellValue(records.get(t).getBillInvoiceExplain());
508 508
                 cell.setCellStyle(style);
509 509
                 // 金额(元)
510
-                cell = row.createCell(4);
510
+                cell = row.createCell(3);
511 511
                 double price = Double.valueOf(records.get(t).getPayPrice()) / 100.00;
512 512
                 cell.setCellValue(price);
513 513
                 cell.setCellStyle(style);
514 514
                 if (null != records.get(t).getBillStatementId()) {
515 515
                     // 流水
516
-                    cell = row.createCell(5);
516
+                    cell = row.createCell(4);
517 517
                     cell.setCellValue(records.get(t).getBillStatementId());
518 518
                     cell.setCellStyle(style);
519 519
                 }
520 520
                 // 缴费状态
521
-                cell = row.createCell(6);
521
+                cell = row.createCell(5);
522 522
                 cell.setCellValue("0".equals(records.get(t).getBillStatus()) ? "未交费" : "1".equals(records.get(t).getBillStatus()) ? "已线上缴费" : "已线下缴费");
523 523
                 cell.setCellStyle(style);
524 524
                 // 缴费人
525
-                cell = row.createCell(7);
525
+                cell = row.createCell(6);
526 526
                 cell.setCellValue(records.get(t).getPayName());
527 527
                 cell.setCellStyle(style);
528 528
                 if (null != records.get(t).getPayDate()) {
529 529
                     // 缴费时间
530
-                    cell = row.createCell(8);
530
+                    cell = row.createCell(7);
531 531
                     cell.setCellValue(dateFormat.format(records.get(t).getPayDate()));
532 532
                     cell.setCellStyle(style);
533 533
                 }
534 534
                 // 新建时间
535
-                cell = row.createCell(9);
535
+                cell = row.createCell(8);
536 536
                 cell.setCellValue(dateFormat.format(records.get(t).getCreateDate()));
537 537
                 cell.setCellStyle(style);
538 538
                 // 新建人
539
-                cell = row.createCell(10);
539
+                cell = row.createCell(9);
540 540
                 cell.setCellValue(records.get(t).getCreateUserName());
541 541
                 cell.setCellStyle(style);
542 542
                 // 修改人
543
-                cell = row.createCell(11);
543
+                cell = row.createCell(10);
544 544
                 cell.setCellValue(records.get(t).getUpdateUserName());
545 545
                 cell.setCellStyle(style);
546 546
                 if (null != records.get(t).getUpdateDate()) {
547 547
                     // 修改时间
548
-                    cell = row.createCell(12);
548
+                    cell = row.createCell(11);
549 549
                     cell.setCellValue(dateFormat.format(records.get(t).getUpdateDate()));
550 550
                     cell.setCellStyle(style);
551 551
                 }

+ 4
- 4
VUECODE/smart-property-manage/src/views/bill/info/index.vue Datei anzeigen

@@ -49,10 +49,10 @@
49 49
           </el-select>
50 50
         </el-form-item>
51 51
         <br>
52
-        <el-form-item>
52
+        <!-- <el-form-item>
53 53
           <span class="title-info">户主姓名</span>
54 54
           <el-input v-model="formInline.ownerName" style="padding-left:25%;transform:translateY(-90%);"/>
55
-        </el-form-item>
55
+        </el-form-item> -->
56 56
         <el-form-item>
57 57
           <span class="title-info">缴费状态</span>
58 58
           <el-select v-model="formInline.billStatus" placeholder="请选择" style="padding-left:25%;transform:translateY(-90%);">
@@ -105,11 +105,11 @@
105 105
           {{ scope.row.phase + scope.row.building + scope.row.unit + scope.row.roomNo }}
106 106
         </template>
107 107
       </el-table-column>
108
-      <el-table-column
108
+      <!-- <el-table-column
109 109
         prop="ownerName"
110 110
         label="户主姓名"
111 111
         align="center"
112
-        show-overflow-tooltip/>
112
+        show-overflow-tooltip/> -->
113 113
       <el-table-column
114 114
         prop="billInvoiceExplain"
115 115
         label="收费单说明"

+ 2
- 1
VUECODE/smart-property-manage/src/views/login/index.vue Datei anzeigen

@@ -30,13 +30,14 @@
30 30
         <div class="pwdSend">
31 31
           <el-form-item prop="password">
32 32
             <!--@blur.prevent="getUserCommunity"-->
33
+            <!--@keyup.enter.native="handleLogin"-->
33 34
             <el-input
34 35
               v-model="loginForm.password"
35 36
               name="password"
36 37
               type="text"
37 38
               auto-complete="on"
38 39
               placeholder="请输入验证码"
39
-              @keyup.enter.native="handleLogin"
40
+              @keyup.enter.native="getUserCommunity"
40 41
             />
41 42
           </el-form-item>
42 43
           <el-button v-if="isCodeNum == false" style="width: 143px;" type="primary" @click="sendCode();" >发送验证码</el-button>