Pārlūkot izejas kodu

病人信息修改

rgb 6 gadi atpakaļ
vecāks
revīzija
b66955b8f4

+ 17 - 0
icss-service/src/main/java/com/diagbot/dto/GetTopPatientInfoDTO.java

@@ -3,6 +3,10 @@
  */
 package com.diagbot.dto;
 
+import java.util.Date;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Getter;
@@ -109,4 +113,17 @@ public class GetTopPatientInfoDTO {
 	@ApiModelProperty(value="病人证件号码")
     private String patientIdNo;
 
+	/**
+	 * 系统时间
+	 */
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
+	@ApiModelProperty(value="系统时间")
+	private Date systemTime;
+	
+	/**
+     * 门诊号
+     */
+	@ApiModelProperty(value="门诊号")
+	private String recordId;
+	
 }

+ 11 - 5
icss-service/src/main/java/com/diagbot/facade/PatientInfoFacade.java

@@ -1,5 +1,12 @@
 package com.diagbot.facade;
 
+import java.util.Date;
+import java.util.List;
+
+import org.assertj.core.util.DateUtil;
+import org.springframework.stereotype.Component;
+import org.springframework.web.bind.annotation.RequestBody;
+
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.diagbot.dto.GetTopPatientInfoDTO;
 import com.diagbot.dto.PatientInfoDTO;
@@ -10,10 +17,6 @@ import com.diagbot.service.impl.PatientInfoServiceImpl;
 import com.diagbot.util.ListUtil;
 import com.diagbot.vo.GetTopPatientInfoVO;
 import com.diagbot.vo.PatientInfoVO;
-import org.springframework.stereotype.Component;
-import org.springframework.web.bind.annotation.RequestBody;
-
-import java.util.List;
 
 /**
  * @Description: 患者业务逻辑
@@ -43,7 +46,10 @@ public class PatientInfoFacade extends PatientInfoServiceImpl {
      * @return
      */
     public GetTopPatientInfoDTO getTopPatientInfo(@RequestBody GetTopPatientInfoVO getTopPatientInfoVO) {
-    	return baseMapper.getTopPatientInfo(getTopPatientInfoVO);
+    	GetTopPatientInfoDTO getTopPatientInfoDTO = baseMapper.getTopPatientInfo(getTopPatientInfoVO);
+    	getTopPatientInfoDTO.setSystemTime(DateUtil.now());
+    	getTopPatientInfoDTO.setRecordId(getTopPatientInfoVO.getRecordId());
+    	return getTopPatientInfoDTO;
     }
     
     /**

+ 8 - 0
icss-service/src/main/java/com/diagbot/vo/GetTopPatientInfoVO.java

@@ -47,5 +47,13 @@ public class GetTopPatientInfoVO {
 	@ApiModelProperty(value="医院患者编号",required=true)
 	@NotBlank(message="医院患者编号必填")
 	private String patientCode;
+	
+	/**
+	 * 门诊号
+	 */
+	@ApiModelProperty(value="门诊号",required=true)
+	@NotBlank(message="门诊号必填")
+	private String recordId;
+	
 
 }