mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-10 13:00:02 +08:00
保存蓝牙充电记录
This commit is contained in:
@@ -1489,6 +1489,6 @@ public class OrderService {
|
|||||||
// record.setUpdateBy(dto.getUpdateBy());
|
// record.setUpdateBy(dto.getUpdateBy());
|
||||||
// record.setUpdateTime(new Date());
|
// record.setUpdateTime(new Date());
|
||||||
record.setDelFlag(DelFlagEnum.NORMAL.getValue());
|
record.setDelFlag(DelFlagEnum.NORMAL.getValue());
|
||||||
personalChargingRecordService.insertSelective(record);
|
personalChargingRecordService.insertOrUpdateSelective(record);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -97,7 +97,6 @@ public class BluetoothChargingRecordDTO {
|
|||||||
@JsonProperty(value = "MoneyValley")
|
@JsonProperty(value = "MoneyValley")
|
||||||
private String moneyValley;
|
private String moneyValley;
|
||||||
|
|
||||||
|
|
||||||
// 电表总起值
|
// 电表总起值
|
||||||
@JsonProperty(value = "StartKwh")
|
@JsonProperty(value = "StartKwh")
|
||||||
private String startKwh;
|
private String startKwh;
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import com.jsowell.pile.dto.QueryPersonPileDTO;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
public interface PersonalChargingRecordService{
|
public interface PersonalChargingRecordService{
|
||||||
|
|
||||||
|
|
||||||
int deleteByPrimaryKey(Integer id);
|
int deleteByPrimaryKey(Integer id);
|
||||||
|
|
||||||
int insert(PersonalChargingRecord record);
|
int insert(PersonalChargingRecord record);
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ public class PersonalChargingRecordServiceImpl implements PersonalChargingRecord
|
|||||||
chargingRecord.setTotalUsedElectricity(totalUsedElectricity);
|
chargingRecord.setTotalUsedElectricity(totalUsedElectricity);
|
||||||
chargingRecord.setReason(data.getStopReasonMsg());
|
chargingRecord.setReason(data.getStopReasonMsg());
|
||||||
// 创建或更新
|
// 创建或更新
|
||||||
personalChargingRecordMapper.insertOrUpdateSelective(chargingRecord);
|
this.insertOrUpdateSelective(chargingRecord);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -176,7 +176,7 @@ public class PersonalChargingRecordServiceImpl implements PersonalChargingRecord
|
|||||||
// chargingRecord.setTotalUsedElectricity(totalUsedElectricity);
|
// chargingRecord.setTotalUsedElectricity(totalUsedElectricity);
|
||||||
// chargingRecord.setReason(data.getStopReasonMsg());
|
// chargingRecord.setReason(data.getStopReasonMsg());
|
||||||
// 创建或更新
|
// 创建或更新
|
||||||
personalChargingRecordMapper.insertOrUpdateSelective(chargingRecord);
|
this.insertOrUpdateSelective(chargingRecord);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user