Commit f70a57ea by caosy

发票校验

parent 7aef99ac
...@@ -88,8 +88,9 @@ public class InvoiceRequestDao extends GenericHibernateDao<InvoiceRequest, Integ ...@@ -88,8 +88,9 @@ public class InvoiceRequestDao extends GenericHibernateDao<InvoiceRequest, Integ
+ "when a.costOfDepart=5 then '玩家北外滩'" + "when a.costOfDepart=5 then '玩家北外滩'"
+ "when a.costOfDepart=6 then '玩家金茂店'" + "when a.costOfDepart=6 then '玩家金茂店'"
+ "when a.costOfDepart=7 then '广州分公司'" + "when a.costOfDepart=7 then '广州分公司'"
+ "else a.costOfDepart end costOfDepart,a.billingCompany,a.invoiceTitle,a.taxIdNum,a.contactName,a.contactTel,a.contactAddress,a.invoiceRemark,a.expressNo,a.refusedReason,a.sendTime,a.refusedReason,a.createTime,a.`status`,a.salesRemark,a.requestPerson,b.basePrice,b.costPrice,a.billingCompany,au.nickName,a.companyIndex"); + "else a.costOfDepart end costOfDepart,a.billingCompany,a.invoiceTitle,a.taxIdNum,a.contactName,a.contactTel,a.contactAddress,a.invoiceRemark,a.expressNo,a.refusedReason,a.sendTime,a.refusedReason,a.createTime,a.`status`,a.salesRemark,a.requestPerson,a.billingCompany,au.nickName,a.companyIndex");
sb.append(" FROM ord_invoicerequest a LEFT JOIN ord_invoiceorderinfo b on (a.id=b.requestId)"); //sb.append(" FROM ord_invoicerequest a LEFT JOIN ord_invoiceorderinfo b on (a.id=b.requestId)");
sb.append(" FROM ord_invoicerequest a ");
sb.append(" left join adm_users au on a.requestPerson = au.username"); sb.append(" left join adm_users au on a.requestPerson = au.username");
sb.append(" where 1=1 "); sb.append(" where 1=1 ");
Map<String, Object> parameters = new HashMap<String, Object>(); 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