package thyyxxk.webserver.dao.his.Test;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import thyyxxk.webserver.entity.datamodify.GetDropdownBox;

import java.util.List;

@Mapper
public interface TestDao {

    @Select("select code as code, name " +
            "from bld_cat_code")
    List<GetDropdownBox> 获取过敏源信息();

    @Update("<script>" +
            "<foreach collection='list' item='item' separator=';'>" +
            "update bld_cat_code " +
            "set py_code = #{item.pyCode}, " +
            "    w_code  = #{item.wCode} " +
            "where id = #{item.code} " +
            "</foreach>" +
            "</script>")
    void 更新拼音和五笔(List<GetDropdownBox> list);

}
