|
@@ -66,7 +66,7 @@ var emailHtml_gs = `<p class="item">
|
|
|
<span class="value">%s</span>
|
|
|
</p>
|
|
|
<p class="item">
|
|
|
- <span class="label">手机号:</span>
|
|
|
+ <span class="label">联系电话:</span>
|
|
|
<span class="value">%s</span>
|
|
|
</p>
|
|
|
<p class="item">
|
|
@@ -80,7 +80,7 @@ var emailHtml_gs = `<p class="item">
|
|
|
</html>`
|
|
|
|
|
|
var emailHtml_gr = `<p class="item">
|
|
|
- <span class="label">手机号:</span>
|
|
|
+ <span class="label">联系电话:</span>
|
|
|
<span class="value">%s</span>
|
|
|
</p>
|
|
|
<p class="item">
|
|
@@ -1201,11 +1201,21 @@ func (this *Invoice) InvoiceQuery() {
|
|
|
invoiceOne := util.Mysql.FindOne("invoice", map[string]interface{}{
|
|
|
"only_Identifying": onlyIdentifying,
|
|
|
}, " bank_account, company_phone,company_name, phone, mail,company_phone, invoice_type, invoice_content, url, invoice_status, invoice_serialnum, taxpayer_identnum, operator, operable_time, invoicing_entity, remark, invoice_variety, logistics_code, company_address, bank_name, recipient, delivery_address", "")
|
|
|
+ companyName := ""
|
|
|
+ if invoiceOne == nil {
|
|
|
+ //查询公司名称
|
|
|
+ querySQL := fmt.Sprintf("select company_name from dataexport_order where order_code in (%s) and company_name!='' ORDER BY create_time DESC LIMIT 1", fmt.Sprintf("\"%s\"", strings.Join(orderArr, "\",\"")))
|
|
|
+ orderArr := util.Mysql.SelectBySql(querySQL)
|
|
|
+ if orderArr != nil && len(*orderArr) > 0 {
|
|
|
+ companyName = qutil.ObjToString((*orderArr)[0]["company_name"])
|
|
|
+ }
|
|
|
+ }
|
|
|
this.ServeJson(NewResult(map[string]interface{}{
|
|
|
- "orderCodes": strings.Join(orderArr, ","),
|
|
|
- "money": money,
|
|
|
- "invoice": &invoiceOne,
|
|
|
- "operator": operator,
|
|
|
+ "orderCodes": strings.Join(orderArr, ","),
|
|
|
+ "money": money,
|
|
|
+ "invoice": &invoiceOne,
|
|
|
+ "operator": operator,
|
|
|
+ "company_name": companyName,
|
|
|
}, nil))
|
|
|
}
|
|
|
|