@@ -1298,12 +1298,12 @@ class OrderInfoService extends ServiceBase {
...
@@ -1298,12 +1298,12 @@ class OrderInfoService extends ServiceBase {
*/
*/
asyncgetOrdersStatisticsByUappId(pobj){
asyncgetOrdersStatisticsByUappId(pobj){
letac=pobj.actionBody;
letac=pobj.actionBody;
letsql=`SELECT a.uapp_id,count(*) count,DATE_FORMAT(a.created_at,'%Y-%m-%d') time FROM c_order_info a INNER JOIN c_order_product b ON a.orderNo = b.sourceOrderNo WHERE a.deleted_at is null `;
letsql=`SELECT a.uapp_id,count(*) count,DATE_FORMAT(DATE_ADD(a.created_at,INTERVAL 8 HOUR),'%Y-%m-%d') time FROM c_order_info a INNER JOIN c_order_product b ON a.orderNo = b.sourceOrderNo WHERE a.deleted_at is null `;
letwhereParam={};
letwhereParam={};
if(ac.start&&ac.end){
if(ac.start&&ac.end){
sql+=` AND a.created_at >= :start AND a.created_at <= :end`;
sql+=` AND a.created_at >= :start AND a.created_at <= :end`;
@@ -151,12 +151,12 @@ class NeedinfoService extends ServiceBase {
...
@@ -151,12 +151,12 @@ class NeedinfoService extends ServiceBase {
*/
*/
asyncgetStatisticsByUappId(pobj){
asyncgetStatisticsByUappId(pobj){
letac=pobj.actionBody;
letac=pobj.actionBody;
letsql=`SELECT uapp_id,count(*) count,DATE_FORMAT(created_at,'%Y-%m-%d') time FROM n_need_info WHERE deleted_at is null AND (channelTypeName <> "商标交易" or channelTypeName is not null)`;
letsql=`SELECT uapp_id,count(*) count,DATE_FORMAT(DATE_ADD(created_at,INTERVAL 8 HOUR),'%Y-%m-%d') time FROM n_need_info WHERE deleted_at is null AND (channelTypeName <> "商标交易" or channelTypeName is not null)`;
letwhereParam={};
letwhereParam={};
if(ac.start&&ac.end){
if(ac.start&&ac.end){
sql+=` AND created_at >= :start AND created_at <= :end`;
sql+=` AND created_at >= :start AND created_at <= :end`;