@ -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 FEE CLOSEOP") ;
strSql . Append ( ",BN.UNCLOSETIME BSUNCLOSETIME,BN.UNCLOSEOP BSUNCLOSEOP,FN.UNCLOSETIME FEEUNCLOSETIME,FN.UNCLOSEOP FEE UN CLOSEOP") ;
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," ) ;