From 7e16e197acd0d8cc60c3dc7caebaf4a11ae61128 Mon Sep 17 00:00:00 2001 From: PQZ Date: Thu, 1 Aug 2024 18:03:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/CustomerMainController.java | 4 +- .../custom/mapper/CustomerMainMapper.java | 2 - .../service/impl/CustomerMainServiceImpl.java | 5 +- .../custom/vo/CustomerMainSaveReqVO.java | 56 +------------------ 4 files changed, 6 insertions(+), 61 deletions(-) diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CustomerMainController.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CustomerMainController.java index 36151aa8..42875e5a 100644 --- a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CustomerMainController.java +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CustomerMainController.java @@ -10,11 +10,11 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.tags.Tag; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; +import javax.annotation.Resource; import javax.validation.Valid; import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; @@ -30,7 +30,7 @@ import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; @Tag(name = "管理后台 - BASE 企业管理") @Validated public class CustomerMainController { - @Autowired + @Resource private CustomerMainService customerMainService; /** diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerMainMapper.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerMainMapper.java index 32730c7b..2e852b6c 100644 --- a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerMainMapper.java +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerMainMapper.java @@ -1,7 +1,5 @@ package cn.iocoder.yudao.module.custom.mapper; -import cn.iocoder.yudao.module.company.entity.DlCompany; -import cn.iocoder.yudao.module.company.vo.CompanyReqVO; import cn.iocoder.yudao.module.custom.entity.CustomerMain; import cn.iocoder.yudao.module.custom.vo.CustomerMainPageReqVO; import cn.iocoder.yudao.module.custom.vo.CustomerMainRespVO; diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerMainServiceImpl.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerMainServiceImpl.java index 5adda5e2..6e372e58 100644 --- a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerMainServiceImpl.java +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerMainServiceImpl.java @@ -10,10 +10,11 @@ import cn.iocoder.yudao.module.custom.vo.CustomerMainSaveReqVO; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.validation.annotation.Validated; +import javax.annotation.Resource; + /** * 客户管理 Service 实现类 * @@ -23,7 +24,7 @@ import org.springframework.validation.annotation.Validated; @Validated public class CustomerMainServiceImpl extends ServiceImpl implements CustomerMainService { - @Autowired + @Resource private CustomerMainMapper customerMainMapper; /** diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerMainSaveReqVO.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerMainSaveReqVO.java index de58d5bd..273acff4 100644 --- a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerMainSaveReqVO.java +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerMainSaveReqVO.java @@ -1,65 +1,11 @@ package cn.iocoder.yudao.module.custom.vo; import io.swagger.v3.oas.annotations.media.Schema; -import lombok.*; -import java.util.*; -import javax.validation.constraints.*; -import org.springframework.format.annotation.DateTimeFormat; -import java.time.LocalDateTime; +import lombok.Data; @Schema(description = "管理后台 - 客户管理新增/修改 Request VO") @Data public class CustomerMainSaveReqVO { - @Schema(description = "uuid", requiredMode = Schema.RequiredMode.REQUIRED, example = "29951") - private String id; - - @Schema(description = "sys_user表id", example = "17679") - private String userId; - - @Schema(description = "用户类型") - private String typeCode; - - @Schema(description = "所属企业code(部门表code)") - private String deptCode; - - @Schema(description = "客户名称(政企客户填企业名称)", example = "赵六") - private String cusName; - - @Schema(description = "联系方式") - private String phoneNumber; - - @Schema(description = "生日") - private LocalDateTime birthday; - - @Schema(description = "住址") - private String address; - - @Schema(description = "性别") - private String sex; - - @Schema(description = "身份证号") - private String idCard; - - @Schema(description = "身份证照片") - private String idCardImage; - - @Schema(description = "客户初始来源") - private String dataFrom; - - @Schema(description = "最近业务办理时间") - private LocalDateTime nearDoTime; - - @Schema(description = "最近办理业务(数据字典业务标识)") - private String nearDoContent; - - @Schema(description = "邀请者user_id") - private String inviter; - - @Schema(description = "邀请者类型", example = "2") - private String inviterType; - - @Schema(description = "客户状态", example = "1") - private String status; } \ No newline at end of file