修改[CarServiceImpl类]原始车辆查询报错

master
张海宁 2023-11-19 21:48:15 +08:00
parent 5aae85bccc
commit b723d4129e
1 changed files with 6 additions and 2 deletions

View File

@ -5,6 +5,7 @@ import com.dragon.car.domain.CarInit;
import com.dragon.car.server.mapper.CarMapper;
import com.dragon.car.server.service.CarService;
import com.dragon.common.core.domain.Result;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@ -15,6 +16,7 @@ import java.util.List;
* @description :
*/
@Service
@Log4j2
public class CarServiceImpl implements CarService {
@Resource
@ -30,8 +32,10 @@ public class CarServiceImpl implements CarService {
public Result<List<CarInit>> carInit () {
LambdaQueryWrapper<CarInit> aclqw = new LambdaQueryWrapper<> ();
carMapper.selectList (aclqw);
return null;
List<CarInit> carInits = carMapper.selectList (aclqw);
log.info ("信息是:{}", carInits.stream ().toArray ());
return Result.success (carInits);
}