From ce257931b9b536a6c530cf17dceb1e9fd9caa042 Mon Sep 17 00:00:00 2001
From: Null <281575458@qq.com>
Date: 星期二, 16 三月 2021 17:53:09 +0800
Subject: [PATCH] 车辆登记小程序端接口

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngCarServiceImpl.java |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngCarServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngCarServiceImpl.java
index d0cd071..481784d 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngCarServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngCarServiceImpl.java
@@ -4,14 +4,18 @@
 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:
@@ -39,4 +43,16 @@
         }
         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);
+    }
 }

--
Gitblit v1.7.1