mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-18 17:38:48 +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)
|
||||
*/
|
||||
private String zoneId;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer orderNum;
|
||||
}
|
||||
|
||||
|
||||
@ -272,8 +272,10 @@ public class EqEquipmentServiceImpl implements IEqEquipmentService {
|
||||
public boolean updateByBos(List<EqAppHomeBo> bos) {
|
||||
List<EqEquipment> eqEquipments = new ArrayList<>();
|
||||
for (EqAppHomeBo bo : bos) {
|
||||
EqEquipment update = MapstructUtils.convert(bo, EqEquipment.class);
|
||||
eqEquipments.add(update);
|
||||
EqEquipment eqEquipment = new EqEquipment();
|
||||
eqEquipment.setEquipmentId(bo.getEquipmentId());
|
||||
eqEquipment.setOrderNum(bo.getOrderNum());
|
||||
eqEquipments.add(eqEquipment);
|
||||
}
|
||||
return baseMapper.updateBatchById(eqEquipments);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user