diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CustomerItemController.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CustomerItemController.java new file mode 100644 index 00000000..10956cb5 --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CustomerItemController.java @@ -0,0 +1,20 @@ +package cn.iocoder.yudao.module.custom.controller.admin; + +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * 客户管理扩展信息(每个租户的下的客户信息) + * + * @author : http://www.chiner.pro + * @date : 2024-7-31 + */ +@RestController +@RequestMapping("/base/customItem") +@Tag(name = "管理后台 - BASE 企业管理") +@Validated +public class CustomerItemController { + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/entity/CustomerCar.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/entity/CustomerCar.java new file mode 100644 index 00000000..6e2b47ed --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/entity/CustomerCar.java @@ -0,0 +1,43 @@ +package cn.iocoder.yudao.module.custom.entity; + +import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO; +import lombok.*; +import java.util.*; +import java.time.LocalDateTime; +import java.time.LocalDateTime; +import com.baomidou.mybatisplus.annotation.*; +import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; + +/** + * 客户车辆关联 DO + * + * @author 后台管理员 + */ +@TableName("base_customer_car") +@Data +@EqualsAndHashCode(callSuper = true) +@ToString(callSuper = true) +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class CustomerCar extends TenantBaseDO { + + /** + * 主键标识 + */ + @TableId(type = IdType.INPUT) + private String id; + /** + * 客户信息主表id + */ + private String cusId; + /** + * 车辆表id + */ + private String carId; + /** + * 是否车主 + */ + private String isOwner; + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/entity/CustomerItem.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/entity/CustomerItem.java new file mode 100644 index 00000000..026a8724 --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/entity/CustomerItem.java @@ -0,0 +1,59 @@ +package cn.iocoder.yudao.module.custom.entity; + +import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.*; + +import java.util.Date; + +/** + * 客户信息扩展 DO + * + * @author pqz + */ +@TableName("base_customer_item") +@Data +@EqualsAndHashCode(callSuper = true) +@ToString(callSuper = true) +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class CustomerItem extends TenantBaseDO { + + /** + * 主键标识 + */ + @TableId(type = IdType.INPUT) + private String id; + /** + * 客户信息主表id + */ + private String cusId; + /** + * 系统标识 + */ + private String systemCode; + /** + * 会员等级;不同的业务表会员等级是独立的 + */ + private String userLevel; + /** + * 服务内容 + */ + private String serContent; + /** + * 服务开始时间 + */ + private Date serTimeStart; + /** + * 服务结束时间 + */ + private Date serTimeEnd; + /** + * 其他字段 + */ + private String bigJson; + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerCarMapper.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerCarMapper.java new file mode 100644 index 00000000..5cd2e5cb --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerCarMapper.java @@ -0,0 +1,16 @@ +package cn.iocoder.yudao.module.custom.mapper; + +import cn.iocoder.yudao.module.custom.entity.CustomerCar; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Mapper; + +/** + * 客户车辆管理关联Mapper + * + * @author pqz + */ +@Mapper +public interface CustomerCarMapper extends BaseMapper { + + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerItemMapper.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerItemMapper.java new file mode 100644 index 00000000..e8b506ef --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerItemMapper.java @@ -0,0 +1,16 @@ +package cn.iocoder.yudao.module.custom.mapper; + +import cn.iocoder.yudao.module.custom.entity.CustomerItem; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Mapper; + +/** + * 客户管理扩展Mapper + * + * @author pqz + */ +@Mapper +public interface CustomerItemMapper extends BaseMapper { + + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerCarService.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerCarService.java new file mode 100644 index 00000000..eba9bd9e --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerCarService.java @@ -0,0 +1,14 @@ +package cn.iocoder.yudao.module.custom.service; + +import cn.iocoder.yudao.module.custom.entity.CustomerCar; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * 客户车辆管理关联Service 接口 + * + * @author pqz + */ +public interface CustomerCarService extends IService { + + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerItemService.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerItemService.java new file mode 100644 index 00000000..eb068cab --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerItemService.java @@ -0,0 +1,14 @@ +package cn.iocoder.yudao.module.custom.service; + +import cn.iocoder.yudao.module.custom.entity.CustomerItem; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * 客户管理 Service 接口 + * + * @author pqz + */ +public interface CustomerItemService extends IService { + + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerCarServiceImpl.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerCarServiceImpl.java new file mode 100644 index 00000000..8b5c2247 --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerCarServiceImpl.java @@ -0,0 +1,20 @@ +package cn.iocoder.yudao.module.custom.service.impl; + +import cn.iocoder.yudao.module.custom.entity.CustomerCar; +import cn.iocoder.yudao.module.custom.mapper.CustomerCarMapper; +import cn.iocoder.yudao.module.custom.service.CustomerCarService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; +import org.springframework.validation.annotation.Validated; + +/** + * 客户车辆管理关联 + * + * @author pqz + */ +@Service +@Validated +public class CustomerCarServiceImpl extends ServiceImpl implements CustomerCarService { + + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerItemServiceImpl.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerItemServiceImpl.java new file mode 100644 index 00000000..11c370fb --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerItemServiceImpl.java @@ -0,0 +1,20 @@ +package cn.iocoder.yudao.module.custom.service.impl; + +import cn.iocoder.yudao.module.custom.entity.CustomerItem; +import cn.iocoder.yudao.module.custom.mapper.CustomerItemMapper; +import cn.iocoder.yudao.module.custom.service.CustomerItemService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; +import org.springframework.validation.annotation.Validated; + +/** + * 客户管理 Service 实现类 + * + * @author pqz + */ +@Service +@Validated +public class CustomerItemServiceImpl extends ServiceImpl implements CustomerItemService { + + +} \ No newline at end of file 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 273acff4..daee8e39 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,11 +1,11 @@ package cn.iocoder.yudao.module.custom.vo; +import cn.iocoder.yudao.module.custom.entity.CustomerMain; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; @Schema(description = "管理后台 - 客户管理新增/修改 Request VO") @Data -public class CustomerMainSaveReqVO { - +public class CustomerMainSaveReqVO extends CustomerMain { } \ No newline at end of file diff --git a/dl-module-base/src/main/resources/mapper/custom/CustomerCarMapper.xml b/dl-module-base/src/main/resources/mapper/custom/CustomerCarMapper.xml new file mode 100644 index 00000000..9351a626 --- /dev/null +++ b/dl-module-base/src/main/resources/mapper/custom/CustomerCarMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/dl-module-base/src/main/resources/mapper/custom/CustomerItemMapper.xml b/dl-module-base/src/main/resources/mapper/custom/CustomerItemMapper.xml new file mode 100644 index 00000000..38116db4 --- /dev/null +++ b/dl-module-base/src/main/resources/mapper/custom/CustomerItemMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file