From 2127c2f17046b365c9ba6a7765d4d961fbc0f9b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=98=8E=E6=A2=81?= <2429105222@qq.com> Date: Mon, 12 Jun 2023 15:16:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E8=B5=84=E7=B1=BB=E5=88=AB=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E4=BB=A3=E7=A0=81=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dao/basic/BasicProductCategoryMapper.java | 9 +++ .../basic/BasicProductCategoryRelMapper.java | 9 +++ .../entity/basic/BasicProductCategory.java | 66 +++++++++++++++++++ .../entity/basic/BasicProductCategoryRel.java | 26 ++++++++ .../basic/BasicProductCategoryRelService.java | 12 ++++ .../BasicProductCategoryServiceImpl.java | 15 +++++ .../impl/BasicProductCategoryService.java | 7 ++ .../basic/BasicProductCategoryMapper.xml | 21 ++++++ .../basic/BasicProductCategoryRelMapper.xml | 15 +++++ 9 files changed, 180 insertions(+) create mode 100644 src/main/java/com/glxp/api/dao/basic/BasicProductCategoryMapper.java create mode 100644 src/main/java/com/glxp/api/dao/basic/BasicProductCategoryRelMapper.java create mode 100644 src/main/java/com/glxp/api/entity/basic/BasicProductCategory.java create mode 100644 src/main/java/com/glxp/api/entity/basic/BasicProductCategoryRel.java create mode 100644 src/main/java/com/glxp/api/service/basic/BasicProductCategoryRelService.java create mode 100644 src/main/java/com/glxp/api/service/basic/BasicProductCategoryServiceImpl.java create mode 100644 src/main/java/com/glxp/api/service/basic/impl/BasicProductCategoryService.java create mode 100644 src/main/resources/mybatis/mapper/basic/BasicProductCategoryMapper.xml create mode 100644 src/main/resources/mybatis/mapper/basic/BasicProductCategoryRelMapper.xml diff --git a/src/main/java/com/glxp/api/dao/basic/BasicProductCategoryMapper.java b/src/main/java/com/glxp/api/dao/basic/BasicProductCategoryMapper.java new file mode 100644 index 000000000..ff2230db6 --- /dev/null +++ b/src/main/java/com/glxp/api/dao/basic/BasicProductCategoryMapper.java @@ -0,0 +1,9 @@ +package com.glxp.api.dao.basic; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.api.entity.basic.BasicProductCategory; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface BasicProductCategoryMapper extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/api/dao/basic/BasicProductCategoryRelMapper.java b/src/main/java/com/glxp/api/dao/basic/BasicProductCategoryRelMapper.java new file mode 100644 index 000000000..92e0103ff --- /dev/null +++ b/src/main/java/com/glxp/api/dao/basic/BasicProductCategoryRelMapper.java @@ -0,0 +1,9 @@ +package com.glxp.api.dao.basic; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.api.entity.basic.BasicProductCategoryRel; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface BasicProductCategoryRelMapper extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/api/entity/basic/BasicProductCategory.java b/src/main/java/com/glxp/api/entity/basic/BasicProductCategory.java new file mode 100644 index 000000000..43d6c85af --- /dev/null +++ b/src/main/java/com/glxp/api/entity/basic/BasicProductCategory.java @@ -0,0 +1,66 @@ +package com.glxp.api.entity.basic; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.util.Date; +import lombok.Data; + +/** + * 物资类别表 + */ +@Data +@TableName(value = "basic_product_category") +public class BasicProductCategory { + @TableId(value = "id", type = IdType.INPUT) + private Long id; + + /** + * 物资类别编码 + */ + @TableField(value = "code") + private String code; + + /** + * 父级编码 + */ + @TableField(value = "parentCode") + private String parentCode; + + /** + * 物资类别名称 + */ + @TableField(value = "`name`") + private String name; + + /** + * 备注 + */ + @TableField(value = "remark") + private String remark; + + /** + * 创建时间 + */ + @TableField(value = "createTime") + private Date createTime; + + /** + * 更新时间 + */ + @TableField(value = "updateTime") + private Date updateTime; + + /** + * 创建人 + */ + @TableField(value = "`createUser`") + private String createUser; + + /** + * 更新人 + */ + @TableField(value = "updateUser") + private String updateUser; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/api/entity/basic/BasicProductCategoryRel.java b/src/main/java/com/glxp/api/entity/basic/BasicProductCategoryRel.java new file mode 100644 index 000000000..a2419405d --- /dev/null +++ b/src/main/java/com/glxp/api/entity/basic/BasicProductCategoryRel.java @@ -0,0 +1,26 @@ +package com.glxp.api.entity.basic; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +@Data +@TableName(value = "basic_product_category_rel") +public class BasicProductCategoryRel { + @TableId(value = "id", type = IdType.INPUT) + private Integer id; + + /** + * 院内编码 + */ + @TableField(value = "code") + private String code; + + /** + * 耗材字典ID主键 + */ + @TableField(value = "relId") + private String relId; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/api/service/basic/BasicProductCategoryRelService.java b/src/main/java/com/glxp/api/service/basic/BasicProductCategoryRelService.java new file mode 100644 index 000000000..4a1c15e4d --- /dev/null +++ b/src/main/java/com/glxp/api/service/basic/BasicProductCategoryRelService.java @@ -0,0 +1,12 @@ +package com.glxp.api.service.basic; + +import org.springframework.stereotype.Service; +import javax.annotation.Resource; +import java.util.List; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.glxp.api.dao.basic.BasicProductCategoryRelMapper; +import com.glxp.api.entity.basic.BasicProductCategoryRel; +@Service +public class BasicProductCategoryRelService extends ServiceImpl { + +} diff --git a/src/main/java/com/glxp/api/service/basic/BasicProductCategoryServiceImpl.java b/src/main/java/com/glxp/api/service/basic/BasicProductCategoryServiceImpl.java new file mode 100644 index 000000000..0ee6a5533 --- /dev/null +++ b/src/main/java/com/glxp/api/service/basic/BasicProductCategoryServiceImpl.java @@ -0,0 +1,15 @@ +package com.glxp.api.service.basic; + +import org.springframework.stereotype.Service; +import javax.annotation.Resource; +import com.glxp.api.dao.basic.BasicProductCategoryMapper; +import com.glxp.api.service.basic.impl.BasicProductCategoryService; + +@Service +public class BasicProductCategoryServiceImpl implements BasicProductCategoryService { + + @Resource + private BasicProductCategoryMapper basicProductCategoryMapper; + +} + diff --git a/src/main/java/com/glxp/api/service/basic/impl/BasicProductCategoryService.java b/src/main/java/com/glxp/api/service/basic/impl/BasicProductCategoryService.java new file mode 100644 index 000000000..9e89eb05f --- /dev/null +++ b/src/main/java/com/glxp/api/service/basic/impl/BasicProductCategoryService.java @@ -0,0 +1,7 @@ +package com.glxp.api.service.basic.impl; + +public interface BasicProductCategoryService { + + +} + diff --git a/src/main/resources/mybatis/mapper/basic/BasicProductCategoryMapper.xml b/src/main/resources/mybatis/mapper/basic/BasicProductCategoryMapper.xml new file mode 100644 index 000000000..730222bb7 --- /dev/null +++ b/src/main/resources/mybatis/mapper/basic/BasicProductCategoryMapper.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + id, code, parentCode, `name`, remark, createTime, updateTime, `createUser`, updateUser + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/basic/BasicProductCategoryRelMapper.xml b/src/main/resources/mybatis/mapper/basic/BasicProductCategoryRelMapper.xml new file mode 100644 index 000000000..e9bd9a124 --- /dev/null +++ b/src/main/resources/mybatis/mapper/basic/BasicProductCategoryRelMapper.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + id, code, relId + + \ No newline at end of file