zhanghang 4 vuotta sitten
vanhempi
commit
571d5d7bd1

+ 193 - 0
src/main/java/com/diagbot/entity/MedManagementInfo.java

@@ -0,0 +1,193 @@
+package com.diagbot.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+
+/**
+ * <p>
+ * 病案管理人员表
+ * </p>
+ *
+ * @author zhanghang
+ * @since 2021-03-25
+ */
+public class MedManagementInfo implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 医院ID
+     */
+    private Long hospitalId;
+
+    /**
+     * 0:门诊  1:住院  2:住院+门诊
+     */
+    private Boolean department;
+
+    /**
+     * 职务id
+     */
+    private Integer positionId;
+
+    /**
+     * 0:门诊病案管理人员  1:住院病案管理人员 2:病案编码人员
+     */
+    private Boolean position;
+
+    /**
+     * 人员姓名
+     */
+    private String name;
+
+    /**
+     * 人员工作开始时间
+     */
+    private LocalDateTime hireDate;
+
+    /**
+     * 工作离职时间
+     */
+    private LocalDateTime resignationTime;
+
+    /**
+     * 是否删除,N:未删除,Y:删除
+     */
+    private String isDeleted;
+
+    /**
+     * 记录创建时间
+     */
+    private LocalDateTime gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private LocalDateTime gmtModified;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+    private String creator;
+
+    /**
+     * 修改人,如果为0则表示纪录未修改
+     */
+    private String modifier;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+    public Long getHospitalId() {
+        return hospitalId;
+    }
+
+    public void setHospitalId(Long hospitalId) {
+        this.hospitalId = hospitalId;
+    }
+    public Boolean getDepartment() {
+        return department;
+    }
+
+    public void setDepartment(Boolean department) {
+        this.department = department;
+    }
+    public Integer getPositionId() {
+        return positionId;
+    }
+
+    public void setPositionId(Integer positionId) {
+        this.positionId = positionId;
+    }
+    public Boolean getPosition() {
+        return position;
+    }
+
+    public void setPosition(Boolean position) {
+        this.position = position;
+    }
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+    public LocalDateTime getHireDate() {
+        return hireDate;
+    }
+
+    public void setHireDate(LocalDateTime hireDate) {
+        this.hireDate = hireDate;
+    }
+    public LocalDateTime getResignationTime() {
+        return resignationTime;
+    }
+
+    public void setResignationTime(LocalDateTime resignationTime) {
+        this.resignationTime = resignationTime;
+    }
+    public String getIsDeleted() {
+        return isDeleted;
+    }
+
+    public void setIsDeleted(String isDeleted) {
+        this.isDeleted = isDeleted;
+    }
+    public LocalDateTime getGmtCreate() {
+        return gmtCreate;
+    }
+
+    public void setGmtCreate(LocalDateTime gmtCreate) {
+        this.gmtCreate = gmtCreate;
+    }
+    public LocalDateTime getGmtModified() {
+        return gmtModified;
+    }
+
+    public void setGmtModified(LocalDateTime gmtModified) {
+        this.gmtModified = gmtModified;
+    }
+    public String getCreator() {
+        return creator;
+    }
+
+    public void setCreator(String creator) {
+        this.creator = creator;
+    }
+    public String getModifier() {
+        return modifier;
+    }
+
+    public void setModifier(String modifier) {
+        this.modifier = modifier;
+    }
+
+    @Override
+    public String toString() {
+        return "MedManagementInfo{" +
+            "id=" + id +
+            ", hospitalId=" + hospitalId +
+            ", department=" + department +
+            ", positionId=" + positionId +
+            ", position=" + position +
+            ", name=" + name +
+            ", hireDate=" + hireDate +
+            ", resignationTime=" + resignationTime +
+            ", isDeleted=" + isDeleted +
+            ", gmtCreate=" + gmtCreate +
+            ", gmtModified=" + gmtModified +
+            ", creator=" + creator +
+            ", modifier=" + modifier +
+        "}";
+    }
+}

+ 16 - 0
src/main/java/com/diagbot/mapper/MedManagementInfoMapper.java

@@ -0,0 +1,16 @@
+package com.diagbot.mapper;
+
+import com.diagbot.entity.MedManagementInfo;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 病案管理人员表 Mapper 接口
+ * </p>
+ *
+ * @author zhanghang
+ * @since 2021-03-25
+ */
+public interface MedManagementInfoMapper extends BaseMapper<MedManagementInfo> {
+
+}

+ 16 - 0
src/main/java/com/diagbot/service/MedManagementInfoService.java

@@ -0,0 +1,16 @@
+package com.diagbot.service;
+
+import com.diagbot.entity.MedManagementInfo;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ * 病案管理人员表 服务类
+ * </p>
+ *
+ * @author zhanghang
+ * @since 2021-03-25
+ */
+public interface MedManagementInfoService extends IService<MedManagementInfo> {
+
+}

+ 20 - 0
src/main/java/com/diagbot/service/impl/MedManagementInfoServiceImpl.java

@@ -0,0 +1,20 @@
+package com.diagbot.service.impl;
+
+import com.diagbot.entity.MedManagementInfo;
+import com.diagbot.mapper.MedManagementInfoMapper;
+import com.diagbot.service.MedManagementInfoService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 病案管理人员表 服务实现类
+ * </p>
+ *
+ * @author zhanghang
+ * @since 2021-03-25
+ */
+@Service
+public class MedManagementInfoServiceImpl extends ServiceImpl<MedManagementInfoMapper, MedManagementInfo> implements MedManagementInfoService {
+
+}

+ 20 - 0
src/main/java/com/diagbot/web/MedManagementInfoController.java

@@ -0,0 +1,20 @@
+package com.diagbot.web;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.stereotype.Controller;
+
+/**
+ * <p>
+ * 病案管理人员表 前端控制器
+ * </p>
+ *
+ * @author zhanghang
+ * @since 2021-03-25
+ */
+@Controller
+@RequestMapping("/medManagementInfo")
+public class MedManagementInfoController {
+
+}

+ 22 - 0
src/main/resources/mapper/MedManagementInfoMapper.xml

@@ -0,0 +1,22 @@
+<?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.diagbot.mapper.MedManagementInfoMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.MedManagementInfo">
+        <id column="id" property="id" />
+        <result column="hospital_id" property="hospitalId" />
+        <result column="department" property="department" />
+        <result column="position_id" property="positionId" />
+        <result column="position" property="position" />
+        <result column="name" property="name" />
+        <result column="hire_date" property="hireDate" />
+        <result column="resignation_time" property="resignationTime" />
+        <result column="is_deleted" property="isDeleted" />
+        <result column="gmt_create" property="gmtCreate" />
+        <result column="gmt_modified" property="gmtModified" />
+        <result column="creator" property="creator" />
+        <result column="modifier" property="modifier" />
+    </resultMap>
+
+</mapper>