package cn.hnthyy.thmz.mapper.his;

import cn.hnthyy.thmz.entity.his.YzTemperature;
import org.apache.ibatis.annotations.Update;

public interface YzTemperatureMapper {
    @Update({"<script>",
            " UPDATE  yz_temperature  SET " +
                    "ward=#{ward} " +
                    " where inpatient_no=#{inpatientNo} and scd_flag='0' ",
            "<when test='detailNoList!=null'>",
            " AND detail_no IN  ",
            "<foreach item='item' index='index' collection='detailNoList' open='(' separator=',' close=')'>",
            "#{item}",
            "</foreach>",
            "</when>",
            "</script>"})
    int updateYzTemperature(YzTemperature yzTemperature);

}
