同步报表数据

parent 0660e202
......@@ -24,8 +24,11 @@ public bool UpdateAllotStates(int allotId, int states, string remark)
public int ImportData(int allotId)
{
string sql = @"select * from view_report_allot_summary where allotid=@allotId;
select * from view_report_original_income where allotid=@allotId;";
string sql = @"
insert into report_allot_summary(allotid,year,month,hospitalid,realgivefee)
select allotid,year,month,hospitalid,realgivefee from view_report_allot_summary where allotid=@allotId;
insert into report_original_income(allotid,year,month,hospitalid,sourcetype,accountingunit,department,typename,cellvalue)
select allotid,year,month,hospitalid,sourcetype,accountingunit,department,typename,cellvalue from view_report_original_income where allotid=@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