保存蓝牙充电记录

This commit is contained in:
Guoqs
2024-11-22 11:06:07 +08:00
parent 11056a6a7f
commit 164f9d2fa1
4 changed files with 3 additions and 5 deletions

View File

@@ -1489,6 +1489,6 @@ public class OrderService {
// record.setUpdateBy(dto.getUpdateBy());
// record.setUpdateTime(new Date());
record.setDelFlag(DelFlagEnum.NORMAL.getValue());
personalChargingRecordService.insertSelective(record);
personalChargingRecordService.insertOrUpdateSelective(record);
}
}

View File

@@ -97,7 +97,6 @@ public class BluetoothChargingRecordDTO {
@JsonProperty(value = "MoneyValley")
private String moneyValley;
// 电表总起值
@JsonProperty(value = "StartKwh")
private String startKwh;

View File

@@ -8,7 +8,6 @@ import com.jsowell.pile.dto.QueryPersonPileDTO;
import java.util.List;
public interface PersonalChargingRecordService{
int deleteByPrimaryKey(Integer id);
int insert(PersonalChargingRecord record);

View File

@@ -132,7 +132,7 @@ public class PersonalChargingRecordServiceImpl implements PersonalChargingRecord
chargingRecord.setTotalUsedElectricity(totalUsedElectricity);
chargingRecord.setReason(data.getStopReasonMsg());
// 创建或更新
personalChargingRecordMapper.insertOrUpdateSelective(chargingRecord);
this.insertOrUpdateSelective(chargingRecord);
}
/**
@@ -176,7 +176,7 @@ public class PersonalChargingRecordServiceImpl implements PersonalChargingRecord
// chargingRecord.setTotalUsedElectricity(totalUsedElectricity);
// chargingRecord.setReason(data.getStopReasonMsg());
// 创建或更新
personalChargingRecordMapper.insertOrUpdateSelective(chargingRecord);
this.insertOrUpdateSelective(chargingRecord);
}
@Override