修改[CarServiceImpl类]原始车辆查询报错
parent
5aae85bccc
commit
b723d4129e
|
@ -5,6 +5,7 @@ import com.dragon.car.domain.CarInit;
|
||||||
import com.dragon.car.server.mapper.CarMapper;
|
import com.dragon.car.server.mapper.CarMapper;
|
||||||
import com.dragon.car.server.service.CarService;
|
import com.dragon.car.server.service.CarService;
|
||||||
import com.dragon.common.core.domain.Result;
|
import com.dragon.common.core.domain.Result;
|
||||||
|
import lombok.extern.log4j.Log4j2;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
@ -15,6 +16,7 @@ import java.util.List;
|
||||||
* @description : 车辆业务逻辑层
|
* @description : 车辆业务逻辑层
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
|
@Log4j2
|
||||||
public class CarServiceImpl implements CarService {
|
public class CarServiceImpl implements CarService {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
|
@ -30,8 +32,10 @@ public class CarServiceImpl implements CarService {
|
||||||
public Result<List<CarInit>> carInit () {
|
public Result<List<CarInit>> carInit () {
|
||||||
LambdaQueryWrapper<CarInit> aclqw = new LambdaQueryWrapper<> ();
|
LambdaQueryWrapper<CarInit> aclqw = new LambdaQueryWrapper<> ();
|
||||||
|
|
||||||
carMapper.selectList (aclqw);
|
List<CarInit> carInits = carMapper.selectList (aclqw);
|
||||||
return null;
|
|
||||||
|
log.info ("信息是:{}", carInits.stream ().toArray ());
|
||||||
|
return Result.success (carInits);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue