Ver Fonte

生成DiagClient代码

bmmx há 1 ano atrás
pai
commit
0427b25203

+ 41 - 0
src/main/java/com/om/entity/po/DiagClients.java

@@ -0,0 +1,41 @@
+package com.om.entity.po;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 应用与客户关联表
+ * </p>
+ *
+ * @author bmmx
+ * @since 2024-03-13
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@TableName("diag_clients")
+@ApiModel(value="DiagClients对象", description="应用与客户关联表")
+public class DiagClients implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @ApiModelProperty(value = "app_client_id")
+    @TableId(value = "id", type = IdType.AUTO)
+    private Integer id;
+
+    @ApiModelProperty(value = "App ID")
+    private Integer diagId;
+
+    @ApiModelProperty(value = "客户端编码")
+    private String clientNum;
+
+
+}

+ 16 - 0
src/main/java/com/om/mapper/DiagClientsMapper.java

@@ -0,0 +1,16 @@
+package com.om.mapper;
+
+import com.om.entity.po.DiagClients;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 应用与客户关联表 Mapper 接口
+ * </p>
+ *
+ * @author bmmx
+ * @since 2024-03-13
+ */
+public interface DiagClientsMapper extends BaseMapper<DiagClients> {
+
+}

+ 16 - 0
src/main/java/com/om/service/IDiagClientsService.java

@@ -0,0 +1,16 @@
+package com.om.service;
+
+import com.om.entity.po.DiagClients;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ * 应用与客户关联表 服务类
+ * </p>
+ *
+ * @author bmmx
+ * @since 2024-03-13
+ */
+public interface IDiagClientsService extends IService<DiagClients> {
+
+}

+ 20 - 0
src/main/java/com/om/service/impl/DiagClientsServiceImpl.java

@@ -0,0 +1,20 @@
+package com.om.service.impl;
+
+import com.om.entity.po.DiagClients;
+import com.om.mapper.DiagClientsMapper;
+import com.om.service.IDiagClientsService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 应用与客户关联表 服务实现类
+ * </p>
+ *
+ * @author bmmx
+ * @since 2024-03-13
+ */
+@Service
+public class DiagClientsServiceImpl extends ServiceImpl<DiagClientsMapper, DiagClients> implements IDiagClientsService {
+
+}

+ 5 - 0
src/main/resources/mapper/DiagClientsMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.om.mapper.DiagClientsMapper">
+
+</mapper>