Browse Source

同步抄表记录BUG

lin 3 years ago
parent
commit
a5fc4c7bf2

+ 1 - 1
zoniot-rmcp/zoniot-xxljob-client/src/main/java/com/zcxk/xxljob/service/impl/MeterReadRecordServiceImpl.java

@@ -209,7 +209,7 @@ public class MeterReadRecordServiceImpl implements MeterReadRecordService {
         if(!list.isEmpty()){
             for (MeterReadRecordDetailDto detail : list) {
                 com.zcxk.rmcp.core.entity.MeterReadRecord readRecord = new com.zcxk.rmcp.core.entity.MeterReadRecord();
-                readRecord.setId(detail.getId());
+                readRecord.setId(idWorker.nextId());
                 readRecord.setReadDate(detail.getData().getReadDate());
                 readRecord.setTenantId(detail.getTenantId());
                 readRecord.setCategoryId(detail.getCategoryId());