Browse Source

添加注释。

xiaochan 4 years ago
parent
commit
e0de79fe51

+ 3 - 2
src/main/java/thyyxxk/webserver/dao/his/datamodify/YzTemperatureMapper.java

@@ -23,8 +23,8 @@ public interface YzTemperatureMapper {
 
     /**
      * 查询住院 护理记录单
-     * @param param 住院号 住院 次数 能查询 出这个人的全部护理记录单 在根据日期,时间就能查询出 某一条的护理记录单
-     * @return 返回这个人一条或者全部的护理记录
+     * @param param 住院号 住院次数,能查询出这个人的全部护理记录单 在根据日期,时间就能查询出 某一条的护理记录单
+     * @return 返回这个人一条的护理记录
      * */
     @Select("select patientName=(select rtrim(name) name from a_patient_mi where a_patient_mi.inpatient_no= yz_temperature.inpatient_no), " +
             "inpatient_no,rec_date,rec_time,temperature_1,pulse_1,breathe_1,pressure_1_am,pressure_1_pm," +
@@ -108,4 +108,5 @@ public interface YzTemperatureMapper {
             "</script>")
     Boolean teperatureBody(YzTemperature param);
 
+
 }

+ 1 - 1
src/main/java/thyyxxk/webserver/dao/his/querydata/QueryDrugsAndProjectsMapper.java

@@ -122,7 +122,7 @@ public interface QueryDrugsAndProjectsMapper {
             "<if test=\"kssFlag!=null and kssFlag!=''\">" +
             "and b.kss_flag=#{kssFlag}  " +
             "</if>" +
-            "<if test=\"categoriesFlag!=null and categoriesFlag!=''\">" +
+            "<if test=\"categoriesFlag!= null and categoriesFlag!=''\">" +
             "and b.categories_flag=#{categoriesFlag} " +
             "</if>" +
             "and a.charge_item_code=b.code " +

+ 18 - 14
src/main/java/thyyxxk/webserver/service/datamodify/YzTemperatureService.java

@@ -1,6 +1,5 @@
 package thyyxxk.webserver.service.datamodify;
 
-import com.baomidou.dynamic.datasource.annotation.DS;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import thyyxxk.webserver.config.exception.ExceptionEnum;
@@ -15,7 +14,8 @@ import java.util.*;
 
 /**
  * <p>
- * 描述
+ * 描述: 查询并修改护理记录单
+ *  这个坑爹的数据库结构,我人都傻了。
  * </p>
  *
  * @author xc
@@ -27,21 +27,21 @@ public class YzTemperatureService {
 
     private final YzTemperatureMapper dao;
 
-    private static final String GET_DATE = "yyyy-MM-dd";
-    private static final String GET_TIME = "HH:mm:ss";
+    private static final String  GET_DATE_FORMAT = "yyyy-MM-dd";
+    private static final String GET_TIME_FORMAT = "HH:mm:ss";
 
     public YzTemperatureService(YzTemperatureMapper dao) {
         this.dao = dao;
     }
-
+ 
     /**
      * 查询护理记录单 、
      * @param param 根据 住院号 住院次数 日期 查询 坑爹的这个人把 日期要 拆分出来
      * @return 返回一条拼接好 ,问题描述的数据 给到页面
      * */
     public ResultVo<YzTemperature> queryDetails(YzTemperature param){
-        String date =  DateUtil.formatDatetime(param.getDate(),GET_DATE);
-        String time =  DateUtil.formatDatetime(param.getDate(),GET_TIME);
+        String date =  DateUtil.formatDatetime(param.getDate(), GET_DATE_FORMAT);
+        String time =  DateUtil.formatDatetime(param.getDate(),GET_TIME_FORMAT);
 
         log.info("查询护理记录单:操作人:{},住院号:{},住院次数:{},日期:{},时间:{}",
                 TokenUtil.getTokenUserId(),param.getInpatientNo(),param.getAdmissTimes(),date,time);
@@ -71,16 +71,17 @@ public class YzTemperatureService {
     /**
      * 更新重要的数据
      * @param param 根据 住院号 住院次数 日期 时间
-     *              现在能修改的字段有 体温:temperature1 脉搏:pulse1 呼吸:breathe1
-     *              血压am: pressure1Am, 血压pm:pressure1Pm  spo2:spo2 意识:mind 皮肤:skin
-     *              管道名称:tubesName 管道状态:tubesStatus  病区:ward
-     *              这里需要分开来 更新 重要的信息 都在第一条
-     *              下面的都只是为了保存病室 和 修改人 修改时间
+     * 现在能修改的字段有 体温:temperature1 脉搏:pulse1 呼吸:breathe1
+     * 血压am: pressure1Am, 血压pm:pressure1Pm  spo2:spo2 意识:mind 皮肤:skin
+     * 管道名称:tubesName 管道状态:tubesStatus  病区:ward
+     * 这里需要分开来 更新 重要的信息 都在第一条
+     * 下面的都只是为了保存病室 和 修改人 修改时间
      * @return 返回状态
      * */
     public ResultVo<Boolean> modify(YzTemperature param)  {
-        param.setToStringRecDate(DateUtil.formatDatetime(param.getRecDate(),GET_DATE));
-        param.setToStringRecTime(DateUtil.formatDatetime(param.getRecTime(),GET_TIME));
+        //把你的日期转化成 对应的格式
+        param.setToStringRecDate(DateUtil.formatDatetime(param.getRecDate(), GET_DATE_FORMAT));
+        param.setToStringRecTime(DateUtil.formatDatetime(param.getRecTime(),GET_TIME_FORMAT));
 
         //查询出原来的 数据
         YzTemperature pojo = new YzTemperature();
@@ -128,4 +129,7 @@ public class YzTemperatureService {
     public ResultVo<List<GetDropdownBox>> getWard(){
         return ResultVoUtil.success(dao.getWard());
     }
+
+
+
 }

+ 0 - 5
src/main/java/thyyxxk/webserver/service/querydata/QueryDrugsAndProjectsService.java

@@ -2,12 +2,8 @@ package thyyxxk.webserver.service.querydata;
 
 import com.alibaba.fastjson.JSON;
 import lombok.extern.slf4j.Slf4j;
-import org.apache.ibatis.annotations.Mapper;
-import org.apache.ibatis.annotations.Param;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
-import org.springframework.web.bind.annotation.RequestBody;
-import sun.rmi.runtime.Log;
 import thyyxxk.webserver.config.exception.ExceptionEnum;
 import thyyxxk.webserver.constants.Capacity;
 import thyyxxk.webserver.dao.his.querydata.QueryDrugsAndProjectsMapper;
@@ -17,7 +13,6 @@ import thyyxxk.webserver.entity.querydata.QueryDrugsAndProjects;
 import thyyxxk.webserver.utils.ResultVoUtil;
 import thyyxxk.webserver.utils.TokenUtil;
 
-import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;