diff --git a/aucma-base/src/main/resources/mapper/base/RecordDnbInstantMapper.xml b/aucma-base/src/main/resources/mapper/base/RecordDnbInstantMapper.xml
index ebf1256..befb275 100644
--- a/aucma-base/src/main/resources/mapper/base/RecordDnbInstantMapper.xml
+++ b/aucma-base/src/main/resources/mapper/base/RecordDnbInstantMapper.xml
@@ -81,6 +81,7 @@
and rdi.updated_time = #{updatedTime}
and rdi.factory_code = #{factoryCode}
+ order by rdi.collect_time desc
+
+
+
diff --git a/aucma-report/src/main/resources/mapper/report/ReportPointDnbMapper.xml b/aucma-report/src/main/resources/mapper/report/ReportPointDnbMapper.xml
index 4e9d2a7..95cea5b 100644
--- a/aucma-report/src/main/resources/mapper/report/ReportPointDnbMapper.xml
+++ b/aucma-report/src/main/resources/mapper/report/ReportPointDnbMapper.xml
@@ -5,46 +5,61 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
- select obj_id, monitor_code, instrument_value, expend, record_time, begin_time, end_time, is_flag, created_by, created_time, updated_by, updated_time from report_point_dnb
+ select rpd.obj_id,
+ rpd.monitor_code,
+ bm.MONITOR_NAME,
+ rpd.instrument_value,
+ rpd.expend,
+ rpd.record_time,
+ rpd.begin_time,
+ rpd.end_time,
+ rpd.is_flag,
+ rpd.created_by,
+ rpd.created_time,
+ rpd.updated_by,
+ rpd.updated_time
+ from report_point_dnb rpd
+ left join BASE_MONITORINFO bm on bm.MONITOR_CODE = rpd.MONITOR_CODE
@@ -53,55 +68,57 @@
insert into report_point_dnb
- obj_id,
- monitor_code,
- instrument_value,
- expend,
- record_time,
- begin_time,
- end_time,
- is_flag,
- created_by,
- created_time,
- updated_by,
- updated_time,
+ obj_id,
+ monitor_code,
+ instrument_value,
+ expend,
+ record_time,
+ begin_time,
+ end_time,
+ is_flag,
+ created_by,
+ created_time,
+ updated_by,
+ updated_time,
- #{objId},
- #{monitorCode},
- #{instrumentValue},
- #{expend},
- #{recordTime},
- #{beginTime},
- #{endTime},
- #{isFlag},
- #{createdBy},
- #{createdTime},
- #{updatedBy},
- #{updatedTime},
+ #{objId},
+ #{monitorCode},
+ #{instrumentValue},
+ #{expend},
+ #{recordTime},
+ #{beginTime},
+ #{endTime},
+ #{isFlag},
+ #{createdBy},
+ #{createdTime},
+ #{updatedBy},
+ #{updatedTime},
update report_point_dnb
- monitor_code = #{monitorCode},
- instrument_value = #{instrumentValue},
- expend = #{expend},
- record_time = #{recordTime},
- begin_time = #{beginTime},
- end_time = #{endTime},
- is_flag = #{isFlag},
- created_by = #{createdBy},
- created_time = #{createdTime},
- updated_by = #{updatedBy},
- updated_time = #{updatedTime},
+ monitor_code = #{monitorCode},
+ instrument_value = #{instrumentValue},
+ expend = #{expend},
+ record_time = #{recordTime},
+ begin_time = #{beginTime},
+ end_time = #{endTime},
+ is_flag = #{isFlag},
+ created_by = #{createdBy},
+ created_time = #{createdTime},
+ updated_by = #{updatedBy},
+ updated_time = #{updatedTime},
where obj_id = #{objId}
- delete from report_point_dnb where obj_id = #{objId}
+ delete
+ from report_point_dnb
+ where obj_id = #{objId}
diff --git a/aucma-report/src/main/resources/mapper/report/ReportQualityInspectionMapper.xml b/aucma-report/src/main/resources/mapper/report/ReportQualityInspectionMapper.xml
index fd4059b..f916d33 100644
--- a/aucma-report/src/main/resources/mapper/report/ReportQualityInspectionMapper.xml
+++ b/aucma-report/src/main/resources/mapper/report/ReportQualityInspectionMapper.xml
@@ -143,7 +143,6 @@
is_flag,
updated_by,
updated_time,
- updated_time,
STATION_CODE,
SUBMINT_QUALTY_ID,