魏熙美 6 years ago
parent
commit
08db6f3a19

+ 1
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TpBuildingOwnerInfoMapper.java View File

77
             "and tpio.level_name = #{levelName} " +
77
             "and tpio.level_name = #{levelName} " +
78
             "AND tpio.room_no_name = #{roomNoName} " +
78
             "AND tpio.room_no_name = #{roomNoName} " +
79
             "AND tpio.owner_tel = #{ownerTel}")
79
             "AND tpio.owner_tel = #{ownerTel}")
80
-    TpBuildingOwnerInfo selectCommunityIdAndAddress(@Param("communityId") Integer communityId, @Param("phaseName") String phaseName, @Param("buildingName") Integer buildingName, @Param("unitName") Integer unitName, @Param("levelName") Integer levelName, @Param("roomNoName") Integer roomNoName, @Param("ownerTel") String ownerTel);
80
+    TpBuildingOwnerInfo selectCommunityIdAndAddressName(@Param("communityId") Integer communityId, @Param("phaseName") String phaseName, @Param("buildingName") Integer buildingName, @Param("unitName") Integer unitName, @Param("levelName") Integer levelName, @Param("roomNoName") Integer roomNoName, @Param("ownerTel") String ownerTel);
81
 
81
 
82
 
82
 
83
 }
83
 }

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

183
                 billStatement.setBillInvoiceId(billInvoice.getId());
183
                 billStatement.setBillInvoiceId(billInvoice.getId());
184
                 billStatement.setTaUserId(billInvoice.getTaUserId());
184
                 billStatement.setTaUserId(billInvoice.getTaUserId());
185
                 billStatement.setPayPrice(billInvoice.getPayPrice());
185
                 billStatement.setPayPrice(billInvoice.getPayPrice());
186
-                billStatement.setPayName(buildingOwnerInfo.getOwnerName());
186
+                // TODO 缴费人,因为有一个情况就是没有业主
187
+//                 billStatement.setPayName(buildingOwnerInfo.getOwnerName());
187
                 billStatement.setPayRemark(billInvoice.getBillInvoiceExplain());
188
                 billStatement.setPayRemark(billInvoice.getBillInvoiceExplain());
188
                 billStatement.setPayType("1");
189
                 billStatement.setPayType("1");
189
                 billStatement.setCreateTime(new Date());
190
                 billStatement.setCreateTime(new Date());
217
                 messageQueryWrapper.eq("source", "2");
218
                 messageQueryWrapper.eq("source", "2");
218
 
219
 
219
                 Message one = iMessageService.getOne(messageQueryWrapper);
220
                 Message one = iMessageService.getOne(messageQueryWrapper);
220
-                one.setStatus("0");
221
-                iMessageService.updateById(one);
221
+                if (null != one) {
222
+                    one.setStatus("0");
223
+                    iMessageService.updateById(one);
224
+                }
225
+
222
 
226
 
223
             }
227
             }
224
         });
228
         });

+ 6
- 4
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BillServiceImpl.java View File

565
             queryWrapper.eq("message_type", "7");
565
             queryWrapper.eq("message_type", "7");
566
             queryWrapper.eq("model_type", "2");
566
             queryWrapper.eq("model_type", "2");
567
             queryWrapper.eq("source", "2");
567
             queryWrapper.eq("source", "2");
568
-            queryWrapper.eq("status", "1");
569
-            Message message = messageMapper.selectOne(queryWrapper);
570
-            if (null != message) {
568
+            queryWrapper.eq("source", "2");
569
+            queryWrapper.eq("uuid_type", "1");
570
+
571
+            List<Message> messages = messageMapper.selectList(queryWrapper);
572
+            messages.forEach(message-> {
571
                 message.setStatus("0");
573
                 message.setStatus("0");
572
                 message.setUpdateDate(LocalDateTime.now());
574
                 message.setUpdateDate(LocalDateTime.now());
573
                 message.setUpdateUser(userElement.getId());
575
                 message.setUpdateUser(userElement.getId());
574
                 messageMapper.updateById(message);
576
                 messageMapper.updateById(message);
575
-            }
577
+            });
576
 
578
 
577
         });
579
         });
578
 
580
 

+ 20
- 5
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoServiceImpl.java View File

584
             //从第一行开始第一行一般是标题
584
             //从第一行开始第一行一般是标题
585
             for (int j = 3; j <= lastRowNum; j++) {
585
             for (int j = 3; j <= lastRowNum; j++) {
586
                 Row row = sheet.getRow(j);
586
                 Row row = sheet.getRow(j);
587
-                String buildingInfo = row.getCell(0).getStringCellValue().trim();
588
-                String roomNoId = row.getCell(1).getStringCellValue().trim();
589
-                String ownerName = row.getCell(2).getStringCellValue().trim();
590
-                String ownerTel = row.getCell(3).getStringCellValue().trim();
591
-                String ownerRole = row.getCell(4).getStringCellValue().trim();
587
+                Cell cell = row.getCell(0);
588
+                cell.setCellType(Cell.CELL_TYPE_STRING);
589
+                String buildingInfo = cell.getStringCellValue().trim();
590
+                cell = row.getCell(1);
591
+                cell.setCellType(Cell.CELL_TYPE_STRING);
592
+                String roomNoId = cell.getStringCellValue().trim();
593
+                cell = row.getCell(2);
594
+                cell.setCellType(Cell.CELL_TYPE_STRING);
595
+                String ownerName = cell.getStringCellValue().trim();
596
+                cell = row.getCell(3);
597
+                cell.setCellType(Cell.CELL_TYPE_STRING);
598
+                String ownerTel = cell.getStringCellValue().trim();
599
+                cell = row.getCell(4);
600
+                cell.setCellType(Cell.CELL_TYPE_STRING);
601
+                String ownerRole = cell.getStringCellValue().trim();
592
                 int currentRow = j+1;
602
                 int currentRow = j+1;
593
                 if (StringUtils.isEmpty(buildingInfo)){
603
                 if (StringUtils.isEmpty(buildingInfo)){
594
                     responseBean.addError("第" + currentRow + "行" + "房产信息不能为空!");
604
                     responseBean.addError("第" + currentRow + "行" + "房产信息不能为空!");
908
                         buildingOwnerInfo.getRoomNoName();
918
                         buildingOwnerInfo.getRoomNoName();
909
 
919
 
910
                 cell = row.createCell(0);
920
                 cell = row.createCell(0);
921
+                cell.setCellType(Cell.CELL_TYPE_STRING);
911
                 cell.setCellValue(address);
922
                 cell.setCellValue(address);
912
                 cell.setCellStyle(cellStyle);
923
                 cell.setCellStyle(cellStyle);
913
                 cell = row.createCell(1);
924
                 cell = row.createCell(1);
925
+                cell.setCellType(Cell.CELL_TYPE_STRING);
914
                 cell.setCellValue(buildingOwnerInfo.getId());
926
                 cell.setCellValue(buildingOwnerInfo.getId());
915
                 cell.setCellStyle(cellStyle);
927
                 cell.setCellStyle(cellStyle);
916
                 cell = row.createCell(2);
928
                 cell = row.createCell(2);
929
+                cell.setCellType(Cell.CELL_TYPE_STRING);
917
                 cell.setCellStyle(cellStyle);
930
                 cell.setCellStyle(cellStyle);
918
                 cell = row.createCell(3);
931
                 cell = row.createCell(3);
932
+                cell.setCellType(Cell.CELL_TYPE_STRING);
919
                 cell.setCellStyle(cellStyle);
933
                 cell.setCellStyle(cellStyle);
920
                 cell = row.createCell(4);
934
                 cell = row.createCell(4);
935
+                cell.setCellType(Cell.CELL_TYPE_STRING);
921
                 cell.setCellStyle(cellStyle);
936
                 cell.setCellStyle(cellStyle);
922
 
937
 
923
                 currentRow ++;
938
                 currentRow ++;

+ 3
- 3
VUECODE/smart-operate-manage/src/views/banner/index.vue View File

1
 <template>
1
 <template>
2
   <div class="app-container">
2
   <div class="app-container">
3
     <div class="filter-container">
3
     <div class="filter-container">
4
-      <label>标题</label>
4
+      <label style="font-size: 14px; color: #606266;">标题</label>
5
       <el-input v-model="listQuery.title" placeholder="请输入标题" style="width: 200px;" class="filter-item" @keyup.enter.native="handleFilter"/>
5
       <el-input v-model="listQuery.title" placeholder="请输入标题" style="width: 200px;" class="filter-item" @keyup.enter.native="handleFilter"/>
6
       <!-- <label>跳转概述</label>
6
       <!-- <label>跳转概述</label>
7
       <el-input v-model="listQuery.bannerDescription" placeholder="请输入跳转概述" style="width: 200px;" class="filter-item" @keyup.enter.native="handleFilter"/> -->
7
       <el-input v-model="listQuery.bannerDescription" placeholder="请输入跳转概述" style="width: 200px;" class="filter-item" @keyup.enter.native="handleFilter"/> -->
8
-      <label>适用社区</label>
8
+      <label style="font-size: 14px; color: #606266;">适用社区</label>
9
       <el-select v-model="listQuery.communityId" placeholder="适用社区" clearable style="width: 200px" class="filter-item">
9
       <el-select v-model="listQuery.communityId" placeholder="适用社区" clearable style="width: 200px" class="filter-item">
10
         <el-option v-for="item in communityList" :key="item.id" :value="item.id" :label="item.communityName"/>
10
         <el-option v-for="item in communityList" :key="item.id" :value="item.id" :label="item.communityName"/>
11
       </el-select>
11
       </el-select>
12
-      <label>banner位置</label>
12
+      <label style="font-size: 14px; color: #606266;">banner位置</label>
13
       <el-select v-model="listQuery.bannerPosition" placeholder="banner位置" clearable class="filter-item" style="width: 200px">
13
       <el-select v-model="listQuery.bannerPosition" placeholder="banner位置" clearable class="filter-item" style="width: 200px">
14
         <el-option v-for="item in bannerPositionArr" :key="item.id" :value="item.id" :label="item.value"/>
14
         <el-option v-for="item in bannerPositionArr" :key="item.id" :value="item.id" :label="item.value"/>
15
       </el-select>
15
       </el-select>

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

7
       <el-button type="info" @click="updateBill">修改</el-button>
7
       <el-button type="info" @click="updateBill">修改</el-button>
8
     </div>
8
     </div>
9
     <div class="bill-info-search">
9
     <div class="bill-info-search">
10
-      <span style="font-weight: bold;">收费情况</span>
10
+      <span style="font-size: 14px; color: #606266;">收费情况</span>
11
       <el-form :model="formInline" inline="true" class="form-inline">
11
       <el-form :model="formInline" inline="true" class="form-inline">
12
         <el-form-item label="选择房子">
12
         <el-form-item label="选择房子">
13
           <el-select v-model="formInline.phaseId" placeholder="请选择期" @change="buildSelectChange(0)">
13
           <el-select v-model="formInline.phaseId" placeholder="请选择期" @change="buildSelectChange(0)">
52
           <el-input v-model="formInline.ownerName"/>
52
           <el-input v-model="formInline.ownerName"/>
53
         </el-form-item>
53
         </el-form-item>
54
         <el-form-item label="缴费状态">
54
         <el-form-item label="缴费状态">
55
-          <el-select v-model="formInline.billStatus" placeholder="活动区域">
55
+          <el-select v-model="formInline.billStatus" placeholder="请选择">
56
             <el-option label="未缴费" value="0"/>
56
             <el-option label="未缴费" value="0"/>
57
             <el-option label="已线上缴费" value="1"/>
57
             <el-option label="已线上缴费" value="1"/>
58
             <el-option label="已线下缴费" value="2"/>
58
             <el-option label="已线下缴费" value="2"/>
550
   margin-top: 20px;
550
   margin-top: 20px;
551
 }
551
 }
552
 .title-info {
552
 .title-info {
553
+  font-weight: bold;
553
   height: 40px;
554
   height: 40px;
554
   line-height: 40px;
555
   line-height: 40px;
556
+  font-size: 14px;
557
+  color: #606266;
555
 }
558
 }
556
 .bill-info-search {
559
 .bill-info-search {
557
   margin-left: 20px;
560
   margin-left: 20px;

+ 7
- 5
VUECODE/smart-property-manage/src/views/building/batch/batchImport.vue View File

3
   <div class="root">
3
   <div class="root">
4
     <el-form :inline="true" :model="listQuery" class="form-listQuery">
4
     <el-form :inline="true" :model="listQuery" class="form-listQuery">
5
       <el-form-item>
5
       <el-form-item>
6
-        <el-upload :on-change="handleChange" :before-upload="beforeUpload" :limit="1" class="upload-demo" action="" multiple>
7
-          <!-- <a href="http://jingcheng-h5temp.oss-cn-shanghai.aliyuncs.com/%E6%A5%BC%E6%A0%8B%E5%BA%93%E6%A8%A1%E6%9D%BF.xlsx?Expires=1548327771"></a> -->
6
+        <div style="display: flex;">
8
           <el-button style="margin-left: 10px;" size="large" type="primary" @click="exportExcel">下载模板-小区</el-button>
7
           <el-button style="margin-left: 10px;" size="large" type="primary" @click="exportExcel">下载模板-小区</el-button>
9
-          <el-button slot="trigger" size="large" type="primary">选取文件并预览</el-button>
8
+          <el-upload :on-change="handleChange" :before-upload="beforeUpload" :limit="1" class="upload-demo" action="" multiple>
9
+            <!-- <a href="http://jingcheng-h5temp.oss-cn-shanghai.aliyuncs.com/%E6%A5%BC%E6%A0%8B%E5%BA%93%E6%A8%A1%E6%9D%BF.xlsx?Expires=1548327771"></a> -->
10
+            <el-button slot="trigger" size="large" type="primary" style="margin-left: 10px;">选取文件并预览</el-button>
11
+          </el-upload>
10
           <el-button style="margin-left: 10px;" size="large" type="success" @click="submitUpload">提交</el-button>
12
           <el-button style="margin-left: 10px;" size="large" type="success" @click="submitUpload">提交</el-button>
11
           <el-button style="margin-left: 10px;" size="large" type="success" @click="dialogBuildingIndex">取消</el-button>
13
           <el-button style="margin-left: 10px;" size="large" type="success" @click="dialogBuildingIndex">取消</el-button>
12
-        </el-upload>
14
+        </div>
13
       </el-form-item>
15
       </el-form-item>
14
     </el-form>
16
     </el-form>
15
     <el-table ref="multipleTable" :data="list" border tooltip-effect="dark" style="width: 100%; margin-top: 20px;">
17
     <el-table ref="multipleTable" :data="list" border tooltip-effect="dark" style="width: 100%; margin-top: 20px;">
26
         <template slot-scope="scope">{{ scope.row.levelName }}</template>
28
         <template slot-scope="scope">{{ scope.row.levelName }}</template>
27
       </el-table-column>
29
       </el-table-column>
28
       <el-table-column label="户号" align="center">
30
       <el-table-column label="户号" align="center">
29
-        <template slot-scope="scope">{{ scope.row.name }}</template>
31
+        <template slot-scope="scope">{{ scope.row.roomNoName }}</template>
30
       </el-table-column>
32
       </el-table-column>
31
       <el-table-column label="业主姓名" align="center">
33
       <el-table-column label="业主姓名" align="center">
32
         <template slot-scope="scope">{{ scope.row.ownerName }}</template>
34
         <template slot-scope="scope">{{ scope.row.ownerName }}</template>