Commit 56ecd0fe6e1965790f4c2d4c5a3c38d70d455054

Authored by haorp
1 parent aef91602ce
Exists in dev

小程序调用-产后康复

Showing 6 changed files with 683 additions and 10 deletions

platform-biz-service/src/main/java/com/lyms/platform/permission/dao/slave/MedicalRecordMapper.java View file @ 56ecd0f
  1 +package com.lyms.platform.permission.dao.slave;
  2 +
  3 +
  4 +import com.lyms.platform.permission.model.MedicalRecordVo;
  5 +
  6 +import java.util.List;
  7 +
  8 +public interface MedicalRecordMapper {
  9 + List<MedicalRecordVo> queryList(MedicalRecordVo medicalRecord);
  10 + int insert(MedicalRecordVo medicalRecord);
  11 + int update(MedicalRecordVo medicalRecord);
  12 +}
platform-biz-service/src/main/java/com/lyms/platform/permission/model/MedicalRecordVo.java View file @ 56ecd0f
  1 +package com.lyms.platform.permission.model;
  2 +
  3 +
  4 +/**
  5 + * 大同病案视图数据同步
  6 + */
  7 +public class MedicalRecordVo {
  8 +
  9 + /** 就诊唯一标识 */
  10 + private String mdtrtId;
  11 +
  12 + /** 人员标识 */
  13 + private String pid;
  14 +
  15 + /** 姓名 */
  16 + private String name;
  17 +
  18 + /** 身份证 */
  19 + private String cardNo;
  20 +
  21 + /** 年龄 */
  22 + private String age;
  23 +
  24 + /** 联系方式 */
  25 + private String phone;
  26 +
  27 + /** 性别 */
  28 + private String gender;
  29 +
  30 + /** 住院类别 */
  31 + private String zyType;
  32 +
  33 + /** 医疗类别 */
  34 + private String medType;
  35 +
  36 + /** 科室 */
  37 + private String department;
  38 +
  39 + /** 主诊断 */
  40 + private String diagnosis;
  41 +
  42 + /** 主诊断编码 */
  43 + private String diagnosisCode;
  44 +
  45 + /** 主手术 */
  46 + private String operation;
  47 +
  48 + /** 主手术编码 */
  49 + private String operationCode;
  50 +
  51 + /** 用药明细 */
  52 + private String medicine;
  53 +
  54 + /** 分娩方式 */
  55 + private String deliveryType;
  56 +
  57 + /** 分娩时间 */
  58 + private String deliveryTime;
  59 +
  60 + /** 产后天数 */
  61 + private String matnAfterDay;
  62 +
  63 + /** 喂养方式 */
  64 + private String feedType;
  65 +
  66 + /** 生育史(胎次) */
  67 + private String matnHistory;
  68 +
  69 + /** 修改时间 */
  70 + private String modified;
  71 +
  72 + /** 创建时间 */
  73 + private String created;
  74 + public String getMdtrtId() {
  75 + return mdtrtId;
  76 + }
  77 +
  78 + public void setMdtrtId(String mdtrtId) {
  79 + this.mdtrtId = mdtrtId;
  80 + }
  81 +
  82 + public String getPid() {
  83 + return pid;
  84 + }
  85 +
  86 + public void setPid(String pid) {
  87 + this.pid = pid;
  88 + }
  89 +
  90 + public String getName() {
  91 + return name;
  92 + }
  93 +
  94 + public void setName(String name) {
  95 + this.name = name;
  96 + }
  97 +
  98 + public String getCardNo() {
  99 + return cardNo;
  100 + }
  101 +
  102 + public void setCardNo(String cardNo) {
  103 + this.cardNo = cardNo;
  104 + }
  105 +
  106 + public String getAge() {
  107 + return age;
  108 + }
  109 +
  110 + public void setAge(String age) {
  111 + this.age = age;
  112 + }
  113 +
  114 + public String getPhone() {
  115 + return phone;
  116 + }
  117 +
  118 + public void setPhone(String phone) {
  119 + this.phone = phone;
  120 + }
  121 +
  122 + public String getGender() {
  123 + return gender;
  124 + }
  125 +
  126 + public void setGender(String gender) {
  127 + this.gender = gender;
  128 + }
  129 +
  130 + public String getZyType() {
  131 + return zyType;
  132 + }
  133 +
  134 + public void setZyType(String zyType) {
  135 + this.zyType = zyType;
  136 + }
  137 +
  138 + public String getMedType() {
  139 + return medType;
  140 + }
  141 +
  142 + public void setMedType(String medType) {
  143 + this.medType = medType;
  144 + }
  145 +
  146 + public String getDepartment() {
  147 + return department;
  148 + }
  149 +
  150 + public void setDepartment(String department) {
  151 + this.department = department;
  152 + }
  153 +
  154 + public String getDiagnosis() {
  155 + return diagnosis;
  156 + }
  157 +
  158 + public void setDiagnosis(String diagnosis) {
  159 + this.diagnosis = diagnosis;
  160 + }
  161 +
  162 + public String getDiagnosisCode() {
  163 + return diagnosisCode;
  164 + }
  165 +
  166 + public void setDiagnosisCode(String diagnosisCode) {
  167 + this.diagnosisCode = diagnosisCode;
  168 + }
  169 +
  170 + public String getOperation() {
  171 + return operation;
  172 + }
  173 +
  174 + public void setOperation(String operation) {
  175 + this.operation = operation;
  176 + }
  177 +
  178 + public String getOperationCode() {
  179 + return operationCode;
  180 + }
  181 +
  182 + public void setOperationCode(String operationCode) {
  183 + this.operationCode = operationCode;
  184 + }
  185 +
  186 + public String getMedicine() {
  187 + return medicine;
  188 + }
  189 +
  190 + public void setMedicine(String medicine) {
  191 + this.medicine = medicine;
  192 + }
  193 +
  194 + public String getDeliveryType() {
  195 + return deliveryType;
  196 + }
  197 +
  198 + public void setDeliveryType(String deliveryType) {
  199 + this.deliveryType = deliveryType;
  200 + }
  201 +
  202 + public String getDeliveryTime() {
  203 + return deliveryTime;
  204 + }
  205 +
  206 + public void setDeliveryTime(String deliveryTime) {
  207 + this.deliveryTime = deliveryTime;
  208 + }
  209 +
  210 + public String getMatnAfterDay() {
  211 + return matnAfterDay;
  212 + }
  213 +
  214 + public void setMatnAfterDay(String matnAfterDay) {
  215 + this.matnAfterDay = matnAfterDay;
  216 + }
  217 +
  218 + public String getFeedType() {
  219 + return feedType;
  220 + }
  221 +
  222 + public void setFeedType(String feedType) {
  223 + this.feedType = feedType;
  224 + }
  225 +
  226 + public String getMatnHistory() {
  227 + return matnHistory;
  228 + }
  229 +
  230 + public void setMatnHistory(String matnHistory) {
  231 + this.matnHistory = matnHistory;
  232 + }
  233 +
  234 + public String getModified() {
  235 + return modified;
  236 + }
  237 +
  238 + public void setModified(String modified) {
  239 + this.modified = modified;
  240 + }
  241 +
  242 + public String getCreated() {
  243 + return created;
  244 + }
  245 +
  246 + public void setCreated(String created) {
  247 + this.created = created;
  248 + }
  249 +
  250 +
  251 +}
platform-biz-service/src/main/java/com/lyms/platform/permission/service/MedicalRecordService.java View file @ 56ecd0f
  1 +package com.lyms.platform.permission.service;
  2 +
  3 +
  4 +import com.lyms.platform.permission.model.MedicalRecordVo;
  5 +
  6 +import java.util.List;
  7 +
  8 +public interface MedicalRecordService {
  9 + List<MedicalRecordVo> queryList(MedicalRecordVo query);
  10 +
  11 +
  12 +
  13 +
  14 +}
platform-biz-service/src/main/java/com/lyms/platform/permission/service/impl/MedicalRecordServiceImpl.java View file @ 56ecd0f
  1 +package com.lyms.platform.permission.service.impl;
  2 +
  3 +import com.lyms.platform.permission.DataAccessLayerService;
  4 +import com.lyms.platform.permission.dao.slave.MedicalRecordMapper;
  5 +import com.lyms.platform.permission.model.MedicalRecordVo;
  6 +import com.lyms.platform.permission.service.MedicalRecordService;
  7 +import org.springframework.beans.factory.annotation.Autowired;
  8 +import org.springframework.stereotype.Service;
  9 +
  10 +import java.util.List;
  11 +
  12 +@Service("MedicalRecordServiceImpl")
  13 +public class MedicalRecordServiceImpl extends DataAccessLayerService implements MedicalRecordService {
  14 +
  15 + @Autowired
  16 + private MedicalRecordMapper medicalRecordMapper;
  17 +
  18 + @Override
  19 + public List<MedicalRecordVo> queryList(MedicalRecordVo query) {
  20 + return medicalRecordMapper.queryList(query);
  21 + }
  22 +}
platform-biz-service/src/main/resources/mainOrm/slave/MedicalRecordMapper.xml View file @ 56ecd0f
  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.platform.permission.dao.slave.MedicalRecordMapper">
  4 + <resultMap id="BaseResultMap" type="com.lyms.platform.permission.model.MedicalRecordVo">
  5 + <id property="mdtrtId" column="MDTRT_ID" jdbcType="VARCHAR"/>
  6 + <result property="pid" column="PID" jdbcType="VARCHAR"/>
  7 + <result property="name" column="NAME" jdbcType="VARCHAR"/>
  8 + <result property="cardNo" column="CARD_NO" jdbcType="VARCHAR"/>
  9 + <result property="age" column="AGE" jdbcType="VARCHAR"/>
  10 + <result property="phone" column="PHONE" jdbcType="VARCHAR"/>
  11 + <result property="gender" column="GENDER" jdbcType="VARCHAR"/>
  12 + <result property="zyType" column="ZY_TYPE" jdbcType="VARCHAR"/>
  13 + <result property="medType" column="MED_TYPE" jdbcType="VARCHAR"/>
  14 + <result property="department" column="DEPARTMENT" jdbcType="VARCHAR"/>
  15 + <result property="diagnosis" column="DIAGNOSIS" jdbcType="VARCHAR"/>
  16 + <result property="diagnosisCode" column="DIAGNOSIS_CODE" jdbcType="VARCHAR"/>
  17 + <result property="operation" column="OPERATION" jdbcType="VARCHAR"/>
  18 + <result property="operationCode" column="OPERATION_CODE" jdbcType="VARCHAR"/>
  19 + <result property="medicine" column="MEDICINE" jdbcType="VARCHAR"/>
  20 + <result property="deliveryType" column="DELIVERY_TYPE" jdbcType="VARCHAR"/>
  21 + <result property="deliveryTime" column="DELIVERY_TIME" jdbcType="DATE"/>
  22 + <result property="matnAfterDay" column="MATN_AFTER_DAY" jdbcType="VARCHAR"/>
  23 + <result property="feedType" column="FEED_TYPE" jdbcType="VARCHAR"/>
  24 + <result property="matnHistory" column="MATN_HISTORY" jdbcType="VARCHAR"/>
  25 + <result property="modified" column="MODIFIED" jdbcType="TIMESTAMP"/>
  26 + <result property="created" column="CREATED" jdbcType="TIMESTAMP"/>
  27 + </resultMap>
  28 +
  29 + <select id="queryList" resultMap="BaseResultMap">
  30 + SELECT
  31 + MDTRT_ID,
  32 + PID,
  33 + NAME,
  34 + CARD_NO,
  35 + AGE,
  36 + PHONE,
  37 + GENDER,
  38 + ZY_TYPE,
  39 + MED_TYPE,
  40 + DEPARTMENT,
  41 + DIAGNOSIS,
  42 + DIAGNOSIS_CODE,
  43 + OPERATION,
  44 + OPERATION_CODE,
  45 + MEDICINE,
  46 + DELIVERY_TYPE,
  47 + DELIVERY_TIME,
  48 + MATN_AFTER_DAY,
  49 + FEED_TYPE,
  50 + MATN_HISTORY,
  51 + MODIFIED,
  52 + CREATED
  53 + FROM medical_record
  54 + WHERE 1=1
  55 +
  56 + <!-- 基本信息查询条件 -->
  57 + <if test="mdtrtId != null and mdtrtId != ''">
  58 + AND MDTRT_ID = #{mdtrtId}
  59 + </if>
  60 +
  61 + <if test="pid != null and pid != ''">
  62 + AND PID = #{pid}
  63 + </if>
  64 +
  65 + <if test="name != null and name != ''">
  66 + AND NAME = #{name}
  67 + </if>
  68 +
  69 + <if test="cardNo != null and cardNo != ''">
  70 + AND CARD_NO = #{cardNo}
  71 + </if>
  72 +
  73 + <if test="age != null">
  74 + AND AGE = #{age}
  75 + </if>
  76 +
  77 + <if test="phone != null and phone != ''">
  78 + AND PHONE = #{phone}
  79 + </if>
  80 +
  81 + <if test="gender != null and gender != ''">
  82 + AND GENDER = #{gender}
  83 + </if>
  84 +
  85 + <!-- 医疗信息查询条件 -->
  86 + <if test="zyType != null and zyType != ''">
  87 + AND ZY_TYPE = #{zyType}
  88 + </if>
  89 +
  90 + <if test="medType != null and medType != ''">
  91 + AND MED_TYPE = #{medType}
  92 + </if>
  93 +
  94 + <if test="department != null and department != ''">
  95 + AND DEPARTMENT = #{department}
  96 + </if>
  97 +
  98 + <if test="diagnosis != null and diagnosis != ''">
  99 + AND DIAGNOSIS = #{diagnosis}
  100 + </if>
  101 +
  102 + <if test="diagnosisCode != null and diagnosisCode != ''">
  103 + AND DIAGNOSIS_CODE = #{diagnosisCode}
  104 + </if>
  105 +
  106 + <if test="operation != null and operation != ''">
  107 + AND OPERATION = #{operation}
  108 + </if>
  109 +
  110 + <if test="operationCode != null and operationCode != ''">
  111 + AND OPERATION_CODE = #{operationCode}
  112 + </if>
  113 +
  114 + <if test="medicine != null and medicine != ''">
  115 + AND MEDICINE = #{medicine}
  116 + </if>
  117 +
  118 + <!-- 分娩与产后信息查询条件 -->
  119 + <if test="deliveryType != null and deliveryType != ''">
  120 + AND DELIVERY_TYPE = #{deliveryType}
  121 + </if>
  122 +
  123 + <if test="deliveryTime != null">
  124 + AND DELIVERY_TIME = #{deliveryTime}
  125 + </if>
  126 +
  127 + <if test="matnAfterDay != null">
  128 + AND MATN_AFTER_DAY = #{matnAfterDay}
  129 + </if>
  130 +
  131 + <if test="feedType != null and feedType != ''">
  132 + AND FEED_TYPE = #{feedType}
  133 + </if>
  134 +
  135 + <if test="matnHistory != null and matnHistory != ''">
  136 + AND MATN_HISTORY = #{matnHistory}
  137 + </if>
  138 +
  139 + <!-- 时间范围查询条件 -->
  140 + <if test="modified != null">
  141 + AND MODIFIED = #{modified}
  142 + </if>
  143 +
  144 + <if test="created != null">
  145 + AND CREATED = #{created}
  146 + </if>
  147 +
  148 + ORDER BY CREATED DESC
  149 + </select>
  150 +
  151 +
  152 + <select id="queryOne" resultMap="BaseResultMap">
  153 + SELECT
  154 + MDTRT_ID,
  155 + PID,
  156 + NAME,
  157 + CARD_NO,
  158 + AGE,
  159 + PHONE,
  160 + GENDER,
  161 + ZY_TYPE,
  162 + MED_TYPE,
  163 + DEPARTMENT,
  164 + DIAGNOSIS,
  165 + DIAGNOSIS_CODE,
  166 + OPERATION,
  167 + OPERATION_CODE,
  168 + MEDICINE,
  169 + DELIVERY_TYPE,
  170 + DELIVERY_TIME,
  171 + MATN_AFTER_DAY,
  172 + FEED_TYPE,
  173 + MATN_HISTORY,
  174 + MODIFIED,
  175 + CREATED
  176 + FROM medical_record
  177 + WHERE MDTRT_ID = #{mdtrtId}
  178 + </select>
  179 +
  180 + <insert id="insert" parameterType="com.lyms.platform.permission.model.MedicalRecordVo">
  181 + INSERT INTO medical_record (
  182 + MDTRT_ID,
  183 + PID,
  184 + NAME,
  185 + CARD_NO,
  186 + AGE,
  187 + PHONE,
  188 + GENDER,
  189 + ZY_TYPE,
  190 + MED_TYPE,
  191 + DEPARTMENT,
  192 + DIAGNOSIS,
  193 + DIAGNOSIS_CODE,
  194 + OPERATION,
  195 + OPERATION_CODE,
  196 + MEDICINE,
  197 + DELIVERY_TYPE,
  198 + DELIVERY_TIME,
  199 + MATN_AFTER_DAY,
  200 + FEED_TYPE,
  201 + MATN_HISTORY,
  202 + MODIFIED,
  203 + CREATED
  204 + ) VALUES (
  205 + #{mdtrtId},
  206 + #{pid},
  207 + #{name},
  208 + #{cardNo},
  209 + #{age},
  210 + #{phone},
  211 + #{gender},
  212 + #{zyType},
  213 + #{medType},
  214 + #{department},
  215 + #{diagnosis},
  216 + #{diagnosisCode},
  217 + #{operation},
  218 + #{operationCode},
  219 + #{medicine},
  220 + #{deliveryType},
  221 + #{deliveryTime},
  222 + #{matnAfterDay},
  223 + #{feedType},
  224 + #{matnHistory},
  225 + #{modified},
  226 + #{created}
  227 + )
  228 + </insert>
  229 +
  230 + <insert id="insertBatch" parameterType="com.lyms.platform.permission.model.MedicalRecordVo">
  231 + INSERT INTO medical_record (
  232 + mdtrt_id, <!-- 就诊唯一标识 -->
  233 + pid, <!-- 人员标识 -->
  234 + name, <!-- 姓名 -->
  235 + card_no, <!-- 身份证 -->
  236 + age, <!-- 年龄 -->
  237 + phone, <!-- 联系方式 -->
  238 + gender, <!-- 性别 -->
  239 + zy_type, <!-- 住院类别 -->
  240 + med_type, <!-- 医疗类别 -->
  241 + department, <!-- 科室 -->
  242 + diagnosis, <!-- 主诊断 -->
  243 + diagnosis_code, <!-- 主诊断编码 -->
  244 + operation, <!-- 主手术 -->
  245 + operation_code, <!-- 主手术编码 -->
  246 + medicine, <!-- 用药明细 -->
  247 + delivery_type, <!-- 分娩方式 -->
  248 + delivery_time, <!-- 分娩时间 -->
  249 + matn_after_day, <!-- 产后天数 -->
  250 + feed_type, <!-- 喂养方式 -->
  251 + matn_history, <!-- 生育史(胎次) -->
  252 + modified, <!-- 修改时间 -->
  253 + created <!-- 创建时间 -->
  254 + )
  255 + VALUES
  256 + <foreach collection="list" item="entity" separator=",">
  257 + (
  258 + #{entity.mdtrtId},
  259 + #{entity.pid},
  260 + #{entity.name},
  261 + #{entity.cardNo},
  262 + #{entity.age},
  263 + #{entity.phone},
  264 + #{entity.gender},
  265 + #{entity.zyType},
  266 + #{entity.medType},
  267 + #{entity.department},
  268 + #{entity.diagnosis},
  269 + #{entity.diagnosisCode},
  270 + #{entity.operation},
  271 + #{entity.operationCode},
  272 + #{entity.medicine},
  273 + #{entity.deliveryType},
  274 + #{entity.deliveryTime},
  275 + #{entity.matnAfterDay},
  276 + #{entity.feedType},
  277 + #{entity.matnHistory},
  278 + #{entity.modified},
  279 + #{entity.created}
  280 + )
  281 + </foreach>
  282 + </insert>
  283 +
  284 + <update id="update" parameterType="com.lyms.platform.permission.model.MedicalRecordVo">
  285 + UPDATE medical_record
  286 + <set>
  287 + <!-- 基本信息 -->
  288 + <if test="pid != null">
  289 + PID = #{pid},
  290 + </if>
  291 + <if test="name != null">
  292 + NAME = #{name},
  293 + </if>
  294 + <if test="cardNo != null">
  295 + CARD_NO = #{cardNo},
  296 + </if>
  297 + <if test="age != null">
  298 + AGE = #{age},
  299 + </if>
  300 + <if test="phone != null">
  301 + PHONE = #{phone},
  302 + </if>
  303 + <if test="gender != null">
  304 + GENDER = #{gender},
  305 + </if>
  306 +
  307 + <!-- 医疗类别信息 -->
  308 + <if test="zyType != null">
  309 + ZY_TYPE = #{zyType},
  310 + </if>
  311 + <if test="medType != null">
  312 + MED_TYPE = #{medType},
  313 + </if>
  314 +
  315 + <!-- 诊断信息 -->
  316 + <if test="department != null">
  317 + DEPARTMENT = #{department},
  318 + </if>
  319 + <if test="diagnosis != null">
  320 + DIAGNOSIS = #{diagnosis},
  321 + </if>
  322 + <if test="diagnosisCode != null">
  323 + DIAGNOSIS_CODE = #{diagnosisCode},
  324 + </if>
  325 +
  326 + <!-- 手术信息 -->
  327 + <if test="operation != null">
  328 + OPERATION = #{operation},
  329 + </if>
  330 + <if test="operationCode != null">
  331 + OPERATION_CODE = #{operationCode},
  332 + </if>
  333 +
  334 + <!-- 用药信息 -->
  335 + <if test="medicine != null">
  336 + MEDICINE = #{medicine},
  337 + </if>
  338 +
  339 + <!-- 分娩信息 -->
  340 + <if test="deliveryType != null">
  341 + DELIVERY_TYPE = #{deliveryType},
  342 + </if>
  343 + <if test="deliveryTime != null">
  344 + DELIVERY_TIME = #{deliveryTime},
  345 + </if>
  346 + <if test="matnAfterDay != null">
  347 + MATN_AFTER_DAY = #{matnAfterDay},
  348 + </if>
  349 +
  350 + <!-- 产后信息 -->
  351 + <if test="feedType != null">
  352 + FEED_TYPE = #{feedType},
  353 + </if>
  354 + <if test="matnHistory != null">
  355 + MATN_HISTORY = #{matnHistory},
  356 + </if>
  357 +
  358 + <!-- 系统信息 -->
  359 + <if test="modified != null">
  360 + MODIFIED = #{modified},
  361 + </if>
  362 + <if test="created != null">
  363 + CREATED = #{created},
  364 + </if>
  365 + </set>
  366 + WHERE MDTRT_ID = #{mdtrtId}
  367 + </update>
  368 +</mapper>
platform-operate-api/src/main/java/com/lyms/platform/operate/web/matnRehabPC/service/impl/MatnRehabServiceImpl.java View file @ 56ecd0f
... ... @@ -3,11 +3,13 @@
3 3 import com.lyms.platform.biz.service.MatDeliverService;
4 4 import com.lyms.platform.biz.service.PatientWeightService2;
5 5 import com.lyms.platform.biz.service.PatientsService;
  6 +import com.lyms.platform.common.constants.ErrorCodeConstants;
6 7 import com.lyms.platform.common.result.BaseObjectResponse;
7 8 import com.lyms.platform.operate.web.facade.ViewFacade;
8 9 import com.lyms.platform.operate.web.matnRehabPC.service.MatnRehabService;
9   -import com.lyms.platform.operate.web.matnRehabPC.mapper.MedicalRecordMapper;
10   -import com.lyms.platform.operate.web.vo.MedicalRecordVo;
  10 +import com.lyms.platform.permission.model.MedicalRecordVo;
  11 +import com.lyms.platform.permission.service.AppointmentService;
  12 +import com.lyms.platform.permission.service.MedicalRecordService;
11 13 import com.lyms.platform.pojo.MaternalDeliverModel;
12 14 import com.lyms.platform.pojo.PatientWeight;
13 15 import com.lyms.platform.pojo.Patients;
... ... @@ -37,8 +39,8 @@
37 39 @Autowired
38 40 private PatientWeightService2 patientWeightService2;
39 41  
40   -// @Autowired
41   -// private MedicalRecordMapper medicalRecordMapper;
  42 + @Autowired
  43 + private MedicalRecordService medicalRecordService;
42 44  
43 45 @Override
44 46 public BaseObjectResponse queryInfo(String phone) {
... ... @@ -72,12 +74,14 @@
72 74 MedicalRecordVo medicalRecordVo = new MedicalRecordVo();
73 75 medicalRecordVo.setCardNo(patients.getCardNo());
74 76 // 诊断手术赋值
75   -// List<MedicalRecordVo> list = medicalRecordMapper.queryList(medicalRecordVo);
76   -// if(CollectionUtils.isNotEmpty(list)){
77   -// MedicalRecordVo medicalRecordVo1 = list.get(0);
78   -// data.put("diagnosis",medicalRecordVo1.getDiagnosis());
79   -// data.put("operation",medicalRecordVo1.getOperation());
80   -// }
  77 + List<MedicalRecordVo> list = medicalRecordService.queryList(medicalRecordVo);
  78 + if(CollectionUtils.isNotEmpty(list)){
  79 + MedicalRecordVo medicalRecordVo1 = list.get(0);
  80 + data.put("diagnosis",medicalRecordVo1.getDiagnosis());
  81 + data.put("operation",medicalRecordVo1.getOperation());
  82 + }
  83 + baseObjectResponse.setErrorcode(ErrorCodeConstants.SUCCESS);
  84 + baseObjectResponse.setErrormsg("成功");
81 85 baseObjectResponse.setData(data);
82 86 }
83 87 }
... ... @@ -85,6 +89,8 @@
85 89 return baseObjectResponse;
86 90 }
87 91 }
  92 + baseObjectResponse.setErrorcode(ErrorCodeConstants.SUCCESS);
  93 + baseObjectResponse.setErrormsg("暂未符合要求的数据");
88 94 return baseObjectResponse;
89 95  
90 96 }