From 8e2586a0e5f2412c1bf8bc6f7a31b184ca9278ce Mon Sep 17 00:00:00 2001 From: PQZ Date: Wed, 14 Aug 2024 16:25:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E8=BE=86=E7=AE=A1=E7=90=86=E7=9B=B8?= =?UTF-8?q?=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/admin/CarMainController.java | 23 ++++++++++-- .../module/custom/mapper/CarMainMapper.java | 12 ++++++- .../module/custom/service/CarMainService.java | 9 +++++ .../service/impl/CarMainServiceImpl.java | 14 ++++++++ .../yudao/module/custom/vo/CarMainReqVO.java | 4 +++ .../yudao/module/custom/vo/CarMainRespVO.java | 15 +++++--- .../resources/mapper/custom/CarMainMapper.xml | 35 +++++++++++++++++++ 7 files changed, 103 insertions(+), 9 deletions(-) diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CarMainController.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CarMainController.java index d6ce57a8..3a17ac25 100644 --- a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CarMainController.java +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CarMainController.java @@ -120,14 +120,30 @@ public class CarMainController { return success(pageResult); } + /** + * 保险/年检/保养提醒列表 + * + * @param pageReqVO CarMainReqVO(入参) + * @return cn.iocoder.yudao.framework.common.pojo.CommonResult> + * @author PQZ + * @date 11:01 2024/8/14 + **/ + @GetMapping("/remindCarMainPage") + @Operation(summary = "获得车辆信息分页") + public CommonResult> remindCarMainPage(CarMainReqVO pageReqVO) { + IPage pageResult = carMainService.remindCarMainPage(pageReqVO); + return success(pageResult); + } + /** * 测算车辆下一次保养/检测/保险时间 - * @author PQZ - * @date 11:48 2024/8/13 + * * @param pageReqVO CarMainReqVO * @return cn.iocoder.yudao.framework.common.pojo.CommonResult - **/ + * @author PQZ + * @date 11:48 2024/8/13 + **/ @PostMapping("/compute") @Operation(summary = "测算车辆下一次保养/检测/保险时间") public CommonResult compute(@RequestBody CarMainReqVO pageReqVO) { @@ -135,6 +151,7 @@ public class CarMainController { return success(result); } + /** * 导出车辆信息 * diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CarMainMapper.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CarMainMapper.java index f4223db8..088c12ff 100644 --- a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CarMainMapper.java +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CarMainMapper.java @@ -29,6 +29,17 @@ public interface CarMainMapper extends BaseMapper { */ IPage findPage(Page page, @Param("dto") CarMainReqVO pageReqVO); + /** + * 保险/年检/保养提醒列表 + * + * @param page Page + * @param pageReqVO CarMainReqVO + * @return com.baomidou.mybatisplus.core.metadata.IPage + * @author PQZ + * @date 9:12 2024/8/14 + **/ + IPage remindCarMainPage(Page page, @Param("entity") CarMainReqVO pageReqVO); + /** * 获得车辆信息分页 * @@ -38,7 +49,6 @@ public interface CarMainMapper extends BaseMapper { CarMainRespVO findOne(@Param("id") String id); - /** * 车牌号,车架号,发动机号码 查重 * diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CarMainService.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CarMainService.java index bfed4318..42ade09f 100644 --- a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CarMainService.java +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CarMainService.java @@ -60,6 +60,15 @@ public interface CarMainService extends IService { */ IPage getCarMainPage(CarMainReqVO pageReqVO); + /** + * 保险/年检/保养提醒列表 + * @author PQZ + * @date 9:08 2024/8/14 + * @param pageReqVO 查询条件 + * @return com.baomidou.mybatisplus.core.metadata.IPage + **/ + IPage remindCarMainPage(CarMainReqVO pageReqVO); + /** * 绑定车辆信息 diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CarMainServiceImpl.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CarMainServiceImpl.java index e1c95b42..765acafe 100644 --- a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CarMainServiceImpl.java +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CarMainServiceImpl.java @@ -190,6 +190,20 @@ public class CarMainServiceImpl extends ServiceImpl impl return baseMapper.findPage(page, pageReqVO); } + /** + * 保险/年检/保养提醒列表 + * + * @param pageReqVO 查询条件 + * @return com.baomidou.mybatisplus.core.metadata.IPage + * @author PQZ + * @date 9:08 2024/8/14 + **/ + @Override + public IPage remindCarMainPage(CarMainReqVO pageReqVO) { + Page page = new Page<>(pageReqVO.getPageNo(), pageReqVO.getPageSize()); + return baseMapper.remindCarMainPage(page,pageReqVO); + } + /** * 绑定客户信息 * diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CarMainReqVO.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CarMainReqVO.java index cc30d480..96bfd65e 100644 --- a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CarMainReqVO.java +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CarMainReqVO.java @@ -41,4 +41,8 @@ public class CarMainReqVO extends CarMain { List labelList; /**车辆品牌型号数组*/ List brandAndModel; + /**客户名称*/ + String cusName; + /**查询标识(01:年检临期;02:保养临期;03:保险临期)*/ + String selectSign; } \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CarMainRespVO.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CarMainRespVO.java index 6f9e3ff0..535a4951 100644 --- a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CarMainRespVO.java +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CarMainRespVO.java @@ -17,9 +17,6 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ @ExcelIgnoreUnannotated public class CarMainRespVO extends CarMain { - - - /**是否车主(0否1是)*/ @Schema(description = "是否车主(0否1是)") private String isOwner; @@ -33,8 +30,16 @@ public class CarMainRespVO extends CarMain { String brandStr; /**型号字符*/ String modelStr; - - + /**客户名称*/ + String cusName; + /**电话号码*/ + String phoneNumber; + /**年检剩余*/ + String njCont; + /**保险剩余*/ + String byCont; + /**保险剩余*/ + String bxCont; /**车辆品牌型号数组*/ List brandAndModel; diff --git a/dl-module-base/src/main/resources/mapper/custom/CarMainMapper.xml b/dl-module-base/src/main/resources/mapper/custom/CarMainMapper.xml index 708155b5..b70414c2 100644 --- a/dl-module-base/src/main/resources/mapper/custom/CarMainMapper.xml +++ b/dl-module-base/src/main/resources/mapper/custom/CarMainMapper.xml @@ -109,5 +109,40 @@ + \ No newline at end of file