package com.hfkj.service.order;

import com.hfkj.entity.BsOrderChild;
import com.hfkj.model.order.OrderChildModel;
import com.hfkj.model.order.OrderModel;

import java.util.List;
import java.util.Map;

/**
 * @className: BsOrderChildService
 * @author: HuRui
 * @date: 2024/5/6
 **/
public interface BsOrderChildService {

    /**
     * 编辑数据
     * @param data
     */
    void editData(BsOrderChild data);

    /**
     * 查询详情
     * @param childOrderNo 子订单号
     * @return
     */
    OrderChildModel getDetail(String childOrderNo);

    /**
     * 查询子订单
     * @param orderNo
     * @return
     */
    List<OrderChildModel> getOrderChildListByOrderNo(String orderNo);

    /**
     * @MethodName getList
     * @Description: 查询子订单
     * @param map
     * @return: java.util.List<com.hfkj.model.order.OrderChildModel>
     * @Author: Sum1Dream
     * @Date: 2024/8/7 下午2:55
     */
    List<BsOrderChild> getList(Map<String ,Object> map);

    /**
     * 获取未完成的子订单数量
     * @param orderNo
     * @return
     */
    long getUndoneChildOrder(String orderNo);

}
