|
|
@ -975,4 +975,15 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
String vehicleStateValue = baseVehicleUpdateQuery.getVihicleStateValue(); |
|
|
|
return baseMapper.updateByVinNo(stringList, vehicleState, vehicleStateValue); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean<Boolean> selectStateByVinNo(List<String> vinNoList) { |
|
|
|
ResultBean<Boolean> resultBean = ResultBean.fireFail(); |
|
|
|
boolean isTrue = false; |
|
|
|
//查询车架号数组中是否有采购退库状态的车辆,若有则返回true,没有返回false
|
|
|
|
List<Boolean> booleanList = baseMapper.selectStateByVinNo(vinNoList); |
|
|
|
if (booleanList.contains(true)) { |
|
|
|
isTrue = true; |
|
|
|
} |
|
|
|
return resultBean.success().setData(isTrue); |
|
|
|
} |
|
|
|
} |