package com.artfess.yhxt.basedata.manager.impl;

import com.artfess.yhxt.basedata.model.Accessory;
import com.artfess.yhxt.basedata.model.BizMaterialsManagement;
import com.artfess.yhxt.basedata.dao.BizMaterialsManagementDao;
import com.artfess.yhxt.basedata.manager.BizMaterialsManagementManager;
import com.artfess.base.manager.impl.BaseManagerImpl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.stereotype.Service;

/**
 * 物资类型及数量 服务实现类
 *
 * @company 阿特菲斯信息技术有限公司
 * @author xmz
 * @since 2022-04-19
 */
@Service
public class BizMaterialsManagementManagerImpl extends BaseManagerImpl<BizMaterialsManagementDao, BizMaterialsManagement> implements BizMaterialsManagementManager {


    @Override
    public void deleteAllByManId(String id) {

        QueryWrapper<BizMaterialsManagement> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("STRUCTURAL_ID_", id);
        this.remove(queryWrapper);

    }
}
