Commit 5fb82570 by zhangchen

发票相关

parent 1294e485
......@@ -76,7 +76,14 @@ public class InvoiceRequestDao extends GenericHibernateDao<InvoiceRequest, Integ
InvoiceRequestQuery queryBean = (InvoiceRequestQuery) queryCon;
StringBuilder sb = new StringBuilder(300);
sb.append("SELECT distinct a.sendWay,a.payInfo,a.id,costOfDepart,invoiceTitle,taxIdNum,contactName,contactTel,contactAddress,invoiceRemark,expressNo,refusedReason,sendTime,refusedReason,createTime,`status`,salesRemark,requestPerson");
sb.append("SELECT distinct a.sendWay,a.payInfo,a.id,case when costOfDepart=1 then '高尔夫上海总部' "
+ "when costOfDepart=2 then '人事行政部' "
+ "when costOfDepart=3 then '财务部'"
+ "when costOfDepart=4 then '技术部'"
+ "when costOfDepart=5 then '上海玩家俱乐部'"
+ "when costOfDepart=6 then '高尔夫北京分部'"
+ "when costOfDepart=7 then '高尔夫广州分部'"
+ "else costOfDepart end costOfDepart,invoiceTitle,taxIdNum,contactName,contactTel,contactAddress,invoiceRemark,expressNo,refusedReason,sendTime,refusedReason,createTime,`status`,salesRemark,requestPerson");
sb.append(" FROM ord_invoicerequest a LEFT JOIN ord_invoiceorderinfo b on (a.id=b.requestId)");
sb.append("where 1=1 ");
Map<String, Object> parameters = new HashMap<String, Object>();
......
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 sign in to comment