@@ -30,8 +30,8 @@ public int ImportData(int allotId)
...
@@ -30,8 +30,8 @@ public int ImportData(int allotId)
select allotid,year,month,hospitalid,realgivefee from view_report_allot_summary where allotid=@allotId;
select allotid,year,month,hospitalid,realgivefee from view_report_allot_summary where allotid=@allotId;
delete from report_original_income where allotid=@allotId;
delete from report_original_income where allotid=@allotId;
insert into report_original_income(allotid,year,month,hospitalid,sourcetype,accountingunit,department,typename,cellvalue)
insert into report_original_income(allotid,year,month,hospitalid,sourcetype,department,typename,cellvalue)
select allotid,year,month,hospitalid,sourcetype,accountingunit,department,typename,cellvalue from view_report_original_income where allotid=@allotId;";
select distinct allotid,year,month,hospitalid,sourcetype,department,typename,cellvalue from view_report_original_income where allotid=@allotId;";