DS7_JinGang
hanxuntao 1 year ago
parent 6b9d774da9
commit 2c83c244ee

@ -144,7 +144,7 @@ namespace DSWeb.Areas.Account.Controllers
strSql.Append(",case ISNULL(C.DRCLOSE,0) when 1 then '已锁定' else '未锁定' end as DRCLOSEREF");
strSql.Append(",case ISNULL(C.CRCLOSE,0) when 1 then '已锁定' else '未锁定' end as CRCLOSEREF");
strSql.Append(",(select [NAME] from [company] where GID=B.SALECORPID) as SALECORP");
strSql.Append(",BN.UNCLOSETIME BSUNCLOSETIME,BN.UNCLOSEOP BSUNCLOSEOP,FN.UNCLOSETIME FEEUNCLOSETIME,FN.UNCLOSEOP FEECLOSEOP");
strSql.Append(",BN.UNCLOSETIME BSUNCLOSETIME,BN.UNCLOSEOP BSUNCLOSEOP,FN.UNCLOSETIME FEEUNCLOSETIME,FN.UNCLOSEOP FEEUNCLOSEOP");
strSql.Append(" FROM V_OP_BILL B ");
strSql.Append(" LEFT JOIN (SELECT BSNO,isnull(SUM(CASE FEETYPE WHEN 1 THEN(CASE CURRENCY WHEN 'RMB' THEN ISNULL(AMOUNT, 0) ELSE 0 END) ELSE 0 END), 0) AS RMBDR,");

Loading…
Cancel
Save