|
|
@ -187,17 +187,22 @@ public class BusVehicleApplyDetailService extends MybatisBaseService<BusVehicleA |
|
|
|
int count = 0; |
|
|
|
int plat = 0; |
|
|
|
int locking = 0; |
|
|
|
for (int i = 0; i < orderListVoList.size(); i++) { |
|
|
|
String platformNo = orderListVoList.get(i).getPlatformNo(); |
|
|
|
String lockingNum = orderListVoList.get(i).getLockingNum(); |
|
|
|
if (StringUtils.isNotBlank(platformNo)) { |
|
|
|
plat = Integer.parseInt(platformNo); |
|
|
|
if (StringUtils.isNotBlank(lockingNum)) { |
|
|
|
locking = Integer.parseInt(lockingNum); |
|
|
|
if(orderListVoList.size() != 0){ |
|
|
|
for (int i = 0; i < orderListVoList.size(); i++) { |
|
|
|
if(orderListVoList.get(i) != null){ |
|
|
|
String platformNo = orderListVoList.get(i).getPlatformNo(); |
|
|
|
String lockingNum = orderListVoList.get(i).getLockingNum(); |
|
|
|
if (StringUtils.isNotBlank(platformNo)) { |
|
|
|
plat = Integer.parseInt(platformNo); |
|
|
|
if (StringUtils.isNotBlank(lockingNum)) { |
|
|
|
locking = Integer.parseInt(lockingNum); |
|
|
|
} |
|
|
|
} |
|
|
|
count = count+(plat-locking); |
|
|
|
} |
|
|
|
} |
|
|
|
count = count+(plat-locking); |
|
|
|
} |
|
|
|
|
|
|
|
return rb.success().setData(count); |
|
|
|
} |
|
|
|
} |