Commit e8d4b827 by 宋毅

tj

parent 50f173e9
...@@ -211,7 +211,7 @@ class OrderInfoService extends ServiceBase { ...@@ -211,7 +211,7 @@ class OrderInfoService extends ServiceBase {
var sql = "select `orderNo`,`channelServiceNo`,`channelOrderNo`,`channelUserId`,`ownerUserId`,`payTime`,`quantity`,`serviceQuantity`,`orderStatusName`,`orderStatus`,`totalSum`,`payTotalSum`,`refundSum`,`invoiceApplyStatus`,`opNotes`,`channelItemCode`,`channelItemName`,`serviceItemCode`,`picUrl`" var sql = "select `orderNo`,`channelServiceNo`,`channelOrderNo`,`channelUserId`,`ownerUserId`,`payTime`,`quantity`,`serviceQuantity`,`orderStatusName`,`orderStatus`,`totalSum`,`payTotalSum`,`refundSum`,`invoiceApplyStatus`,`opNotes`,`channelItemCode`,`channelItemName`,`serviceItemCode`,`picUrl`"
+ " from v_order where uapp_id=" + pobj.appInfo.uapp_id + " and channelUserId=" + pobj.userInfo.channel_userid; + " from v_order where uapp_id=" + pobj.appInfo.uapp_id + " and channelUserId=" + pobj.userInfo.channel_userid;
var sqlCount = "select count(1) from v_order where uapp_id=" + pobj.appInfo.uapp_id + " and channelUserId=" + pobj.userInfo.channel_userid; var sqlCount = "select count(1) as dataCount from v_order where uapp_id=" + pobj.appInfo.uapp_id + " and channelUserId=" + pobj.userInfo.channel_userid;
if (actionBody.channelItemName) { if (actionBody.channelItemName) {
sql += " and channelItemName like '%" + actionBody.channelItemName + "%'"; sql += " and channelItemName like '%" + actionBody.channelItemName + "%'";
sqlCount += " and channelItemName like '%" + actionBody.channelItemName + "%'"; sqlCount += " and channelItemName like '%" + actionBody.channelItemName + "%'";
...@@ -231,7 +231,7 @@ class OrderInfoService extends ServiceBase { ...@@ -231,7 +231,7 @@ class OrderInfoService extends ServiceBase {
var tmpResultCount = await this.customQuery(sqlCount); var tmpResultCount = await this.customQuery(sqlCount);
result.dataCount = tmpResultCount && tmpResultCount.length > 0 ? tmpResultCount[0].count : 0; result.dataCount = tmpResultCount && tmpResultCount.length > 0 ? tmpResultCount[0].dataCount : 0;
return result; return result;
......
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 to comment