|  | @@ -11,8 +11,6 @@ import java.util.List;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  @Mapper
 | 
	
		
			
				|  |  |  public interface BloodSugarQueryDao {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      @Select("select bed_no, " +
 | 
	
		
			
				|  |  |              "       rtrim(a.name) name, " +
 | 
	
		
			
				|  |  |              "       birth_date, " +
 | 
	
	
		
			
				|  | @@ -29,34 +27,32 @@ public interface BloodSugarQueryDao {
 | 
	
		
			
				|  |  |                             @Param("patNo") String patNo,
 | 
	
		
			
				|  |  |                             @Param("times") Integer times);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -    @Select("select id,\n" +
 | 
	
		
			
				|  |  | -            "       inpatient_no,\n" +
 | 
	
		
			
				|  |  | -            "       admiss_times,\n" +
 | 
	
		
			
				|  |  | -            "       nurse_id,\n" +
 | 
	
		
			
				|  |  | +    @Select("select id, " +
 | 
	
		
			
				|  |  | +            "       inpatient_no, " +
 | 
	
		
			
				|  |  | +            "       admiss_times, " +
 | 
	
		
			
				|  |  | +            "       nurse_id, " +
 | 
	
		
			
				|  |  |              "       nurse_id_name = (select rtrim(name) from a_employee_mi where code = nurse_id)," +
 | 
	
		
			
				|  |  | -            "       test_time,\n" +
 | 
	
		
			
				|  |  | -            "       bed_no,\n" +
 | 
	
		
			
				|  |  | -            "       timecode_id,\n" +
 | 
	
		
			
				|  |  | -            "       timecode_name,\n" +
 | 
	
		
			
				|  |  | -            "       test_result = '(' +  test_result + ')',\n" +
 | 
	
		
			
				|  |  | -            "       result_unit\n" +
 | 
	
		
			
				|  |  | -            "from data_blood_glouse\n" +
 | 
	
		
			
				|  |  | +            "       test_time, " +
 | 
	
		
			
				|  |  | +            "       bed_no, " +
 | 
	
		
			
				|  |  | +            "       timecode_id, " +
 | 
	
		
			
				|  |  | +            "       timecode_name, " +
 | 
	
		
			
				|  |  | +            "       rtrim(test_result) test_result, " +
 | 
	
		
			
				|  |  | +            "       rtrim(result_unit) result_unit " +
 | 
	
		
			
				|  |  | +            "from data_blood_glouse " +
 | 
	
		
			
				|  |  |              "where inpatient_no = #{patNo}" +
 | 
	
		
			
				|  |  |              " and admiss_times = #{times}")
 | 
	
		
			
				|  |  |      List<BgNursingTestSync> getPatientLoodSugar(@Param("patNo") String patNo,
 | 
	
		
			
				|  |  |                                                  @Param("times") Integer times);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      @Select("select admiss_times " +
 | 
	
		
			
				|  |  |              "from zy_actpatient " +
 | 
	
		
			
				|  |  |              "where inpatient_no = #{patNo} ")
 | 
	
		
			
				|  |  |      Integer getPatientTimes(@Param("patNo") String patNo);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    @Update("update bg_nursing_test_sync\n" +
 | 
	
		
			
				|  |  | -            "set nurse_id  = #{nurseId},\n" +
 | 
	
		
			
				|  |  | -            "    test_time = #{testTime},\n" +
 | 
	
		
			
				|  |  | -            "    test_result = #{testResult} \n" +
 | 
	
		
			
				|  |  | +    @Update("update bg_nursing_test_sync " +
 | 
	
		
			
				|  |  | +            "set nurse_id  = #{nurseId}, " +
 | 
	
		
			
				|  |  | +            "    test_time = #{testTime}, " +
 | 
	
		
			
				|  |  | +            "    test_result = #{testResult}  " +
 | 
	
		
			
				|  |  |              "where id = #{id}")
 | 
	
		
			
				|  |  |      void modifyPatientBloodGlucoseInfo(BgNursingTestSync param);
 | 
	
		
			
				|  |  |  
 |