mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-19 01:48:47 +08:00
增加设备排序功能优化
This commit is contained in:
parent
0510a11e0b
commit
f32ab7d933
@ -41,5 +41,10 @@ public class EqAppHomeBo extends BaseEntity{
|
|||||||
* 时区zoneId 用于日志 (传入字典eq_timezone_type 中的remark值 如:UTC+08:00)
|
* 时区zoneId 用于日志 (传入字典eq_timezone_type 中的remark值 如:UTC+08:00)
|
||||||
*/
|
*/
|
||||||
private String zoneId;
|
private String zoneId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 排序
|
||||||
|
*/
|
||||||
|
private Integer orderNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -272,8 +272,10 @@ public class EqEquipmentServiceImpl implements IEqEquipmentService {
|
|||||||
public boolean updateByBos(List<EqAppHomeBo> bos) {
|
public boolean updateByBos(List<EqAppHomeBo> bos) {
|
||||||
List<EqEquipment> eqEquipments = new ArrayList<>();
|
List<EqEquipment> eqEquipments = new ArrayList<>();
|
||||||
for (EqAppHomeBo bo : bos) {
|
for (EqAppHomeBo bo : bos) {
|
||||||
EqEquipment update = MapstructUtils.convert(bo, EqEquipment.class);
|
EqEquipment eqEquipment = new EqEquipment();
|
||||||
eqEquipments.add(update);
|
eqEquipment.setEquipmentId(bo.getEquipmentId());
|
||||||
|
eqEquipment.setOrderNum(bo.getOrderNum());
|
||||||
|
eqEquipments.add(eqEquipment);
|
||||||
}
|
}
|
||||||
return baseMapper.updateBatchById(eqEquipments);
|
return baseMapper.updateBatchById(eqEquipments);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user