员工订餐统计接口,增加部门统计
This commit is contained in:
parent
046aba1a2f
commit
a5bdb5072a
@ -144,4 +144,7 @@ public class FtOrderDao implements Serializable {
|
||||
|
||||
@TableField(exist = false)
|
||||
private Integer countOrder;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String departName;
|
||||
}
|
||||
|
@ -20,6 +20,9 @@ public interface FtOrderDaoMapper extends BaseMapper<FtOrderDao> {
|
||||
@Insert("insert into ft_order (order_type, staff_id, order_src, create_at, order_date, order_list, total_price) select type as order_type, staff_id, 1 as order_src, now() as create_at, date_add(now(), interval 1 day) as order_date, foods, (select sum(price) from ft_food f where FIND_IN_SET(f.food_id,d.foods)) as price from ft_staff_demand d where d.demand_mode = 1")
|
||||
void GenerateStaffTomorrowOrder();
|
||||
|
||||
@Select("select order_type, count(*) as count_order from ft_order where order_date BETWEEN #{start} and #{end} GROUP BY order_type")
|
||||
@Select("select a.order_type, count(a.order_type) as count_order , c.depart_name from ft_order a\n" +
|
||||
" LEFT JOIN ft_staff_info b on a.staff_id = b.staff_id\n" +
|
||||
" LEFT JOIN ft_depart c on b.depart_id = c.depart_id where a.order_date BETWEEN #{start} and #{end}\n" +
|
||||
" GROUP BY a.order_type, c.depart_name")
|
||||
List<FtOrderDao> statisGetOrderOfDate(@Param("start")String start,@Param("end") String end);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user