中控入库
This commit is contained in:
parent
95a513c684
commit
906ddebca2
@ -61,6 +61,11 @@ public class EbikeEcuInfo implements Serializable {
|
||||
*/
|
||||
private Boolean isDeleted;
|
||||
|
||||
/**
|
||||
* 是否绑定电池(中控电池一体)
|
||||
*/
|
||||
private Boolean bindBattery;
|
||||
|
||||
/**
|
||||
* 中控SN码
|
||||
*/
|
||||
|
||||
@ -50,5 +50,10 @@ public class EbikeEcuInfoBatchVo implements Serializable {
|
||||
@NotNull(message = "中控品牌不能为空")
|
||||
private Integer ecuBrand;
|
||||
|
||||
/**
|
||||
* 是否绑定电池(中控电池一体)
|
||||
*/
|
||||
@NotNull(message = "是否绑定电池不能为空")
|
||||
private Boolean bindBattery;
|
||||
|
||||
}
|
||||
|
||||
@ -54,4 +54,9 @@ public class EbikeEcuInfoVo implements Serializable {
|
||||
private Integer ecuBrand;
|
||||
|
||||
|
||||
/**
|
||||
* 是否绑定电池(中控电池一体)
|
||||
*/
|
||||
@NotNull(message = "是否绑定电池不能为空")
|
||||
private Boolean bindBattery;
|
||||
}
|
||||
|
||||
@ -53,6 +53,7 @@ public class EbikeEcuInfoServiceImpl extends ServiceImpl<EbikeEcuInfoMapper, Ebi
|
||||
.ecuSn(ebikeEcuInfo.getEcuSn())
|
||||
.ecuBrand(ebikeEcuInfo.getEcuBrand())
|
||||
.createdBy(StpUtil.getLoginIdAsLong())
|
||||
.bindBattery(ebikeEcuInfo.getBindBattery())
|
||||
.build();
|
||||
QueryWrapper queryWrapper = QueryWrapper.create()
|
||||
.where(EBIKE_ECU_INFO.ECU_SN.eq(ebikeEcuInfo.getEcuSn()))
|
||||
@ -84,6 +85,7 @@ public class EbikeEcuInfoServiceImpl extends ServiceImpl<EbikeEcuInfoMapper, Ebi
|
||||
.ecuSn(ecuSns.get(i))
|
||||
.ecuBrand(ecuBrand)
|
||||
.createdBy(StpUtil.getLoginIdAsLong())
|
||||
.bindBattery(batchVo.getBindBattery())
|
||||
.build();
|
||||
list.add(ebikeEcuInfoEntity);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user