|
@@ -185,10 +185,13 @@ public class VirtualParkingSlotServiceImpl extends ServiceImpl<VirtualParkingSlo
|
|
|
|
|
|
public void updateSlotType(List<VirtualParkingSlot> list,Contract contract){
|
|
|
for (int i = 0; i < list.size(); i++) {
|
|
|
- if(i < contract.getSmallParkingLotNum()){
|
|
|
- list.get(i).setSlotType("small");
|
|
|
- }else{
|
|
|
- list.get(i).setSlotType("large");
|
|
|
+ // 更新非停用得
|
|
|
+ if(!StrUtil.equals(list.get(0).getStatus(),"2")){
|
|
|
+ if(i < contract.getSmallParkingLotNum()){
|
|
|
+ list.get(i).setSlotType("small");
|
|
|
+ }else{
|
|
|
+ list.get(i).setSlotType("large");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|