| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.panzhihua.common.model.dtos.community.ComMngCarAppletDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComMngCarVO; |
| | | import com.panzhihua.service_community.dao.ComMngCarDAO; |
| | | import com.panzhihua.service_community.model.dos.ComMngCarDO; |
| | | import com.panzhihua.service_community.service.ComMngCarService; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @description: |
| | |
| | | } |
| | | return R.fail(); |
| | | } |
| | | |
| | | @Override |
| | | public R userComMngCarList(Long userId) { |
| | | List<ComMngCarVO> comMngCarVOS = new ArrayList<>(); |
| | | List<ComMngCarDO> carDOS = comMngCarDAO.selectList(new QueryWrapper<ComMngCarDO>().lambda().eq(ComMngCarDO::getUserId,userId)); |
| | | carDOS.forEach(carDO->{ |
| | | ComMngCarVO carVO = new ComMngCarVO(); |
| | | BeanUtils.copyProperties(carDO,carVO); |
| | | comMngCarVOS.add(carVO); |
| | | }); |
| | | return R.ok(comMngCarVOS); |
| | | } |
| | | } |