@Select("select * from storehouse_project a left join enterprise_project b on a.projectSid =b.projectSid where b.enterpriseSid=#{enterpriseSid} and a.type =#{type} ")
@Select("select * from storehouse_project a left join enterprise_project b on a.projectSid =b.projectSid where b.projectSid=#{projectSid} and a.type =#{type} ")
@Select("select type,sum(money) as sumMoney from project_credit_balance a left join project_information b on b.sid=a.projectSid where b.enterpriseSid=#{enterpriseSid} and tbdate>=#{start} and tbdate<=#{end} GROUP BY a.type ")
@Select("select type,sum(money) as sumMoney from project_credit_balance a "+
"left join project_information b on b.sid=a.projectSid "+
"left join enterprise_project c on c.projectSid =a.projectSid "+
"where c.enterpriseSid=#{enterpriseSid} and tbdate>=#{start} and tbdate<=#{end} GROUP BY a.type ")
@Select("select a.*,b.sid as enterpriseSid,c.enterpriseName as enterpriseName from project_credit_balance a left join project_information b on b.sid=a.projectSid left join enterprise_information c on c.sid=b.enterpriseSid where b.enterpriseSid=#{enterpriseSid} and tbdate>=#{start} and tbdate<=#{end} ")
@Select("SELECT\n"+
"\ta.*,\n"+
"\tb.sid AS enterpriseSid,\n"+
"\td.enterpriseName AS enterpriseName \n"+
"FROM\n"+
"\tproject_credit_balance a\n"+
"\tLEFT JOIN project_information b ON b.sid = a.projectSid\n"+
"\tLEFT JOIN enterprise_project c ON c.projectSid = a.projectSid \n"+
"\tLEFT JOIN enterprise_information d ON d.sid = c.enterpriseSid \n"+