|
@@ -31,7 +31,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
var strSql = new StringBuilder(); |
|
|
var strSql = new StringBuilder(); |
|
|
strSql.Append("SELECT "); |
|
|
strSql.Append("SELECT "); |
|
|
strSql.Append(@" t.f_itemname, t.pcum "); |
|
|
strSql.Append(@" t.f_itemname, t.pcum "); |
|
|
strSql.Append(@" FROM (select F_ItemName,count(id) as pcum from LeaveSchool aa left join (select a.F_ItemName,a.F_ItemValue from LR_Base_DataItemDetail a left join LR_Base_DataItem b on a.F_ItemId=b.F_ItemId where b.F_ItemCode='LeaveType' ) bb on F_leixing=F_ItemValue group by F_ItemName)t "); |
|
|
|
|
|
|
|
|
strSql.Append(@" FROM (select F_ItemName,count(slid) as pcum from studentleave aa left join (select a.F_ItemName,a.F_ItemValue from LR_Base_DataItemDetail a left join LR_Base_DataItem b on a.F_ItemId=b.F_ItemId where b.F_ItemCode='LeaveType' ) bb on F_qjtype=F_ItemValue group by F_ItemName)t "); |
|
|
strSql.Append(" WHERE 1=1 "); |
|
|
strSql.Append(" WHERE 1=1 "); |
|
|
var queryParam = queryJson.ToJObject(); |
|
|
var queryParam = queryJson.ToJObject(); |
|
|
// 虚拟参数 |
|
|
// 虚拟参数 |
|
|