修改获取车辆部件类型表信息获取失败

This commit is contained in:
小朱 2025-05-23 16:35:33 +08:00
parent 65d550ff2b
commit 5486d9ffc5
2 changed files with 2 additions and 4 deletions

View File

@ -1478,7 +1478,7 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl<EbikeBikeInfoMapper, E
if(i >0){ //维修中
currentStatus=EbikeStatus.REPAIRING;
} else if(i==0 && i1>0){ //待维修
currentStatus=EbikeStatus.WAITING_FOR_SHIPMENT;
currentStatus=EbikeStatus.WAITING_FOR_REPAIR;
}else if(i==0 && i1==0){ //待出库
currentStatus=EbikeStatus.WAITING_FOR_SHIPMENT;
}

View File

@ -128,9 +128,7 @@ public class EbikeComponentServiceImpl implements EbikeComponentService {
* @return
*/
private EbikeComponentTypeInfo getComponentTypeInfo(String componentType) {
QueryWrapper queryWrapper = new QueryWrapper();
queryWrapper.eq("id", componentType);
return ebikeComponentTypeInfoMapper.selectOneById(queryWrapper);
return ebikeComponentTypeInfoMapper.selectOneById(componentType);
}
private EbikeComponentEnterRecords buildEnterRecord(ReqComponentEnterRecordDto params, EbikeComponentTypeInfo ebikeComponentTypeInfo,Integer stockInType,Long orgId) {