苍穹外卖--营业额统计功能实现
This commit is contained in:
@@ -7,6 +7,7 @@ import org.apache.ibatis.annotations.*;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Mapper
|
||||
public interface OrderMapper {
|
||||
@@ -57,4 +58,6 @@ public interface OrderMapper {
|
||||
*/
|
||||
@Select("select * from orders where status = #{status} and order_time < #{time}")
|
||||
List<Orders> getByStatusAndOrderTime(Integer status, LocalDateTime time);
|
||||
|
||||
Double sumByMap(Map map);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user