package com.zksy.base.warning.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zksy.base.warning.domain.WarningItem;
import com.zksy.base.warning.domain.WarningReason;

import java.util.List;

public interface WarningItemService extends IService<WarningItem> {

    IPage<WarningItem> queryWarningItems(Page<WarningItem> page, String itemCode, String itemName, 
                                         String warningType, String warningLevel, String warningSpecial, String status);

    boolean addWarningItem(WarningItem warningItem);

    boolean updateWarningItem(WarningItem warningItem);

    boolean updateItemStatus(String itemId, String status);

    WarningItem getItemDetail(String itemId);

    WarningItem getItemByCode(String itemCode);

    String generateItemCode(String warningType, String warningLevel);
}
