|
@@ -1,5 +1,6 @@
|
|
package com.fs.store.mapper;
|
|
package com.fs.store.mapper;
|
|
|
|
|
|
|
|
+import java.math.BigDecimal;
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
@@ -13,10 +14,7 @@ import com.fs.statis.domain.Report;
|
|
import com.fs.statis.param.ReportParam;
|
|
import com.fs.statis.param.ReportParam;
|
|
import com.fs.store.domain.FsStoreOrder;
|
|
import com.fs.store.domain.FsStoreOrder;
|
|
import com.fs.store.domain.FsStoreOrderItem;
|
|
import com.fs.store.domain.FsStoreOrderItem;
|
|
-import com.fs.store.param.FsCustomerStoreOrderListQueryParam;
|
|
|
|
-import com.fs.store.param.FsMyStoreOrderQueryParam;
|
|
|
|
-import com.fs.store.param.FsStoreOrderParam;
|
|
|
|
-import com.fs.store.param.FsStoreStatisticsParam;
|
|
|
|
|
|
+import com.fs.store.param.*;
|
|
import com.fs.store.vo.*;
|
|
import com.fs.store.vo.*;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import org.apache.ibatis.annotations.Select;
|
|
import org.apache.ibatis.annotations.Select;
|
|
@@ -164,6 +162,10 @@ public interface FsStoreOrderMapper
|
|
" AND date_format(o.delivery_send_time,'%y%m%d') <= date_format(#{maps.deliverySendTimeList[1]},'%y%m%d') " +
|
|
" AND date_format(o.delivery_send_time,'%y%m%d') <= date_format(#{maps.deliverySendTimeList[1]},'%y%m%d') " +
|
|
"</if>" +
|
|
"</if>" +
|
|
|
|
|
|
|
|
+ "<if test = 'maps.paid != null and maps.paid==1 '> " +
|
|
|
|
+ " AND o.pay_time is not null " +
|
|
|
|
+ "</if>" +
|
|
|
|
+
|
|
"<if test = 'maps.payTimeList != null '> " +
|
|
"<if test = 'maps.payTimeList != null '> " +
|
|
" AND date_format(o.pay_time,'%y%m%d') >= date_format(#{maps.payTimeList[0]},'%y%m%d') " +
|
|
" AND date_format(o.pay_time,'%y%m%d') >= date_format(#{maps.payTimeList[0]},'%y%m%d') " +
|
|
" AND date_format(o.pay_time,'%y%m%d') <= date_format(#{maps.payTimeList[1]},'%y%m%d') " +
|
|
" AND date_format(o.pay_time,'%y%m%d') <= date_format(#{maps.payTimeList[1]},'%y%m%d') " +
|
|
@@ -524,6 +526,7 @@ public interface FsStoreOrderMapper
|
|
"where o.user_id=#{userId} and o.status =#{status} " +
|
|
"where o.user_id=#{userId} and o.status =#{status} " +
|
|
"</script>"})
|
|
"</script>"})
|
|
int selectFsStoreOrderCount(@Param("userId")long userId,@Param("status")int status);
|
|
int selectFsStoreOrderCount(@Param("userId")long userId,@Param("status")int status);
|
|
|
|
+
|
|
@Select({"<script> " +
|
|
@Select({"<script> " +
|
|
"select * from fs_store_order o " +
|
|
"select * from fs_store_order o " +
|
|
"where o.delivery_id=#{deliveryId} limit 1 " +
|
|
"where o.delivery_id=#{deliveryId} limit 1 " +
|
|
@@ -1044,4 +1047,8 @@ public interface FsStoreOrderMapper
|
|
List<Long> selectFsStoreOrderNoCreateOmsAndReviewed();
|
|
List<Long> selectFsStoreOrderNoCreateOmsAndReviewed();
|
|
|
|
|
|
List<Report> selectOrderByCustomerIds(@Param("map") ReportParam param);
|
|
List<Report> selectOrderByCustomerIds(@Param("map") ReportParam param);
|
|
|
|
+
|
|
|
|
+ int selectFsStoreOrderCount(FsStoreOrderStatisticsParam param);
|
|
|
|
+
|
|
|
|
+ BigDecimal selectFsStoreOrderByPayPriceCount(FsStoreOrderStatisticsParam param);
|
|
}
|
|
}
|