fields.Append($" sum(case when year = {date.Year} and month = {date.Month} then if(ifnull(value, '')<>'', value, 0) else 0 end) `{date.Year}年{date.Month}月`,");
stringsql=$"select source, category, itemname {columns} from view_test_data where hospitalid = @hospitalid and year in @year and month in @month group by source, category, itemname;";