Commit 9b3da4e85fc4532897894ddeee78fb015b33ea8a

Authored by xujiahong
1 parent cffa813e80
Exists in master

复查,出院小结,高危转诊三个模块基础的Service

Showing 23 changed files with 2058 additions and 279 deletions

parent/hospital.mac/src/main/java/com/lyms/hospital/dao/changehospital/HighriskChangeHospitalMapper.java View file @ 9b3da4e
  1 +package com.lyms.hospital.dao.changehospital;
  2 +
  3 +import com.lyms.hospital.entity.changehospital.HighriskChangeHospital;
  4 +import com.baomidou.mybatisplus.mapper.BaseMapper;
  5 +import org.springframework.stereotype.Repository;
  6 +import java.io.Serializable;
  7 +/**
  8 + * <p>
  9 + * Mapper接口
  10 + * </p>
  11 + *
  12 + * @author xujiahong
  13 + * @since 2017-03-29
  14 + */
  15 +@Repository
  16 +public interface HighriskChangeHospitalMapper extends BaseMapper<HighriskChangeHospital> {
  17 +
  18 + public Integer deleteLogicById(Serializable id);
  19 +
  20 +}
parent/hospital.mac/src/main/java/com/lyms/hospital/dao/changehospital/HighriskChangeHospitalMapper.xml View file @ 9b3da4e
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3 +<mapper namespace="com.lyms.hospital.dao.changehospital.HighriskChangeHospitalMapper">
  4 +
  5 + <!-- 通用查询映射结果 -->
  6 + <resultMap id="BaseResultMap" type="com.lyms.hospital.entity.changehospital.HighriskChangeHospital">
  7 + <id column="ID" property="id" />
  8 + <result column="WOMAN_ID" property="womanId" />
  9 + <result column="OUT_ORGID" property="outOrgid" />
  10 + <result column="INTO_ORGID" property="intoOrgid" />
  11 + <result column="DESCRIPTION" property="description" />
  12 + <result column="MUSTDESC" property="mustdesc" />
  13 + <result column="RISK" property="risk" />
  14 + <result column="CHANGEWAY" property="changeway" />
  15 + <result column="APPLY_DOCTORID" property="applyDoctorid" />
  16 + <result column="CREATE_ID" property="createId" />
  17 + <result column="CREATE_TIME" property="createTime" />
  18 + <result column="STATUS" property="status" />
  19 + </resultMap>
  20 +
  21 + <!-- 通用查询结果列 -->
  22 + <sql id="Base_Column_List">
  23 + ID AS id, WOMAN_ID AS womanId, OUT_ORGID AS outOrgid, INTO_ORGID AS intoOrgid, DESCRIPTION AS description, MUSTDESC AS mustdesc, RISK AS risk, CHANGEWAY AS changeway, APPLY_DOCTORID AS applyDoctorid, CREATE_ID AS createId, CREATE_TIME AS createTime, STATUS AS status
  24 + </sql>
  25 +</mapper>
parent/hospital.mac/src/main/java/com/lyms/hospital/dao/leave/LeaveInfoMapper.java View file @ 9b3da4e
  1 +package com.lyms.hospital.dao.leave;
  2 +
  3 +import com.lyms.hospital.entity.leave.LeaveInfo;
  4 +import com.baomidou.mybatisplus.mapper.BaseMapper;
  5 +import org.springframework.stereotype.Repository;
  6 +import java.io.Serializable;
  7 +import java.util.List;
  8 +/**
  9 + * <p>
  10 + * Mapper接口
  11 + * </p>
  12 + *
  13 + * @author xujiahong
  14 + * @since 2017-03-29
  15 + */
  16 +@Repository
  17 +public interface LeaveInfoMapper extends BaseMapper<LeaveInfo> {
  18 +
  19 + public Integer deleteLogicById(Serializable id);
  20 +
  21 + /**
  22 + * <li>@Description:通过孕妇ID查询“出院小结”列表
  23 + * <li>@param womanId
  24 + * <li>@return
  25 + * <li>创建人:xujiahong
  26 + * <li>创建时间:2017年3月30日
  27 + * <li>修改人:
  28 + * <li>修改时间:
  29 + */
  30 + public List<LeaveInfo> listLeaveInfoByWomanId(String womanId);
  31 +
  32 +}
parent/hospital.mac/src/main/java/com/lyms/hospital/dao/leave/LeaveInfoMapper.xml View file @ 9b3da4e
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3 +<mapper namespace="com.lyms.hospital.dao.leave.LeaveInfoMapper">
  4 +
  5 + <!-- 通用查询映射结果 -->
  6 + <resultMap id="BaseResultMap" type="com.lyms.hospital.entity.leave.LeaveInfo">
  7 + <id column="ID" property="id" />
  8 + <result column="woman_ID" property="womanId" />
  9 + <result column="leave_TIME" property="leaveTime" />
  10 + <result column="after_daynum" property="afterDaynum" />
  11 + <result column="mother_desc" property="motherDesc" />
  12 + <result column="child_desc" property="childDesc" />
  13 + <result column="brith_code" property="brithCode" />
  14 + <result column="vaccine_KJM" property="vaccineKjm" />
  15 + <result column="vaccine_YGYM" property="vaccineYgym" />
  16 + <result column="vaccine_TIME" property="vaccineTime" />
  17 + <result column="vaccine_dosage" property="vaccineDosage" />
  18 + <result column="injection_name" property="injectionName" />
  19 + <result column="vaccine_YGMYQDB" property="vaccineYgmyqdb" />
  20 + <result column="filtrate_BBTNZ" property="filtrateBbtnz" />
  21 + <result column="filtrate_XTXJZX" property="filtrateXtxjzx" />
  22 + <result column="filtrate_TL" property="filtrateTl" />
  23 + <result column="filtrate_IFOTHER" property="filtrateIfother" />
  24 + <result column="filtrate_OTHERTXT" property="filtrateOthertxt" />
  25 + <result column="doctorId" property="doctorid" />
  26 + <result column="create_id" property="createId" />
  27 + <result column="create_time" property="createTime" />
  28 + <result column="modify_id" property="modifyId" />
  29 + <result column="modify_time" property="modifyTime" />
  30 + <result column="ifDel" property="ifdel" />
  31 + <result column="enable" property="enable" />
  32 + </resultMap>
  33 +
  34 + <!-- 通用查询结果列 -->
  35 + <sql id="Base_Column_List">
  36 + ID AS id, woman_ID AS womanId, leave_TIME AS leaveTime, after_daynum AS afterDaynum, mother_desc AS motherDesc, child_desc AS childDesc, brith_code AS brithCode, vaccine_KJM AS vaccineKjm, vaccine_YGYM AS vaccineYgym, vaccine_TIME AS vaccineTime, vaccine_dosage AS vaccineDosage, injection_name AS injectionName, vaccine_YGMYQDB AS vaccineYgmyqdb, filtrate_BBTNZ AS filtrateBbtnz, filtrate_XTXJZX AS filtrateXtxjzx, filtrate_TL AS filtrateTl, filtrate_IFOTHER AS filtrateIfother, filtrate_OTHERTXT AS filtrateOthertxt, doctorId AS doctorid, create_id AS createId, create_time AS createTime, modify_id AS modifyId, modify_time AS modifyTime, ifDel AS ifdel, enable
  37 + </sql>
  38 +
  39 + <select id="listLeaveInfoByWomanId" resultMap="BaseResultMap">
  40 + select <include refid="Base_Column_List" /> from LEAVE_INFO where woman_ID=#{womanId}
  41 + </select>
  42 +
  43 +</mapper>
parent/hospital.mac/src/main/java/com/lyms/hospital/dao/recheck/PostpartumReeMapper.java View file @ 9b3da4e
  1 +package com.lyms.hospital.dao.recheck;
  2 +
  3 +import com.lyms.hospital.entity.recheck.PostpartumRee;
  4 +import com.baomidou.mybatisplus.mapper.BaseMapper;
  5 +import org.springframework.stereotype.Repository;
  6 +import java.io.Serializable;
  7 +import java.util.List;
  8 +/**
  9 + * <p>
  10 + * Mapper接口
  11 + * </p>
  12 + *
  13 + * @author xujiahong
  14 + * @since 2017-03-29
  15 + */
  16 +@Repository
  17 +public interface PostpartumReeMapper extends BaseMapper<PostpartumRee> {
  18 +
  19 + public Integer deleteLogicById(Serializable id);
  20 +
  21 +// /**
  22 +// * <li>@Description:根据(孕妇ID)查询(产后复查)列表,不分页
  23 +// * <li>@param womanId
  24 +// * <li>@return
  25 +// * <li>创建人:xujiahong
  26 +// * <li>创建时间:2017年3月30日
  27 +// * <li>修改人:
  28 +// * <li>修改时间:
  29 +// */
  30 +// public List<PostpartumRee> listByWomanId(String womanId);
  31 +
  32 +}
parent/hospital.mac/src/main/java/com/lyms/hospital/dao/recheck/PostpartumReeMapper.xml View file @ 9b3da4e
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3 +<mapper namespace="com.lyms.hospital.dao.recheck.PostpartumReeMapper">
  4 +
  5 + <!-- 通用查询映射结果 -->
  6 + <resultMap id="BaseResultMap" type="com.lyms.hospital.entity.recheck.PostpartumRee">
  7 + <id column="ID" property="id" />
  8 + <result column="WOMAN_ID" property="womanId" />
  9 + <result column="REE_TIME" property="reeTime" />
  10 + <result column="AFTER_DAYNUM" property="afterDaynum" />
  11 + <result column="ORG_ID" property="orgId" />
  12 + <result column="HEALTH_DESC" property="healthDesc" />
  13 + <result column="PSYCHOLOGIC_DESC" property="psychologicDesc" />
  14 + <result column="HEIGHT" property="height" />
  15 + <result column="BLOOD_PRESSURE" property="bloodPressure" />
  16 + <result column="OBSTETRICS_RF" property="obstetricsRf" />
  17 + <result column="OBSTETRICS_EL" property="obstetricsEl" />
  18 + <result column="OBSTETRICS_WY" property="obstetricsWy" />
  19 + <result column="OBSTETRICS_YD" property="obstetricsYd" />
  20 + <result column="OBSTETRICS_GJ" property="obstetricsGj" />
  21 + <result column="OBSTETRICS_ZG" property="obstetricsZg" />
  22 + <result column="OBSTETRICS_FJ" property="obstetricsFj" />
  23 + <result column="OBSTETRICS_SK" property="obstetricsSk" />
  24 + <result column="OBSTETRICS_OTHER" property="obstetricsOther" />
  25 + <result column="COMP_PDJC" property="compPdjc" />
  26 + <result column="COMP_WLYSJC" property="compWlysjc" />
  27 + <result column="COMP_GMDJC" property="compGmdjc" />
  28 + <result column="COMP_CSJC" property="compCsjc" />
  29 + <result column="DISPOSE_SUGGEST" property="disposeSuggest" />
  30 + <result column="GUIDE_SUGGEST" property="guideSuggest" />
  31 + <result column="DOCTORID" property="doctorid" />
  32 + <result column="INSPECT_TIME" property="inspectTime" />
  33 + <result column="NEXT_TIME" property="nextTime" />
  34 + <result column="NEXT_AFTER_DAYNUM" property="nextAfterDaynum" />
  35 + <result column="ifDel" property="ifdel" />
  36 + </resultMap>
  37 +
  38 + <!-- 通用查询结果列 -->
  39 + <sql id="Base_Column_List">
  40 + ID AS id, WOMAN_ID AS womanId, REE_TIME AS reeTime, AFTER_DAYNUM AS afterDaynum, ORG_ID AS orgId, HEALTH_DESC AS healthDesc, PSYCHOLOGIC_DESC AS psychologicDesc, HEIGHT AS height, BLOOD_PRESSURE AS bloodPressure, OBSTETRICS_RF AS obstetricsRf, OBSTETRICS_EL AS obstetricsEl, OBSTETRICS_WY AS obstetricsWy, OBSTETRICS_YD AS obstetricsYd, OBSTETRICS_GJ AS obstetricsGj, OBSTETRICS_ZG AS obstetricsZg, OBSTETRICS_FJ AS obstetricsFj, OBSTETRICS_SK AS obstetricsSk, OBSTETRICS_OTHER AS obstetricsOther, COMP_PDJC AS compPdjc, COMP_WLYSJC AS compWlysjc, COMP_GMDJC AS compGmdjc, COMP_CSJC AS compCsjc, DISPOSE_SUGGEST AS disposeSuggest, GUIDE_SUGGEST AS guideSuggest, DOCTORID AS doctorid, INSPECT_TIME AS inspectTime, NEXT_TIME AS nextTime, NEXT_AFTER_DAYNUM AS nextAfterDaynum, ifDel AS ifdel
  41 + </sql>
  42 +</mapper>
parent/hospital.mac/src/main/java/com/lyms/hospital/entity/changehospital/HighriskChangeHospital.java View file @ 9b3da4e
  1 +package com.lyms.hospital.entity.changehospital;
  2 +
  3 +import com.baomidou.mybatisplus.annotations.TableId;
  4 +import com.baomidou.mybatisplus.annotations.TableField;
  5 +import com.baomidou.mybatisplus.annotations.TableName;
  6 +import java.io.Serializable;
  7 +import java.util.Date;
  8 +
  9 +/**
  10 + * <p>
  11 + * 高危转诊
  12 + * </p>
  13 + *
  14 + * @author xujiahong
  15 + * @since 2017-03-29
  16 + */
  17 +@TableName("HIGHRISK_CHANGE_HOSPITAL")
  18 +public class HighriskChangeHospital implements Serializable {
  19 +
  20 + private static final long serialVersionUID = 1L;
  21 +
  22 + /**
  23 + *
  24 + */
  25 + @TableId(value="ID")
  26 + private String id;
  27 + /**
  28 + *
  29 + */
  30 + @TableField(value="WOMAN_ID")
  31 + private String womanId;
  32 + /**
  33 + *
  34 + */
  35 + @TableField(value="OUT_ORGID")
  36 + private String outOrgid;
  37 + /**
  38 + *
  39 + */
  40 + @TableField(value="INTO_ORGID")
  41 + private String intoOrgid;
  42 + /**
  43 + * 病情描述
  44 + */
  45 + @TableField(value="DESCRIPTION")
  46 + private String description;
  47 + /**
  48 + * 转院必要性描述
  49 + */
  50 + @TableField(value="MUSTDESC")
  51 + private String mustdesc;
  52 + /**
  53 + * 潜在风险
  54 + */
  55 + @TableField(value="RISK")
  56 + private String risk;
  57 + /**
  58 + * 转院方式
  59 + */
  60 + @TableField(value="CHANGEWAY")
  61 + private String changeway;
  62 + /**
  63 + * 申请医生
  64 + */
  65 + @TableField(value="APPLY_DOCTORID")
  66 + private String applyDoctorid;
  67 + /**
  68 + * 创建人ID
  69 + */
  70 + @TableField(value="CREATE_ID")
  71 + private String createId;
  72 + /**
  73 + * 创建时间
  74 + */
  75 + @TableField(value="CREATE_TIME")
  76 + private Date createTime;
  77 + /**
  78 + * 状态:1待接收,2已接收
  79 + */
  80 + @TableField(value="STATUS")
  81 + private Integer status;
  82 +
  83 + public String getId() {
  84 + return id;
  85 + }
  86 +
  87 + public void setId(String id) {
  88 + this.id = id;
  89 + }
  90 +
  91 + public String getWomanId() {
  92 + return womanId;
  93 + }
  94 +
  95 + public void setWomanId(String womanId) {
  96 + this.womanId = womanId;
  97 + }
  98 +
  99 + public String getOutOrgid() {
  100 + return outOrgid;
  101 + }
  102 +
  103 + public void setOutOrgid(String outOrgid) {
  104 + this.outOrgid = outOrgid;
  105 + }
  106 +
  107 + public String getIntoOrgid() {
  108 + return intoOrgid;
  109 + }
  110 +
  111 + public void setIntoOrgid(String intoOrgid) {
  112 + this.intoOrgid = intoOrgid;
  113 + }
  114 +
  115 + public String getDescription() {
  116 + return description;
  117 + }
  118 +
  119 + public void setDescription(String description) {
  120 + this.description = description;
  121 + }
  122 +
  123 + public String getMustdesc() {
  124 + return mustdesc;
  125 + }
  126 +
  127 + public void setMustdesc(String mustdesc) {
  128 + this.mustdesc = mustdesc;
  129 + }
  130 +
  131 + public String getRisk() {
  132 + return risk;
  133 + }
  134 +
  135 + public void setRisk(String risk) {
  136 + this.risk = risk;
  137 + }
  138 +
  139 + public String getChangeway() {
  140 + return changeway;
  141 + }
  142 +
  143 + public void setChangeway(String changeway) {
  144 + this.changeway = changeway;
  145 + }
  146 +
  147 + public String getApplyDoctorid() {
  148 + return applyDoctorid;
  149 + }
  150 +
  151 + public void setApplyDoctorid(String applyDoctorid) {
  152 + this.applyDoctorid = applyDoctorid;
  153 + }
  154 +
  155 + public String getCreateId() {
  156 + return createId;
  157 + }
  158 +
  159 + public void setCreateId(String createId) {
  160 + this.createId = createId;
  161 + }
  162 +
  163 + public Date getCreateTime() {
  164 + return createTime;
  165 + }
  166 +
  167 + public void setCreateTime(Date createTime) {
  168 + this.createTime = createTime;
  169 + }
  170 +
  171 + public Integer getStatus() {
  172 + return status;
  173 + }
  174 +
  175 + public void setStatus(Integer status) {
  176 + this.status = status;
  177 + }
  178 +
  179 +}
parent/hospital.mac/src/main/java/com/lyms/hospital/entity/leave/LeaveInfo.java View file @ 9b3da4e
  1 +package com.lyms.hospital.entity.leave;
  2 +
  3 +import com.baomidou.mybatisplus.annotations.TableId;
  4 +import com.baomidou.mybatisplus.annotations.TableField;
  5 +import com.baomidou.mybatisplus.annotations.TableName;
  6 +import java.io.Serializable;
  7 +import java.util.Date;
  8 +
  9 +/**
  10 + * <p>
  11 + * 出院小结
  12 + * </p>
  13 + *
  14 + * @author xujiahong
  15 + * @since 2017-03-29
  16 + */
  17 +@TableName("LEAVE_INFO")
  18 +public class LeaveInfo implements Serializable {
  19 +
  20 + private static final long serialVersionUID = 1L;
  21 +
  22 + /**
  23 + * ID(出院小结)
  24 + */
  25 + @TableId(value="ID")
  26 + private String id;
  27 + /**
  28 + * 孕妇ID
  29 + */
  30 + @TableField(value="woman_ID")
  31 + private String womanId;
  32 + /**
  33 + * 出院日期
  34 + */
  35 + @TableField(value="leave_TIME")
  36 + private Date leaveTime;
  37 + /**
  38 + * 产后天数
  39 + */
  40 + @TableField(value="after_daynum")
  41 + private Integer afterDaynum;
  42 + /**
  43 + * 产妇出院情况
  44 + */
  45 + @TableField(value="mother_desc")
  46 + private String motherDesc;
  47 + /**
  48 + * 新生儿出院情况
  49 + */
  50 + @TableField(value="child_desc")
  51 + private String childDesc;
  52 + /**
  53 + * 出生证明编号
  54 + */
  55 + @TableField(value="brith_code")
  56 + private String brithCode;
  57 + /**
  58 + * 卡介苗
  59 + */
  60 + @TableField(value="vaccine_KJM")
  61 + private Integer vaccineKjm;
  62 + /**
  63 + * 乙肝疫苗
  64 + */
  65 + @TableField(value="vaccine_YGYM")
  66 + private Integer vaccineYgym;
  67 + /**
  68 + * 接种日期
  69 + */
  70 + @TableField(value="vaccine_TIME")
  71 + private Date vaccineTime;
  72 + /**
  73 + * 接种剂量
  74 + */
  75 + @TableField(value="vaccine_dosage")
  76 + private Integer vaccineDosage;
  77 + /**
  78 + * 注射人名称
  79 + */
  80 + @TableField(value="injection_name")
  81 + private String injectionName;
  82 + /**
  83 + * 乙肝免疫球蛋白
  84 + */
  85 + @TableField(value="vaccine_YGMYQDB")
  86 + private Integer vaccineYgmyqdb;
  87 + /**
  88 + * 苯丙酮尿症
  89 + */
  90 + @TableField(value="filtrate_BBTNZ")
  91 + private Integer filtrateBbtnz;
  92 + /**
  93 + * 先天性甲状腺
  94 + */
  95 + @TableField(value="filtrate_XTXJZX")
  96 + private Integer filtrateXtxjzx;
  97 + /**
  98 + * 听力
  99 + */
  100 + @TableField(value="filtrate_TL")
  101 + private Integer filtrateTl;
  102 + /**
  103 + * 其他筛查
  104 + */
  105 + @TableField(value="filtrate_IFOTHER")
  106 + private Integer filtrateIfother;
  107 + /**
  108 + * 其他筛查文本内容
  109 + */
  110 + @TableField(value="filtrate_OTHERTXT")
  111 + private String filtrateOthertxt;
  112 + /**
  113 + * 录入人
  114 + */
  115 + @TableField(value="doctorId")
  116 + private String doctorid;
  117 + /**
  118 + * 创建人
  119 + */
  120 + @TableField(value="create_id")
  121 + private String createId;
  122 + /**
  123 + * 创建时间
  124 + */
  125 + @TableField(value="create_time")
  126 + private Date createTime;
  127 + /**
  128 + * 修改人
  129 + */
  130 + @TableField(value="modify_id")
  131 + private String modifyId;
  132 + /**
  133 + * 修改时间
  134 + */
  135 + @TableField(value="modify_time")
  136 + private Date modifyTime;
  137 + /**
  138 + * 是否删除 1删除,0未删除
  139 + */
  140 + @TableField(value="ifDel")
  141 + private Integer ifdel;
  142 + /**
  143 + * 是否启用 1启用,0未启用
  144 + */
  145 + private Integer enable;
  146 +
  147 +
  148 + public String getId() {
  149 + return id;
  150 + }
  151 +
  152 + public void setId(String id) {
  153 + this.id = id;
  154 + }
  155 +
  156 + public String getWomanId() {
  157 + return womanId;
  158 + }
  159 +
  160 + public void setWomanId(String womanId) {
  161 + this.womanId = womanId;
  162 + }
  163 +
  164 + public Date getLeaveTime() {
  165 + return leaveTime;
  166 + }
  167 +
  168 + public void setLeaveTime(Date leaveTime) {
  169 + this.leaveTime = leaveTime;
  170 + }
  171 +
  172 + public Integer getAfterDaynum() {
  173 + return afterDaynum;
  174 + }
  175 +
  176 + public void setAfterDaynum(Integer afterDaynum) {
  177 + this.afterDaynum = afterDaynum;
  178 + }
  179 +
  180 + public String getMotherDesc() {
  181 + return motherDesc;
  182 + }
  183 +
  184 + public void setMotherDesc(String motherDesc) {
  185 + this.motherDesc = motherDesc;
  186 + }
  187 +
  188 + public String getChildDesc() {
  189 + return childDesc;
  190 + }
  191 +
  192 + public void setChildDesc(String childDesc) {
  193 + this.childDesc = childDesc;
  194 + }
  195 +
  196 + public String getBrithCode() {
  197 + return brithCode;
  198 + }
  199 +
  200 + public void setBrithCode(String brithCode) {
  201 + this.brithCode = brithCode;
  202 + }
  203 +
  204 + public Integer getVaccineKjm() {
  205 + return vaccineKjm;
  206 + }
  207 +
  208 + public void setVaccineKjm(Integer vaccineKjm) {
  209 + this.vaccineKjm = vaccineKjm;
  210 + }
  211 +
  212 + public Integer getVaccineYgym() {
  213 + return vaccineYgym;
  214 + }
  215 +
  216 + public void setVaccineYgym(Integer vaccineYgym) {
  217 + this.vaccineYgym = vaccineYgym;
  218 + }
  219 +
  220 + public Date getVaccineTime() {
  221 + return vaccineTime;
  222 + }
  223 +
  224 + public void setVaccineTime(Date vaccineTime) {
  225 + this.vaccineTime = vaccineTime;
  226 + }
  227 +
  228 + public Integer getVaccineDosage() {
  229 + return vaccineDosage;
  230 + }
  231 +
  232 + public void setVaccineDosage(Integer vaccineDosage) {
  233 + this.vaccineDosage = vaccineDosage;
  234 + }
  235 +
  236 + public String getInjectionName() {
  237 + return injectionName;
  238 + }
  239 +
  240 + public void setInjectionName(String injectionName) {
  241 + this.injectionName = injectionName;
  242 + }
  243 +
  244 + public Integer getVaccineYgmyqdb() {
  245 + return vaccineYgmyqdb;
  246 + }
  247 +
  248 + public void setVaccineYgmyqdb(Integer vaccineYgmyqdb) {
  249 + this.vaccineYgmyqdb = vaccineYgmyqdb;
  250 + }
  251 +
  252 + public Integer getFiltrateBbtnz() {
  253 + return filtrateBbtnz;
  254 + }
  255 +
  256 + public void setFiltrateBbtnz(Integer filtrateBbtnz) {
  257 + this.filtrateBbtnz = filtrateBbtnz;
  258 + }
  259 +
  260 + public Integer getFiltrateXtxjzx() {
  261 + return filtrateXtxjzx;
  262 + }
  263 +
  264 + public void setFiltrateXtxjzx(Integer filtrateXtxjzx) {
  265 + this.filtrateXtxjzx = filtrateXtxjzx;
  266 + }
  267 +
  268 + public Integer getFiltrateTl() {
  269 + return filtrateTl;
  270 + }
  271 +
  272 + public void setFiltrateTl(Integer filtrateTl) {
  273 + this.filtrateTl = filtrateTl;
  274 + }
  275 +
  276 + public Integer getFiltrateIfother() {
  277 + return filtrateIfother;
  278 + }
  279 +
  280 + public void setFiltrateIfother(Integer filtrateIfother) {
  281 + this.filtrateIfother = filtrateIfother;
  282 + }
  283 +
  284 + public String getFiltrateOthertxt() {
  285 + return filtrateOthertxt;
  286 + }
  287 +
  288 + public void setFiltrateOthertxt(String filtrateOthertxt) {
  289 + this.filtrateOthertxt = filtrateOthertxt;
  290 + }
  291 +
  292 + public String getDoctorid() {
  293 + return doctorid;
  294 + }
  295 +
  296 + public void setDoctorid(String doctorid) {
  297 + this.doctorid = doctorid;
  298 + }
  299 +
  300 + public String getCreateId() {
  301 + return createId;
  302 + }
  303 +
  304 + public void setCreateId(String createId) {
  305 + this.createId = createId;
  306 + }
  307 +
  308 + public Date getCreateTime() {
  309 + return createTime;
  310 + }
  311 +
  312 + public void setCreateTime(Date createTime) {
  313 + this.createTime = createTime;
  314 + }
  315 +
  316 + public String getModifyId() {
  317 + return modifyId;
  318 + }
  319 +
  320 + public void setModifyId(String modifyId) {
  321 + this.modifyId = modifyId;
  322 + }
  323 +
  324 + public Date getModifyTime() {
  325 + return modifyTime;
  326 + }
  327 +
  328 + public void setModifyTime(Date modifyTime) {
  329 + this.modifyTime = modifyTime;
  330 + }
  331 +
  332 + public Integer getIfdel() {
  333 + return ifdel;
  334 + }
  335 +
  336 + public void setIfdel(Integer ifdel) {
  337 + this.ifdel = ifdel;
  338 + }
  339 +
  340 + public Integer getEnable() {
  341 + return enable;
  342 + }
  343 +
  344 + public void setEnable(Integer enable) {
  345 + this.enable = enable;
  346 + }
  347 +
  348 +}
parent/hospital.mac/src/main/java/com/lyms/hospital/entity/recheck/PostpartumRee.java View file @ 9b3da4e
  1 +package com.lyms.hospital.entity.recheck;
  2 +
  3 +import com.baomidou.mybatisplus.annotations.TableId;
  4 +import com.baomidou.mybatisplus.annotations.TableField;
  5 +import com.baomidou.mybatisplus.annotations.TableName;
  6 +import java.io.Serializable;
  7 +import java.util.Date;
  8 +
  9 +/**
  10 + * <p>
  11 + * 产后复查
  12 + * </p>
  13 + *
  14 + * @author xujiahong
  15 + * @since 2017-03-29
  16 + */
  17 +@TableName("POSTPARTUM_REE")
  18 +public class PostpartumRee implements Serializable {
  19 +
  20 + private static final long serialVersionUID = 1L;
  21 +
  22 + /**
  23 + *
  24 + */
  25 + @TableId(value="ID")
  26 + private String id;
  27 + /**
  28 + * 孕妇ID
  29 + */
  30 + @TableField(value="WOMAN_ID")
  31 + private String womanId;
  32 + /**
  33 + * 复查日期
  34 + */
  35 + @TableField(value="REE_TIME")
  36 + private Date reeTime;
  37 + /**
  38 + * 产后天数
  39 + */
  40 + @TableField(value="AFTER_DAYNUM")
  41 + private Integer afterDaynum;
  42 + /**
  43 + * 检查医院
  44 + */
  45 + @TableField(value="ORG_ID")
  46 + private String orgId;
  47 + /**
  48 + * 健康情况
  49 + */
  50 + @TableField(value="HEALTH_DESC")
  51 + private String healthDesc;
  52 + /**
  53 + * 心里状况
  54 + */
  55 + @TableField(value="PSYCHOLOGIC_DESC")
  56 + private String psychologicDesc;
  57 + /**
  58 + * 体重
  59 + */
  60 + @TableField(value="HEIGHT")
  61 + private Integer height;
  62 + /**
  63 + * 血压
  64 + */
  65 + @TableField(value="BLOOD_PRESSURE")
  66 + private String bloodPressure;
  67 + /**
  68 + * 乳房
  69 + */
  70 + @TableField(value="OBSTETRICS_RF")
  71 + private String obstetricsRf;
  72 + /**
  73 + * 恶露
  74 + */
  75 + @TableField(value="OBSTETRICS_EL")
  76 + private String obstetricsEl;
  77 + /**
  78 + * 外阴
  79 + */
  80 + @TableField(value="OBSTETRICS_WY")
  81 + private String obstetricsWy;
  82 + /**
  83 + * 阴道
  84 + */
  85 + @TableField(value="OBSTETRICS_YD")
  86 + private String obstetricsYd;
  87 + /**
  88 + * 宫颈
  89 + */
  90 + @TableField(value="OBSTETRICS_GJ")
  91 + private String obstetricsGj;
  92 + /**
  93 + * 子宫
  94 + */
  95 + @TableField(value="OBSTETRICS_ZG")
  96 + private String obstetricsZg;
  97 + /**
  98 + * 附件
  99 + */
  100 + @TableField(value="OBSTETRICS_FJ")
  101 + private String obstetricsFj;
  102 + /**
  103 + * 伤口
  104 + */
  105 + @TableField(value="OBSTETRICS_SK")
  106 + private String obstetricsSk;
  107 + /**
  108 + * 其他
  109 + */
  110 + @TableField(value="OBSTETRICS_OTHER")
  111 + private String obstetricsOther;
  112 + /**
  113 + * 盆地检查
  114 + */
  115 + @TableField(value="COMP_PDJC")
  116 + private String compPdjc;
  117 + /**
  118 + * 微量元素检查
  119 + */
  120 + @TableField(value="COMP_WLYSJC")
  121 + private String compWlysjc;
  122 + /**
  123 + * 骨密度检查
  124 + */
  125 + @TableField(value="COMP_GMDJC")
  126 + private String compGmdjc;
  127 + /**
  128 + * 超声检查
  129 + */
  130 + @TableField(value="COMP_CSJC")
  131 + private String compCsjc;
  132 + /**
  133 + * 处理意见
  134 + */
  135 + @TableField(value="DISPOSE_SUGGEST")
  136 + private String disposeSuggest;
  137 + /**
  138 + * 指导意见
  139 + */
  140 + @TableField(value="GUIDE_SUGGEST")
  141 + private String guideSuggest;
  142 + /**
  143 + * 医生ID
  144 + */
  145 + @TableField(value="DOCTORID")
  146 + private String doctorid;
  147 + /**
  148 + * 检查时间
  149 + */
  150 + @TableField(value="INSPECT_TIME")
  151 + private Date inspectTime;
  152 + /**
  153 + * 下次复查时间
  154 + */
  155 + @TableField(value="NEXT_TIME")
  156 + private Date nextTime;
  157 + /**
  158 + * 下次复查产后多少天
  159 + */
  160 + @TableField(value="NEXT_AFTER_DAYNUM")
  161 + private Integer nextAfterDaynum;
  162 + /**
  163 + * 是否删除 1删除,0未删除
  164 + */
  165 + @TableField(value="ifDel")
  166 + private Integer ifdel;
  167 +
  168 +
  169 + public String getId() {
  170 + return id;
  171 + }
  172 +
  173 + public void setId(String id) {
  174 + this.id = id;
  175 + }
  176 +
  177 + public String getWomanId() {
  178 + return womanId;
  179 + }
  180 +
  181 + public void setWomanId(String womanId) {
  182 + this.womanId = womanId;
  183 + }
  184 +
  185 + public Date getReeTime() {
  186 + return reeTime;
  187 + }
  188 +
  189 + public void setReeTime(Date reeTime) {
  190 + this.reeTime = reeTime;
  191 + }
  192 +
  193 + public Integer getAfterDaynum() {
  194 + return afterDaynum;
  195 + }
  196 +
  197 + public void setAfterDaynum(Integer afterDaynum) {
  198 + this.afterDaynum = afterDaynum;
  199 + }
  200 +
  201 + public String getOrgId() {
  202 + return orgId;
  203 + }
  204 +
  205 + public void setOrgId(String orgId) {
  206 + this.orgId = orgId;
  207 + }
  208 +
  209 + public String getHealthDesc() {
  210 + return healthDesc;
  211 + }
  212 +
  213 + public void setHealthDesc(String healthDesc) {
  214 + this.healthDesc = healthDesc;
  215 + }
  216 +
  217 + public String getPsychologicDesc() {
  218 + return psychologicDesc;
  219 + }
  220 +
  221 + public void setPsychologicDesc(String psychologicDesc) {
  222 + this.psychologicDesc = psychologicDesc;
  223 + }
  224 +
  225 + public Integer getHeight() {
  226 + return height;
  227 + }
  228 +
  229 + public void setHeight(Integer height) {
  230 + this.height = height;
  231 + }
  232 +
  233 + public String getBloodPressure() {
  234 + return bloodPressure;
  235 + }
  236 +
  237 + public void setBloodPressure(String bloodPressure) {
  238 + this.bloodPressure = bloodPressure;
  239 + }
  240 +
  241 + public String getObstetricsRf() {
  242 + return obstetricsRf;
  243 + }
  244 +
  245 + public void setObstetricsRf(String obstetricsRf) {
  246 + this.obstetricsRf = obstetricsRf;
  247 + }
  248 +
  249 + public String getObstetricsEl() {
  250 + return obstetricsEl;
  251 + }
  252 +
  253 + public void setObstetricsEl(String obstetricsEl) {
  254 + this.obstetricsEl = obstetricsEl;
  255 + }
  256 +
  257 + public String getObstetricsWy() {
  258 + return obstetricsWy;
  259 + }
  260 +
  261 + public void setObstetricsWy(String obstetricsWy) {
  262 + this.obstetricsWy = obstetricsWy;
  263 + }
  264 +
  265 + public String getObstetricsYd() {
  266 + return obstetricsYd;
  267 + }
  268 +
  269 + public void setObstetricsYd(String obstetricsYd) {
  270 + this.obstetricsYd = obstetricsYd;
  271 + }
  272 +
  273 + public String getObstetricsGj() {
  274 + return obstetricsGj;
  275 + }
  276 +
  277 + public void setObstetricsGj(String obstetricsGj) {
  278 + this.obstetricsGj = obstetricsGj;
  279 + }
  280 +
  281 + public String getObstetricsZg() {
  282 + return obstetricsZg;
  283 + }
  284 +
  285 + public void setObstetricsZg(String obstetricsZg) {
  286 + this.obstetricsZg = obstetricsZg;
  287 + }
  288 +
  289 + public String getObstetricsFj() {
  290 + return obstetricsFj;
  291 + }
  292 +
  293 + public void setObstetricsFj(String obstetricsFj) {
  294 + this.obstetricsFj = obstetricsFj;
  295 + }
  296 +
  297 + public String getObstetricsSk() {
  298 + return obstetricsSk;
  299 + }
  300 +
  301 + public void setObstetricsSk(String obstetricsSk) {
  302 + this.obstetricsSk = obstetricsSk;
  303 + }
  304 +
  305 + public String getObstetricsOther() {
  306 + return obstetricsOther;
  307 + }
  308 +
  309 + public void setObstetricsOther(String obstetricsOther) {
  310 + this.obstetricsOther = obstetricsOther;
  311 + }
  312 +
  313 + public String getCompPdjc() {
  314 + return compPdjc;
  315 + }
  316 +
  317 + public void setCompPdjc(String compPdjc) {
  318 + this.compPdjc = compPdjc;
  319 + }
  320 +
  321 + public String getCompWlysjc() {
  322 + return compWlysjc;
  323 + }
  324 +
  325 + public void setCompWlysjc(String compWlysjc) {
  326 + this.compWlysjc = compWlysjc;
  327 + }
  328 +
  329 + public String getCompGmdjc() {
  330 + return compGmdjc;
  331 + }
  332 +
  333 + public void setCompGmdjc(String compGmdjc) {
  334 + this.compGmdjc = compGmdjc;
  335 + }
  336 +
  337 + public String getCompCsjc() {
  338 + return compCsjc;
  339 + }
  340 +
  341 + public void setCompCsjc(String compCsjc) {
  342 + this.compCsjc = compCsjc;
  343 + }
  344 +
  345 + public String getDisposeSuggest() {
  346 + return disposeSuggest;
  347 + }
  348 +
  349 + public void setDisposeSuggest(String disposeSuggest) {
  350 + this.disposeSuggest = disposeSuggest;
  351 + }
  352 +
  353 + public String getGuideSuggest() {
  354 + return guideSuggest;
  355 + }
  356 +
  357 + public void setGuideSuggest(String guideSuggest) {
  358 + this.guideSuggest = guideSuggest;
  359 + }
  360 +
  361 + public String getDoctorid() {
  362 + return doctorid;
  363 + }
  364 +
  365 + public void setDoctorid(String doctorid) {
  366 + this.doctorid = doctorid;
  367 + }
  368 +
  369 + public Date getInspectTime() {
  370 + return inspectTime;
  371 + }
  372 +
  373 + public void setInspectTime(Date inspectTime) {
  374 + this.inspectTime = inspectTime;
  375 + }
  376 +
  377 + public Date getNextTime() {
  378 + return nextTime;
  379 + }
  380 +
  381 + public void setNextTime(Date nextTime) {
  382 + this.nextTime = nextTime;
  383 + }
  384 +
  385 + public Integer getNextAfterDaynum() {
  386 + return nextAfterDaynum;
  387 + }
  388 +
  389 + public void setNextAfterDaynum(Integer nextAfterDaynum) {
  390 + this.nextAfterDaynum = nextAfterDaynum;
  391 + }
  392 +
  393 + public Integer getIfdel() {
  394 + return ifdel;
  395 + }
  396 +
  397 + public void setIfdel(Integer ifdel) {
  398 + this.ifdel = ifdel;
  399 + }
  400 +
  401 +}
parent/hospital.mac/src/main/java/com/lyms/hospital/enums/HighRiskChangeHospitalStatusEnum.java View file @ 9b3da4e
  1 +package com.lyms.hospital.enums;
  2 +
  3 +public enum HighRiskChangeHospitalStatusEnum {
  4 +
  5 + // 待接收
  6 + WAIT(1),
  7 + // 已接收
  8 + RECEIVED(2);
  9 +
  10 + private int status;
  11 +
  12 + private HighRiskChangeHospitalStatusEnum(int status) {
  13 + this.status = status;
  14 + }
  15 +
  16 + public int getStatus() {
  17 + return this.status;
  18 + }
  19 +
  20 +}
parent/hospital.mac/src/main/java/com/lyms/hospital/enums/IfdelEnum.java View file @ 9b3da4e
  1 +package com.lyms.hospital.enums;
  2 +
  3 +/**
  4 + * 通用状态字段ifdel枚举:是否删除 1删除,0未删除
  5 + * @author xujiahong
  6 + *
  7 + */
  8 +public enum IfdelEnum {
  9 +
  10 + // 删除
  11 + YES(1),
  12 + // 未删除
  13 + NO(0);
  14 +
  15 + private int ifdel;
  16 +
  17 + private IfdelEnum(int ifdel) {
  18 + this.ifdel = ifdel;
  19 + }
  20 +
  21 + public int getStatus() {
  22 + return this.ifdel;
  23 + }
  24 +
  25 + public static boolean isDelete(Integer status) {
  26 + return status != null && YES.getStatus() == status;
  27 + }
  28 +}
parent/hospital.mac/src/main/java/com/lyms/hospital/enums/StatusEnum.java View file @ 9b3da4e
  1 +package com.lyms.hospital.enums;
  2 +
  3 +/**
  4 + * 通用状态字段enable枚举:是否启用 1启用,0未启用
  5 + * @author xujiahong
  6 + */
  7 +public enum StatusEnum {
  8 +
  9 + // 启用
  10 + ENABLED(1),
  11 + // 禁用
  12 + DISENABLED(0);
  13 +
  14 + private int status;
  15 +
  16 + private StatusEnum(int status) {
  17 + this.status = status;
  18 + }
  19 +
  20 + public int getStatus() {
  21 + return this.status;
  22 + }
  23 +
  24 + public static boolean isEnabled(Integer status) {
  25 + return status != null && ENABLED.getStatus() == status;
  26 + }
  27 +
  28 + public static boolean isDisEnabled(Integer status) {
  29 + return status != null && DISENABLED.getStatus() == status;
  30 + }
  31 +
  32 +}
parent/hospital.mac/src/main/java/com/lyms/hospital/service/changehospital/HighriskChangeHospitalService.java View file @ 9b3da4e
  1 +package com.lyms.hospital.service.changehospital;
  2 +
  3 +import java.io.Serializable;
  4 +import java.util.List;
  5 +
  6 +import com.lyms.hospital.entity.changehospital.HighriskChangeHospital;
  7 +import com.lyms.web.service.BaseService;
  8 +
  9 +/**
  10 + * <p>
  11 + * 【高危转诊服务类】
  12 + * 新增“转诊申请单”
  13 + * 查询“转诊申请单”
  14 + * 查询“转入”列表
  15 + * 查询“转出”列表
  16 + * </p>
  17 + *
  18 + * @author xujiahong
  19 + * @since 2017-03-29
  20 + */
  21 +public interface HighriskChangeHospitalService extends BaseService<HighriskChangeHospital> {
  22 +
  23 + /**
  24 + * <li>@Description:逻辑删除,ifDel = 1 为删除,否则为没有删除
  25 + * <li>@param id 删除主键id
  26 + * <li>@return 大于0修改成功,否则为失败
  27 + */
  28 + public Integer deleteLogicById(Serializable id);
  29 +
  30 + /**
  31 + * <li>@Description:新增“转诊申请单”
  32 + * <li>@param change
  33 + * <li>@return
  34 + * <li>创建人:xujiahong
  35 + * <li>创建时间:2017年3月30日
  36 + * <li>修改人:
  37 + * <li>修改时间:
  38 + */
  39 + public String create(HighriskChangeHospital change);
  40 +
  41 + /**
  42 + * <li>@Description:查询“转诊申请单”
  43 + * <li>@param id
  44 + * <li>@return
  45 + * <li>创建人:xujiahong
  46 + * <li>创建时间:2017年3月30日
  47 + * <li>修改人:
  48 + * <li>修改时间:
  49 + */
  50 + public HighriskChangeHospital getDetailById(String id);
  51 +
  52 + /**
  53 + * <li>@Description:查询“转入”列表
  54 + * <li>@param orgId
  55 + * <li>@return
  56 + * <li>创建人:xujiahong
  57 + * <li>创建时间:2017年3月30日
  58 + * <li>修改人:
  59 + * <li>修改时间:
  60 + */
  61 + public List<HighriskChangeHospital> listOfIn(String orgId,Integer pageNo,Integer pageSize);
  62 +
  63 + /**
  64 + * <li>@Description:查询“转出”列表
  65 + * <li>@param orgId
  66 + * <li>@return
  67 + * <li>创建人:xujiahong
  68 + * <li>创建时间:2017年3月30日
  69 + * <li>修改人:
  70 + * <li>修改时间:
  71 + */
  72 + public List<HighriskChangeHospital> listOfOut(String orgId,Integer pageNo,Integer pageSize);
  73 +
  74 +}
parent/hospital.mac/src/main/java/com/lyms/hospital/service/changehospital/impl/HighriskChangeHospitalServiceImpl.java View file @ 9b3da4e
  1 +package com.lyms.hospital.service.changehospital.impl;
  2 +
  3 +import java.io.Serializable;
  4 +import java.util.Date;
  5 +import java.util.List;
  6 +
  7 +import org.springframework.stereotype.Service;
  8 +
  9 +import com.baomidou.mybatisplus.mapper.EntityWrapper;
  10 +import com.baomidou.mybatisplus.plugins.Page;
  11 +import com.baomidou.mybatisplus.service.impl.ServiceImpl;
  12 +import com.lyms.exception.SystemException;
  13 +import com.lyms.hospital.dao.changehospital.HighriskChangeHospitalMapper;
  14 +import com.lyms.hospital.entity.changehospital.HighriskChangeHospital;
  15 +import com.lyms.hospital.enums.HighRiskChangeHospitalStatusEnum;
  16 +import com.lyms.hospital.service.changehospital.HighriskChangeHospitalService;
  17 +import com.lyms.util.StrUtils;
  18 +
  19 +/**
  20 + * <p>
  21 + * 高危转诊 服务实现类
  22 + * </p>
  23 + *
  24 + * @author xujiahong
  25 + * @since 2017-03-29
  26 + */
  27 +@Service
  28 +public class HighriskChangeHospitalServiceImpl extends ServiceImpl<HighriskChangeHospitalMapper, HighriskChangeHospital>
  29 + implements HighriskChangeHospitalService {
  30 +
  31 + public Integer deleteLogicById(Serializable id) {
  32 + return baseMapper.deleteLogicById(id);
  33 + }
  34 +
  35 + @Override
  36 + public String create(HighriskChangeHospital change) {
  37 + if (change == null) {
  38 + throw new SystemException("转诊信息为空");
  39 + }
  40 + /*
  41 + * 初始化
  42 + */
  43 + String id = StrUtils.uuid();
  44 + change.setId(id);
  45 + change.setStatus(HighRiskChangeHospitalStatusEnum.WAIT.getStatus());// 等待接收状态
  46 + change.setCreateId(change.getApplyDoctorid());// 创建人即“申请医生”
  47 + change.setCreateTime(new Date());
  48 + Integer tag = baseMapper.insert(change);
  49 + if (tag != null && tag >= 1) {
  50 + return id;
  51 + }
  52 + return null;
  53 + }
  54 +
  55 + @Override
  56 + public HighriskChangeHospital getDetailById(String id) {
  57 + return baseMapper.selectById(id);
  58 + }
  59 +
  60 + @Override
  61 + public List<HighriskChangeHospital> listOfIn(String orgId, Integer pageNo, Integer pageSize) {
  62 + return this.listOfInOrOut(orgId, "INTO_ORGID",pageNo,pageSize);
  63 + }
  64 +
  65 + @Override
  66 + public List<HighriskChangeHospital> listOfOut(String orgId, Integer pageNo, Integer pageSize) {
  67 + return this.listOfInOrOut(orgId, "OUT_ORGID",pageNo,pageSize);
  68 + }
  69 +
  70 + private List<HighriskChangeHospital> listOfInOrOut(String orgId, String flag, Integer pageNo, Integer pageSize) {
  71 + List<HighriskChangeHospital> list = baseMapper.selectPage(
  72 + new Page<HighriskChangeHospital>(pageNo==null?1:pageNo, pageSize==null?10:pageSize),
  73 + new EntityWrapper<HighriskChangeHospital>().eq(flag, orgId).orderBy("CREATE_TIME", false));
  74 + return list;
  75 + }
  76 +}
parent/hospital.mac/src/main/java/com/lyms/hospital/service/leave/LeaveInfoService.java View file @ 9b3da4e
  1 +package com.lyms.hospital.service.leave;
  2 +
  3 +import com.lyms.exception.SystemException;
  4 +import com.lyms.hospital.entity.leave.LeaveInfo;
  5 +import com.lyms.web.service.BaseService;
  6 +import java.io.Serializable;
  7 +import java.util.List;
  8 +
  9 +/**
  10 + * <p>
  11 + * 出院小结 服务接口
  12 + * </p>
  13 + *
  14 + * @author xujiahong
  15 + * @since 2017-03-29
  16 + */
  17 +public interface LeaveInfoService extends BaseService<LeaveInfo> {
  18 +
  19 + /**
  20 + * <li>@Description:逻辑删除,ifDel = 1 为删除,否则为没有删除
  21 + * <li>@param id 删除主键id
  22 + * <li>@return 大于0修改成功,否则为失败
  23 + */
  24 + public Integer deleteLogicById(Serializable id);
  25 +
  26 + /**
  27 + * <li>@Description:创建出院小结信息
  28 + * <li>@param leave
  29 + * <li>@return
  30 + * <li>@throws SystemException
  31 + * <li>创建人:xujiahong
  32 + * <li>创建时间:2017年3月29日
  33 + * <li>修改人:
  34 + * <li>修改时间:
  35 + */
  36 + public String createLeaveInfo(LeaveInfo leave) throws SystemException;
  37 +
  38 + /**
  39 + * <li>@Description:修改出院小结信息
  40 + * <li>@param leave
  41 + * <li>@return
  42 + * <li>@throws SystemException
  43 + * <li>创建人:xujiahong
  44 + * <li>创建时间:2017年3月29日
  45 + * <li>修改人:
  46 + * <li>修改时间:
  47 + */
  48 + public boolean updateLeaveInfo(LeaveInfo leave) throws SystemException;
  49 +
  50 + /**
  51 + * <li>@Description:通过孕妇ID查询“出院小结”列表
  52 + * <li>@param womanId
  53 + * <li>@return
  54 + * <li>@throws
  55 + * <li>创建人:xujiahong
  56 + * <li>创建时间:2017年3月29日
  57 + * <li>修改人:
  58 + * <li>修改时间:
  59 + */
  60 + public List<LeaveInfo> listLeaveInfoByWomanId(String womanId) ;
  61 +
  62 +
  63 +
  64 +
  65 +
  66 +}
parent/hospital.mac/src/main/java/com/lyms/hospital/service/leave/impl/LeaveInfoServiceImpl.java View file @ 9b3da4e
  1 +package com.lyms.hospital.service.leave.impl;
  2 +
  3 +import java.io.Serializable;
  4 +import java.util.Date;
  5 +import java.util.List;
  6 +
  7 +import org.springframework.stereotype.Service;
  8 +import org.springframework.util.StringUtils;
  9 +
  10 +import com.baomidou.mybatisplus.mapper.EntityWrapper;
  11 +import com.baomidou.mybatisplus.service.impl.ServiceImpl;
  12 +import com.lyms.exception.SystemException;
  13 +import com.lyms.hospital.dao.leave.LeaveInfoMapper;
  14 +import com.lyms.hospital.entity.leave.LeaveInfo;
  15 +import com.lyms.hospital.enums.IfdelEnum;
  16 +import com.lyms.hospital.enums.StatusEnum;
  17 +import com.lyms.hospital.service.leave.LeaveInfoService;
  18 +import com.lyms.util.StrUtils;
  19 +
  20 +/**
  21 + * <p>
  22 + * 出院小结 服务实现类
  23 + * </p>
  24 + *
  25 + * @author xujiahong
  26 + * @since 2017-03-29
  27 + */
  28 +@Service
  29 +public class LeaveInfoServiceImpl extends ServiceImpl<LeaveInfoMapper, LeaveInfo> implements LeaveInfoService {
  30 +
  31 +// @Autowired
  32 +// private LeaveInfoMapper leaveMapper;
  33 +
  34 + public Integer deleteLogicById(Serializable id){
  35 +// return baseMapper.deleteLogicById(id);
  36 + return null;
  37 + }
  38 +
  39 + @Override
  40 + public String createLeaveInfo(LeaveInfo leave) throws SystemException {
  41 + if(leave==null){
  42 + throw new SystemException("出院小结信息为空");
  43 + }
  44 + String id = StrUtils.uuid();
  45 + leave.setId(id);
  46 + //TODO 以下字段先预留即可(不处理逻辑)
  47 + leave.setCreateTime(new Date());
  48 + leave.setIfdel(IfdelEnum.NO.getStatus());
  49 + leave.setEnable(StatusEnum.ENABLED.getStatus());
  50 + Integer tag = baseMapper.insert(leave);
  51 + if(tag!=null && tag>=1){
  52 + return id;
  53 + }
  54 + return null;
  55 + }
  56 +
  57 + @Override
  58 + public boolean updateLeaveInfo(LeaveInfo leave) throws SystemException {
  59 + if(leave==null||StringUtils.isEmpty(leave.getId())){
  60 + throw new SystemException("出院小结信息为空");
  61 + }
  62 + leave.setModifyTime(new Date());
  63 + Integer tag = baseMapper.updateById(leave);
  64 + return tag != null && tag >= 1;
  65 + }
  66 +
  67 + @Override
  68 + public List<LeaveInfo> listLeaveInfoByWomanId(String womanId) {
  69 + List<LeaveInfo> list = baseMapper.selectList(new EntityWrapper<LeaveInfo>().eq("woman_ID", womanId));
  70 + return list;
  71 + }
  72 +}
parent/hospital.mac/src/main/java/com/lyms/hospital/service/recheck/PostpartumReeService.java View file @ 9b3da4e
  1 +package com.lyms.hospital.service.recheck;
  2 +
  3 +import com.lyms.exception.SystemException;
  4 +import com.lyms.hospital.entity.recheck.PostpartumRee;
  5 +import com.lyms.web.service.BaseService;
  6 +import java.io.Serializable;
  7 +import java.util.List;
  8 +
  9 +/**
  10 + * <p>
  11 + * 产后复查 服务类
  12 + * </p>
  13 + *
  14 + * @author xujiahong
  15 + * @since 2017-03-29
  16 + */
  17 +public interface PostpartumReeService extends BaseService<PostpartumRee> {
  18 +
  19 + /**
  20 + * <li>@Description:逻辑删除,ifDel = 1 为删除,否则为没有删除
  21 + * <li>@param id 删除主键id
  22 + * <li>@return 大于0修改成功,否则为失败
  23 + */
  24 + public Integer deleteLogicById(Serializable id);
  25 +
  26 + /**
  27 + * <li>@Description:创建-产后复查
  28 + * <li>@param ree
  29 + * <li>@return
  30 + * <li>创建人:xujiahong
  31 + * <li>创建时间:2017年3月30日
  32 + * <li>修改人:
  33 + * <li>修改时间:
  34 + */
  35 + public String create(PostpartumRee ree) throws SystemException;
  36 +
  37 + /**
  38 + * <li>@Description:更新-产后复查
  39 + * <li>@param ree
  40 + * <li>@return
  41 + * <li>创建人:xujiahong
  42 + * <li>创建时间:2017年3月30日
  43 + * <li>修改人:
  44 + * <li>修改时间:
  45 + */
  46 + public boolean update(PostpartumRee ree) throws SystemException;
  47 +
  48 + /**
  49 + * <li>@Description:根据(孕妇ID)查询(产后复查)列表,不分页
  50 + * <li>@param womanId
  51 + * <li>@return
  52 + * <li>创建人:xujiahong
  53 + * <li>创建时间:2017年3月30日
  54 + * <li>修改人:
  55 + * <li>修改时间:
  56 + */
  57 + public List<PostpartumRee> listByWomanId(String womanId);
  58 +
  59 +
  60 +
  61 +}
parent/hospital.mac/src/main/java/com/lyms/hospital/service/recheck/impl/PostpartumReeServiceImpl.java View file @ 9b3da4e
  1 +package com.lyms.hospital.service.recheck.impl;
  2 +
  3 +import java.io.Serializable;
  4 +import java.util.List;
  5 +
  6 +import org.springframework.stereotype.Service;
  7 +import org.springframework.util.StringUtils;
  8 +
  9 +import com.baomidou.mybatisplus.mapper.EntityWrapper;
  10 +import com.baomidou.mybatisplus.service.impl.ServiceImpl;
  11 +import com.lyms.exception.SystemException;
  12 +import com.lyms.hospital.dao.recheck.PostpartumReeMapper;
  13 +import com.lyms.hospital.entity.recheck.PostpartumRee;
  14 +import com.lyms.hospital.enums.IfdelEnum;
  15 +import com.lyms.hospital.service.recheck.PostpartumReeService;
  16 +import com.lyms.util.StrUtils;
  17 +
  18 +/**
  19 + * <p>
  20 + * 产后复查 服务实现类
  21 + * </p>
  22 + *
  23 + * @author xujiahong
  24 + * @since 2017-03-29
  25 + */
  26 +@Service
  27 +public class PostpartumReeServiceImpl extends ServiceImpl<PostpartumReeMapper, PostpartumRee> implements PostpartumReeService {
  28 +
  29 +// @Autowired
  30 +// private PostpartumReeMapper mapper;
  31 +
  32 + public Integer deleteLogicById(Serializable id){
  33 + return baseMapper.deleteLogicById(id);
  34 + }
  35 +
  36 + @Override
  37 + public String create(PostpartumRee ree) throws SystemException{
  38 + if(ree==null){
  39 + throw new SystemException("产后复查信息为空");
  40 + }
  41 + String id = StrUtils.uuid();
  42 + ree.setId(id);
  43 + ree.setIfdel(IfdelEnum.NO.getStatus());
  44 + Integer tag = baseMapper.insert(ree);
  45 + if(tag!=null && tag>=1){
  46 + return id;
  47 + }
  48 + return null;
  49 + }
  50 +
  51 + @Override
  52 + public boolean update(PostpartumRee ree) throws SystemException{
  53 + if(ree==null||StringUtils.isEmpty(ree.getId())){
  54 + throw new SystemException("产后复查信息为空");
  55 + }
  56 + Integer tag = baseMapper.updateById(ree);
  57 + return tag != null && tag >= 1;
  58 + }
  59 +
  60 + @Override
  61 + public List<PostpartumRee> listByWomanId(String womanId) {
  62 +// Map<String,Object> columnMap = new HashMap<>();
  63 +// columnMap.put("WOMAN_ID", womanId);
  64 +// List<PostpartumRee> list = baseMapper.selectByMap(columnMap);
  65 + List<PostpartumRee> list = baseMapper.selectList(new EntityWrapper<PostpartumRee>().eq("WOMAN_ID", womanId));
  66 + return list;
  67 + }
  68 +}
parent/hospital.web/src/main/java/com/lyms/hospital/controller/changehospital/HighriskChangeHospitalController.java View file @ 9b3da4e
  1 +package com.lyms.hospital.controller.changehospital;
  2 +
  3 +import org.springframework.stereotype.Controller;
  4 +import org.springframework.web.bind.annotation.RequestMapping;
  5 +import com.lyms.web.controller.BaseController;
  6 +
  7 +/**
  8 + * <p>
  9 + * 高危转诊 前端控制器
  10 + * </p>
  11 + *
  12 + * @author xujiahong
  13 + * @since 2017-03-29
  14 + */
  15 +@Controller
  16 +@RequestMapping("/highriskChangeHospital")
  17 +public class HighriskChangeHospitalController extends BaseController {
  18 +
  19 +}
parent/hospital.web/src/main/java/com/lyms/hospital/controller/leave/LeaveInfoController.java View file @ 9b3da4e
  1 +package com.lyms.hospital.controller.leave;
  2 +
  3 +import org.springframework.stereotype.Controller;
  4 +import org.springframework.web.bind.annotation.RequestMapping;
  5 +
  6 +import com.lyms.web.controller.BaseController;
  7 +
  8 +/**
  9 + * <p>
  10 + * 出院小节 前端控制器
  11 + * </p>
  12 + *
  13 + * @author xujiahong
  14 + * @since 2017-03-29
  15 + */
  16 +@Controller
  17 +@RequestMapping("/leaveInfo")
  18 +public class LeaveInfoController extends BaseController {
  19 +
  20 +
  21 +
  22 +}
parent/hospital.web/src/main/java/com/lyms/hospital/controller/recheck/PostpartumReeController.java View file @ 9b3da4e
  1 +package com.lyms.hospital.controller.recheck;
  2 +
  3 +import org.springframework.stereotype.Controller;
  4 +import org.springframework.web.bind.annotation.RequestMapping;
  5 +import com.lyms.web.controller.BaseController;
  6 +
  7 +/**
  8 + * <p>
  9 + * 产后复查 前端控制器
  10 + * </p>
  11 + *
  12 + * @author xujiahong
  13 + * @since 2017-03-29
  14 + */
  15 +@Controller
  16 +@RequestMapping("/postpartumRee")
  17 +public class PostpartumReeController extends BaseController {
  18 +
  19 +}
parent/hospital.web/src/test/java/test/hospital/service/HighriskChangeHospitalTest.java View file @ 9b3da4e
  1 +package test.hospital.service;
  2 +
  3 +import java.util.List;
  4 +
  5 +import org.junit.Test;
  6 +import org.springframework.beans.factory.annotation.Autowired;
  7 +
  8 +import com.lyms.hospital.entity.changehospital.HighriskChangeHospital;
  9 +import com.lyms.hospital.service.changehospital.HighriskChangeHospitalService;
  10 +
  11 +import test.hospital.BaseServiceTest;
  12 +
  13 +public class HighriskChangeHospitalTest extends BaseServiceTest {
  14 +
  15 + @Autowired
  16 + private HighriskChangeHospitalService service;
  17 +
  18 +// @Test
  19 +// public void create(){
  20 +// HighriskChangeHospital c = new HighriskChangeHospital();
  21 +// c.setWomanId("cs0330");
  22 +// c.setOutOrgid("2");
  23 +// c.setIntoOrgid("1");
  24 +// c.setDescription("病情描述");
  25 +// c.setChangeway("转院方式");
  26 +// c.setApplyDoctorid("doctorID1");
  27 +// for(int i=0;i<10;i++){
  28 +// c.setWomanId("cs0330"+(i+10));
  29 +// service.create(c);
  30 +// }
  31 +// }
  32 +//
  33 +// @Test
  34 +// public void getDetailById(){
  35 +// String id = "39BD208644124D3BBA207240F3A28EF9";
  36 +// HighriskChangeHospital temp = service.selectById(id);
  37 +// System.out.println(temp);
  38 +// }
  39 +
  40 + @Test
  41 + public void list(){
  42 + List<HighriskChangeHospital> list = service.listOfIn("1", 2, 3);
  43 + for(HighriskChangeHospital c : list){
  44 + System.out.println(c.getWomanId()+"-"+c.getCreateTime());
  45 + }
  46 + /*
  47 + cs033012-Thu Mar 30 15:11:38 CST 2017
  48 + cs033017-Thu Mar 30 15:11:38 CST 2017
  49 + cs033014-Thu Mar 30 15:11:38 CST 2017
  50 + cs033018-Thu Mar 30 15:11:38 CST 2017
  51 + cs033019-Thu Mar 30 15:11:38 CST 2017
  52 + cs033013-Thu Mar 30 15:11:38 CST 2017
  53 + cs033015-Thu Mar 30 15:11:38 CST 2017
  54 + cs033016-Thu Mar 30 15:11:38 CST 2017
  55 + cs033010-Thu Mar 30 15:11:37 CST 2017
  56 + cs033011-Thu Mar 30 15:11:37 CST 2017
  57 + */
  58 + }
  59 +
  60 +}
parent/hospital.web/src/test/java/test/hospital/service/LeaveInfoServiceTest.java View file @ 9b3da4e
  1 +package test.hospital.service;
  2 +
  3 +import java.util.List;
  4 +
  5 +import org.junit.Test;
  6 +import org.springframework.beans.factory.annotation.Autowired;
  7 +
  8 +import com.lyms.hospital.entity.leave.LeaveInfo;
  9 +import com.lyms.hospital.service.leave.LeaveInfoService;
  10 +
  11 +import test.hospital.BaseServiceTest;
  12 +
  13 +public class LeaveInfoServiceTest extends BaseServiceTest {
  14 +
  15 + @Autowired
  16 + private LeaveInfoService service;
  17 +
  18 +// @Test
  19 +// public void createLeaveInfo(){
  20 +// LeaveInfo leave = new LeaveInfo();
  21 +// leave.setWomanId("cs0330");
  22 +// leave.setAfterDaynum(5);
  23 +// service.createLeaveInfo(leave);
  24 +// }
  25 +
  26 +// @Test
  27 +// public void update(){
  28 +// LeaveInfo leave = new LeaveInfo();
  29 +// leave.setId("A125273265034E968CCC12D353F32645");
  30 +// leave.setWomanId("cs6666");
  31 +// service.updateLeaveInfo(leave);
  32 +// }
  33 +
  34 + @Test
  35 + public void list(){
  36 + List<LeaveInfo> list = service.listLeaveInfoByWomanId("cs6666");
  37 + System.out.println(list);
  38 + }
  39 +
  40 +}