Browse Source

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

傅行帆 6 years ago
parent
commit
153349047b

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

4
 import com.community.huiju.model.TpActivity;
4
 import com.community.huiju.model.TpActivity;
5
 import org.apache.ibatis.annotations.Mapper;
5
 import org.apache.ibatis.annotations.Mapper;
6
 import org.apache.ibatis.annotations.Param;
6
 import org.apache.ibatis.annotations.Param;
7
+import org.apache.ibatis.annotations.ResultMap;
8
+import org.apache.ibatis.annotations.Select;
7
 
9
 
8
 import java.util.List;
10
 import java.util.List;
9
 
11
 
40
     List<TpActivity> selecttpActivity(@Param("id") Integer id, @Param("communityId") Integer communityId);
42
     List<TpActivity> selecttpActivity(@Param("id") Integer id, @Param("communityId") Integer communityId);
41
 
43
 
42
     TpActivity selectActivity(@Param("activityId") Integer activityId);
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 View File

268
     @Override
268
     @Override
269
     public ResponseBean findTaUserInfo(UserElement userElement, Integer activityId, Integer communityId, String remark) {
269
     public ResponseBean findTaUserInfo(UserElement userElement, Integer activityId, Integer communityId, String remark) {
270
         ResponseBean responseBean = new ResponseBean();
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
         Date registrEndTime = tpActivity.getRegistrationEndTime();
284
         Date registrEndTime = tpActivity.getRegistrationEndTime();
274
         if (registrEndTime.compareTo(new Date()) < 0) {
285
         if (registrEndTime.compareTo(new Date()) < 0) {

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

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

+ 4
- 4
VUECODE/smart-property-manage/src/views/bill/info/index.vue View File

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

+ 2
- 1
VUECODE/smart-property-manage/src/views/login/index.vue View File

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