|
@@ -1792,12 +1792,19 @@ func (this *Invoice) InvoiceQuery() {
|
|
companyName := ""
|
|
companyName := ""
|
|
if invoiceOne == nil {
|
|
if invoiceOne == nil {
|
|
//查询公司名称
|
|
//查询公司名称
|
|
|
|
+ if len(orderArr) > 0 {
|
|
|
|
+ //回显内容
|
|
|
|
+ orderMap := util.Mysql.FindOne("dataexport_order", map[string]interface{}{
|
|
|
|
+ "order_code": orderArr[0],
|
|
|
|
+ }, "user_phone", "")
|
|
|
|
+ if orderMap != nil && len(*orderMap) > 0 {
|
|
|
|
+ sData = ShowData(qutil.ObjToString((*orderMap)["user_phone"]))
|
|
|
|
+ }
|
|
|
|
+ }
|
|
querySQL := fmt.Sprintf("select company_name,user_phone from dataexport_order where order_code in (%s) and company_name!='' ORDER BY create_time DESC LIMIT 1", fmt.Sprintf("\"%s\"", strings.Join(orderArr, "\",\"")))
|
|
querySQL := fmt.Sprintf("select company_name,user_phone 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)
|
|
orderArr := util.Mysql.SelectBySql(querySQL)
|
|
if orderArr != nil && len(*orderArr) > 0 {
|
|
if orderArr != nil && len(*orderArr) > 0 {
|
|
companyName = qutil.ObjToString((*orderArr)[0]["company_name"])
|
|
companyName = qutil.ObjToString((*orderArr)[0]["company_name"])
|
|
- sData = ShowData(qutil.ObjToString((*orderArr)[0]["user_phone"]))
|
|
|
|
- //回显内容
|
|
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
(*invoiceOne)["order_code"] = qutil.If((*invoiceOne)["invoice_order_code"] != nil, (*invoiceOne)["invoice_order_code"], (*invoiceOne)["order_code"])
|
|
(*invoiceOne)["order_code"] = qutil.If((*invoiceOne)["invoice_order_code"] != nil, (*invoiceOne)["invoice_order_code"], (*invoiceOne)["order_code"])
|