mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
保存蓝牙充电记录
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,7 +97,6 @@ public class BluetoothChargingRecordDTO {
|
||||
@JsonProperty(value = "MoneyValley")
|
||||
private String moneyValley;
|
||||
|
||||
|
||||
// 电表总起值
|
||||
@JsonProperty(value = "StartKwh")
|
||||
private String startKwh;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user