diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/PatientCheckTicketMapper.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/PatientCheckTicketMapper.java new file mode 100644 index 0000000..8a6a6a8 --- /dev/null +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/woman/PatientCheckTicketMapper.java @@ -0,0 +1,51 @@ +package com.lyms.hospital.dao.woman; + +import java.io.Serializable; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.dao.DataAccessException; +import org.springframework.data.redis.connection.RedisConnection; +import org.springframework.data.redis.core.RedisCallback; +import org.springframework.data.redis.core.RedisTemplate; +import org.springframework.stereotype.Repository; + +/** + * 产检劵dal + *
+ * data access layer + * + * 示例代码 + *+ *+ * + * @author JiaZhi.Jiang + * @version PLATFORM V100R001 2017-3-31 + * @since PLATFORM V100R001C40B104 + */ +@Repository +public abstract class PatientCheckTicketMapper implements WomanCheckTicketMapper { + + @Autowired + private RedisTemplate
+ * Mapper接口 + *
+ * + * @author jiangjiazhi + * @since 2017-03-31 + */ +@Repository +public interface WomanCheckTicketMapper extends BaseMapper+ * 产检劵记录表 + *
+ * + * @author jiangjiazhi + * @since 2017-03-31 + */ +@TableName("WOMAN_CHECK_TICKET") +public class WomanCheckTicket implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * + */ + @TableId(value="ID") + private String id; + /** + * 建档记录id + */ + @TableField(value="WOMAN_ID") + private String womanId; + /** + * 发产检劵id + */ + @TableField(value="HOSPITAL_ID") + private String hospitalId; + /** + * PERSON id + */ + @TableField(value="PID") + private String pid; + /** + * 消费医院id + */ + @TableField(value="CONSUME_HOSPITAL_ID") + private String consumeHospitalId; + /** + * // 1:创建未使用, 2:产检使用,3:分娩销毁 4:建档删除 删除 + */ + @TableField(value="STATUS") + private Integer status; + /** + * + */ + @TableField(value="CREATE_TIME") + private Date createTime; + /** + * + */ + @TableField(value="CONSUME_TIME") + private Date consumeTime; + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWomanId() { + return womanId; + } + + public void setWomanId(String womanId) { + this.womanId = womanId; + } + + public String getHospitalId() { + return hospitalId; + } + + public void setHospitalId(String hospitalId) { + this.hospitalId = hospitalId; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getConsumeHospitalId() { + return consumeHospitalId; + } + + public void setConsumeHospitalId(String consumeHospitalId) { + this.consumeHospitalId = consumeHospitalId; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Date getConsumeTime() { + return consumeTime; + } + + public void setConsumeTime(Date consumeTime) { + this.consumeTime = consumeTime; + } + +} diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/enums/DiagnoseTypeEnums.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/enums/DiagnoseTypeEnums.java new file mode 100644 index 0000000..027235f --- /dev/null +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/enums/DiagnoseTypeEnums.java @@ -0,0 +1,40 @@ +package com.lyms.hospital.enums; + +/** + * 添加类的一句话简单描述。 + * + * 详细描述 + * + * 示例代码 + *+ *+ * + * @author JiaZhi.Jiang + * @version PLATFORM V100R001 2017-3-31 + * @since PLATFORM V100R001C40B104 + */ + +public enum DiagnoseTypeEnums { + // 0为初诊,1为复诊 + + CHUZHEN(0), FUZHEN(1); + + private DiagnoseTypeEnums(int type) { + this.type = type; + } + + private int type; + + public int getType() { + return type; + } + + public static DiagnoseTypeEnums getEnumType(int type) { + for (DiagnoseTypeEnums e : values()) { + if (type == e.getType()) { + return e; + } + } + return null; + } +} \ No newline at end of file diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/WomanCheckTicketService.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/WomanCheckTicketService.java new file mode 100644 index 0000000..dcbd727 --- /dev/null +++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/WomanCheckTicketService.java @@ -0,0 +1,24 @@ +package com.lyms.hospital.service.woman; + +import com.lyms.hospital.entity.woman.WomanCheckTicket; +import com.lyms.web.service.BaseService; +import java.io.Serializable; + +/** + *
+ * 服务类 + *
+ * + * @author jiangjiazhi + * @since 2017-03-31 + */ +public interface WomanCheckTicketService extends BaseService+ * 产检劵记录表 服务实现类 + *
+ * + * @author jiangjiazhi + * @since 2017-03-31 + */ +@Service +public class WomanCheckTicketServiceImpl extends ServiceImpl