|
|
@@ -618,9 +618,11 @@ public interface SummaryMapper extends BaseMapper<PosOrderGoodsPayment> {
|
|
|
"<if test='hotelId != null and hotelId !=\"\"'> and b.hotel_id = '${hotelId}' </if>" +
|
|
|
"and b.fee_type=2 and b.preferential_status=2 and b.subject_type!=4\n" +
|
|
|
"-- and b.subject_type!=5\n" +
|
|
|
- "and datediff(b.create_time,now())=0\n" +
|
|
|
+ "-- and datediff(b.create_time,now())=0\n" +
|
|
|
+ "<if test='startTime != null'> and b.create_time >= '${startTime}' </if>" +
|
|
|
+ "<if test='endTime != null'> and b.create_time <= '${endTime}' </if>" +
|
|
|
"group by b.room_id</script>")
|
|
|
- public List<RoomStatVo> roomStatList(@Param("hotelId") String hotelId);
|
|
|
+ public List<RoomStatVo> roomStatList(@Param("hotelId") String hotelId, @Param("startTime") DateTime startTime, @Param("endTime") DateTime endTime);
|
|
|
|
|
|
/**
|
|
|
* 按房间统计当日收入明细列表
|
|
|
@@ -634,10 +636,12 @@ public interface SummaryMapper extends BaseMapper<PosOrderGoodsPayment> {
|
|
|
"on b.pay_type=p.id\n" +
|
|
|
"where 1=1\n" +
|
|
|
"and b.fee_type=2 and b.preferential_status=2 and subject_type!=4\n" +
|
|
|
- "and datediff(b.create_time,now())=0\n" +
|
|
|
+ "/* and datediff(b.create_time,now())=0 */\n" +
|
|
|
"<if test='roomId != null and roomId !=\"\"'> and b.room_id = '${roomId}' </if>" +
|
|
|
+ "<if test='startTime != null'> and b.create_time >= '${startTime}' </if>" +
|
|
|
+ "<if test='endTime != null'> and b.create_time <= '${endTime}' </if>" +
|
|
|
"</script>")
|
|
|
- public List<HashMap<String, Object>> roomStatDeatilList(@Param("roomId") String roomId);
|
|
|
+ public List<HashMap<String, Object>> roomStatDeatilList(@Param("roomId") String roomId, @Param("startTime") DateTime startTime, @Param("endTime") DateTime endTime);
|
|
|
|
|
|
/**
|
|
|
* 按时间统计当日收入明细列表
|
|
|
@@ -654,15 +658,20 @@ public interface SummaryMapper extends BaseMapper<PosOrderGoodsPayment> {
|
|
|
"where 1=1\n" +
|
|
|
"<if test='hotelId != null and hotelId !=\"\"'> and b.hotel_id = '${hotelId}' </if>" +
|
|
|
"and b.fee_type=2 and b.preferential_status=2 and subject_type!=4\n" +
|
|
|
- "and datediff(b.create_time,now())=0" +
|
|
|
+ "/* and datediff(b.create_time,now())=0 */" +
|
|
|
+ "<if test='startTime != null'> and b.create_time >= '${startTime}' </if>" +
|
|
|
+ "<if test='endTime != null'> and b.create_time <= '${endTime}' </if>" +
|
|
|
"UNION ALL\n" +
|
|
|
"select b.create_time,b.pay_money as money,'--' as room_name,'点餐' as subject_type_name,p.name as pay_name from pos_order_goods_payment b\n" +
|
|
|
"left join bus_room_pay_type_info p\n" +
|
|
|
"on b.payment_method=p.id\n" +
|
|
|
"where 1=1\n" +
|
|
|
"<if test='hotelId != null and hotelId !=\"\"'> and b.hotel_id = '${hotelId}' </if>" +
|
|
|
- "and datediff(b.create_time,now())=0</script>")
|
|
|
- public List<HashMap<String, Object>> dayOrderFeeList(@Param("hotelId") String hotelId);
|
|
|
+ "/* and datediff(b.create_time,now())=0 */" +
|
|
|
+ "<if test='startTime != null'> and b.create_time >= '${startTime}' </if>" +
|
|
|
+ "<if test='endTime != null'> and b.create_time <= '${endTime}' </if>" +
|
|
|
+ "</script>")
|
|
|
+ public List<HashMap<String, Object>> dayOrderFeeList(@Param("hotelId") String hotelId, @Param("startTime") DateTime startTime, @Param("endTime") DateTime endTime);
|
|
|
|
|
|
/**
|
|
|
* 按收款方式统计当日收入明细列表
|