生成统计表数据BUG修复

parent 5aaedb52
...@@ -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;";
return Execute(sql, new { allotId }); return Execute(sql, new { allotId });
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment