瀏覽代碼

津南精细化服务平台

lin 3 年之前
父節點
當前提交
c643689e6d

+ 4 - 0
src/main/java/com/zoniot/ccrc/dto/WarningLogDto.java

@@ -24,6 +24,9 @@ public class WarningLogDto extends WarningLog {
     @ApiModelProperty(value = "水表电子号", position = 105)
     private String waterMeterNo;
 
+    @ApiModelProperty(value = "档案号", position = 105)
+    private String fileNo;
+
     @ApiModelProperty(value = "系列", position = 106)
     private String equipmentType;
 
@@ -35,5 +38,6 @@ public class WarningLogDto extends WarningLog {
 
     @ApiModelProperty(value = "位置描述", position = 109)
     private String locDesc;
+
     private String meterCode;
 }

+ 1 - 1
src/main/java/com/zoniot/ccrc/service/impl/MeterReadRecordServiceImpl.java

@@ -51,7 +51,7 @@ public class MeterReadRecordServiceImpl implements MeterReadRecordService{
     public void getDataExcel(Long deviceId, Integer startDate, Integer endDate, HttpServletResponse httpServletResponse) {
         List<MeterReadRecord> list = meterReadRecordMapper.getList(deviceId,startDate,endDate);
         String title = "历史数据";
-        String[] rowsName = new String[]{"序号", "时间", "读数", "阀门状态", "告警信息"};
+        String[] rowsName = new String[]{"序号", "时间", "表盘读数", "阀门状态", "告警信息"};
         List<Object[]> dataList = newArrayList();
         Object[] objs = null;
         DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");

+ 14 - 13
src/main/resources/mapper/WarningLogMapper.xml

@@ -132,6 +132,7 @@
     swl.*,
     sd.device_no,
     sd.meter_no as water_meter_no,
+    sd.file_no,
     sd.loc_desc,
     sdt1.equipment_type as equipment_type,
     sdt1.model as model,
@@ -170,18 +171,18 @@
 
   <select id="getAreaList" resultType="com.zoniot.ccrc.dto.BuildingSelectInfoDto">
     select
-    b.id,
-    b.name,
-    b.province,
-    b.city,
-    b.region,
-    b.community_id as community,
-    b.longitude,
-    b.latitude,
+    sc.id,
+    sc.name,
+    sc.province,
+    sc.city,
+    sc.region,
+    sc.id as community,
+    sc.longitude,
+    sc.latitude,
     t1.device_count
-    from sc_building b
+    from sc_community sc
     right join (
-    select sd.building_id,count(1) as device_count
+    select sd.community_id,count(1) as device_count
     from sc_warning_log swl
     left join sc_device sd on(sd.id = swl.device_id)
     left join sc_grid_management sgm on(sgm.device_id = sd.id and sgm.status = 1)
@@ -199,9 +200,9 @@
     <if test="feedbackStatus != null"> and swl.feedback_status = #{feedbackStatus}</if>
     <if test="startDate != null"> and swl.date_create <![CDATA[ >= ]]> #{startDate}</if>
     <if test="endDate != null"> and swl.date_create <![CDATA[ <= ]]> #{endDate}</if>
-    GROUP BY sd.building_id
-    ) t1 on (t1.building_id = b.id)
-    where b.status = 1
+    GROUP BY sd.community_id
+    ) t1 on (t1.community_id = sc.id)
+    where sc.status = 1
   </select>
 
 </mapper>