Browse Source

mongo存储bug修复 PengDi@2021/1/21

pengdi@zoniot.com 4 years ago
parent
commit
6d349ee752

+ 1 - 1
meter-reading-common/src/main/java/com/huaxu/zoniot/service/impl/MeterReadRecordServiceImpl.java

@@ -409,7 +409,7 @@ public class MeterReadRecordServiceImpl implements MeterReadRecordService {
                     mongoRecord.setDateUpdate(new Date());
                     mongoRecord.setReadTime(sendTime);
                     mongoRecord.setUpdateBy(Constants.SYS_FLAG);
-                    meterReadRecordRepository.save(record);
+                    meterReadRecordRepository.save(mongoRecord);
                 }
             }catch (Exception e){
                 e.printStackTrace();